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 libXt 1.0.6.
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='libXt'
747 PACKAGE_TARNAME='libXt'
748 PACKAGE_VERSION='1.0.6'
749 PACKAGE_STRING='libXt 1.0.6'
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='LTLIBOBJS
789 LIBOBJS
790 distcleancheck_listfiles
791 CHANGELOG_CMD
792 XTMALLOC_ZERO_CFLAGS
793 XMALLOC_ZERO_CFLAGS
794 MALLOC_ZERO_CFLAGS
795 ADMIN_MAN_DIR
796 DRIVER_MAN_DIR
797 MISC_MAN_DIR
798 FILE_MAN_DIR
799 LIB_MAN_DIR
800 APP_MAN_DIR
801 ADMIN_MAN_SUFFIX
802 DRIVER_MAN_SUFFIX
803 MISC_MAN_SUFFIX
804 FILE_MAN_SUFFIX
805 LIB_MAN_SUFFIX
806 APP_MAN_SUFFIX
807 RAWCPPFLAGS
808 RAWCPP
809 STRINGSABIOPTIONS
810 appdefaultdir
811 XFILESEARCHPATHDEFAULT
812 INSTALL_MAKESTRS_FALSE
813 INSTALL_MAKESTRS_TRUE
814 XT_LIBS
815 XT_CFLAGS
816 PKG_CONFIG
817 CC_FOR_BUILD
818 CWARNFLAGS
819 CPP
820 OTOOL64
821 OTOOL
822 LIPO
823 NMEDIT
824 DSYMUTIL
825 lt_ECHO
826 RANLIB
827 AR
828 OBJDUMP
829 LN_S
830 NM
831 ac_ct_DUMPBIN
832 DUMPBIN
833 LD
834 FGREP
835 EGREP
836 GREP
837 SED
838 host_os
839 host_vendor
840 host_cpu
841 host
842 build_os
843 build_vendor
844 build_cpu
845 build
846 LIBTOOL
847 am__fastdepCC_FALSE
848 am__fastdepCC_TRUE
849 CCDEPMODE
850 AMDEPBACKSLASH
851 AMDEP_FALSE
852 AMDEP_TRUE
853 am__quote
854 am__include
855 DEPDIR
856 OBJEXT
857 EXEEXT
858 ac_ct_CC
859 CPPFLAGS
860 LDFLAGS
861 CFLAGS
862 CC
863 MAINT
864 MAINTAINER_MODE_FALSE
865 MAINTAINER_MODE_TRUE
866 am__untar
867 am__tar
868 AMTAR
869 am__leading_dot
870 SET_MAKE
871 AWK
872 mkdir_p
873 MKDIR_P
874 INSTALL_STRIP_PROGRAM
875 STRIP
876 install_sh
877 MAKEINFO
878 AUTOHEADER
879 AUTOMAKE
880 AUTOCONF
881 ACLOCAL
882 VERSION
883 PACKAGE
884 CYGPATH_W
885 am__isrc
886 INSTALL_DATA
887 INSTALL_SCRIPT
888 INSTALL_PROGRAM
889 target_alias
890 host_alias
891 build_alias
892 LIBS
893 ECHO_T
894 ECHO_N
895 ECHO_C
896 DEFS
897 mandir
898 localedir
899 libdir
900 psdir
901 pdfdir
902 dvidir
903 htmldir
904 infodir
905 docdir
906 oldincludedir
907 includedir
908 localstatedir
909 sharedstatedir
910 sysconfdir
911 datadir
912 datarootdir
913 libexecdir
914 sbindir
915 bindir
916 program_transform_name
917 prefix
918 exec_prefix
919 PACKAGE_BUGREPORT
920 PACKAGE_STRING
921 PACKAGE_VERSION
922 PACKAGE_TARNAME
923 PACKAGE_NAME
924 PATH_SEPARATOR
925 SHELL'
926 ac_subst_files=''
927 ac_user_opts='
928 enable_option_checking
929 enable_maintainer_mode
930 enable_dependency_tracking
931 enable_shared
932 enable_static
933 with_pic
934 enable_fast_install
935 with_gnu_ld
936 enable_libtool_lock
937 enable_xkb
938 enable_install_makestrs
939 with_xfile_search_path
940 with_appdefaultdir
941 enable_malloc0returnsnull
942 with_release_version
943 '
944 ac_precious_vars='build_alias
945 host_alias
946 target_alias
947 CC
948 CFLAGS
949 LDFLAGS
950 LIBS
951 CPPFLAGS
952 CPP
953 PKG_CONFIG
954 XT_CFLAGS
955 XT_LIBS'
956
957
958 # Initialize some variables set by options.
959 ac_init_help=
960 ac_init_version=false
961 ac_unrecognized_opts=
962 ac_unrecognized_sep=
963 # The variables have the same names as the options, with
964 # dashes changed to underlines.
965 cache_file=/dev/null
966 exec_prefix=NONE
967 no_create=
968 no_recursion=
969 prefix=NONE
970 program_prefix=NONE
971 program_suffix=NONE
972 program_transform_name=s,x,x,
973 silent=
974 site=
975 srcdir=
976 verbose=
977 x_includes=NONE
978 x_libraries=NONE
979
980 # Installation directory options.
981 # These are left unexpanded so users can "make install exec_prefix=/foo"
982 # and all the variables that are supposed to be based on exec_prefix
983 # by default will actually change.
984 # Use braces instead of parens because sh, perl, etc. also accept them.
985 # (The list follows the same order as the GNU Coding Standards.)
986 bindir='${exec_prefix}/bin'
987 sbindir='${exec_prefix}/sbin'
988 libexecdir='${exec_prefix}/libexec'
989 datarootdir='${prefix}/share'
990 datadir='${datarootdir}'
991 sysconfdir='${prefix}/etc'
992 sharedstatedir='${prefix}/com'
993 localstatedir='${prefix}/var'
994 includedir='${prefix}/include'
995 oldincludedir='/usr/include'
996 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
997 infodir='${datarootdir}/info'
998 htmldir='${docdir}'
999 dvidir='${docdir}'
1000 pdfdir='${docdir}'
1001 psdir='${docdir}'
1002 libdir='${exec_prefix}/lib'
1003 localedir='${datarootdir}/locale'
1004 mandir='${datarootdir}/man'
1005
1006 ac_prev=
1007 ac_dashdash=
1008 for ac_option
1009 do
1010 # If the previous option needs an argument, assign it.
1011 if test -n "$ac_prev"; then
1012 eval $ac_prev=\$ac_option
1013 ac_prev=
1014 continue
1015 fi
1016
1017 case $ac_option in
1018 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1019 *) ac_optarg=yes ;;
1020 esac
1021
1022 # Accept the important Cygnus configure options, so we can diagnose typos.
1023
1024 case $ac_dashdash$ac_option in
1025 --)
1026 ac_dashdash=yes ;;
1027
1028 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1029 ac_prev=bindir ;;
1030 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1031 bindir=$ac_optarg ;;
1032
1033 -build | --build | --buil | --bui | --bu)
1034 ac_prev=build_alias ;;
1035 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1036 build_alias=$ac_optarg ;;
1037
1038 -cache-file | --cache-file | --cache-fil | --cache-fi \
1039 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1040 ac_prev=cache_file ;;
1041 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1042 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1043 cache_file=$ac_optarg ;;
1044
1045 --config-cache | -C)
1046 cache_file=config.cache ;;
1047
1048 -datadir | --datadir | --datadi | --datad)
1049 ac_prev=datadir ;;
1050 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1051 datadir=$ac_optarg ;;
1052
1053 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1054 | --dataroo | --dataro | --datar)
1055 ac_prev=datarootdir ;;
1056 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1057 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1058 datarootdir=$ac_optarg ;;
1059
1060 -disable-* | --disable-*)
1061 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1062 # Reject names that are not valid shell variable names.
1063 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1064 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1065 { (exit 1); exit 1; }; }
1066 ac_useropt_orig=$ac_useropt
1067 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1068 case $ac_user_opts in
1069 *"
1070 "enable_$ac_useropt"
1071 "*) ;;
1072 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1073 ac_unrecognized_sep=', ';;
1074 esac
1075 eval enable_$ac_useropt=no ;;
1076
1077 -docdir | --docdir | --docdi | --doc | --do)
1078 ac_prev=docdir ;;
1079 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1080 docdir=$ac_optarg ;;
1081
1082 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1083 ac_prev=dvidir ;;
1084 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1085 dvidir=$ac_optarg ;;
1086
1087 -enable-* | --enable-*)
1088 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1089 # Reject names that are not valid shell variable names.
1090 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1091 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1092 { (exit 1); exit 1; }; }
1093 ac_useropt_orig=$ac_useropt
1094 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095 case $ac_user_opts in
1096 *"
1097 "enable_$ac_useropt"
1098 "*) ;;
1099 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1100 ac_unrecognized_sep=', ';;
1101 esac
1102 eval enable_$ac_useropt=\$ac_optarg ;;
1103
1104 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1105 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1106 | --exec | --exe | --ex)
1107 ac_prev=exec_prefix ;;
1108 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1109 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1110 | --exec=* | --exe=* | --ex=*)
1111 exec_prefix=$ac_optarg ;;
1112
1113 -gas | --gas | --ga | --g)
1114 # Obsolete; use --with-gas.
1115 with_gas=yes ;;
1116
1117 -help | --help | --hel | --he | -h)
1118 ac_init_help=long ;;
1119 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1120 ac_init_help=recursive ;;
1121 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1122 ac_init_help=short ;;
1123
1124 -host | --host | --hos | --ho)
1125 ac_prev=host_alias ;;
1126 -host=* | --host=* | --hos=* | --ho=*)
1127 host_alias=$ac_optarg ;;
1128
1129 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1130 ac_prev=htmldir ;;
1131 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1132 | --ht=*)
1133 htmldir=$ac_optarg ;;
1134
1135 -includedir | --includedir | --includedi | --included | --include \
1136 | --includ | --inclu | --incl | --inc)
1137 ac_prev=includedir ;;
1138 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1139 | --includ=* | --inclu=* | --incl=* | --inc=*)
1140 includedir=$ac_optarg ;;
1141
1142 -infodir | --infodir | --infodi | --infod | --info | --inf)
1143 ac_prev=infodir ;;
1144 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1145 infodir=$ac_optarg ;;
1146
1147 -libdir | --libdir | --libdi | --libd)
1148 ac_prev=libdir ;;
1149 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1150 libdir=$ac_optarg ;;
1151
1152 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1153 | --libexe | --libex | --libe)
1154 ac_prev=libexecdir ;;
1155 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1156 | --libexe=* | --libex=* | --libe=*)
1157 libexecdir=$ac_optarg ;;
1158
1159 -localedir | --localedir | --localedi | --localed | --locale)
1160 ac_prev=localedir ;;
1161 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1162 localedir=$ac_optarg ;;
1163
1164 -localstatedir | --localstatedir | --localstatedi | --localstated \
1165 | --localstate | --localstat | --localsta | --localst | --locals)
1166 ac_prev=localstatedir ;;
1167 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1168 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1169 localstatedir=$ac_optarg ;;
1170
1171 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1172 ac_prev=mandir ;;
1173 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1174 mandir=$ac_optarg ;;
1175
1176 -nfp | --nfp | --nf)
1177 # Obsolete; use --without-fp.
1178 with_fp=no ;;
1179
1180 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1181 | --no-cr | --no-c | -n)
1182 no_create=yes ;;
1183
1184 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1185 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1186 no_recursion=yes ;;
1187
1188 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1189 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1190 | --oldin | --oldi | --old | --ol | --o)
1191 ac_prev=oldincludedir ;;
1192 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1193 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1194 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1195 oldincludedir=$ac_optarg ;;
1196
1197 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1198 ac_prev=prefix ;;
1199 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1200 prefix=$ac_optarg ;;
1201
1202 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1203 | --program-pre | --program-pr | --program-p)
1204 ac_prev=program_prefix ;;
1205 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1206 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1207 program_prefix=$ac_optarg ;;
1208
1209 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1210 | --program-suf | --program-su | --program-s)
1211 ac_prev=program_suffix ;;
1212 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1213 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1214 program_suffix=$ac_optarg ;;
1215
1216 -program-transform-name | --program-transform-name \
1217 | --program-transform-nam | --program-transform-na \
1218 | --program-transform-n | --program-transform- \
1219 | --program-transform | --program-transfor \
1220 | --program-transfo | --program-transf \
1221 | --program-trans | --program-tran \
1222 | --progr-tra | --program-tr | --program-t)
1223 ac_prev=program_transform_name ;;
1224 -program-transform-name=* | --program-transform-name=* \
1225 | --program-transform-nam=* | --program-transform-na=* \
1226 | --program-transform-n=* | --program-transform-=* \
1227 | --program-transform=* | --program-transfor=* \
1228 | --program-transfo=* | --program-transf=* \
1229 | --program-trans=* | --program-tran=* \
1230 | --progr-tra=* | --program-tr=* | --program-t=*)
1231 program_transform_name=$ac_optarg ;;
1232
1233 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1234 ac_prev=pdfdir ;;
1235 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1236 pdfdir=$ac_optarg ;;
1237
1238 -psdir | --psdir | --psdi | --psd | --ps)
1239 ac_prev=psdir ;;
1240 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1241 psdir=$ac_optarg ;;
1242
1243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1244 | -silent | --silent | --silen | --sile | --sil)
1245 silent=yes ;;
1246
1247 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1248 ac_prev=sbindir ;;
1249 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1250 | --sbi=* | --sb=*)
1251 sbindir=$ac_optarg ;;
1252
1253 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1254 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1255 | --sharedst | --shareds | --shared | --share | --shar \
1256 | --sha | --sh)
1257 ac_prev=sharedstatedir ;;
1258 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1259 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1260 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1261 | --sha=* | --sh=*)
1262 sharedstatedir=$ac_optarg ;;
1263
1264 -site | --site | --sit)
1265 ac_prev=site ;;
1266 -site=* | --site=* | --sit=*)
1267 site=$ac_optarg ;;
1268
1269 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1270 ac_prev=srcdir ;;
1271 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1272 srcdir=$ac_optarg ;;
1273
1274 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1275 | --syscon | --sysco | --sysc | --sys | --sy)
1276 ac_prev=sysconfdir ;;
1277 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1278 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1279 sysconfdir=$ac_optarg ;;
1280
1281 -target | --target | --targe | --targ | --tar | --ta | --t)
1282 ac_prev=target_alias ;;
1283 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1284 target_alias=$ac_optarg ;;
1285
1286 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1287 verbose=yes ;;
1288
1289 -version | --version | --versio | --versi | --vers | -V)
1290 ac_init_version=: ;;
1291
1292 -with-* | --with-*)
1293 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1294 # Reject names that are not valid shell variable names.
1295 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1296 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1297 { (exit 1); exit 1; }; }
1298 ac_useropt_orig=$ac_useropt
1299 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1300 case $ac_user_opts in
1301 *"
1302 "with_$ac_useropt"
1303 "*) ;;
1304 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1305 ac_unrecognized_sep=', ';;
1306 esac
1307 eval with_$ac_useropt=\$ac_optarg ;;
1308
1309 -without-* | --without-*)
1310 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1311 # Reject names that are not valid shell variable names.
1312 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1313 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1314 { (exit 1); exit 1; }; }
1315 ac_useropt_orig=$ac_useropt
1316 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1317 case $ac_user_opts in
1318 *"
1319 "with_$ac_useropt"
1320 "*) ;;
1321 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1322 ac_unrecognized_sep=', ';;
1323 esac
1324 eval with_$ac_useropt=no ;;
1325
1326 --x)
1327 # Obsolete; use --with-x.
1328 with_x=yes ;;
1329
1330 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1331 | --x-incl | --x-inc | --x-in | --x-i)
1332 ac_prev=x_includes ;;
1333 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1334 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1335 x_includes=$ac_optarg ;;
1336
1337 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1338 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1339 ac_prev=x_libraries ;;
1340 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1341 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1342 x_libraries=$ac_optarg ;;
1343
1344 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1345 Try \`$0 --help' for more information." >&2
1346 { (exit 1); exit 1; }; }
1347 ;;
1348
1349 *=*)
1350 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1351 # Reject names that are not valid shell variable names.
1352 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1353 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1354 { (exit 1); exit 1; }; }
1355 eval $ac_envvar=\$ac_optarg
1356 export $ac_envvar ;;
1357
1358 *)
1359 # FIXME: should be removed in autoconf 3.0.
1360 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1361 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1362 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1363 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1364 ;;
1365
1366 esac
1367 done
1368
1369 if test -n "$ac_prev"; then
1370 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1371 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1372 { (exit 1); exit 1; }; }
1373 fi
1374
1375 if test -n "$ac_unrecognized_opts"; then
1376 case $enable_option_checking in
1377 no) ;;
1378 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1379 { (exit 1); exit 1; }; } ;;
1380 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1381 esac
1382 fi
1383
1384 # Check all directory arguments for consistency.
1385 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1386 datadir sysconfdir sharedstatedir localstatedir includedir \
1387 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1388 libdir localedir mandir
1389 do
1390 eval ac_val=\$$ac_var
1391 # Remove trailing slashes.
1392 case $ac_val in
1393 */ )
1394 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1395 eval $ac_var=\$ac_val;;
1396 esac
1397 # Be sure to have absolute directory names.
1398 case $ac_val in
1399 [\\/$]* | ?:[\\/]* ) continue;;
1400 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1401 esac
1402 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1403 { (exit 1); exit 1; }; }
1404 done
1405
1406 # There might be people who depend on the old broken behavior: `$host'
1407 # used to hold the argument of --host etc.
1408 # FIXME: To remove some day.
1409 build=$build_alias
1410 host=$host_alias
1411 target=$target_alias
1412
1413 # FIXME: To remove some day.
1414 if test "x$host_alias" != x; then
1415 if test "x$build_alias" = x; then
1416 cross_compiling=maybe
1417 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1418 If a cross compiler is detected then cross compile mode will be used." >&2
1419 elif test "x$build_alias" != "x$host_alias"; then
1420 cross_compiling=yes
1421 fi
1422 fi
1423
1424 ac_tool_prefix=
1425 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1426
1427 test "$silent" = yes && exec 6>/dev/null
1428
1429
1430 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1431 ac_ls_di=`ls -di .` &&
1432 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1433 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1434 { (exit 1); exit 1; }; }
1435 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1436 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1437 { (exit 1); exit 1; }; }
1438
1439
1440 # Find the source files, if location was not specified.
1441 if test -z "$srcdir"; then
1442 ac_srcdir_defaulted=yes
1443 # Try the directory containing this script, then the parent directory.
1444 ac_confdir=`$as_dirname -- "$as_myself" ||
1445 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1446 X"$as_myself" : 'X\(//\)[^/]' \| \
1447 X"$as_myself" : 'X\(//\)$' \| \
1448 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1449 $as_echo X"$as_myself" |
1450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1451 s//\1/
1452 q
1453 }
1454 /^X\(\/\/\)[^/].*/{
1455 s//\1/
1456 q
1457 }
1458 /^X\(\/\/\)$/{
1459 s//\1/
1460 q
1461 }
1462 /^X\(\/\).*/{
1463 s//\1/
1464 q
1465 }
1466 s/.*/./; q'`
1467 srcdir=$ac_confdir
1468 if test ! -r "$srcdir/$ac_unique_file"; then
1469 srcdir=..
1470 fi
1471 else
1472 ac_srcdir_defaulted=no
1473 fi
1474 if test ! -r "$srcdir/$ac_unique_file"; then
1475 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1476 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1477 { (exit 1); exit 1; }; }
1478 fi
1479 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1480 ac_abs_confdir=`(
1481 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1482 { (exit 1); exit 1; }; }
1483 pwd)`
1484 # When building in place, set srcdir=.
1485 if test "$ac_abs_confdir" = "$ac_pwd"; then
1486 srcdir=.
1487 fi
1488 # Remove unnecessary trailing slashes from srcdir.
1489 # Double slashes in file names in object file debugging info
1490 # mess up M-x gdb in Emacs.
1491 case $srcdir in
1492 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1493 esac
1494 for ac_var in $ac_precious_vars; do
1495 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1496 eval ac_env_${ac_var}_value=\$${ac_var}
1497 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1498 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1499 done
1500
1501 #
1502 # Report the --help message.
1503 #
1504 if test "$ac_init_help" = "long"; then
1505 # Omit some internal or obsolete options to make the list less imposing.
1506 # This message is too long to be a string in the A/UX 3.1 sh.
1507 cat <<_ACEOF
1508 \`configure' configures libXt 1.0.6 to adapt to many kinds of systems.
1509
1510 Usage: $0 [OPTION]... [VAR=VALUE]...
1511
1512 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1513 VAR=VALUE. See below for descriptions of some of the useful variables.
1514
1515 Defaults for the options are specified in brackets.
1516
1517 Configuration:
1518 -h, --help display this help and exit
1519 --help=short display options specific to this package
1520 --help=recursive display the short help of all the included packages
1521 -V, --version display version information and exit
1522 -q, --quiet, --silent do not print \`checking...' messages
1523 --cache-file=FILE cache test results in FILE [disabled]
1524 -C, --config-cache alias for \`--cache-file=config.cache'
1525 -n, --no-create do not create output files
1526 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1527
1528 Installation directories:
1529 --prefix=PREFIX install architecture-independent files in PREFIX
1530 [$ac_default_prefix]
1531 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1532 [PREFIX]
1533
1534 By default, \`make install' will install all the files in
1535 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1536 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1537 for instance \`--prefix=\$HOME'.
1538
1539 For better control, use the options below.
1540
1541 Fine tuning of the installation directories:
1542 --bindir=DIR user executables [EPREFIX/bin]
1543 --sbindir=DIR system admin executables [EPREFIX/sbin]
1544 --libexecdir=DIR program executables [EPREFIX/libexec]
1545 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1546 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1547 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1548 --libdir=DIR object code libraries [EPREFIX/lib]
1549 --includedir=DIR C header files [PREFIX/include]
1550 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1551 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1552 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1553 --infodir=DIR info documentation [DATAROOTDIR/info]
1554 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1555 --mandir=DIR man documentation [DATAROOTDIR/man]
1556 --docdir=DIR documentation root [DATAROOTDIR/doc/libXt]
1557 --htmldir=DIR html documentation [DOCDIR]
1558 --dvidir=DIR dvi documentation [DOCDIR]
1559 --pdfdir=DIR pdf documentation [DOCDIR]
1560 --psdir=DIR ps documentation [DOCDIR]
1561 _ACEOF
1562
1563 cat <<\_ACEOF
1564
1565 Program names:
1566 --program-prefix=PREFIX prepend PREFIX to installed program names
1567 --program-suffix=SUFFIX append SUFFIX to installed program names
1568 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1569
1570 System types:
1571 --build=BUILD configure for building on BUILD [guessed]
1572 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1573 _ACEOF
1574 fi
1575
1576 if test -n "$ac_init_help"; then
1577 case $ac_init_help in
1578 short | recursive ) echo "Configuration of libXt 1.0.6:";;
1579 esac
1580 cat <<\_ACEOF
1581
1582 Optional Features:
1583 --disable-option-checking ignore unrecognized --enable/--with options
1584 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1585 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1586 --enable-maintainer-mode enable make rules and dependencies not useful
1587 (and sometimes confusing) to the casual installer
1588 --disable-dependency-tracking speeds up one-time build
1589 --enable-dependency-tracking do not reject slow dependency extractors
1590 --enable-shared[=PKGS] build shared libraries [default=yes]
1591 --enable-static[=PKGS] build static libraries [default=yes]
1592 --enable-fast-install[=PKGS]
1593 optimize for fast installation [default=yes]
1594 --disable-libtool-lock avoid locking (might break parallel builds)
1595 --disable-xkb Disable XKB support
1596 --disable-install-makestrs
1597 Disable installing makestrs
1598 --enable-malloc0returnsnull
1599 malloc(0) returns NULL (default: auto)
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-xfile-search-path=<path>
1608 Set path to search for app-defaults and other files
1609 --with-appdefaultdir=<path>
1610 Set app-default directory (default:
1611 ${datadir}/X11/app-defaults)
1612 --with-release-version=STRING
1613 Use release version string in package name
1614
1615 Some influential environment variables:
1616 CC C compiler command
1617 CFLAGS C compiler flags
1618 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1619 nonstandard directory <lib dir>
1620 LIBS libraries to pass to the linker, e.g. -l<library>
1621 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1622 you have headers in a nonstandard directory <include dir>
1623 CPP C preprocessor
1624 PKG_CONFIG path to pkg-config utility
1625 XT_CFLAGS C compiler flags for XT, overriding pkg-config
1626 XT_LIBS linker flags for XT, overriding pkg-config
1627
1628 Use these variables to override the choices made by `configure' or to help
1629 it to find libraries and programs with nonstandard names/locations.
1630
1631 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1632 _ACEOF
1633 ac_status=$?
1634 fi
1635
1636 if test "$ac_init_help" = "recursive"; then
1637 # If there are subdirs, report their specific --help.
1638 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1639 test -d "$ac_dir" ||
1640 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1641 continue
1642 ac_builddir=.
1643
1644 case "$ac_dir" in
1645 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1646 *)
1647 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1648 # A ".." for each directory in $ac_dir_suffix.
1649 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1650 case $ac_top_builddir_sub in
1651 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1652 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1653 esac ;;
1654 esac
1655 ac_abs_top_builddir=$ac_pwd
1656 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1657 # for backward compatibility:
1658 ac_top_builddir=$ac_top_build_prefix
1659
1660 case $srcdir in
1661 .) # We are building in place.
1662 ac_srcdir=.
1663 ac_top_srcdir=$ac_top_builddir_sub
1664 ac_abs_top_srcdir=$ac_pwd ;;
1665 [\\/]* | ?:[\\/]* ) # Absolute name.
1666 ac_srcdir=$srcdir$ac_dir_suffix;
1667 ac_top_srcdir=$srcdir
1668 ac_abs_top_srcdir=$srcdir ;;
1669 *) # Relative name.
1670 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1671 ac_top_srcdir=$ac_top_build_prefix$srcdir
1672 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1673 esac
1674 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1675
1676 cd "$ac_dir" || { ac_status=$?; continue; }
1677 # Check for guested configure.
1678 if test -f "$ac_srcdir/configure.gnu"; then
1679 echo &&
1680 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1681 elif test -f "$ac_srcdir/configure"; then
1682 echo &&
1683 $SHELL "$ac_srcdir/configure" --help=recursive
1684 else
1685 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1686 fi || ac_status=$?
1687 cd "$ac_pwd" || { ac_status=$?; break; }
1688 done
1689 fi
1690
1691 test -n "$ac_init_help" && exit $ac_status
1692 if $ac_init_version; then
1693 cat <<\_ACEOF
1694 libXt configure 1.0.6
1695 generated by GNU Autoconf 2.63
1696
1697 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1698 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1699 This configure script is free software; the Free Software Foundation
1700 gives unlimited permission to copy, distribute and modify it.
1701 _ACEOF
1702 exit
1703 fi
1704 cat >config.log <<_ACEOF
1705 This file contains any messages produced by compilers while
1706 running configure, to aid debugging if configure makes a mistake.
1707
1708 It was created by libXt $as_me 1.0.6, which was
1709 generated by GNU Autoconf 2.63. Invocation command line was
1710
1711 $ $0 $@
1712
1713 _ACEOF
1714 exec 5>>config.log
1715 {
1716 cat <<_ASUNAME
1717 ## --------- ##
1718 ## Platform. ##
1719 ## --------- ##
1720
1721 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1722 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1723 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1724 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1725 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1726
1727 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1728 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1729
1730 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1731 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1732 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1733 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1734 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1735 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1736 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1737
1738 _ASUNAME
1739
1740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1741 for as_dir in $PATH
1742 do
1743 IFS=$as_save_IFS
1744 test -z "$as_dir" && as_dir=.
1745 $as_echo "PATH: $as_dir"
1746 done
1747 IFS=$as_save_IFS
1748
1749 } >&5
1750
1751 cat >&5 <<_ACEOF
1752
1753
1754 ## ----------- ##
1755 ## Core tests. ##
1756 ## ----------- ##
1757
1758 _ACEOF
1759
1760
1761 # Keep a trace of the command line.
1762 # Strip out --no-create and --no-recursion so they do not pile up.
1763 # Strip out --silent because we don't want to record it for future runs.
1764 # Also quote any args containing shell meta-characters.
1765 # Make two passes to allow for proper duplicate-argument suppression.
1766 ac_configure_args=
1767 ac_configure_args0=
1768 ac_configure_args1=
1769 ac_must_keep_next=false
1770 for ac_pass in 1 2
1771 do
1772 for ac_arg
1773 do
1774 case $ac_arg in
1775 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1776 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1777 | -silent | --silent | --silen | --sile | --sil)
1778 continue ;;
1779 *\'*)
1780 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1781 esac
1782 case $ac_pass in
1783 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1784 2)
1785 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1786 if test $ac_must_keep_next = true; then
1787 ac_must_keep_next=false # Got value, back to normal.
1788 else
1789 case $ac_arg in
1790 *=* | --config-cache | -C | -disable-* | --disable-* \
1791 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1792 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1793 | -with-* | --with-* | -without-* | --without-* | --x)
1794 case "$ac_configure_args0 " in
1795 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1796 esac
1797 ;;
1798 -* ) ac_must_keep_next=true ;;
1799 esac
1800 fi
1801 ac_configure_args="$ac_configure_args '$ac_arg'"
1802 ;;
1803 esac
1804 done
1805 done
1806 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1807 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1808
1809 # When interrupted or exit'd, cleanup temporary files, and complete
1810 # config.log. We remove comments because anyway the quotes in there
1811 # would cause problems or look ugly.
1812 # WARNING: Use '\'' to represent an apostrophe within the trap.
1813 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1814 trap 'exit_status=$?
1815 # Save into config.log some information that might help in debugging.
1816 {
1817 echo
1818
1819 cat <<\_ASBOX
1820 ## ---------------- ##
1821 ## Cache variables. ##
1822 ## ---------------- ##
1823 _ASBOX
1824 echo
1825 # The following way of writing the cache mishandles newlines in values,
1826 (
1827 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1828 eval ac_val=\$$ac_var
1829 case $ac_val in #(
1830 *${as_nl}*)
1831 case $ac_var in #(
1832 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1833 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1834 esac
1835 case $ac_var in #(
1836 _ | IFS | as_nl) ;; #(
1837 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1838 *) $as_unset $ac_var ;;
1839 esac ;;
1840 esac
1841 done
1842 (set) 2>&1 |
1843 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1844 *${as_nl}ac_space=\ *)
1845 sed -n \
1846 "s/'\''/'\''\\\\'\'''\''/g;
1847 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1848 ;; #(
1849 *)
1850 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1851 ;;
1852 esac |
1853 sort
1854 )
1855 echo
1856
1857 cat <<\_ASBOX
1858 ## ----------------- ##
1859 ## Output variables. ##
1860 ## ----------------- ##
1861 _ASBOX
1862 echo
1863 for ac_var in $ac_subst_vars
1864 do
1865 eval ac_val=\$$ac_var
1866 case $ac_val in
1867 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1868 esac
1869 $as_echo "$ac_var='\''$ac_val'\''"
1870 done | sort
1871 echo
1872
1873 if test -n "$ac_subst_files"; then
1874 cat <<\_ASBOX
1875 ## ------------------- ##
1876 ## File substitutions. ##
1877 ## ------------------- ##
1878 _ASBOX
1879 echo
1880 for ac_var in $ac_subst_files
1881 do
1882 eval ac_val=\$$ac_var
1883 case $ac_val in
1884 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1885 esac
1886 $as_echo "$ac_var='\''$ac_val'\''"
1887 done | sort
1888 echo
1889 fi
1890
1891 if test -s confdefs.h; then
1892 cat <<\_ASBOX
1893 ## ----------- ##
1894 ## confdefs.h. ##
1895 ## ----------- ##
1896 _ASBOX
1897 echo
1898 cat confdefs.h
1899 echo
1900 fi
1901 test "$ac_signal" != 0 &&
1902 $as_echo "$as_me: caught signal $ac_signal"
1903 $as_echo "$as_me: exit $exit_status"
1904 } >&5
1905 rm -f core *.core core.conftest.* &&
1906 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1907 exit $exit_status
1908 ' 0
1909 for ac_signal in 1 2 13 15; do
1910 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1911 done
1912 ac_signal=0
1913
1914 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1915 rm -f -r conftest* confdefs.h
1916
1917 # Predefined preprocessor variables.
1918
1919 cat >>confdefs.h <<_ACEOF
1920 #define PACKAGE_NAME "$PACKAGE_NAME"
1921 _ACEOF
1922
1923
1924 cat >>confdefs.h <<_ACEOF
1925 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1926 _ACEOF
1927
1928
1929 cat >>confdefs.h <<_ACEOF
1930 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1931 _ACEOF
1932
1933
1934 cat >>confdefs.h <<_ACEOF
1935 #define PACKAGE_STRING "$PACKAGE_STRING"
1936 _ACEOF
1937
1938
1939 cat >>confdefs.h <<_ACEOF
1940 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1941 _ACEOF
1942
1943
1944 # Let the site file select an alternate cache file if it wants to.
1945 # Prefer an explicitly selected file to automatically selected ones.
1946 ac_site_file1=NONE
1947 ac_site_file2=NONE
1948 if test -n "$CONFIG_SITE"; then
1949 ac_site_file1=$CONFIG_SITE
1950 elif test "x$prefix" != xNONE; then
1951 ac_site_file1=$prefix/share/config.site
1952 ac_site_file2=$prefix/etc/config.site
1953 else
1954 ac_site_file1=$ac_default_prefix/share/config.site
1955 ac_site_file2=$ac_default_prefix/etc/config.site
1956 fi
1957 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1958 do
1959 test "x$ac_site_file" = xNONE && continue
1960 if test -r "$ac_site_file"; then
1961 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1962 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1963 sed 's/^/| /' "$ac_site_file" >&5
1964 . "$ac_site_file"
1965 fi
1966 done
1967
1968 if test -r "$cache_file"; then
1969 # Some versions of bash will fail to source /dev/null (special
1970 # files actually), so we avoid doing that.
1971 if test -f "$cache_file"; then
1972 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1973 $as_echo "$as_me: loading cache $cache_file" >&6;}
1974 case $cache_file in
1975 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1976 *) . "./$cache_file";;
1977 esac
1978 fi
1979 else
1980 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1981 $as_echo "$as_me: creating cache $cache_file" >&6;}
1982 >$cache_file
1983 fi
1984
1985 # Check that the precious variables saved in the cache have kept the same
1986 # value.
1987 ac_cache_corrupted=false
1988 for ac_var in $ac_precious_vars; do
1989 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1990 eval ac_new_set=\$ac_env_${ac_var}_set
1991 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1992 eval ac_new_val=\$ac_env_${ac_var}_value
1993 case $ac_old_set,$ac_new_set in
1994 set,)
1995 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1996 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1997 ac_cache_corrupted=: ;;
1998 ,set)
1999 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2000 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2001 ac_cache_corrupted=: ;;
2002 ,);;
2003 *)
2004 if test "x$ac_old_val" != "x$ac_new_val"; then
2005 # differences in whitespace do not lead to failure.
2006 ac_old_val_w=`echo x $ac_old_val`
2007 ac_new_val_w=`echo x $ac_new_val`
2008 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2009 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2010 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2011 ac_cache_corrupted=:
2012 else
2013 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2014 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2015 eval $ac_var=\$ac_old_val
2016 fi
2017 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2018 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2019 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2020 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2021 fi;;
2022 esac
2023 # Pass precious variables to config.status.
2024 if test "$ac_new_set" = set; then
2025 case $ac_new_val in
2026 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2027 *) ac_arg=$ac_var=$ac_new_val ;;
2028 esac
2029 case " $ac_configure_args " in
2030 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2031 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2032 esac
2033 fi
2034 done
2035 if $ac_cache_corrupted; then
2036 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2038 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2039 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2040 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2041 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2042 { (exit 1); exit 1; }; }
2043 fi
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069 ac_ext=c
2070 ac_cpp='$CPP $CPPFLAGS'
2071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2074
2075
2076 am__api_version='1.10'
2077
2078 ac_aux_dir=
2079 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2080 if test -f "$ac_dir/install-sh"; then
2081 ac_aux_dir=$ac_dir
2082 ac_install_sh="$ac_aux_dir/install-sh -c"
2083 break
2084 elif test -f "$ac_dir/install.sh"; then
2085 ac_aux_dir=$ac_dir
2086 ac_install_sh="$ac_aux_dir/install.sh -c"
2087 break
2088 elif test -f "$ac_dir/shtool"; then
2089 ac_aux_dir=$ac_dir
2090 ac_install_sh="$ac_aux_dir/shtool install -c"
2091 break
2092 fi
2093 done
2094 if test -z "$ac_aux_dir"; then
2095 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2096 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2097 { (exit 1); exit 1; }; }
2098 fi
2099
2100 # These three variables are undocumented and unsupported,
2101 # and are intended to be withdrawn in a future Autoconf release.
2102 # They can cause serious problems if a builder's source tree is in a directory
2103 # whose full name contains unusual characters.
2104 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2105 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2106 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2107
2108
2109 # Find a good install program. We prefer a C program (faster),
2110 # so one script is as good as another. But avoid the broken or
2111 # incompatible versions:
2112 # SysV /etc/install, /usr/sbin/install
2113 # SunOS /usr/etc/install
2114 # IRIX /sbin/install
2115 # AIX /bin/install
2116 # AmigaOS /C/install, which installs bootblocks on floppy discs
2117 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2118 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2119 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2120 # OS/2's system install, which has a completely different semantic
2121 # ./install, which can be erroneously created by make from ./install.sh.
2122 # Reject install programs that cannot install multiple files.
2123 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2124 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2125 if test -z "$INSTALL"; then
2126 if test "${ac_cv_path_install+set}" = set; then
2127 $as_echo_n "(cached) " >&6
2128 else
2129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2130 for as_dir in $PATH
2131 do
2132 IFS=$as_save_IFS
2133 test -z "$as_dir" && as_dir=.
2134 # Account for people who put trailing slashes in PATH elements.
2135 case $as_dir/ in
2136 ./ | .// | /cC/* | \
2137 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2138 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2139 /usr/ucb/* ) ;;
2140 *)
2141 # OSF1 and SCO ODT 3.0 have their own names for install.
2142 # Don't use installbsd from OSF since it installs stuff as root
2143 # by default.
2144 for ac_prog in ginstall scoinst install; do
2145 for ac_exec_ext in '' $ac_executable_extensions; do
2146 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2147 if test $ac_prog = install &&
2148 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2149 # AIX install. It has an incompatible calling convention.
2150 :
2151 elif test $ac_prog = install &&
2152 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2153 # program-specific install script used by HP pwplus--don't use.
2154 :
2155 else
2156 rm -rf conftest.one conftest.two conftest.dir
2157 echo one > conftest.one
2158 echo two > conftest.two
2159 mkdir conftest.dir
2160 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2161 test -s conftest.one && test -s conftest.two &&
2162 test -s conftest.dir/conftest.one &&
2163 test -s conftest.dir/conftest.two
2164 then
2165 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2166 break 3
2167 fi
2168 fi
2169 fi
2170 done
2171 done
2172 ;;
2173 esac
2174
2175 done
2176 IFS=$as_save_IFS
2177
2178 rm -rf conftest.one conftest.two conftest.dir
2179
2180 fi
2181 if test "${ac_cv_path_install+set}" = set; then
2182 INSTALL=$ac_cv_path_install
2183 else
2184 # As a last resort, use the slow shell script. Don't cache a
2185 # value for INSTALL within a source directory, because that will
2186 # break other packages using the cache if that directory is
2187 # removed, or if the value is a relative name.
2188 INSTALL=$ac_install_sh
2189 fi
2190 fi
2191 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2192 $as_echo "$INSTALL" >&6; }
2193
2194 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2195 # It thinks the first close brace ends the variable substitution.
2196 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2197
2198 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2199
2200 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2201
2202 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2203 $as_echo_n "checking whether build environment is sane... " >&6; }
2204 # Just in case
2205 sleep 1
2206 echo timestamp > conftest.file
2207 # Do `set' in a subshell so we don't clobber the current shell's
2208 # arguments. Must try -L first in case configure is actually a
2209 # symlink; some systems play weird games with the mod time of symlinks
2210 # (eg FreeBSD returns the mod time of the symlink's containing
2211 # directory).
2212 if (
2213 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2214 if test "$*" = "X"; then
2215 # -L didn't work.
2216 set X `ls -t $srcdir/configure conftest.file`
2217 fi
2218 rm -f conftest.file
2219 if test "$*" != "X $srcdir/configure conftest.file" \
2220 && test "$*" != "X conftest.file $srcdir/configure"; then
2221
2222 # If neither matched, then we have a broken ls. This can happen
2223 # if, for instance, CONFIG_SHELL is bash and it inherits a
2224 # broken ls alias from the environment. This has actually
2225 # happened. Such a system could not be considered "sane".
2226 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2227 alias in your environment" >&5
2228 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2229 alias in your environment" >&2;}
2230 { (exit 1); exit 1; }; }
2231 fi
2232
2233 test "$2" = conftest.file
2234 )
2235 then
2236 # Ok.
2237 :
2238 else
2239 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2240 Check your system clock" >&5
2241 $as_echo "$as_me: error: newly created file is older than distributed files!
2242 Check your system clock" >&2;}
2243 { (exit 1); exit 1; }; }
2244 fi
2245 { $as_echo "$as_me:$LINENO: result: yes" >&5
2246 $as_echo "yes" >&6; }
2247 test "$program_prefix" != NONE &&
2248 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2249 # Use a double $ so make ignores it.
2250 test "$program_suffix" != NONE &&
2251 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2252 # Double any \ or $.
2253 # By default was `s,x,x', remove it if useless.
2254 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2255 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2256
2257 # expand $ac_aux_dir to an absolute path
2258 am_aux_dir=`cd $ac_aux_dir && pwd`
2259
2260 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2261 # Use eval to expand $SHELL
2262 if eval "$MISSING --run true"; then
2263 am_missing_run="$MISSING --run "
2264 else
2265 am_missing_run=
2266 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2267 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2268 fi
2269
2270 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2271 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2272 if test -z "$MKDIR_P"; then
2273 if test "${ac_cv_path_mkdir+set}" = set; then
2274 $as_echo_n "(cached) " >&6
2275 else
2276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2277 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2278 do
2279 IFS=$as_save_IFS
2280 test -z "$as_dir" && as_dir=.
2281 for ac_prog in mkdir gmkdir; do
2282 for ac_exec_ext in '' $ac_executable_extensions; do
2283 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2284 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2285 'mkdir (GNU coreutils) '* | \
2286 'mkdir (coreutils) '* | \
2287 'mkdir (fileutils) '4.1*)
2288 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2289 break 3;;
2290 esac
2291 done
2292 done
2293 done
2294 IFS=$as_save_IFS
2295
2296 fi
2297
2298 if test "${ac_cv_path_mkdir+set}" = set; then
2299 MKDIR_P="$ac_cv_path_mkdir -p"
2300 else
2301 # As a last resort, use the slow shell script. Don't cache a
2302 # value for MKDIR_P within a source directory, because that will
2303 # break other packages using the cache if that directory is
2304 # removed, or if the value is a relative name.
2305 test -d ./--version && rmdir ./--version
2306 MKDIR_P="$ac_install_sh -d"
2307 fi
2308 fi
2309 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2310 $as_echo "$MKDIR_P" >&6; }
2311
2312 mkdir_p="$MKDIR_P"
2313 case $mkdir_p in
2314 [\\/$]* | ?:[\\/]*) ;;
2315 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2316 esac
2317
2318 for ac_prog in gawk mawk nawk awk
2319 do
2320 # Extract the first word of "$ac_prog", so it can be a program name with args.
2321 set dummy $ac_prog; ac_word=$2
2322 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2323 $as_echo_n "checking for $ac_word... " >&6; }
2324 if test "${ac_cv_prog_AWK+set}" = set; then
2325 $as_echo_n "(cached) " >&6
2326 else
2327 if test -n "$AWK"; then
2328 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2329 else
2330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2331 for as_dir in $PATH
2332 do
2333 IFS=$as_save_IFS
2334 test -z "$as_dir" && as_dir=.
2335 for ac_exec_ext in '' $ac_executable_extensions; do
2336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2337 ac_cv_prog_AWK="$ac_prog"
2338 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2339 break 2
2340 fi
2341 done
2342 done
2343 IFS=$as_save_IFS
2344
2345 fi
2346 fi
2347 AWK=$ac_cv_prog_AWK
2348 if test -n "$AWK"; then
2349 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2350 $as_echo "$AWK" >&6; }
2351 else
2352 { $as_echo "$as_me:$LINENO: result: no" >&5
2353 $as_echo "no" >&6; }
2354 fi
2355
2356
2357 test -n "$AWK" && break
2358 done
2359
2360 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2361 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2362 set x ${MAKE-make}
2363 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2364 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2365 $as_echo_n "(cached) " >&6
2366 else
2367 cat >conftest.make <<\_ACEOF
2368 SHELL = /bin/sh
2369 all:
2370 @echo '@@@%%%=$(MAKE)=@@@%%%'
2371 _ACEOF
2372 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2373 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2374 *@@@%%%=?*=@@@%%%*)
2375 eval ac_cv_prog_make_${ac_make}_set=yes;;
2376 *)
2377 eval ac_cv_prog_make_${ac_make}_set=no;;
2378 esac
2379 rm -f conftest.make
2380 fi
2381 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2382 { $as_echo "$as_me:$LINENO: result: yes" >&5
2383 $as_echo "yes" >&6; }
2384 SET_MAKE=
2385 else
2386 { $as_echo "$as_me:$LINENO: result: no" >&5
2387 $as_echo "no" >&6; }
2388 SET_MAKE="MAKE=${MAKE-make}"
2389 fi
2390
2391 rm -rf .tst 2>/dev/null
2392 mkdir .tst 2>/dev/null
2393 if test -d .tst; then
2394 am__leading_dot=.
2395 else
2396 am__leading_dot=_
2397 fi
2398 rmdir .tst 2>/dev/null
2399
2400 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2401 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2402 # is not polluted with repeated "-I."
2403 am__isrc=' -I$(srcdir)'
2404 # test to see if srcdir already configured
2405 if test -f $srcdir/config.status; then
2406 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2407 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2408 { (exit 1); exit 1; }; }
2409 fi
2410 fi
2411
2412 # test whether we have cygpath
2413 if test -z "$CYGPATH_W"; then
2414 if (cygpath --version) >/dev/null 2>/dev/null; then
2415 CYGPATH_W='cygpath -w'
2416 else
2417 CYGPATH_W=echo
2418 fi
2419 fi
2420
2421
2422 # Define the identity of the package.
2423 PACKAGE='libXt'
2424 VERSION='1.0.6'
2425
2426
2427 cat >>confdefs.h <<_ACEOF
2428 #define PACKAGE "$PACKAGE"
2429 _ACEOF
2430
2431
2432 cat >>confdefs.h <<_ACEOF
2433 #define VERSION "$VERSION"
2434 _ACEOF
2435
2436 # Some tools Automake needs.
2437
2438 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2439
2440
2441 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2442
2443
2444 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2445
2446
2447 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2448
2449
2450 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2451
2452 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2453
2454 # Installed binaries are usually stripped using `strip' when the user
2455 # run `make install-strip'. However `strip' might not be the right
2456 # tool to use in cross-compilation environments, therefore Automake
2457 # will honor the `STRIP' environment variable to overrule this program.
2458 if test "$cross_compiling" != no; then
2459 if test -n "$ac_tool_prefix"; then
2460 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2461 set dummy ${ac_tool_prefix}strip; ac_word=$2
2462 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2463 $as_echo_n "checking for $ac_word... " >&6; }
2464 if test "${ac_cv_prog_STRIP+set}" = set; then
2465 $as_echo_n "(cached) " >&6
2466 else
2467 if test -n "$STRIP"; then
2468 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2469 else
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 for as_dir in $PATH
2472 do
2473 IFS=$as_save_IFS
2474 test -z "$as_dir" && as_dir=.
2475 for ac_exec_ext in '' $ac_executable_extensions; do
2476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2477 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2478 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2479 break 2
2480 fi
2481 done
2482 done
2483 IFS=$as_save_IFS
2484
2485 fi
2486 fi
2487 STRIP=$ac_cv_prog_STRIP
2488 if test -n "$STRIP"; then
2489 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2490 $as_echo "$STRIP" >&6; }
2491 else
2492 { $as_echo "$as_me:$LINENO: result: no" >&5
2493 $as_echo "no" >&6; }
2494 fi
2495
2496
2497 fi
2498 if test -z "$ac_cv_prog_STRIP"; then
2499 ac_ct_STRIP=$STRIP
2500 # Extract the first word of "strip", so it can be a program name with args.
2501 set dummy strip; ac_word=$2
2502 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2503 $as_echo_n "checking for $ac_word... " >&6; }
2504 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2505 $as_echo_n "(cached) " >&6
2506 else
2507 if test -n "$ac_ct_STRIP"; then
2508 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2509 else
2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511 for as_dir in $PATH
2512 do
2513 IFS=$as_save_IFS
2514 test -z "$as_dir" && as_dir=.
2515 for ac_exec_ext in '' $ac_executable_extensions; do
2516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2517 ac_cv_prog_ac_ct_STRIP="strip"
2518 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2519 break 2
2520 fi
2521 done
2522 done
2523 IFS=$as_save_IFS
2524
2525 fi
2526 fi
2527 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2528 if test -n "$ac_ct_STRIP"; then
2529 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2530 $as_echo "$ac_ct_STRIP" >&6; }
2531 else
2532 { $as_echo "$as_me:$LINENO: result: no" >&5
2533 $as_echo "no" >&6; }
2534 fi
2535
2536 if test "x$ac_ct_STRIP" = x; then
2537 STRIP=":"
2538 else
2539 case $cross_compiling:$ac_tool_warned in
2540 yes:)
2541 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2543 ac_tool_warned=yes ;;
2544 esac
2545 STRIP=$ac_ct_STRIP
2546 fi
2547 else
2548 STRIP="$ac_cv_prog_STRIP"
2549 fi
2550
2551 fi
2552 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2553
2554 # We need awk for the "check" target. The system "awk" is bad on
2555 # some platforms.
2556 # Always define AMTAR for backward compatibility.
2557
2558 AMTAR=${AMTAR-"${am_missing_run}tar"}
2559
2560 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2561
2562
2563
2564
2565
2566 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2567 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2568 # Check whether --enable-maintainer-mode was given.
2569 if test "${enable_maintainer_mode+set}" = set; then
2570 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2571 else
2572 USE_MAINTAINER_MODE=no
2573 fi
2574
2575 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2576 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2577 if test $USE_MAINTAINER_MODE = yes; then
2578 MAINTAINER_MODE_TRUE=
2579 MAINTAINER_MODE_FALSE='#'
2580 else
2581 MAINTAINER_MODE_TRUE='#'
2582 MAINTAINER_MODE_FALSE=
2583 fi
2584
2585 MAINT=$MAINTAINER_MODE_TRUE
2586
2587
2588
2589 # Require xorg-macros: XORG_CWARNFLAGS, XORG_CHANGELOG
2590
2591
2592 XORG_MACROS_needed_version=1.2
2593 XORG_MACROS_needed_major=`echo $XORG_MACROS_needed_version | sed 's/\..*$//'`
2594 XORG_MACROS_needed_minor=`echo $XORG_MACROS_needed_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`
2595 { $as_echo "$as_me:$LINENO: checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}" >&5
2596 $as_echo_n "checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}... " >&6; }
2597 XORG_MACROS_version=1.2.1
2598 XORG_MACROS_major=`echo $XORG_MACROS_version | sed 's/\..*$//'`
2599 XORG_MACROS_minor=`echo $XORG_MACROS_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`
2600 if test $XORG_MACROS_major -ne $XORG_MACROS_needed_major ; then
2601 { { $as_echo "$as_me:$LINENO: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&5
2602 $as_echo "$as_me: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&2;}
2603 { (exit 1); exit 1; }; }
2604 fi
2605 if test $XORG_MACROS_minor -lt $XORG_MACROS_needed_minor ; then
2606 { { $as_echo "$as_me:$LINENO: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer" >&5
2607 $as_echo "$as_me: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer" >&2;}
2608 { (exit 1); exit 1; }; }
2609 fi
2610 { $as_echo "$as_me:$LINENO: result: yes, $XORG_MACROS_version" >&5
2611 $as_echo "yes, $XORG_MACROS_version" >&6; }
2612
2613 ac_config_headers="$ac_config_headers config.h"
2614
2615
2616 # Check for progs
2617 ac_ext=c
2618 ac_cpp='$CPP $CPPFLAGS'
2619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2622 if test -n "$ac_tool_prefix"; then
2623 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2624 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2625 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2626 $as_echo_n "checking for $ac_word... " >&6; }
2627 if test "${ac_cv_prog_CC+set}" = set; then
2628 $as_echo_n "(cached) " >&6
2629 else
2630 if test -n "$CC"; then
2631 ac_cv_prog_CC="$CC" # Let the user override the test.
2632 else
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634 for as_dir in $PATH
2635 do
2636 IFS=$as_save_IFS
2637 test -z "$as_dir" && as_dir=.
2638 for ac_exec_ext in '' $ac_executable_extensions; do
2639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2640 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2641 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2642 break 2
2643 fi
2644 done
2645 done
2646 IFS=$as_save_IFS
2647
2648 fi
2649 fi
2650 CC=$ac_cv_prog_CC
2651 if test -n "$CC"; then
2652 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2653 $as_echo "$CC" >&6; }
2654 else
2655 { $as_echo "$as_me:$LINENO: result: no" >&5
2656 $as_echo "no" >&6; }
2657 fi
2658
2659
2660 fi
2661 if test -z "$ac_cv_prog_CC"; then
2662 ac_ct_CC=$CC
2663 # Extract the first word of "gcc", so it can be a program name with args.
2664 set dummy gcc; ac_word=$2
2665 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2666 $as_echo_n "checking for $ac_word... " >&6; }
2667 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2668 $as_echo_n "(cached) " >&6
2669 else
2670 if test -n "$ac_ct_CC"; then
2671 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2672 else
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 for as_dir in $PATH
2675 do
2676 IFS=$as_save_IFS
2677 test -z "$as_dir" && as_dir=.
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2680 ac_cv_prog_ac_ct_CC="gcc"
2681 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2682 break 2
2683 fi
2684 done
2685 done
2686 IFS=$as_save_IFS
2687
2688 fi
2689 fi
2690 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2691 if test -n "$ac_ct_CC"; then
2692 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2693 $as_echo "$ac_ct_CC" >&6; }
2694 else
2695 { $as_echo "$as_me:$LINENO: result: no" >&5
2696 $as_echo "no" >&6; }
2697 fi
2698
2699 if test "x$ac_ct_CC" = x; then
2700 CC=""
2701 else
2702 case $cross_compiling:$ac_tool_warned in
2703 yes:)
2704 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2706 ac_tool_warned=yes ;;
2707 esac
2708 CC=$ac_ct_CC
2709 fi
2710 else
2711 CC="$ac_cv_prog_CC"
2712 fi
2713
2714 if test -z "$CC"; then
2715 if test -n "$ac_tool_prefix"; then
2716 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2717 set dummy ${ac_tool_prefix}cc; ac_word=$2
2718 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2719 $as_echo_n "checking for $ac_word... " >&6; }
2720 if test "${ac_cv_prog_CC+set}" = set; then
2721 $as_echo_n "(cached) " >&6
2722 else
2723 if test -n "$CC"; then
2724 ac_cv_prog_CC="$CC" # Let the user override the test.
2725 else
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 for as_dir in $PATH
2728 do
2729 IFS=$as_save_IFS
2730 test -z "$as_dir" && as_dir=.
2731 for ac_exec_ext in '' $ac_executable_extensions; do
2732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2733 ac_cv_prog_CC="${ac_tool_prefix}cc"
2734 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2735 break 2
2736 fi
2737 done
2738 done
2739 IFS=$as_save_IFS
2740
2741 fi
2742 fi
2743 CC=$ac_cv_prog_CC
2744 if test -n "$CC"; then
2745 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2746 $as_echo "$CC" >&6; }
2747 else
2748 { $as_echo "$as_me:$LINENO: result: no" >&5
2749 $as_echo "no" >&6; }
2750 fi
2751
2752
2753 fi
2754 fi
2755 if test -z "$CC"; then
2756 # Extract the first word of "cc", so it can be a program name with args.
2757 set dummy cc; ac_word=$2
2758 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2759 $as_echo_n "checking for $ac_word... " >&6; }
2760 if test "${ac_cv_prog_CC+set}" = set; then
2761 $as_echo_n "(cached) " >&6
2762 else
2763 if test -n "$CC"; then
2764 ac_cv_prog_CC="$CC" # Let the user override the test.
2765 else
2766 ac_prog_rejected=no
2767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768 for as_dir in $PATH
2769 do
2770 IFS=$as_save_IFS
2771 test -z "$as_dir" && as_dir=.
2772 for ac_exec_ext in '' $ac_executable_extensions; do
2773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2774 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2775 ac_prog_rejected=yes
2776 continue
2777 fi
2778 ac_cv_prog_CC="cc"
2779 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2780 break 2
2781 fi
2782 done
2783 done
2784 IFS=$as_save_IFS
2785
2786 if test $ac_prog_rejected = yes; then
2787 # We found a bogon in the path, so make sure we never use it.
2788 set dummy $ac_cv_prog_CC
2789 shift
2790 if test $# != 0; then
2791 # We chose a different compiler from the bogus one.
2792 # However, it has the same basename, so the bogon will be chosen
2793 # first if we set CC to just the basename; use the full file name.
2794 shift
2795 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2796 fi
2797 fi
2798 fi
2799 fi
2800 CC=$ac_cv_prog_CC
2801 if test -n "$CC"; then
2802 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2803 $as_echo "$CC" >&6; }
2804 else
2805 { $as_echo "$as_me:$LINENO: result: no" >&5
2806 $as_echo "no" >&6; }
2807 fi
2808
2809
2810 fi
2811 if test -z "$CC"; then
2812 if test -n "$ac_tool_prefix"; then
2813 for ac_prog in cl.exe
2814 do
2815 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2816 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2817 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2818 $as_echo_n "checking for $ac_word... " >&6; }
2819 if test "${ac_cv_prog_CC+set}" = set; then
2820 $as_echo_n "(cached) " >&6
2821 else
2822 if test -n "$CC"; then
2823 ac_cv_prog_CC="$CC" # Let the user override the test.
2824 else
2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826 for as_dir in $PATH
2827 do
2828 IFS=$as_save_IFS
2829 test -z "$as_dir" && as_dir=.
2830 for ac_exec_ext in '' $ac_executable_extensions; do
2831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2832 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2833 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2834 break 2
2835 fi
2836 done
2837 done
2838 IFS=$as_save_IFS
2839
2840 fi
2841 fi
2842 CC=$ac_cv_prog_CC
2843 if test -n "$CC"; then
2844 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2845 $as_echo "$CC" >&6; }
2846 else
2847 { $as_echo "$as_me:$LINENO: result: no" >&5
2848 $as_echo "no" >&6; }
2849 fi
2850
2851
2852 test -n "$CC" && break
2853 done
2854 fi
2855 if test -z "$CC"; then
2856 ac_ct_CC=$CC
2857 for ac_prog in cl.exe
2858 do
2859 # Extract the first word of "$ac_prog", so it can be a program name with args.
2860 set dummy $ac_prog; ac_word=$2
2861 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2862 $as_echo_n "checking for $ac_word... " >&6; }
2863 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2864 $as_echo_n "(cached) " >&6
2865 else
2866 if test -n "$ac_ct_CC"; then
2867 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2868 else
2869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870 for as_dir in $PATH
2871 do
2872 IFS=$as_save_IFS
2873 test -z "$as_dir" && as_dir=.
2874 for ac_exec_ext in '' $ac_executable_extensions; do
2875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2876 ac_cv_prog_ac_ct_CC="$ac_prog"
2877 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2878 break 2
2879 fi
2880 done
2881 done
2882 IFS=$as_save_IFS
2883
2884 fi
2885 fi
2886 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2887 if test -n "$ac_ct_CC"; then
2888 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2889 $as_echo "$ac_ct_CC" >&6; }
2890 else
2891 { $as_echo "$as_me:$LINENO: result: no" >&5
2892 $as_echo "no" >&6; }
2893 fi
2894
2895
2896 test -n "$ac_ct_CC" && break
2897 done
2898
2899 if test "x$ac_ct_CC" = x; then
2900 CC=""
2901 else
2902 case $cross_compiling:$ac_tool_warned in
2903 yes:)
2904 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2906 ac_tool_warned=yes ;;
2907 esac
2908 CC=$ac_ct_CC
2909 fi
2910 fi
2911
2912 fi
2913
2914
2915 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2917 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2918 See \`config.log' for more details." >&5
2919 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2920 See \`config.log' for more details." >&2;}
2921 { (exit 1); exit 1; }; }; }
2922
2923 # Provide some information about the compiler.
2924 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2925 set X $ac_compile
2926 ac_compiler=$2
2927 { (ac_try="$ac_compiler --version >&5"
2928 case "(($ac_try" in
2929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930 *) ac_try_echo=$ac_try;;
2931 esac
2932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2933 $as_echo "$ac_try_echo") >&5
2934 (eval "$ac_compiler --version >&5") 2>&5
2935 ac_status=$?
2936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); }
2938 { (ac_try="$ac_compiler -v >&5"
2939 case "(($ac_try" in
2940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2941 *) ac_try_echo=$ac_try;;
2942 esac
2943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2944 $as_echo "$ac_try_echo") >&5
2945 (eval "$ac_compiler -v >&5") 2>&5
2946 ac_status=$?
2947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); }
2949 { (ac_try="$ac_compiler -V >&5"
2950 case "(($ac_try" in
2951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2952 *) ac_try_echo=$ac_try;;
2953 esac
2954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2955 $as_echo "$ac_try_echo") >&5
2956 (eval "$ac_compiler -V >&5") 2>&5
2957 ac_status=$?
2958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); }
2960
2961 cat >conftest.$ac_ext <<_ACEOF
2962 /* confdefs.h. */
2963 _ACEOF
2964 cat confdefs.h >>conftest.$ac_ext
2965 cat >>conftest.$ac_ext <<_ACEOF
2966 /* end confdefs.h. */
2967
2968 int
2969 main ()
2970 {
2971
2972 ;
2973 return 0;
2974 }
2975 _ACEOF
2976 ac_clean_files_save=$ac_clean_files
2977 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2978 # Try to create an executable without -o first, disregard a.out.
2979 # It will help us diagnose broken compilers, and finding out an intuition
2980 # of exeext.
2981 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2982 $as_echo_n "checking for C compiler default output file name... " >&6; }
2983 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2984
2985 # The possible output files:
2986 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2987
2988 ac_rmfiles=
2989 for ac_file in $ac_files
2990 do
2991 case $ac_file in
2992 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2993 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2994 esac
2995 done
2996 rm -f $ac_rmfiles
2997
2998 if { (ac_try="$ac_link_default"
2999 case "(($ac_try" in
3000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3001 *) ac_try_echo=$ac_try;;
3002 esac
3003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3004 $as_echo "$ac_try_echo") >&5
3005 (eval "$ac_link_default") 2>&5
3006 ac_status=$?
3007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); }; then
3009 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3010 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3011 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3012 # so that the user can short-circuit this test for compilers unknown to
3013 # Autoconf.
3014 for ac_file in $ac_files ''
3015 do
3016 test -f "$ac_file" || continue
3017 case $ac_file in
3018 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3019 ;;
3020 [ab].out )
3021 # We found the default executable, but exeext='' is most
3022 # certainly right.
3023 break;;
3024 *.* )
3025 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3026 then :; else
3027 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3028 fi
3029 # We set ac_cv_exeext here because the later test for it is not
3030 # safe: cross compilers may not add the suffix if given an `-o'
3031 # argument, so we may need to know it at that point already.
3032 # Even if this section looks crufty: it has the advantage of
3033 # actually working.
3034 break;;
3035 * )
3036 break;;
3037 esac
3038 done
3039 test "$ac_cv_exeext" = no && ac_cv_exeext=
3040
3041 else
3042 ac_file=''
3043 fi
3044
3045 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3046 $as_echo "$ac_file" >&6; }
3047 if test -z "$ac_file"; then
3048 $as_echo "$as_me: failed program was:" >&5
3049 sed 's/^/| /' conftest.$ac_ext >&5
3050
3051 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3053 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3054 See \`config.log' for more details." >&5
3055 $as_echo "$as_me: error: C compiler cannot create executables
3056 See \`config.log' for more details." >&2;}
3057 { (exit 77); exit 77; }; }; }
3058 fi
3059
3060 ac_exeext=$ac_cv_exeext
3061
3062 # Check that the compiler produces executables we can run. If not, either
3063 # the compiler is broken, or we cross compile.
3064 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3065 $as_echo_n "checking whether the C compiler works... " >&6; }
3066 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3067 # If not cross compiling, check that we can run a simple program.
3068 if test "$cross_compiling" != yes; then
3069 if { ac_try='./$ac_file'
3070 { (case "(($ac_try" in
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3073 esac
3074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3075 $as_echo "$ac_try_echo") >&5
3076 (eval "$ac_try") 2>&5
3077 ac_status=$?
3078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); }; }; then
3080 cross_compiling=no
3081 else
3082 if test "$cross_compiling" = maybe; then
3083 cross_compiling=yes
3084 else
3085 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3087 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3088 If you meant to cross compile, use \`--host'.
3089 See \`config.log' for more details." >&5
3090 $as_echo "$as_me: error: cannot run C compiled programs.
3091 If you meant to cross compile, use \`--host'.
3092 See \`config.log' for more details." >&2;}
3093 { (exit 1); exit 1; }; }; }
3094 fi
3095 fi
3096 fi
3097 { $as_echo "$as_me:$LINENO: result: yes" >&5
3098 $as_echo "yes" >&6; }
3099
3100 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3101 ac_clean_files=$ac_clean_files_save
3102 # Check that the compiler produces executables we can run. If not, either
3103 # the compiler is broken, or we cross compile.
3104 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3105 $as_echo_n "checking whether we are cross compiling... " >&6; }
3106 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3107 $as_echo "$cross_compiling" >&6; }
3108
3109 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3110 $as_echo_n "checking for suffix of executables... " >&6; }
3111 if { (ac_try="$ac_link"
3112 case "(($ac_try" in
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3115 esac
3116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3117 $as_echo "$ac_try_echo") >&5
3118 (eval "$ac_link") 2>&5
3119 ac_status=$?
3120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); }; then
3122 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3123 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3124 # work properly (i.e., refer to `conftest.exe'), while it won't with
3125 # `rm'.
3126 for ac_file in conftest.exe conftest conftest.*; do
3127 test -f "$ac_file" || continue
3128 case $ac_file in
3129 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3130 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3131 break;;
3132 * ) break;;
3133 esac
3134 done
3135 else
3136 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3138 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3139 See \`config.log' for more details." >&5
3140 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3141 See \`config.log' for more details." >&2;}
3142 { (exit 1); exit 1; }; }; }
3143 fi
3144
3145 rm -f conftest$ac_cv_exeext
3146 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3147 $as_echo "$ac_cv_exeext" >&6; }
3148
3149 rm -f conftest.$ac_ext
3150 EXEEXT=$ac_cv_exeext
3151 ac_exeext=$EXEEXT
3152 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3153 $as_echo_n "checking for suffix of object files... " >&6; }
3154 if test "${ac_cv_objext+set}" = set; then
3155 $as_echo_n "(cached) " >&6
3156 else
3157 cat >conftest.$ac_ext <<_ACEOF
3158 /* confdefs.h. */
3159 _ACEOF
3160 cat confdefs.h >>conftest.$ac_ext
3161 cat >>conftest.$ac_ext <<_ACEOF
3162 /* end confdefs.h. */
3163
3164 int
3165 main ()
3166 {
3167
3168 ;
3169 return 0;
3170 }
3171 _ACEOF
3172 rm -f conftest.o conftest.obj
3173 if { (ac_try="$ac_compile"
3174 case "(($ac_try" in
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3177 esac
3178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3179 $as_echo "$ac_try_echo") >&5
3180 (eval "$ac_compile") 2>&5
3181 ac_status=$?
3182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); }; then
3184 for ac_file in conftest.o conftest.obj conftest.*; do
3185 test -f "$ac_file" || continue;
3186 case $ac_file in
3187 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3188 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3189 break;;
3190 esac
3191 done
3192 else
3193 $as_echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3195
3196 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3198 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3199 See \`config.log' for more details." >&5
3200 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3201 See \`config.log' for more details." >&2;}
3202 { (exit 1); exit 1; }; }; }
3203 fi
3204
3205 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3206 fi
3207 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3208 $as_echo "$ac_cv_objext" >&6; }
3209 OBJEXT=$ac_cv_objext
3210 ac_objext=$OBJEXT
3211 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3212 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3213 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3214 $as_echo_n "(cached) " >&6
3215 else
3216 cat >conftest.$ac_ext <<_ACEOF
3217 /* confdefs.h. */
3218 _ACEOF
3219 cat confdefs.h >>conftest.$ac_ext
3220 cat >>conftest.$ac_ext <<_ACEOF
3221 /* end confdefs.h. */
3222
3223 int
3224 main ()
3225 {
3226 #ifndef __GNUC__
3227 choke me
3228 #endif
3229
3230 ;
3231 return 0;
3232 }
3233 _ACEOF
3234 rm -f conftest.$ac_objext
3235 if { (ac_try="$ac_compile"
3236 case "(($ac_try" in
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3239 esac
3240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3241 $as_echo "$ac_try_echo") >&5
3242 (eval "$ac_compile") 2>conftest.er1
3243 ac_status=$?
3244 grep -v '^ *+' conftest.er1 >conftest.err
3245 rm -f conftest.er1
3246 cat conftest.err >&5
3247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); } && {
3249 test -z "$ac_c_werror_flag" ||
3250 test ! -s conftest.err
3251 } && test -s conftest.$ac_objext; then
3252 ac_compiler_gnu=yes
3253 else
3254 $as_echo "$as_me: failed program was:" >&5
3255 sed 's/^/| /' conftest.$ac_ext >&5
3256
3257 ac_compiler_gnu=no
3258 fi
3259
3260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3261 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3262
3263 fi
3264 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3265 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3266 if test $ac_compiler_gnu = yes; then
3267 GCC=yes
3268 else
3269 GCC=
3270 fi
3271 ac_test_CFLAGS=${CFLAGS+set}
3272 ac_save_CFLAGS=$CFLAGS
3273 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3274 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3275 if test "${ac_cv_prog_cc_g+set}" = set; then
3276 $as_echo_n "(cached) " >&6
3277 else
3278 ac_save_c_werror_flag=$ac_c_werror_flag
3279 ac_c_werror_flag=yes
3280 ac_cv_prog_cc_g=no
3281 CFLAGS="-g"
3282 cat >conftest.$ac_ext <<_ACEOF
3283 /* confdefs.h. */
3284 _ACEOF
3285 cat confdefs.h >>conftest.$ac_ext
3286 cat >>conftest.$ac_ext <<_ACEOF
3287 /* end confdefs.h. */
3288
3289 int
3290 main ()
3291 {
3292
3293 ;
3294 return 0;
3295 }
3296 _ACEOF
3297 rm -f conftest.$ac_objext
3298 if { (ac_try="$ac_compile"
3299 case "(($ac_try" in
3300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301 *) ac_try_echo=$ac_try;;
3302 esac
3303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3304 $as_echo "$ac_try_echo") >&5
3305 (eval "$ac_compile") 2>conftest.er1
3306 ac_status=$?
3307 grep -v '^ *+' conftest.er1 >conftest.err
3308 rm -f conftest.er1
3309 cat conftest.err >&5
3310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); } && {
3312 test -z "$ac_c_werror_flag" ||
3313 test ! -s conftest.err
3314 } && test -s conftest.$ac_objext; then
3315 ac_cv_prog_cc_g=yes
3316 else
3317 $as_echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3319
3320 CFLAGS=""
3321 cat >conftest.$ac_ext <<_ACEOF
3322 /* confdefs.h. */
3323 _ACEOF
3324 cat confdefs.h >>conftest.$ac_ext
3325 cat >>conftest.$ac_ext <<_ACEOF
3326 /* end confdefs.h. */
3327
3328 int
3329 main ()
3330 {
3331
3332 ;
3333 return 0;
3334 }
3335 _ACEOF
3336 rm -f conftest.$ac_objext
3337 if { (ac_try="$ac_compile"
3338 case "(($ac_try" in
3339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340 *) ac_try_echo=$ac_try;;
3341 esac
3342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3343 $as_echo "$ac_try_echo") >&5
3344 (eval "$ac_compile") 2>conftest.er1
3345 ac_status=$?
3346 grep -v '^ *+' conftest.er1 >conftest.err
3347 rm -f conftest.er1
3348 cat conftest.err >&5
3349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); } && {
3351 test -z "$ac_c_werror_flag" ||
3352 test ! -s conftest.err
3353 } && test -s conftest.$ac_objext; then
3354 :
3355 else
3356 $as_echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.$ac_ext >&5
3358
3359 ac_c_werror_flag=$ac_save_c_werror_flag
3360 CFLAGS="-g"
3361 cat >conftest.$ac_ext <<_ACEOF
3362 /* confdefs.h. */
3363 _ACEOF
3364 cat confdefs.h >>conftest.$ac_ext
3365 cat >>conftest.$ac_ext <<_ACEOF
3366 /* end confdefs.h. */
3367
3368 int
3369 main ()
3370 {
3371
3372 ;
3373 return 0;
3374 }
3375 _ACEOF
3376 rm -f conftest.$ac_objext
3377 if { (ac_try="$ac_compile"
3378 case "(($ac_try" in
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3381 esac
3382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3383 $as_echo "$ac_try_echo") >&5
3384 (eval "$ac_compile") 2>conftest.er1
3385 ac_status=$?
3386 grep -v '^ *+' conftest.er1 >conftest.err
3387 rm -f conftest.er1
3388 cat conftest.err >&5
3389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); } && {
3391 test -z "$ac_c_werror_flag" ||
3392 test ! -s conftest.err
3393 } && test -s conftest.$ac_objext; then
3394 ac_cv_prog_cc_g=yes
3395 else
3396 $as_echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3398
3399
3400 fi
3401
3402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3403 fi
3404
3405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3406 fi
3407
3408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3409 ac_c_werror_flag=$ac_save_c_werror_flag
3410 fi
3411 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3412 $as_echo "$ac_cv_prog_cc_g" >&6; }
3413 if test "$ac_test_CFLAGS" = set; then
3414 CFLAGS=$ac_save_CFLAGS
3415 elif test $ac_cv_prog_cc_g = yes; then
3416 if test "$GCC" = yes; then
3417 CFLAGS="-g -O2"
3418 else
3419 CFLAGS="-g"
3420 fi
3421 else
3422 if test "$GCC" = yes; then
3423 CFLAGS="-O2"
3424 else
3425 CFLAGS=
3426 fi
3427 fi
3428 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3429 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3430 if test "${ac_cv_prog_cc_c89+set}" = set; then
3431 $as_echo_n "(cached) " >&6
3432 else
3433 ac_cv_prog_cc_c89=no
3434 ac_save_CC=$CC
3435 cat >conftest.$ac_ext <<_ACEOF
3436 /* confdefs.h. */
3437 _ACEOF
3438 cat confdefs.h >>conftest.$ac_ext
3439 cat >>conftest.$ac_ext <<_ACEOF
3440 /* end confdefs.h. */
3441 #include <stdarg.h>
3442 #include <stdio.h>
3443 #include <sys/types.h>
3444 #include <sys/stat.h>
3445 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3446 struct buf { int x; };
3447 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3448 static char *e (p, i)
3449 char **p;
3450 int i;
3451 {
3452 return p[i];
3453 }
3454 static char *f (char * (*g) (char **, int), char **p, ...)
3455 {
3456 char *s;
3457 va_list v;
3458 va_start (v,p);
3459 s = g (p, va_arg (v,int));
3460 va_end (v);
3461 return s;
3462 }
3463
3464 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3465 function prototypes and stuff, but not '\xHH' hex character constants.
3466 These don't provoke an error unfortunately, instead are silently treated
3467 as 'x'. The following induces an error, until -std is added to get
3468 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3469 array size at least. It's necessary to write '\x00'==0 to get something
3470 that's true only with -std. */
3471 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3472
3473 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3474 inside strings and character constants. */
3475 #define FOO(x) 'x'
3476 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3477
3478 int test (int i, double x);
3479 struct s1 {int (*f) (int a);};
3480 struct s2 {int (*f) (double a);};
3481 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3482 int argc;
3483 char **argv;
3484 int
3485 main ()
3486 {
3487 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3488 ;
3489 return 0;
3490 }
3491 _ACEOF
3492 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3493 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3494 do
3495 CC="$ac_save_CC $ac_arg"
3496 rm -f conftest.$ac_objext
3497 if { (ac_try="$ac_compile"
3498 case "(($ac_try" in
3499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500 *) ac_try_echo=$ac_try;;
3501 esac
3502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3503 $as_echo "$ac_try_echo") >&5
3504 (eval "$ac_compile") 2>conftest.er1
3505 ac_status=$?
3506 grep -v '^ *+' conftest.er1 >conftest.err
3507 rm -f conftest.er1
3508 cat conftest.err >&5
3509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); } && {
3511 test -z "$ac_c_werror_flag" ||
3512 test ! -s conftest.err
3513 } && test -s conftest.$ac_objext; then
3514 ac_cv_prog_cc_c89=$ac_arg
3515 else
3516 $as_echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3518
3519
3520 fi
3521
3522 rm -f core conftest.err conftest.$ac_objext
3523 test "x$ac_cv_prog_cc_c89" != "xno" && break
3524 done
3525 rm -f conftest.$ac_ext
3526 CC=$ac_save_CC
3527
3528 fi
3529 # AC_CACHE_VAL
3530 case "x$ac_cv_prog_cc_c89" in
3531 x)
3532 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3533 $as_echo "none needed" >&6; } ;;
3534 xno)
3535 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3536 $as_echo "unsupported" >&6; } ;;
3537 *)
3538 CC="$CC $ac_cv_prog_cc_c89"
3539 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3540 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3541 esac
3542
3543
3544 ac_ext=c
3545 ac_cpp='$CPP $CPPFLAGS'
3546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3549 DEPDIR="${am__leading_dot}deps"
3550
3551 ac_config_commands="$ac_config_commands depfiles"
3552
3553
3554 am_make=${MAKE-make}
3555 cat > confinc << 'END'
3556 am__doit:
3557 @echo done
3558 .PHONY: am__doit
3559 END
3560 # If we don't find an include directive, just comment out the code.
3561 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3562 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3563 am__include="#"
3564 am__quote=
3565 _am_result=none
3566 # First try GNU make style include.
3567 echo "include confinc" > confmf
3568 # We grep out `Entering directory' and `Leaving directory'
3569 # messages which can occur if `w' ends up in MAKEFLAGS.
3570 # In particular we don't look at `^make:' because GNU make might
3571 # be invoked under some other name (usually "gmake"), in which
3572 # case it prints its new name instead of `make'.
3573 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3574 am__include=include
3575 am__quote=
3576 _am_result=GNU
3577 fi
3578 # Now try BSD make style include.
3579 if test "$am__include" = "#"; then
3580 echo '.include "confinc"' > confmf
3581 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3582 am__include=.include
3583 am__quote="\""
3584 _am_result=BSD
3585 fi
3586 fi
3587
3588
3589 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3590 $as_echo "$_am_result" >&6; }
3591 rm -f confinc confmf
3592
3593 # Check whether --enable-dependency-tracking was given.
3594 if test "${enable_dependency_tracking+set}" = set; then
3595 enableval=$enable_dependency_tracking;
3596 fi
3597
3598 if test "x$enable_dependency_tracking" != xno; then
3599 am_depcomp="$ac_aux_dir/depcomp"
3600 AMDEPBACKSLASH='\'
3601 fi
3602 if test "x$enable_dependency_tracking" != xno; then
3603 AMDEP_TRUE=
3604 AMDEP_FALSE='#'
3605 else
3606 AMDEP_TRUE='#'
3607 AMDEP_FALSE=
3608 fi
3609
3610
3611
3612 depcc="$CC" am_compiler_list=
3613
3614 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3615 $as_echo_n "checking dependency style of $depcc... " >&6; }
3616 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3617 $as_echo_n "(cached) " >&6
3618 else
3619 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3620 # We make a subdir and do the tests there. Otherwise we can end up
3621 # making bogus files that we don't know about and never remove. For
3622 # instance it was reported that on HP-UX the gcc test will end up
3623 # making a dummy file named `D' -- because `-MD' means `put the output
3624 # in D'.
3625 mkdir conftest.dir
3626 # Copy depcomp to subdir because otherwise we won't find it if we're
3627 # using a relative directory.
3628 cp "$am_depcomp" conftest.dir
3629 cd conftest.dir
3630 # We will build objects and dependencies in a subdirectory because
3631 # it helps to detect inapplicable dependency modes. For instance
3632 # both Tru64's cc and ICC support -MD to output dependencies as a
3633 # side effect of compilation, but ICC will put the dependencies in
3634 # the current directory while Tru64 will put them in the object
3635 # directory.
3636 mkdir sub
3637
3638 am_cv_CC_dependencies_compiler_type=none
3639 if test "$am_compiler_list" = ""; then
3640 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3641 fi
3642 for depmode in $am_compiler_list; do
3643 # Setup a source with many dependencies, because some compilers
3644 # like to wrap large dependency lists on column 80 (with \), and
3645 # we should not choose a depcomp mode which is confused by this.
3646 #
3647 # We need to recreate these files for each test, as the compiler may
3648 # overwrite some of them when testing with obscure command lines.
3649 # This happens at least with the AIX C compiler.
3650 : > sub/conftest.c
3651 for i in 1 2 3 4 5 6; do
3652 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3653 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3654 # Solaris 8's {/usr,}/bin/sh.
3655 touch sub/conftst$i.h
3656 done
3657 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3658
3659 case $depmode in
3660 nosideeffect)
3661 # after this tag, mechanisms are not by side-effect, so they'll
3662 # only be used when explicitly requested
3663 if test "x$enable_dependency_tracking" = xyes; then
3664 continue
3665 else
3666 break
3667 fi
3668 ;;
3669 none) break ;;
3670 esac
3671 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3672 # mode. It turns out that the SunPro C++ compiler does not properly
3673 # handle `-M -o', and we need to detect this.
3674 if depmode=$depmode \
3675 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3676 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3677 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3678 >/dev/null 2>conftest.err &&
3679 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3680 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3681 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3682 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3683 # icc doesn't choke on unknown options, it will just issue warnings
3684 # or remarks (even with -Werror). So we grep stderr for any message
3685 # that says an option was ignored or not supported.
3686 # When given -MP, icc 7.0 and 7.1 complain thusly:
3687 # icc: Command line warning: ignoring option '-M'; no argument required
3688 # The diagnosis changed in icc 8.0:
3689 # icc: Command line remark: option '-MP' not supported
3690 if (grep 'ignoring option' conftest.err ||
3691 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3692 am_cv_CC_dependencies_compiler_type=$depmode
3693 break
3694 fi
3695 fi
3696 done
3697
3698 cd ..
3699 rm -rf conftest.dir
3700 else
3701 am_cv_CC_dependencies_compiler_type=none
3702 fi
3703
3704 fi
3705 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3706 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3707 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3708
3709 if
3710 test "x$enable_dependency_tracking" != xno \
3711 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3712 am__fastdepCC_TRUE=
3713 am__fastdepCC_FALSE='#'
3714 else
3715 am__fastdepCC_TRUE='#'
3716 am__fastdepCC_FALSE=
3717 fi
3718
3719
3720 case `pwd` in
3721 *\ * | *\ *)
3722 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3723 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3724 esac
3725
3726
3727
3728 macro_version='2.2.6'
3729 macro_revision='1.3012'
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743 ltmain="$ac_aux_dir/ltmain.sh"
3744
3745 # Make sure we can run config.sub.
3746 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3747 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3748 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3749 { (exit 1); exit 1; }; }
3750
3751 { $as_echo "$as_me:$LINENO: checking build system type" >&5
3752 $as_echo_n "checking build system type... " >&6; }
3753 if test "${ac_cv_build+set}" = set; then
3754 $as_echo_n "(cached) " >&6
3755 else
3756 ac_build_alias=$build_alias
3757 test "x$ac_build_alias" = x &&
3758 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3759 test "x$ac_build_alias" = x &&
3760 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3761 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3762 { (exit 1); exit 1; }; }
3763 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3764 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3765 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3766 { (exit 1); exit 1; }; }
3767
3768 fi
3769 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3770 $as_echo "$ac_cv_build" >&6; }
3771 case $ac_cv_build in
3772 *-*-*) ;;
3773 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3774 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
3775 { (exit 1); exit 1; }; };;
3776 esac
3777 build=$ac_cv_build
3778 ac_save_IFS=$IFS; IFS='-'
3779 set x $ac_cv_build
3780 shift
3781 build_cpu=$1
3782 build_vendor=$2
3783 shift; shift
3784 # Remember, the first character of IFS is used to create $*,
3785 # except with old shells:
3786 build_os=$*
3787 IFS=$ac_save_IFS
3788 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3789
3790
3791 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3792 $as_echo_n "checking host system type... " >&6; }
3793 if test "${ac_cv_host+set}" = set; then
3794 $as_echo_n "(cached) " >&6
3795 else
3796 if test "x$host_alias" = x; then
3797 ac_cv_host=$ac_cv_build
3798 else
3799 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3800 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3801 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3802 { (exit 1); exit 1; }; }
3803 fi
3804
3805 fi
3806 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3807 $as_echo "$ac_cv_host" >&6; }
3808 case $ac_cv_host in
3809 *-*-*) ;;
3810 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3811 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3812 { (exit 1); exit 1; }; };;
3813 esac
3814 host=$ac_cv_host
3815 ac_save_IFS=$IFS; IFS='-'
3816 set x $ac_cv_host
3817 shift
3818 host_cpu=$1
3819 host_vendor=$2
3820 shift; shift
3821 # Remember, the first character of IFS is used to create $*,
3822 # except with old shells:
3823 host_os=$*
3824 IFS=$ac_save_IFS
3825 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3826
3827
3828 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3829 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3830 if test "${ac_cv_path_SED+set}" = set; then
3831 $as_echo_n "(cached) " >&6
3832 else
3833 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3834 for ac_i in 1 2 3 4 5 6 7; do
3835 ac_script="$ac_script$as_nl$ac_script"
3836 done
3837 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3838 $as_unset ac_script || ac_script=
3839 if test -z "$SED"; then
3840 ac_path_SED_found=false
3841 # Loop through the user's path and test for each of PROGNAME-LIST
3842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3843 for as_dir in $PATH
3844 do
3845 IFS=$as_save_IFS
3846 test -z "$as_dir" && as_dir=.
3847 for ac_prog in sed gsed; do
3848 for ac_exec_ext in '' $ac_executable_extensions; do
3849 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3850 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3851 # Check for GNU ac_path_SED and select it if it is found.
3852 # Check for GNU $ac_path_SED
3853 case `"$ac_path_SED" --version 2>&1` in
3854 *GNU*)
3855 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3856 *)
3857 ac_count=0
3858 $as_echo_n 0123456789 >"conftest.in"
3859 while :
3860 do
3861 cat "conftest.in" "conftest.in" >"conftest.tmp"
3862 mv "conftest.tmp" "conftest.in"
3863 cp "conftest.in" "conftest.nl"
3864 $as_echo '' >> "conftest.nl"
3865 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3866 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3867 ac_count=`expr $ac_count + 1`
3868 if test $ac_count -gt ${ac_path_SED_max-0}; then
3869 # Best one so far, save it but keep looking for a better one
3870 ac_cv_path_SED="$ac_path_SED"
3871 ac_path_SED_max=$ac_count
3872 fi
3873 # 10*(2^10) chars as input seems more than enough
3874 test $ac_count -gt 10 && break
3875 done
3876 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3877 esac
3878
3879 $ac_path_SED_found && break 3
3880 done
3881 done
3882 done
3883 IFS=$as_save_IFS
3884 if test -z "$ac_cv_path_SED"; then
3885 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3886 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3887 { (exit 1); exit 1; }; }
3888 fi
3889 else
3890 ac_cv_path_SED=$SED
3891 fi
3892
3893 fi
3894 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3895 $as_echo "$ac_cv_path_SED" >&6; }
3896 SED="$ac_cv_path_SED"
3897 rm -f conftest.sed
3898
3899 test -z "$SED" && SED=sed
3900 Xsed="$SED -e 1s/^X//"
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3913 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3914 if test "${ac_cv_path_GREP+set}" = set; then
3915 $as_echo_n "(cached) " >&6
3916 else
3917 if test -z "$GREP"; then
3918 ac_path_GREP_found=false
3919 # Loop through the user's path and test for each of PROGNAME-LIST
3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3922 do
3923 IFS=$as_save_IFS
3924 test -z "$as_dir" && as_dir=.
3925 for ac_prog in grep ggrep; do
3926 for ac_exec_ext in '' $ac_executable_extensions; do
3927 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3928 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3929 # Check for GNU ac_path_GREP and select it if it is found.
3930 # Check for GNU $ac_path_GREP
3931 case `"$ac_path_GREP" --version 2>&1` in
3932 *GNU*)
3933 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3934 *)
3935 ac_count=0
3936 $as_echo_n 0123456789 >"conftest.in"
3937 while :
3938 do
3939 cat "conftest.in" "conftest.in" >"conftest.tmp"
3940 mv "conftest.tmp" "conftest.in"
3941 cp "conftest.in" "conftest.nl"
3942 $as_echo 'GREP' >> "conftest.nl"
3943 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3944 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3945 ac_count=`expr $ac_count + 1`
3946 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3947 # Best one so far, save it but keep looking for a better one
3948 ac_cv_path_GREP="$ac_path_GREP"
3949 ac_path_GREP_max=$ac_count
3950 fi
3951 # 10*(2^10) chars as input seems more than enough
3952 test $ac_count -gt 10 && break
3953 done
3954 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3955 esac
3956
3957 $ac_path_GREP_found && break 3
3958 done
3959 done
3960 done
3961 IFS=$as_save_IFS
3962 if test -z "$ac_cv_path_GREP"; then
3963 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3964 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3965 { (exit 1); exit 1; }; }
3966 fi
3967 else
3968 ac_cv_path_GREP=$GREP
3969 fi
3970
3971 fi
3972 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3973 $as_echo "$ac_cv_path_GREP" >&6; }
3974 GREP="$ac_cv_path_GREP"
3975
3976
3977 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3978 $as_echo_n "checking for egrep... " >&6; }
3979 if test "${ac_cv_path_EGREP+set}" = set; then
3980 $as_echo_n "(cached) " >&6
3981 else
3982 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3983 then ac_cv_path_EGREP="$GREP -E"
3984 else
3985 if test -z "$EGREP"; then
3986 ac_path_EGREP_found=false
3987 # Loop through the user's path and test for each of PROGNAME-LIST
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3990 do
3991 IFS=$as_save_IFS
3992 test -z "$as_dir" && as_dir=.
3993 for ac_prog in egrep; do
3994 for ac_exec_ext in '' $ac_executable_extensions; do
3995 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3996 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3997 # Check for GNU ac_path_EGREP and select it if it is found.
3998 # Check for GNU $ac_path_EGREP
3999 case `"$ac_path_EGREP" --version 2>&1` in
4000 *GNU*)
4001 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4002 *)
4003 ac_count=0
4004 $as_echo_n 0123456789 >"conftest.in"
4005 while :
4006 do
4007 cat "conftest.in" "conftest.in" >"conftest.tmp"
4008 mv "conftest.tmp" "conftest.in"
4009 cp "conftest.in" "conftest.nl"
4010 $as_echo 'EGREP' >> "conftest.nl"
4011 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4012 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4013 ac_count=`expr $ac_count + 1`
4014 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4015 # Best one so far, save it but keep looking for a better one
4016 ac_cv_path_EGREP="$ac_path_EGREP"
4017 ac_path_EGREP_max=$ac_count
4018 fi
4019 # 10*(2^10) chars as input seems more than enough
4020 test $ac_count -gt 10 && break
4021 done
4022 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4023 esac
4024
4025 $ac_path_EGREP_found && break 3
4026 done
4027 done
4028 done
4029 IFS=$as_save_IFS
4030 if test -z "$ac_cv_path_EGREP"; then
4031 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4032 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4033 { (exit 1); exit 1; }; }
4034 fi
4035 else
4036 ac_cv_path_EGREP=$EGREP
4037 fi
4038
4039 fi
4040 fi
4041 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4042 $as_echo "$ac_cv_path_EGREP" >&6; }
4043 EGREP="$ac_cv_path_EGREP"
4044
4045
4046 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4047 $as_echo_n "checking for fgrep... " >&6; }
4048 if test "${ac_cv_path_FGREP+set}" = set; then
4049 $as_echo_n "(cached) " >&6
4050 else
4051 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4052 then ac_cv_path_FGREP="$GREP -F"
4053 else
4054 if test -z "$FGREP"; then
4055 ac_path_FGREP_found=false
4056 # Loop through the user's path and test for each of PROGNAME-LIST
4057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4059 do
4060 IFS=$as_save_IFS
4061 test -z "$as_dir" && as_dir=.
4062 for ac_prog in fgrep; do
4063 for ac_exec_ext in '' $ac_executable_extensions; do
4064 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4065 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4066 # Check for GNU ac_path_FGREP and select it if it is found.
4067 # Check for GNU $ac_path_FGREP
4068 case `"$ac_path_FGREP" --version 2>&1` in
4069 *GNU*)
4070 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4071 *)
4072 ac_count=0
4073 $as_echo_n 0123456789 >"conftest.in"
4074 while :
4075 do
4076 cat "conftest.in" "conftest.in" >"conftest.tmp"
4077 mv "conftest.tmp" "conftest.in"
4078 cp "conftest.in" "conftest.nl"
4079 $as_echo 'FGREP' >> "conftest.nl"
4080 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4081 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4082 ac_count=`expr $ac_count + 1`
4083 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4084 # Best one so far, save it but keep looking for a better one
4085 ac_cv_path_FGREP="$ac_path_FGREP"
4086 ac_path_FGREP_max=$ac_count
4087 fi
4088 # 10*(2^10) chars as input seems more than enough
4089 test $ac_count -gt 10 && break
4090 done
4091 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4092 esac
4093
4094 $ac_path_FGREP_found && break 3
4095 done
4096 done
4097 done
4098 IFS=$as_save_IFS
4099 if test -z "$ac_cv_path_FGREP"; then
4100 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4101 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4102 { (exit 1); exit 1; }; }
4103 fi
4104 else
4105 ac_cv_path_FGREP=$FGREP
4106 fi
4107
4108 fi
4109 fi
4110 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4111 $as_echo "$ac_cv_path_FGREP" >&6; }
4112 FGREP="$ac_cv_path_FGREP"
4113
4114
4115 test -z "$GREP" && GREP=grep
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135 # Check whether --with-gnu-ld was given.
4136 if test "${with_gnu_ld+set}" = set; then
4137 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4138 else
4139 with_gnu_ld=no
4140 fi
4141
4142 ac_prog=ld
4143 if test "$GCC" = yes; then
4144 # Check if gcc -print-prog-name=ld gives a path.
4145 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4146 $as_echo_n "checking for ld used by $CC... " >&6; }
4147 case $host in
4148 *-*-mingw*)
4149 # gcc leaves a trailing carriage return which upsets mingw
4150 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4151 *)
4152 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4153 esac
4154 case $ac_prog in
4155 # Accept absolute paths.
4156 [\\/]* | ?:[\\/]*)
4157 re_direlt='/[^/][^/]*/\.\./'
4158 # Canonicalize the pathname of ld
4159 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4160 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4161 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4162 done
4163 test -z "$LD" && LD="$ac_prog"
4164 ;;
4165 "")
4166 # If it fails, then pretend we aren't using GCC.
4167 ac_prog=ld
4168 ;;
4169 *)
4170 # If it is relative, then search for the first ld in PATH.
4171 with_gnu_ld=unknown
4172 ;;
4173 esac
4174 elif test "$with_gnu_ld" = yes; then
4175 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4176 $as_echo_n "checking for GNU ld... " >&6; }
4177 else
4178 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4179 $as_echo_n "checking for non-GNU ld... " >&6; }
4180 fi
4181 if test "${lt_cv_path_LD+set}" = set; then
4182 $as_echo_n "(cached) " >&6
4183 else
4184 if test -z "$LD"; then
4185 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4186 for ac_dir in $PATH; do
4187 IFS="$lt_save_ifs"
4188 test -z "$ac_dir" && ac_dir=.
4189 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4190 lt_cv_path_LD="$ac_dir/$ac_prog"
4191 # Check to see if the program is GNU ld. I'd rather use --version,
4192 # but apparently some variants of GNU ld only accept -v.
4193 # Break only if it was the GNU/non-GNU ld that we prefer.
4194 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4195 *GNU* | *'with BFD'*)
4196 test "$with_gnu_ld" != no && break
4197 ;;
4198 *)
4199 test "$with_gnu_ld" != yes && break
4200 ;;
4201 esac
4202 fi
4203 done
4204 IFS="$lt_save_ifs"
4205 else
4206 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4207 fi
4208 fi
4209
4210 LD="$lt_cv_path_LD"
4211 if test -n "$LD"; then
4212 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4213 $as_echo "$LD" >&6; }
4214 else
4215 { $as_echo "$as_me:$LINENO: result: no" >&5
4216 $as_echo "no" >&6; }
4217 fi
4218 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4219 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4220 { (exit 1); exit 1; }; }
4221 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4222 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4223 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4224 $as_echo_n "(cached) " >&6
4225 else
4226 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4227 case `$LD -v 2>&1 </dev/null` in
4228 *GNU* | *'with BFD'*)
4229 lt_cv_prog_gnu_ld=yes
4230 ;;
4231 *)
4232 lt_cv_prog_gnu_ld=no
4233 ;;
4234 esac
4235 fi
4236 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4237 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4238 with_gnu_ld=$lt_cv_prog_gnu_ld
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4249 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4250 if test "${lt_cv_path_NM+set}" = set; then
4251 $as_echo_n "(cached) " >&6
4252 else
4253 if test -n "$NM"; then
4254 # Let the user override the test.
4255 lt_cv_path_NM="$NM"
4256 else
4257 lt_nm_to_check="${ac_tool_prefix}nm"
4258 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4259 lt_nm_to_check="$lt_nm_to_check nm"
4260 fi
4261 for lt_tmp_nm in $lt_nm_to_check; do
4262 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4263 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4264 IFS="$lt_save_ifs"
4265 test -z "$ac_dir" && ac_dir=.
4266 tmp_nm="$ac_dir/$lt_tmp_nm"
4267 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4268 # Check to see if the nm accepts a BSD-compat flag.
4269 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4270 # nm: unknown option "B" ignored
4271 # Tru64's nm complains that /dev/null is an invalid object file
4272 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4273 */dev/null* | *'Invalid file or object type'*)
4274 lt_cv_path_NM="$tmp_nm -B"
4275 break
4276 ;;
4277 *)
4278 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4279 */dev/null*)
4280 lt_cv_path_NM="$tmp_nm -p"
4281 break
4282 ;;
4283 *)
4284 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4285 continue # so that we can try to find one that supports BSD flags
4286 ;;
4287 esac
4288 ;;
4289 esac
4290 fi
4291 done
4292 IFS="$lt_save_ifs"
4293 done
4294 : ${lt_cv_path_NM=no}
4295 fi
4296 fi
4297 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4298 $as_echo "$lt_cv_path_NM" >&6; }
4299 if test "$lt_cv_path_NM" != "no"; then
4300 NM="$lt_cv_path_NM"
4301 else
4302 # Didn't find any BSD compatible name lister, look for dumpbin.
4303 if test -n "$ac_tool_prefix"; then
4304 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4305 do
4306 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4307 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4308 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4309 $as_echo_n "checking for $ac_word... " >&6; }
4310 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4311 $as_echo_n "(cached) " >&6
4312 else
4313 if test -n "$DUMPBIN"; then
4314 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4315 else
4316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317 for as_dir in $PATH
4318 do
4319 IFS=$as_save_IFS
4320 test -z "$as_dir" && as_dir=.
4321 for ac_exec_ext in '' $ac_executable_extensions; do
4322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4323 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4324 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4325 break 2
4326 fi
4327 done
4328 done
4329 IFS=$as_save_IFS
4330
4331 fi
4332 fi
4333 DUMPBIN=$ac_cv_prog_DUMPBIN
4334 if test -n "$DUMPBIN"; then
4335 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4336 $as_echo "$DUMPBIN" >&6; }
4337 else
4338 { $as_echo "$as_me:$LINENO: result: no" >&5
4339 $as_echo "no" >&6; }
4340 fi
4341
4342
4343 test -n "$DUMPBIN" && break
4344 done
4345 fi
4346 if test -z "$DUMPBIN"; then
4347 ac_ct_DUMPBIN=$DUMPBIN
4348 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4349 do
4350 # Extract the first word of "$ac_prog", so it can be a program name with args.
4351 set dummy $ac_prog; ac_word=$2
4352 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4353 $as_echo_n "checking for $ac_word... " >&6; }
4354 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4355 $as_echo_n "(cached) " >&6
4356 else
4357 if test -n "$ac_ct_DUMPBIN"; then
4358 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4359 else
4360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361 for as_dir in $PATH
4362 do
4363 IFS=$as_save_IFS
4364 test -z "$as_dir" && as_dir=.
4365 for ac_exec_ext in '' $ac_executable_extensions; do
4366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4367 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4368 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4369 break 2
4370 fi
4371 done
4372 done
4373 IFS=$as_save_IFS
4374
4375 fi
4376 fi
4377 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4378 if test -n "$ac_ct_DUMPBIN"; then
4379 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4380 $as_echo "$ac_ct_DUMPBIN" >&6; }
4381 else
4382 { $as_echo "$as_me:$LINENO: result: no" >&5
4383 $as_echo "no" >&6; }
4384 fi
4385
4386
4387 test -n "$ac_ct_DUMPBIN" && break
4388 done
4389
4390 if test "x$ac_ct_DUMPBIN" = x; then
4391 DUMPBIN=":"
4392 else
4393 case $cross_compiling:$ac_tool_warned in
4394 yes:)
4395 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4397 ac_tool_warned=yes ;;
4398 esac
4399 DUMPBIN=$ac_ct_DUMPBIN
4400 fi
4401 fi
4402
4403
4404 if test "$DUMPBIN" != ":"; then
4405 NM="$DUMPBIN"
4406 fi
4407 fi
4408 test -z "$NM" && NM=nm
4409
4410
4411
4412
4413
4414
4415 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4416 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4417 if test "${lt_cv_nm_interface+set}" = set; then
4418 $as_echo_n "(cached) " >&6
4419 else
4420 lt_cv_nm_interface="BSD nm"
4421 echo "int some_variable = 0;" > conftest.$ac_ext
4422 (eval echo "\"\$as_me:4422: $ac_compile\"" >&5)
4423 (eval "$ac_compile" 2>conftest.err)
4424 cat conftest.err >&5
4425 (eval echo "\"\$as_me:4425: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4426 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4427 cat conftest.err >&5
4428 (eval echo "\"\$as_me:4428: output\"" >&5)
4429 cat conftest.out >&5
4430 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4431 lt_cv_nm_interface="MS dumpbin"
4432 fi
4433 rm -f conftest*
4434 fi
4435 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4436 $as_echo "$lt_cv_nm_interface" >&6; }
4437
4438 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4439 $as_echo_n "checking whether ln -s works... " >&6; }
4440 LN_S=$as_ln_s
4441 if test "$LN_S" = "ln -s"; then
4442 { $as_echo "$as_me:$LINENO: result: yes" >&5
4443 $as_echo "yes" >&6; }
4444 else
4445 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4446 $as_echo "no, using $LN_S" >&6; }
4447 fi
4448
4449 # find the maximum length of command line arguments
4450 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4451 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4452 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4453 $as_echo_n "(cached) " >&6
4454 else
4455 i=0
4456 teststring="ABCD"
4457
4458 case $build_os in
4459 msdosdjgpp*)
4460 # On DJGPP, this test can blow up pretty badly due to problems in libc
4461 # (any single argument exceeding 2000 bytes causes a buffer overrun
4462 # during glob expansion). Even if it were fixed, the result of this
4463 # check would be larger than it should be.
4464 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4465 ;;
4466
4467 gnu*)
4468 # Under GNU Hurd, this test is not required because there is
4469 # no limit to the length of command line arguments.
4470 # Libtool will interpret -1 as no limit whatsoever
4471 lt_cv_sys_max_cmd_len=-1;
4472 ;;
4473
4474 cygwin* | mingw* | cegcc*)
4475 # On Win9x/ME, this test blows up -- it succeeds, but takes
4476 # about 5 minutes as the teststring grows exponentially.
4477 # Worse, since 9x/ME are not pre-emptively multitasking,
4478 # you end up with a "frozen" computer, even though with patience
4479 # the test eventually succeeds (with a max line length of 256k).
4480 # Instead, let's just punt: use the minimum linelength reported by
4481 # all of the supported platforms: 8192 (on NT/2K/XP).
4482 lt_cv_sys_max_cmd_len=8192;
4483 ;;
4484
4485 amigaos*)
4486 # On AmigaOS with pdksh, this test takes hours, literally.
4487 # So we just punt and use a minimum line length of 8192.
4488 lt_cv_sys_max_cmd_len=8192;
4489 ;;
4490
4491 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4492 # This has been around since 386BSD, at least. Likely further.
4493 if test -x /sbin/sysctl; then
4494 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4495 elif test -x /usr/sbin/sysctl; then
4496 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4497 else
4498 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4499 fi
4500 # And add a safety zone
4501 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4502 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4503 ;;
4504
4505 interix*)
4506 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4507 lt_cv_sys_max_cmd_len=196608
4508 ;;
4509
4510 osf*)
4511 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4512 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4513 # nice to cause kernel panics so lets avoid the loop below.
4514 # First set a reasonable default.
4515 lt_cv_sys_max_cmd_len=16384
4516 #
4517 if test -x /sbin/sysconfig; then
4518 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4519 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4520 esac
4521 fi
4522 ;;
4523 sco3.2v5*)
4524 lt_cv_sys_max_cmd_len=102400
4525 ;;
4526 sysv5* | sco5v6* | sysv4.2uw2*)
4527 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4528 if test -n "$kargmax"; then
4529 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4530 else
4531 lt_cv_sys_max_cmd_len=32768
4532 fi
4533 ;;
4534 *)
4535 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4536 if test -n "$lt_cv_sys_max_cmd_len"; then
4537 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4538 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4539 else
4540 # Make teststring a little bigger before we do anything with it.
4541 # a 1K string should be a reasonable start.
4542 for i in 1 2 3 4 5 6 7 8 ; do
4543 teststring=$teststring$teststring
4544 done
4545 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4546 # If test is not a shell built-in, we'll probably end up computing a
4547 # maximum length that is only half of the actual maximum length, but
4548 # we can't tell.
4549 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4550 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4551 test $i != 17 # 1/2 MB should be enough
4552 do
4553 i=`expr $i + 1`
4554 teststring=$teststring$teststring
4555 done
4556 # Only check the string length outside the loop.
4557 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4558 teststring=
4559 # Add a significant safety factor because C++ compilers can tack on
4560 # massive amounts of additional arguments before passing them to the
4561 # linker. It appears as though 1/2 is a usable value.
4562 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4563 fi
4564 ;;
4565 esac
4566
4567 fi
4568
4569 if test -n $lt_cv_sys_max_cmd_len ; then
4570 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4571 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4572 else
4573 { $as_echo "$as_me:$LINENO: result: none" >&5
4574 $as_echo "none" >&6; }
4575 fi
4576 max_cmd_len=$lt_cv_sys_max_cmd_len
4577
4578
4579
4580
4581
4582
4583 : ${CP="cp -f"}
4584 : ${MV="mv -f"}
4585 : ${RM="rm -f"}
4586
4587 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4588 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4589 # Try some XSI features
4590 xsi_shell=no
4591 ( _lt_dummy="a/b/c"
4592 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4593 = c,a/b,, \
4594 && eval 'test $(( 1 + 1 )) -eq 2 \
4595 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4596 && xsi_shell=yes
4597 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4598 $as_echo "$xsi_shell" >&6; }
4599
4600
4601 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4602 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4603 lt_shell_append=no
4604 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4605 >/dev/null 2>&1 \
4606 && lt_shell_append=yes
4607 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4608 $as_echo "$lt_shell_append" >&6; }
4609
4610
4611 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4612 lt_unset=unset
4613 else
4614 lt_unset=false
4615 fi
4616
4617
4618
4619
4620
4621 # test EBCDIC or ASCII
4622 case `echo X|tr X '\101'` in
4623 A) # ASCII based system
4624 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4625 lt_SP2NL='tr \040 \012'
4626 lt_NL2SP='tr \015\012 \040\040'
4627 ;;
4628 *) # EBCDIC based system
4629 lt_SP2NL='tr \100 \n'
4630 lt_NL2SP='tr \r\n \100\100'
4631 ;;
4632 esac
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4643 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4644 if test "${lt_cv_ld_reload_flag+set}" = set; then
4645 $as_echo_n "(cached) " >&6
4646 else
4647 lt_cv_ld_reload_flag='-r'
4648 fi
4649 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4650 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4651 reload_flag=$lt_cv_ld_reload_flag
4652 case $reload_flag in
4653 "" | " "*) ;;
4654 *) reload_flag=" $reload_flag" ;;
4655 esac
4656 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4657 case $host_os in
4658 darwin*)
4659 if test "$GCC" = yes; then
4660 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4661 else
4662 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4663 fi
4664 ;;
4665 esac
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675 if test -n "$ac_tool_prefix"; then
4676 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4677 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4678 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4679 $as_echo_n "checking for $ac_word... " >&6; }
4680 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4681 $as_echo_n "(cached) " >&6
4682 else
4683 if test -n "$OBJDUMP"; then
4684 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4685 else
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 for as_dir in $PATH
4688 do
4689 IFS=$as_save_IFS
4690 test -z "$as_dir" && as_dir=.
4691 for ac_exec_ext in '' $ac_executable_extensions; do
4692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4693 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4694 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4695 break 2
4696 fi
4697 done
4698 done
4699 IFS=$as_save_IFS
4700
4701 fi
4702 fi
4703 OBJDUMP=$ac_cv_prog_OBJDUMP
4704 if test -n "$OBJDUMP"; then
4705 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4706 $as_echo "$OBJDUMP" >&6; }
4707 else
4708 { $as_echo "$as_me:$LINENO: result: no" >&5
4709 $as_echo "no" >&6; }
4710 fi
4711
4712
4713 fi
4714 if test -z "$ac_cv_prog_OBJDUMP"; then
4715 ac_ct_OBJDUMP=$OBJDUMP
4716 # Extract the first word of "objdump", so it can be a program name with args.
4717 set dummy objdump; ac_word=$2
4718 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4719 $as_echo_n "checking for $ac_word... " >&6; }
4720 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4721 $as_echo_n "(cached) " >&6
4722 else
4723 if test -n "$ac_ct_OBJDUMP"; then
4724 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4725 else
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 for as_dir in $PATH
4728 do
4729 IFS=$as_save_IFS
4730 test -z "$as_dir" && as_dir=.
4731 for ac_exec_ext in '' $ac_executable_extensions; do
4732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4733 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4734 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4735 break 2
4736 fi
4737 done
4738 done
4739 IFS=$as_save_IFS
4740
4741 fi
4742 fi
4743 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4744 if test -n "$ac_ct_OBJDUMP"; then
4745 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4746 $as_echo "$ac_ct_OBJDUMP" >&6; }
4747 else
4748 { $as_echo "$as_me:$LINENO: result: no" >&5
4749 $as_echo "no" >&6; }
4750 fi
4751
4752 if test "x$ac_ct_OBJDUMP" = x; then
4753 OBJDUMP="false"
4754 else
4755 case $cross_compiling:$ac_tool_warned in
4756 yes:)
4757 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4759 ac_tool_warned=yes ;;
4760 esac
4761 OBJDUMP=$ac_ct_OBJDUMP
4762 fi
4763 else
4764 OBJDUMP="$ac_cv_prog_OBJDUMP"
4765 fi
4766
4767 test -z "$OBJDUMP" && OBJDUMP=objdump
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4778 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4779 if test "${lt_cv_deplibs_check_method+set}" = set; then
4780 $as_echo_n "(cached) " >&6
4781 else
4782 lt_cv_file_magic_cmd='$MAGIC_CMD'
4783 lt_cv_file_magic_test_file=
4784 lt_cv_deplibs_check_method='unknown'
4785 # Need to set the preceding variable on all platforms that support
4786 # interlibrary dependencies.
4787 # 'none' -- dependencies not supported.
4788 # `unknown' -- same as none, but documents that we really don't know.
4789 # 'pass_all' -- all dependencies passed with no checks.
4790 # 'test_compile' -- check by making test program.
4791 # 'file_magic [[regex]]' -- check by looking for files in library path
4792 # which responds to the $file_magic_cmd with a given extended regex.
4793 # If you have `file' or equivalent on your system and you're not sure
4794 # whether `pass_all' will *always* work, you probably want this one.
4795
4796 case $host_os in
4797 aix[4-9]*)
4798 lt_cv_deplibs_check_method=pass_all
4799 ;;
4800
4801 beos*)
4802 lt_cv_deplibs_check_method=pass_all
4803 ;;
4804
4805 bsdi[45]*)
4806 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4807 lt_cv_file_magic_cmd='/usr/bin/file -L'
4808 lt_cv_file_magic_test_file=/shlib/libc.so
4809 ;;
4810
4811 cygwin*)
4812 # func_win32_libid is a shell function defined in ltmain.sh
4813 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4814 lt_cv_file_magic_cmd='func_win32_libid'
4815 ;;
4816
4817 mingw* | pw32*)
4818 # Base MSYS/MinGW do not provide the 'file' command needed by
4819 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4820 # unless we find 'file', for example because we are cross-compiling.
4821 if ( file / ) >/dev/null 2>&1; then
4822 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4823 lt_cv_file_magic_cmd='func_win32_libid'
4824 else
4825 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4826 lt_cv_file_magic_cmd='$OBJDUMP -f'
4827 fi
4828 ;;
4829
4830 cegcc)
4831 # use the weaker test based on 'objdump'. See mingw*.
4832 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4833 lt_cv_file_magic_cmd='$OBJDUMP -f'
4834 ;;
4835
4836 darwin* | rhapsody*)
4837 lt_cv_deplibs_check_method=pass_all
4838 ;;
4839
4840 freebsd* | dragonfly*)
4841 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4842 case $host_cpu in
4843 i*86 )
4844 # Not sure whether the presence of OpenBSD here was a mistake.
4845 # Let's accept both of them until this is cleared up.
4846 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4847 lt_cv_file_magic_cmd=/usr/bin/file
4848 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4849 ;;
4850 esac
4851 else
4852 lt_cv_deplibs_check_method=pass_all
4853 fi
4854 ;;
4855
4856 gnu*)
4857 lt_cv_deplibs_check_method=pass_all
4858 ;;
4859
4860 hpux10.20* | hpux11*)
4861 lt_cv_file_magic_cmd=/usr/bin/file
4862 case $host_cpu in
4863 ia64*)
4864 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4865 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4866 ;;
4867 hppa*64*)
4868 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]'
4869 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4870 ;;
4871 *)
4872 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4873 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4874 ;;
4875 esac
4876 ;;
4877
4878 interix[3-9]*)
4879 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4880 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4881 ;;
4882
4883 irix5* | irix6* | nonstopux*)
4884 case $LD in
4885 *-32|*"-32 ") libmagic=32-bit;;
4886 *-n32|*"-n32 ") libmagic=N32;;
4887 *-64|*"-64 ") libmagic=64-bit;;
4888 *) libmagic=never-match;;
4889 esac
4890 lt_cv_deplibs_check_method=pass_all
4891 ;;
4892
4893 # This must be Linux ELF.
4894 linux* | k*bsd*-gnu)
4895 lt_cv_deplibs_check_method=pass_all
4896 ;;
4897
4898 netbsd*)
4899 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4900 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4901 else
4902 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4903 fi
4904 ;;
4905
4906 newos6*)
4907 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4908 lt_cv_file_magic_cmd=/usr/bin/file
4909 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4910 ;;
4911
4912 *nto* | *qnx*)
4913 lt_cv_deplibs_check_method=pass_all
4914 ;;
4915
4916 openbsd*)
4917 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4918 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4919 else
4920 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4921 fi
4922 ;;
4923
4924 osf3* | osf4* | osf5*)
4925 lt_cv_deplibs_check_method=pass_all
4926 ;;
4927
4928 rdos*)
4929 lt_cv_deplibs_check_method=pass_all
4930 ;;
4931
4932 solaris*)
4933 lt_cv_deplibs_check_method=pass_all
4934 ;;
4935
4936 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4937 lt_cv_deplibs_check_method=pass_all
4938 ;;
4939
4940 sysv4 | sysv4.3*)
4941 case $host_vendor in
4942 motorola)
4943 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]'
4944 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4945 ;;
4946 ncr)
4947 lt_cv_deplibs_check_method=pass_all
4948 ;;
4949 sequent)
4950 lt_cv_file_magic_cmd='/bin/file'
4951 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4952 ;;
4953 sni)
4954 lt_cv_file_magic_cmd='/bin/file'
4955 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4956 lt_cv_file_magic_test_file=/lib/libc.so
4957 ;;
4958 siemens)
4959 lt_cv_deplibs_check_method=pass_all
4960 ;;
4961 pc)
4962 lt_cv_deplibs_check_method=pass_all
4963 ;;
4964 esac
4965 ;;
4966
4967 tpf*)
4968 lt_cv_deplibs_check_method=pass_all
4969 ;;
4970 esac
4971
4972 fi
4973 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4974 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4975 file_magic_cmd=$lt_cv_file_magic_cmd
4976 deplibs_check_method=$lt_cv_deplibs_check_method
4977 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990 if test -n "$ac_tool_prefix"; then
4991 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4992 set dummy ${ac_tool_prefix}ar; ac_word=$2
4993 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4994 $as_echo_n "checking for $ac_word... " >&6; }
4995 if test "${ac_cv_prog_AR+set}" = set; then
4996 $as_echo_n "(cached) " >&6
4997 else
4998 if test -n "$AR"; then
4999 ac_cv_prog_AR="$AR" # Let the user override the test.
5000 else
5001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002 for as_dir in $PATH
5003 do
5004 IFS=$as_save_IFS
5005 test -z "$as_dir" && as_dir=.
5006 for ac_exec_ext in '' $ac_executable_extensions; do
5007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5008 ac_cv_prog_AR="${ac_tool_prefix}ar"
5009 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5010 break 2
5011 fi
5012 done
5013 done
5014 IFS=$as_save_IFS
5015
5016 fi
5017 fi
5018 AR=$ac_cv_prog_AR
5019 if test -n "$AR"; then
5020 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5021 $as_echo "$AR" >&6; }
5022 else
5023 { $as_echo "$as_me:$LINENO: result: no" >&5
5024 $as_echo "no" >&6; }
5025 fi
5026
5027
5028 fi
5029 if test -z "$ac_cv_prog_AR"; then
5030 ac_ct_AR=$AR
5031 # Extract the first word of "ar", so it can be a program name with args.
5032 set dummy ar; ac_word=$2
5033 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5034 $as_echo_n "checking for $ac_word... " >&6; }
5035 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5036 $as_echo_n "(cached) " >&6
5037 else
5038 if test -n "$ac_ct_AR"; then
5039 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5040 else
5041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042 for as_dir in $PATH
5043 do
5044 IFS=$as_save_IFS
5045 test -z "$as_dir" && as_dir=.
5046 for ac_exec_ext in '' $ac_executable_extensions; do
5047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5048 ac_cv_prog_ac_ct_AR="ar"
5049 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5050 break 2
5051 fi
5052 done
5053 done
5054 IFS=$as_save_IFS
5055
5056 fi
5057 fi
5058 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5059 if test -n "$ac_ct_AR"; then
5060 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5061 $as_echo "$ac_ct_AR" >&6; }
5062 else
5063 { $as_echo "$as_me:$LINENO: result: no" >&5
5064 $as_echo "no" >&6; }
5065 fi
5066
5067 if test "x$ac_ct_AR" = x; then
5068 AR="false"
5069 else
5070 case $cross_compiling:$ac_tool_warned in
5071 yes:)
5072 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5074 ac_tool_warned=yes ;;
5075 esac
5076 AR=$ac_ct_AR
5077 fi
5078 else
5079 AR="$ac_cv_prog_AR"
5080 fi
5081
5082 test -z "$AR" && AR=ar
5083 test -z "$AR_FLAGS" && AR_FLAGS=cru
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095 if test -n "$ac_tool_prefix"; then
5096 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5097 set dummy ${ac_tool_prefix}strip; ac_word=$2
5098 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5099 $as_echo_n "checking for $ac_word... " >&6; }
5100 if test "${ac_cv_prog_STRIP+set}" = set; then
5101 $as_echo_n "(cached) " >&6
5102 else
5103 if test -n "$STRIP"; then
5104 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5105 else
5106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107 for as_dir in $PATH
5108 do
5109 IFS=$as_save_IFS
5110 test -z "$as_dir" && as_dir=.
5111 for ac_exec_ext in '' $ac_executable_extensions; do
5112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5113 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5114 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5115 break 2
5116 fi
5117 done
5118 done
5119 IFS=$as_save_IFS
5120
5121 fi
5122 fi
5123 STRIP=$ac_cv_prog_STRIP
5124 if test -n "$STRIP"; then
5125 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5126 $as_echo "$STRIP" >&6; }
5127 else
5128 { $as_echo "$as_me:$LINENO: result: no" >&5
5129 $as_echo "no" >&6; }
5130 fi
5131
5132
5133 fi
5134 if test -z "$ac_cv_prog_STRIP"; then
5135 ac_ct_STRIP=$STRIP
5136 # Extract the first word of "strip", so it can be a program name with args.
5137 set dummy strip; ac_word=$2
5138 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5139 $as_echo_n "checking for $ac_word... " >&6; }
5140 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5141 $as_echo_n "(cached) " >&6
5142 else
5143 if test -n "$ac_ct_STRIP"; then
5144 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5145 else
5146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147 for as_dir in $PATH
5148 do
5149 IFS=$as_save_IFS
5150 test -z "$as_dir" && as_dir=.
5151 for ac_exec_ext in '' $ac_executable_extensions; do
5152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5153 ac_cv_prog_ac_ct_STRIP="strip"
5154 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5155 break 2
5156 fi
5157 done
5158 done
5159 IFS=$as_save_IFS
5160
5161 fi
5162 fi
5163 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5164 if test -n "$ac_ct_STRIP"; then
5165 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5166 $as_echo "$ac_ct_STRIP" >&6; }
5167 else
5168 { $as_echo "$as_me:$LINENO: result: no" >&5
5169 $as_echo "no" >&6; }
5170 fi
5171
5172 if test "x$ac_ct_STRIP" = x; then
5173 STRIP=":"
5174 else
5175 case $cross_compiling:$ac_tool_warned in
5176 yes:)
5177 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5178 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5179 ac_tool_warned=yes ;;
5180 esac
5181 STRIP=$ac_ct_STRIP
5182 fi
5183 else
5184 STRIP="$ac_cv_prog_STRIP"
5185 fi
5186
5187 test -z "$STRIP" && STRIP=:
5188
5189
5190
5191
5192
5193
5194 if test -n "$ac_tool_prefix"; then
5195 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5196 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5197 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5198 $as_echo_n "checking for $ac_word... " >&6; }
5199 if test "${ac_cv_prog_RANLIB+set}" = set; then
5200 $as_echo_n "(cached) " >&6
5201 else
5202 if test -n "$RANLIB"; then
5203 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5204 else
5205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 for as_dir in $PATH
5207 do
5208 IFS=$as_save_IFS
5209 test -z "$as_dir" && as_dir=.
5210 for ac_exec_ext in '' $ac_executable_extensions; do
5211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5212 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5213 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5214 break 2
5215 fi
5216 done
5217 done
5218 IFS=$as_save_IFS
5219
5220 fi
5221 fi
5222 RANLIB=$ac_cv_prog_RANLIB
5223 if test -n "$RANLIB"; then
5224 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5225 $as_echo "$RANLIB" >&6; }
5226 else
5227 { $as_echo "$as_me:$LINENO: result: no" >&5
5228 $as_echo "no" >&6; }
5229 fi
5230
5231
5232 fi
5233 if test -z "$ac_cv_prog_RANLIB"; then
5234 ac_ct_RANLIB=$RANLIB
5235 # Extract the first word of "ranlib", so it can be a program name with args.
5236 set dummy ranlib; ac_word=$2
5237 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5238 $as_echo_n "checking for $ac_word... " >&6; }
5239 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5240 $as_echo_n "(cached) " >&6
5241 else
5242 if test -n "$ac_ct_RANLIB"; then
5243 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5244 else
5245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246 for as_dir in $PATH
5247 do
5248 IFS=$as_save_IFS
5249 test -z "$as_dir" && as_dir=.
5250 for ac_exec_ext in '' $ac_executable_extensions; do
5251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5252 ac_cv_prog_ac_ct_RANLIB="ranlib"
5253 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5254 break 2
5255 fi
5256 done
5257 done
5258 IFS=$as_save_IFS
5259
5260 fi
5261 fi
5262 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5263 if test -n "$ac_ct_RANLIB"; then
5264 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5265 $as_echo "$ac_ct_RANLIB" >&6; }
5266 else
5267 { $as_echo "$as_me:$LINENO: result: no" >&5
5268 $as_echo "no" >&6; }
5269 fi
5270
5271 if test "x$ac_ct_RANLIB" = x; then
5272 RANLIB=":"
5273 else
5274 case $cross_compiling:$ac_tool_warned in
5275 yes:)
5276 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5278 ac_tool_warned=yes ;;
5279 esac
5280 RANLIB=$ac_ct_RANLIB
5281 fi
5282 else
5283 RANLIB="$ac_cv_prog_RANLIB"
5284 fi
5285
5286 test -z "$RANLIB" && RANLIB=:
5287
5288
5289
5290
5291
5292
5293 # Determine commands to create old-style static archives.
5294 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5295 old_postinstall_cmds='chmod 644 $oldlib'
5296 old_postuninstall_cmds=
5297
5298 if test -n "$RANLIB"; then
5299 case $host_os in
5300 openbsd*)
5301 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5302 ;;
5303 *)
5304 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5305 ;;
5306 esac
5307 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5308 fi
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343 # If no C compiler was specified, use CC.
5344 LTCC=${LTCC-"$CC"}
5345
5346 # If no C compiler flags were specified, use CFLAGS.
5347 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5348
5349 # Allow CC to be a program name with arguments.
5350 compiler=$CC
5351
5352
5353 # Check for command to grab the raw symbol name followed by C symbol from nm.
5354 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5355 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5356 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5357 $as_echo_n "(cached) " >&6
5358 else
5359
5360 # These are sane defaults that work on at least a few old systems.
5361 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5362
5363 # Character class describing NM global symbol codes.
5364 symcode='[BCDEGRST]'
5365
5366 # Regexp to match symbols that can be accessed directly from C.
5367 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5368
5369 # Define system-specific variables.
5370 case $host_os in
5371 aix*)
5372 symcode='[BCDT]'
5373 ;;
5374 cygwin* | mingw* | pw32* | cegcc*)
5375 symcode='[ABCDGISTW]'
5376 ;;
5377 hpux*)
5378 if test "$host_cpu" = ia64; then
5379 symcode='[ABCDEGRST]'
5380 fi
5381 ;;
5382 irix* | nonstopux*)
5383 symcode='[BCDEGRST]'
5384 ;;
5385 osf*)
5386 symcode='[BCDEGQRST]'
5387 ;;
5388 solaris*)
5389 symcode='[BDRT]'
5390 ;;
5391 sco3.2v5*)
5392 symcode='[DT]'
5393 ;;
5394 sysv4.2uw2*)
5395 symcode='[DT]'
5396 ;;
5397 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5398 symcode='[ABDT]'
5399 ;;
5400 sysv4)
5401 symcode='[DFNSTU]'
5402 ;;
5403 esac
5404
5405 # If we're using GNU nm, then use its standard symbol codes.
5406 case `$NM -V 2>&1` in
5407 *GNU* | *'with BFD'*)
5408 symcode='[ABCDGIRSTW]' ;;
5409 esac
5410
5411 # Transform an extracted symbol line into a proper C declaration.
5412 # Some systems (esp. on ia64) link data and code symbols differently,
5413 # so use this general approach.
5414 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5415
5416 # Transform an extracted symbol line into symbol name and symbol address
5417 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5418 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'"
5419
5420 # Handle CRLF in mingw tool chain
5421 opt_cr=
5422 case $build_os in
5423 mingw*)
5424 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5425 ;;
5426 esac
5427
5428 # Try without a prefix underscore, then with it.
5429 for ac_symprfx in "" "_"; do
5430
5431 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5432 symxfrm="\\1 $ac_symprfx\\2 \\2"
5433
5434 # Write the raw and C identifiers.
5435 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5436 # Fake it for dumpbin and say T for any non-static function
5437 # and D for any global variable.
5438 # Also find C++ and __fastcall symbols from MSVC++,
5439 # which start with @ or ?.
5440 lt_cv_sys_global_symbol_pipe="$AWK '"\
5441 " {last_section=section; section=\$ 3};"\
5442 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5443 " \$ 0!~/External *\|/{next};"\
5444 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5445 " {if(hide[section]) next};"\
5446 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5447 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5448 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5449 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5450 " ' prfx=^$ac_symprfx"
5451 else
5452 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5453 fi
5454
5455 # Check to see that the pipe works correctly.
5456 pipe_works=no
5457
5458 rm -f conftest*
5459 cat > conftest.$ac_ext <<_LT_EOF
5460 #ifdef __cplusplus
5461 extern "C" {
5462 #endif
5463 char nm_test_var;
5464 void nm_test_func(void);
5465 void nm_test_func(void){}
5466 #ifdef __cplusplus
5467 }
5468 #endif
5469 int main(){nm_test_var='a';nm_test_func();return(0);}
5470 _LT_EOF
5471
5472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5473 (eval $ac_compile) 2>&5
5474 ac_status=$?
5475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); }; then
5477 # Now try to grab the symbols.
5478 nlist=conftest.nm
5479 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5480 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5481 ac_status=$?
5482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); } && test -s "$nlist"; then
5484 # Try sorting and uniquifying the output.
5485 if sort "$nlist" | uniq > "$nlist"T; then
5486 mv -f "$nlist"T "$nlist"
5487 else
5488 rm -f "$nlist"T
5489 fi
5490
5491 # Make sure that we snagged all the symbols we need.
5492 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5493 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5494 cat <<_LT_EOF > conftest.$ac_ext
5495 #ifdef __cplusplus
5496 extern "C" {
5497 #endif
5498
5499 _LT_EOF
5500 # Now generate the symbol file.
5501 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5502
5503 cat <<_LT_EOF >> conftest.$ac_ext
5504
5505 /* The mapping between symbol names and symbols. */
5506 const struct {
5507 const char *name;
5508 void *address;
5509 }
5510 lt__PROGRAM__LTX_preloaded_symbols[] =
5511 {
5512 { "@PROGRAM@", (void *) 0 },
5513 _LT_EOF
5514 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5515 cat <<\_LT_EOF >> conftest.$ac_ext
5516 {0, (void *) 0}
5517 };
5518
5519 /* This works around a problem in FreeBSD linker */
5520 #ifdef FREEBSD_WORKAROUND
5521 static const void *lt_preloaded_setup() {
5522 return lt__PROGRAM__LTX_preloaded_symbols;
5523 }
5524 #endif
5525
5526 #ifdef __cplusplus
5527 }
5528 #endif
5529 _LT_EOF
5530 # Now try linking the two files.
5531 mv conftest.$ac_objext conftstm.$ac_objext
5532 lt_save_LIBS="$LIBS"
5533 lt_save_CFLAGS="$CFLAGS"
5534 LIBS="conftstm.$ac_objext"
5535 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5537 (eval $ac_link) 2>&5
5538 ac_status=$?
5539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5541 pipe_works=yes
5542 fi
5543 LIBS="$lt_save_LIBS"
5544 CFLAGS="$lt_save_CFLAGS"
5545 else
5546 echo "cannot find nm_test_func in $nlist" >&5
5547 fi
5548 else
5549 echo "cannot find nm_test_var in $nlist" >&5
5550 fi
5551 else
5552 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5553 fi
5554 else
5555 echo "$progname: failed program was:" >&5
5556 cat conftest.$ac_ext >&5
5557 fi
5558 rm -rf conftest* conftst*
5559
5560 # Do not use the global_symbol_pipe unless it works.
5561 if test "$pipe_works" = yes; then
5562 break
5563 else
5564 lt_cv_sys_global_symbol_pipe=
5565 fi
5566 done
5567
5568 fi
5569
5570 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5571 lt_cv_sys_global_symbol_to_cdecl=
5572 fi
5573 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5574 { $as_echo "$as_me:$LINENO: result: failed" >&5
5575 $as_echo "failed" >&6; }
5576 else
5577 { $as_echo "$as_me:$LINENO: result: ok" >&5
5578 $as_echo "ok" >&6; }
5579 fi
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603 # Check whether --enable-libtool-lock was given.
5604 if test "${enable_libtool_lock+set}" = set; then
5605 enableval=$enable_libtool_lock;
5606 fi
5607
5608 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5609
5610 # Some flags need to be propagated to the compiler or linker for good
5611 # libtool support.
5612 case $host in
5613 ia64-*-hpux*)
5614 # Find out which ABI we are using.
5615 echo 'int i;' > conftest.$ac_ext
5616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5617 (eval $ac_compile) 2>&5
5618 ac_status=$?
5619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); }; then
5621 case `/usr/bin/file conftest.$ac_objext` in
5622 *ELF-32*)
5623 HPUX_IA64_MODE="32"
5624 ;;
5625 *ELF-64*)
5626 HPUX_IA64_MODE="64"
5627 ;;
5628 esac
5629 fi
5630 rm -rf conftest*
5631 ;;
5632 *-*-irix6*)
5633 # Find out which ABI we are using.
5634 echo '#line 5634 "configure"' > conftest.$ac_ext
5635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5636 (eval $ac_compile) 2>&5
5637 ac_status=$?
5638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); }; then
5640 if test "$lt_cv_prog_gnu_ld" = yes; then
5641 case `/usr/bin/file conftest.$ac_objext` in
5642 *32-bit*)
5643 LD="${LD-ld} -melf32bsmip"
5644 ;;
5645 *N32*)
5646 LD="${LD-ld} -melf32bmipn32"
5647 ;;
5648 *64-bit*)
5649 LD="${LD-ld} -melf64bmip"
5650 ;;
5651 esac
5652 else
5653 case `/usr/bin/file conftest.$ac_objext` in
5654 *32-bit*)
5655 LD="${LD-ld} -32"
5656 ;;
5657 *N32*)
5658 LD="${LD-ld} -n32"
5659 ;;
5660 *64-bit*)
5661 LD="${LD-ld} -64"
5662 ;;
5663 esac
5664 fi
5665 fi
5666 rm -rf conftest*
5667 ;;
5668
5669 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5670 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5671 # Find out which ABI we are using.
5672 echo 'int i;' > conftest.$ac_ext
5673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5674 (eval $ac_compile) 2>&5
5675 ac_status=$?
5676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); }; then
5678 case `/usr/bin/file conftest.o` in
5679 *32-bit*)
5680 case $host in
5681 x86_64-*kfreebsd*-gnu)
5682 LD="${LD-ld} -m elf_i386_fbsd"
5683 ;;
5684 x86_64-*linux*)
5685 LD="${LD-ld} -m elf_i386"
5686 ;;
5687 ppc64-*linux*|powerpc64-*linux*)
5688 LD="${LD-ld} -m elf32ppclinux"
5689 ;;
5690 s390x-*linux*)
5691 LD="${LD-ld} -m elf_s390"
5692 ;;
5693 sparc64-*linux*)
5694 LD="${LD-ld} -m elf32_sparc"
5695 ;;
5696 esac
5697 ;;
5698 *64-bit*)
5699 case $host in
5700 x86_64-*kfreebsd*-gnu)
5701 LD="${LD-ld} -m elf_x86_64_fbsd"
5702 ;;
5703 x86_64-*linux*)
5704 LD="${LD-ld} -m elf_x86_64"
5705 ;;
5706 ppc*-*linux*|powerpc*-*linux*)
5707 LD="${LD-ld} -m elf64ppc"
5708 ;;
5709 s390*-*linux*|s390*-*tpf*)
5710 LD="${LD-ld} -m elf64_s390"
5711 ;;
5712 sparc*-*linux*)
5713 LD="${LD-ld} -m elf64_sparc"
5714 ;;
5715 esac
5716 ;;
5717 esac
5718 fi
5719 rm -rf conftest*
5720 ;;
5721
5722 *-*-sco3.2v5*)
5723 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5724 SAVE_CFLAGS="$CFLAGS"
5725 CFLAGS="$CFLAGS -belf"
5726 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5727 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5728 if test "${lt_cv_cc_needs_belf+set}" = set; then
5729 $as_echo_n "(cached) " >&6
5730 else
5731 ac_ext=c
5732 ac_cpp='$CPP $CPPFLAGS'
5733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5736
5737 cat >conftest.$ac_ext <<_ACEOF
5738 /* confdefs.h. */
5739 _ACEOF
5740 cat confdefs.h >>conftest.$ac_ext
5741 cat >>conftest.$ac_ext <<_ACEOF
5742 /* end confdefs.h. */
5743
5744 int
5745 main ()
5746 {
5747
5748 ;
5749 return 0;
5750 }
5751 _ACEOF
5752 rm -f conftest.$ac_objext conftest$ac_exeext
5753 if { (ac_try="$ac_link"
5754 case "(($ac_try" in
5755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5756 *) ac_try_echo=$ac_try;;
5757 esac
5758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5759 $as_echo "$ac_try_echo") >&5
5760 (eval "$ac_link") 2>conftest.er1
5761 ac_status=$?
5762 grep -v '^ *+' conftest.er1 >conftest.err
5763 rm -f conftest.er1
5764 cat conftest.err >&5
5765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); } && {
5767 test -z "$ac_c_werror_flag" ||
5768 test ! -s conftest.err
5769 } && test -s conftest$ac_exeext && {
5770 test "$cross_compiling" = yes ||
5771 $as_test_x conftest$ac_exeext
5772 }; then
5773 lt_cv_cc_needs_belf=yes
5774 else
5775 $as_echo "$as_me: failed program was:" >&5
5776 sed 's/^/| /' conftest.$ac_ext >&5
5777
5778 lt_cv_cc_needs_belf=no
5779 fi
5780
5781 rm -rf conftest.dSYM
5782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5783 conftest$ac_exeext conftest.$ac_ext
5784 ac_ext=c
5785 ac_cpp='$CPP $CPPFLAGS'
5786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5789
5790 fi
5791 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5792 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5793 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5794 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5795 CFLAGS="$SAVE_CFLAGS"
5796 fi
5797 ;;
5798 sparc*-*solaris*)
5799 # Find out which ABI we are using.
5800 echo 'int i;' > conftest.$ac_ext
5801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5802 (eval $ac_compile) 2>&5
5803 ac_status=$?
5804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); }; then
5806 case `/usr/bin/file conftest.o` in
5807 *64-bit*)
5808 case $lt_cv_prog_gnu_ld in
5809 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5810 *)
5811 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5812 LD="${LD-ld} -64"
5813 fi
5814 ;;
5815 esac
5816 ;;
5817 esac
5818 fi
5819 rm -rf conftest*
5820 ;;
5821 esac
5822
5823 need_locks="$enable_libtool_lock"
5824
5825
5826 case $host_os in
5827 rhapsody* | darwin*)
5828 if test -n "$ac_tool_prefix"; then
5829 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5830 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5831 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5832 $as_echo_n "checking for $ac_word... " >&6; }
5833 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5834 $as_echo_n "(cached) " >&6
5835 else
5836 if test -n "$DSYMUTIL"; then
5837 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5838 else
5839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840 for as_dir in $PATH
5841 do
5842 IFS=$as_save_IFS
5843 test -z "$as_dir" && as_dir=.
5844 for ac_exec_ext in '' $ac_executable_extensions; do
5845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5846 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5847 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5848 break 2
5849 fi
5850 done
5851 done
5852 IFS=$as_save_IFS
5853
5854 fi
5855 fi
5856 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5857 if test -n "$DSYMUTIL"; then
5858 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5859 $as_echo "$DSYMUTIL" >&6; }
5860 else
5861 { $as_echo "$as_me:$LINENO: result: no" >&5
5862 $as_echo "no" >&6; }
5863 fi
5864
5865
5866 fi
5867 if test -z "$ac_cv_prog_DSYMUTIL"; then
5868 ac_ct_DSYMUTIL=$DSYMUTIL
5869 # Extract the first word of "dsymutil", so it can be a program name with args.
5870 set dummy dsymutil; ac_word=$2
5871 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5872 $as_echo_n "checking for $ac_word... " >&6; }
5873 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5874 $as_echo_n "(cached) " >&6
5875 else
5876 if test -n "$ac_ct_DSYMUTIL"; then
5877 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5878 else
5879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5880 for as_dir in $PATH
5881 do
5882 IFS=$as_save_IFS
5883 test -z "$as_dir" && as_dir=.
5884 for ac_exec_ext in '' $ac_executable_extensions; do
5885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5886 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5887 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5888 break 2
5889 fi
5890 done
5891 done
5892 IFS=$as_save_IFS
5893
5894 fi
5895 fi
5896 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5897 if test -n "$ac_ct_DSYMUTIL"; then
5898 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5899 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5900 else
5901 { $as_echo "$as_me:$LINENO: result: no" >&5
5902 $as_echo "no" >&6; }
5903 fi
5904
5905 if test "x$ac_ct_DSYMUTIL" = x; then
5906 DSYMUTIL=":"
5907 else
5908 case $cross_compiling:$ac_tool_warned in
5909 yes:)
5910 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5911 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5912 ac_tool_warned=yes ;;
5913 esac
5914 DSYMUTIL=$ac_ct_DSYMUTIL
5915 fi
5916 else
5917 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5918 fi
5919
5920 if test -n "$ac_tool_prefix"; then
5921 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5922 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5923 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5924 $as_echo_n "checking for $ac_word... " >&6; }
5925 if test "${ac_cv_prog_NMEDIT+set}" = set; then
5926 $as_echo_n "(cached) " >&6
5927 else
5928 if test -n "$NMEDIT"; then
5929 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5930 else
5931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932 for as_dir in $PATH
5933 do
5934 IFS=$as_save_IFS
5935 test -z "$as_dir" && as_dir=.
5936 for ac_exec_ext in '' $ac_executable_extensions; do
5937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5938 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5939 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5940 break 2
5941 fi
5942 done
5943 done
5944 IFS=$as_save_IFS
5945
5946 fi
5947 fi
5948 NMEDIT=$ac_cv_prog_NMEDIT
5949 if test -n "$NMEDIT"; then
5950 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
5951 $as_echo "$NMEDIT" >&6; }
5952 else
5953 { $as_echo "$as_me:$LINENO: result: no" >&5
5954 $as_echo "no" >&6; }
5955 fi
5956
5957
5958 fi
5959 if test -z "$ac_cv_prog_NMEDIT"; then
5960 ac_ct_NMEDIT=$NMEDIT
5961 # Extract the first word of "nmedit", so it can be a program name with args.
5962 set dummy nmedit; ac_word=$2
5963 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5964 $as_echo_n "checking for $ac_word... " >&6; }
5965 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5966 $as_echo_n "(cached) " >&6
5967 else
5968 if test -n "$ac_ct_NMEDIT"; then
5969 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5970 else
5971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5972 for as_dir in $PATH
5973 do
5974 IFS=$as_save_IFS
5975 test -z "$as_dir" && as_dir=.
5976 for ac_exec_ext in '' $ac_executable_extensions; do
5977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5978 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5979 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5980 break 2
5981 fi
5982 done
5983 done
5984 IFS=$as_save_IFS
5985
5986 fi
5987 fi
5988 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5989 if test -n "$ac_ct_NMEDIT"; then
5990 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5991 $as_echo "$ac_ct_NMEDIT" >&6; }
5992 else
5993 { $as_echo "$as_me:$LINENO: result: no" >&5
5994 $as_echo "no" >&6; }
5995 fi
5996
5997 if test "x$ac_ct_NMEDIT" = x; then
5998 NMEDIT=":"
5999 else
6000 case $cross_compiling:$ac_tool_warned in
6001 yes:)
6002 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6004 ac_tool_warned=yes ;;
6005 esac
6006 NMEDIT=$ac_ct_NMEDIT
6007 fi
6008 else
6009 NMEDIT="$ac_cv_prog_NMEDIT"
6010 fi
6011
6012 if test -n "$ac_tool_prefix"; then
6013 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6014 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6015 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6016 $as_echo_n "checking for $ac_word... " >&6; }
6017 if test "${ac_cv_prog_LIPO+set}" = set; then
6018 $as_echo_n "(cached) " >&6
6019 else
6020 if test -n "$LIPO"; then
6021 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6022 else
6023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024 for as_dir in $PATH
6025 do
6026 IFS=$as_save_IFS
6027 test -z "$as_dir" && as_dir=.
6028 for ac_exec_ext in '' $ac_executable_extensions; do
6029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6030 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6031 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6032 break 2
6033 fi
6034 done
6035 done
6036 IFS=$as_save_IFS
6037
6038 fi
6039 fi
6040 LIPO=$ac_cv_prog_LIPO
6041 if test -n "$LIPO"; then
6042 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6043 $as_echo "$LIPO" >&6; }
6044 else
6045 { $as_echo "$as_me:$LINENO: result: no" >&5
6046 $as_echo "no" >&6; }
6047 fi
6048
6049
6050 fi
6051 if test -z "$ac_cv_prog_LIPO"; then
6052 ac_ct_LIPO=$LIPO
6053 # Extract the first word of "lipo", so it can be a program name with args.
6054 set dummy lipo; ac_word=$2
6055 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6056 $as_echo_n "checking for $ac_word... " >&6; }
6057 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6058 $as_echo_n "(cached) " >&6
6059 else
6060 if test -n "$ac_ct_LIPO"; then
6061 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6062 else
6063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064 for as_dir in $PATH
6065 do
6066 IFS=$as_save_IFS
6067 test -z "$as_dir" && as_dir=.
6068 for ac_exec_ext in '' $ac_executable_extensions; do
6069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6070 ac_cv_prog_ac_ct_LIPO="lipo"
6071 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6072 break 2
6073 fi
6074 done
6075 done
6076 IFS=$as_save_IFS
6077
6078 fi
6079 fi
6080 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6081 if test -n "$ac_ct_LIPO"; then
6082 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6083 $as_echo "$ac_ct_LIPO" >&6; }
6084 else
6085 { $as_echo "$as_me:$LINENO: result: no" >&5
6086 $as_echo "no" >&6; }
6087 fi
6088
6089 if test "x$ac_ct_LIPO" = x; then
6090 LIPO=":"
6091 else
6092 case $cross_compiling:$ac_tool_warned in
6093 yes:)
6094 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6096 ac_tool_warned=yes ;;
6097 esac
6098 LIPO=$ac_ct_LIPO
6099 fi
6100 else
6101 LIPO="$ac_cv_prog_LIPO"
6102 fi
6103
6104 if test -n "$ac_tool_prefix"; then
6105 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6106 set dummy ${ac_tool_prefix}otool; ac_word=$2
6107 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6108 $as_echo_n "checking for $ac_word... " >&6; }
6109 if test "${ac_cv_prog_OTOOL+set}" = set; then
6110 $as_echo_n "(cached) " >&6
6111 else
6112 if test -n "$OTOOL"; then
6113 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6114 else
6115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6116 for as_dir in $PATH
6117 do
6118 IFS=$as_save_IFS
6119 test -z "$as_dir" && as_dir=.
6120 for ac_exec_ext in '' $ac_executable_extensions; do
6121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6122 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6123 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6124 break 2
6125 fi
6126 done
6127 done
6128 IFS=$as_save_IFS
6129
6130 fi
6131 fi
6132 OTOOL=$ac_cv_prog_OTOOL
6133 if test -n "$OTOOL"; then
6134 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6135 $as_echo "$OTOOL" >&6; }
6136 else
6137 { $as_echo "$as_me:$LINENO: result: no" >&5
6138 $as_echo "no" >&6; }
6139 fi
6140
6141
6142 fi
6143 if test -z "$ac_cv_prog_OTOOL"; then
6144 ac_ct_OTOOL=$OTOOL
6145 # Extract the first word of "otool", so it can be a program name with args.
6146 set dummy otool; ac_word=$2
6147 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6148 $as_echo_n "checking for $ac_word... " >&6; }
6149 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6150 $as_echo_n "(cached) " >&6
6151 else
6152 if test -n "$ac_ct_OTOOL"; then
6153 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6154 else
6155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156 for as_dir in $PATH
6157 do
6158 IFS=$as_save_IFS
6159 test -z "$as_dir" && as_dir=.
6160 for ac_exec_ext in '' $ac_executable_extensions; do
6161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6162 ac_cv_prog_ac_ct_OTOOL="otool"
6163 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6164 break 2
6165 fi
6166 done
6167 done
6168 IFS=$as_save_IFS
6169
6170 fi
6171 fi
6172 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6173 if test -n "$ac_ct_OTOOL"; then
6174 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6175 $as_echo "$ac_ct_OTOOL" >&6; }
6176 else
6177 { $as_echo "$as_me:$LINENO: result: no" >&5
6178 $as_echo "no" >&6; }
6179 fi
6180
6181 if test "x$ac_ct_OTOOL" = x; then
6182 OTOOL=":"
6183 else
6184 case $cross_compiling:$ac_tool_warned in
6185 yes:)
6186 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6187 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6188 ac_tool_warned=yes ;;
6189 esac
6190 OTOOL=$ac_ct_OTOOL
6191 fi
6192 else
6193 OTOOL="$ac_cv_prog_OTOOL"
6194 fi
6195
6196 if test -n "$ac_tool_prefix"; then
6197 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6198 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6199 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6200 $as_echo_n "checking for $ac_word... " >&6; }
6201 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6202 $as_echo_n "(cached) " >&6
6203 else
6204 if test -n "$OTOOL64"; then
6205 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6206 else
6207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6208 for as_dir in $PATH
6209 do
6210 IFS=$as_save_IFS
6211 test -z "$as_dir" && as_dir=.
6212 for ac_exec_ext in '' $ac_executable_extensions; do
6213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6214 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6215 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6216 break 2
6217 fi
6218 done
6219 done
6220 IFS=$as_save_IFS
6221
6222 fi
6223 fi
6224 OTOOL64=$ac_cv_prog_OTOOL64
6225 if test -n "$OTOOL64"; then
6226 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6227 $as_echo "$OTOOL64" >&6; }
6228 else
6229 { $as_echo "$as_me:$LINENO: result: no" >&5
6230 $as_echo "no" >&6; }
6231 fi
6232
6233
6234 fi
6235 if test -z "$ac_cv_prog_OTOOL64"; then
6236 ac_ct_OTOOL64=$OTOOL64
6237 # Extract the first word of "otool64", so it can be a program name with args.
6238 set dummy otool64; ac_word=$2
6239 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6240 $as_echo_n "checking for $ac_word... " >&6; }
6241 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6242 $as_echo_n "(cached) " >&6
6243 else
6244 if test -n "$ac_ct_OTOOL64"; then
6245 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6246 else
6247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248 for as_dir in $PATH
6249 do
6250 IFS=$as_save_IFS
6251 test -z "$as_dir" && as_dir=.
6252 for ac_exec_ext in '' $ac_executable_extensions; do
6253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6254 ac_cv_prog_ac_ct_OTOOL64="otool64"
6255 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6256 break 2
6257 fi
6258 done
6259 done
6260 IFS=$as_save_IFS
6261
6262 fi
6263 fi
6264 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6265 if test -n "$ac_ct_OTOOL64"; then
6266 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6267 $as_echo "$ac_ct_OTOOL64" >&6; }
6268 else
6269 { $as_echo "$as_me:$LINENO: result: no" >&5
6270 $as_echo "no" >&6; }
6271 fi
6272
6273 if test "x$ac_ct_OTOOL64" = x; then
6274 OTOOL64=":"
6275 else
6276 case $cross_compiling:$ac_tool_warned in
6277 yes:)
6278 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6279 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6280 ac_tool_warned=yes ;;
6281 esac
6282 OTOOL64=$ac_ct_OTOOL64
6283 fi
6284 else
6285 OTOOL64="$ac_cv_prog_OTOOL64"
6286 fi
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6315 $as_echo_n "checking for -single_module linker flag... " >&6; }
6316 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6317 $as_echo_n "(cached) " >&6
6318 else
6319 lt_cv_apple_cc_single_mod=no
6320 if test -z "${LT_MULTI_MODULE}"; then
6321 # By default we will add the -single_module flag. You can override
6322 # by either setting the environment variable LT_MULTI_MODULE
6323 # non-empty at configure time, or by adding -multi_module to the
6324 # link flags.
6325 rm -rf libconftest.dylib*
6326 echo "int foo(void){return 1;}" > conftest.c
6327 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6328 -dynamiclib -Wl,-single_module conftest.c" >&5
6329 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6330 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6331 _lt_result=$?
6332 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6333 lt_cv_apple_cc_single_mod=yes
6334 else
6335 cat conftest.err >&5
6336 fi
6337 rm -rf libconftest.dylib*
6338 rm -f conftest.*
6339 fi
6340 fi
6341 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6342 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6343 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6344 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6345 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6346 $as_echo_n "(cached) " >&6
6347 else
6348 lt_cv_ld_exported_symbols_list=no
6349 save_LDFLAGS=$LDFLAGS
6350 echo "_main" > conftest.sym
6351 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6352 cat >conftest.$ac_ext <<_ACEOF
6353 /* confdefs.h. */
6354 _ACEOF
6355 cat confdefs.h >>conftest.$ac_ext
6356 cat >>conftest.$ac_ext <<_ACEOF
6357 /* end confdefs.h. */
6358
6359 int
6360 main ()
6361 {
6362
6363 ;
6364 return 0;
6365 }
6366 _ACEOF
6367 rm -f conftest.$ac_objext conftest$ac_exeext
6368 if { (ac_try="$ac_link"
6369 case "(($ac_try" in
6370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6371 *) ac_try_echo=$ac_try;;
6372 esac
6373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6374 $as_echo "$ac_try_echo") >&5
6375 (eval "$ac_link") 2>conftest.er1
6376 ac_status=$?
6377 grep -v '^ *+' conftest.er1 >conftest.err
6378 rm -f conftest.er1
6379 cat conftest.err >&5
6380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); } && {
6382 test -z "$ac_c_werror_flag" ||
6383 test ! -s conftest.err
6384 } && test -s conftest$ac_exeext && {
6385 test "$cross_compiling" = yes ||
6386 $as_test_x conftest$ac_exeext
6387 }; then
6388 lt_cv_ld_exported_symbols_list=yes
6389 else
6390 $as_echo "$as_me: failed program was:" >&5
6391 sed 's/^/| /' conftest.$ac_ext >&5
6392
6393 lt_cv_ld_exported_symbols_list=no
6394 fi
6395
6396 rm -rf conftest.dSYM
6397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6398 conftest$ac_exeext conftest.$ac_ext
6399 LDFLAGS="$save_LDFLAGS"
6400
6401 fi
6402 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6403 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6404 case $host_os in
6405 rhapsody* | darwin1.[012])
6406 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6407 darwin1.*)
6408 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6409 darwin*) # darwin 5.x on
6410 # if running on 10.5 or later, the deployment target defaults
6411 # to the OS version, if on x86, and 10.4, the deployment
6412 # target defaults to 10.4. Don't you love it?
6413 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6414 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6415 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6416 10.[012]*)
6417 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6418 10.*)
6419 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6420 esac
6421 ;;
6422 esac
6423 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6424 _lt_dar_single_mod='$single_module'
6425 fi
6426 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6427 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6428 else
6429 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6430 fi
6431 if test "$DSYMUTIL" != ":"; then
6432 _lt_dsymutil='~$DSYMUTIL $lib || :'
6433 else
6434 _lt_dsymutil=
6435 fi
6436 ;;
6437 esac
6438
6439 ac_ext=c
6440 ac_cpp='$CPP $CPPFLAGS'
6441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6444 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6445 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6446 # On Suns, sometimes $CPP names a directory.
6447 if test -n "$CPP" && test -d "$CPP"; then
6448 CPP=
6449 fi
6450 if test -z "$CPP"; then
6451 if test "${ac_cv_prog_CPP+set}" = set; then
6452 $as_echo_n "(cached) " >&6
6453 else
6454 # Double quotes because CPP needs to be expanded
6455 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6456 do
6457 ac_preproc_ok=false
6458 for ac_c_preproc_warn_flag in '' yes
6459 do
6460 # Use a header file that comes with gcc, so configuring glibc
6461 # with a fresh cross-compiler works.
6462 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6463 # <limits.h> exists even on freestanding compilers.
6464 # On the NeXT, cc -E runs the code through the compiler's parser,
6465 # not just through cpp. "Syntax error" is here to catch this case.
6466 cat >conftest.$ac_ext <<_ACEOF
6467 /* confdefs.h. */
6468 _ACEOF
6469 cat confdefs.h >>conftest.$ac_ext
6470 cat >>conftest.$ac_ext <<_ACEOF
6471 /* end confdefs.h. */
6472 #ifdef __STDC__
6473 # include <limits.h>
6474 #else
6475 # include <assert.h>
6476 #endif
6477 Syntax error
6478 _ACEOF
6479 if { (ac_try="$ac_cpp conftest.$ac_ext"
6480 case "(($ac_try" in
6481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6482 *) ac_try_echo=$ac_try;;
6483 esac
6484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6485 $as_echo "$ac_try_echo") >&5
6486 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6487 ac_status=$?
6488 grep -v '^ *+' conftest.er1 >conftest.err
6489 rm -f conftest.er1
6490 cat conftest.err >&5
6491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); } >/dev/null && {
6493 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6494 test ! -s conftest.err
6495 }; then
6496 :
6497 else
6498 $as_echo "$as_me: failed program was:" >&5
6499 sed 's/^/| /' conftest.$ac_ext >&5
6500
6501 # Broken: fails on valid input.
6502 continue
6503 fi
6504
6505 rm -f conftest.err conftest.$ac_ext
6506
6507 # OK, works on sane cases. Now check whether nonexistent headers
6508 # can be detected and how.
6509 cat >conftest.$ac_ext <<_ACEOF
6510 /* confdefs.h. */
6511 _ACEOF
6512 cat confdefs.h >>conftest.$ac_ext
6513 cat >>conftest.$ac_ext <<_ACEOF
6514 /* end confdefs.h. */
6515 #include <ac_nonexistent.h>
6516 _ACEOF
6517 if { (ac_try="$ac_cpp conftest.$ac_ext"
6518 case "(($ac_try" in
6519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6520 *) ac_try_echo=$ac_try;;
6521 esac
6522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6523 $as_echo "$ac_try_echo") >&5
6524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6525 ac_status=$?
6526 grep -v '^ *+' conftest.er1 >conftest.err
6527 rm -f conftest.er1
6528 cat conftest.err >&5
6529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); } >/dev/null && {
6531 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6532 test ! -s conftest.err
6533 }; then
6534 # Broken: success on invalid input.
6535 continue
6536 else
6537 $as_echo "$as_me: failed program was:" >&5
6538 sed 's/^/| /' conftest.$ac_ext >&5
6539
6540 # Passes both tests.
6541 ac_preproc_ok=:
6542 break
6543 fi
6544
6545 rm -f conftest.err conftest.$ac_ext
6546
6547 done
6548 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6549 rm -f conftest.err conftest.$ac_ext
6550 if $ac_preproc_ok; then
6551 break
6552 fi
6553
6554 done
6555 ac_cv_prog_CPP=$CPP
6556
6557 fi
6558 CPP=$ac_cv_prog_CPP
6559 else
6560 ac_cv_prog_CPP=$CPP
6561 fi
6562 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6563 $as_echo "$CPP" >&6; }
6564 ac_preproc_ok=false
6565 for ac_c_preproc_warn_flag in '' yes
6566 do
6567 # Use a header file that comes with gcc, so configuring glibc
6568 # with a fresh cross-compiler works.
6569 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6570 # <limits.h> exists even on freestanding compilers.
6571 # On the NeXT, cc -E runs the code through the compiler's parser,
6572 # not just through cpp. "Syntax error" is here to catch this case.
6573 cat >conftest.$ac_ext <<_ACEOF
6574 /* confdefs.h. */
6575 _ACEOF
6576 cat confdefs.h >>conftest.$ac_ext
6577 cat >>conftest.$ac_ext <<_ACEOF
6578 /* end confdefs.h. */
6579 #ifdef __STDC__
6580 # include <limits.h>
6581 #else
6582 # include <assert.h>
6583 #endif
6584 Syntax error
6585 _ACEOF
6586 if { (ac_try="$ac_cpp conftest.$ac_ext"
6587 case "(($ac_try" in
6588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6589 *) ac_try_echo=$ac_try;;
6590 esac
6591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6592 $as_echo "$ac_try_echo") >&5
6593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6594 ac_status=$?
6595 grep -v '^ *+' conftest.er1 >conftest.err
6596 rm -f conftest.er1
6597 cat conftest.err >&5
6598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); } >/dev/null && {
6600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6601 test ! -s conftest.err
6602 }; then
6603 :
6604 else
6605 $as_echo "$as_me: failed program was:" >&5
6606 sed 's/^/| /' conftest.$ac_ext >&5
6607
6608 # Broken: fails on valid input.
6609 continue
6610 fi
6611
6612 rm -f conftest.err conftest.$ac_ext
6613
6614 # OK, works on sane cases. Now check whether nonexistent headers
6615 # can be detected and how.
6616 cat >conftest.$ac_ext <<_ACEOF
6617 /* confdefs.h. */
6618 _ACEOF
6619 cat confdefs.h >>conftest.$ac_ext
6620 cat >>conftest.$ac_ext <<_ACEOF
6621 /* end confdefs.h. */
6622 #include <ac_nonexistent.h>
6623 _ACEOF
6624 if { (ac_try="$ac_cpp conftest.$ac_ext"
6625 case "(($ac_try" in
6626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6627 *) ac_try_echo=$ac_try;;
6628 esac
6629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6630 $as_echo "$ac_try_echo") >&5
6631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6632 ac_status=$?
6633 grep -v '^ *+' conftest.er1 >conftest.err
6634 rm -f conftest.er1
6635 cat conftest.err >&5
6636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); } >/dev/null && {
6638 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6639 test ! -s conftest.err
6640 }; then
6641 # Broken: success on invalid input.
6642 continue
6643 else
6644 $as_echo "$as_me: failed program was:" >&5
6645 sed 's/^/| /' conftest.$ac_ext >&5
6646
6647 # Passes both tests.
6648 ac_preproc_ok=:
6649 break
6650 fi
6651
6652 rm -f conftest.err conftest.$ac_ext
6653
6654 done
6655 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6656 rm -f conftest.err conftest.$ac_ext
6657 if $ac_preproc_ok; then
6658 :
6659 else
6660 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6661 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6662 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6663 See \`config.log' for more details." >&5
6664 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6665 See \`config.log' for more details." >&2;}
6666 { (exit 1); exit 1; }; }; }
6667 fi
6668
6669 ac_ext=c
6670 ac_cpp='$CPP $CPPFLAGS'
6671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6674
6675
6676 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6677 $as_echo_n "checking for ANSI C header files... " >&6; }
6678 if test "${ac_cv_header_stdc+set}" = set; then
6679 $as_echo_n "(cached) " >&6
6680 else
6681 cat >conftest.$ac_ext <<_ACEOF
6682 /* confdefs.h. */
6683 _ACEOF
6684 cat confdefs.h >>conftest.$ac_ext
6685 cat >>conftest.$ac_ext <<_ACEOF
6686 /* end confdefs.h. */
6687 #include <stdlib.h>
6688 #include <stdarg.h>
6689 #include <string.h>
6690 #include <float.h>
6691
6692 int
6693 main ()
6694 {
6695
6696 ;
6697 return 0;
6698 }
6699 _ACEOF
6700 rm -f conftest.$ac_objext
6701 if { (ac_try="$ac_compile"
6702 case "(($ac_try" in
6703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6704 *) ac_try_echo=$ac_try;;
6705 esac
6706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6707 $as_echo "$ac_try_echo") >&5
6708 (eval "$ac_compile") 2>conftest.er1
6709 ac_status=$?
6710 grep -v '^ *+' conftest.er1 >conftest.err
6711 rm -f conftest.er1
6712 cat conftest.err >&5
6713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); } && {
6715 test -z "$ac_c_werror_flag" ||
6716 test ! -s conftest.err
6717 } && test -s conftest.$ac_objext; then
6718 ac_cv_header_stdc=yes
6719 else
6720 $as_echo "$as_me: failed program was:" >&5
6721 sed 's/^/| /' conftest.$ac_ext >&5
6722
6723 ac_cv_header_stdc=no
6724 fi
6725
6726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6727
6728 if test $ac_cv_header_stdc = yes; then
6729 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6730 cat >conftest.$ac_ext <<_ACEOF
6731 /* confdefs.h. */
6732 _ACEOF
6733 cat confdefs.h >>conftest.$ac_ext
6734 cat >>conftest.$ac_ext <<_ACEOF
6735 /* end confdefs.h. */
6736 #include <string.h>
6737
6738 _ACEOF
6739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6740 $EGREP "memchr" >/dev/null 2>&1; then
6741 :
6742 else
6743 ac_cv_header_stdc=no
6744 fi
6745 rm -f conftest*
6746
6747 fi
6748
6749 if test $ac_cv_header_stdc = yes; then
6750 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6751 cat >conftest.$ac_ext <<_ACEOF
6752 /* confdefs.h. */
6753 _ACEOF
6754 cat confdefs.h >>conftest.$ac_ext
6755 cat >>conftest.$ac_ext <<_ACEOF
6756 /* end confdefs.h. */
6757 #include <stdlib.h>
6758
6759 _ACEOF
6760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6761 $EGREP "free" >/dev/null 2>&1; then
6762 :
6763 else
6764 ac_cv_header_stdc=no
6765 fi
6766 rm -f conftest*
6767
6768 fi
6769
6770 if test $ac_cv_header_stdc = yes; then
6771 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6772 if test "$cross_compiling" = yes; then
6773 :
6774 else
6775 cat >conftest.$ac_ext <<_ACEOF
6776 /* confdefs.h. */
6777 _ACEOF
6778 cat confdefs.h >>conftest.$ac_ext
6779 cat >>conftest.$ac_ext <<_ACEOF
6780 /* end confdefs.h. */
6781 #include <ctype.h>
6782 #include <stdlib.h>
6783 #if ((' ' & 0x0FF) == 0x020)
6784 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6785 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6786 #else
6787 # define ISLOWER(c) \
6788 (('a' <= (c) && (c) <= 'i') \
6789 || ('j' <= (c) && (c) <= 'r') \
6790 || ('s' <= (c) && (c) <= 'z'))
6791 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6792 #endif
6793
6794 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6795 int
6796 main ()
6797 {
6798 int i;
6799 for (i = 0; i < 256; i++)
6800 if (XOR (islower (i), ISLOWER (i))
6801 || toupper (i) != TOUPPER (i))
6802 return 2;
6803 return 0;
6804 }
6805 _ACEOF
6806 rm -f conftest$ac_exeext
6807 if { (ac_try="$ac_link"
6808 case "(($ac_try" in
6809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6810 *) ac_try_echo=$ac_try;;
6811 esac
6812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6813 $as_echo "$ac_try_echo") >&5
6814 (eval "$ac_link") 2>&5
6815 ac_status=$?
6816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6818 { (case "(($ac_try" in
6819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6820 *) ac_try_echo=$ac_try;;
6821 esac
6822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6823 $as_echo "$ac_try_echo") >&5
6824 (eval "$ac_try") 2>&5
6825 ac_status=$?
6826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); }; }; then
6828 :
6829 else
6830 $as_echo "$as_me: program exited with status $ac_status" >&5
6831 $as_echo "$as_me: failed program was:" >&5
6832 sed 's/^/| /' conftest.$ac_ext >&5
6833
6834 ( exit $ac_status )
6835 ac_cv_header_stdc=no
6836 fi
6837 rm -rf conftest.dSYM
6838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6839 fi
6840
6841
6842 fi
6843 fi
6844 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6845 $as_echo "$ac_cv_header_stdc" >&6; }
6846 if test $ac_cv_header_stdc = yes; then
6847
6848 cat >>confdefs.h <<\_ACEOF
6849 #define STDC_HEADERS 1
6850 _ACEOF
6851
6852 fi
6853
6854 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6865 inttypes.h stdint.h unistd.h
6866 do
6867 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6868 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6869 $as_echo_n "checking for $ac_header... " >&6; }
6870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6871 $as_echo_n "(cached) " >&6
6872 else
6873 cat >conftest.$ac_ext <<_ACEOF
6874 /* confdefs.h. */
6875 _ACEOF
6876 cat confdefs.h >>conftest.$ac_ext
6877 cat >>conftest.$ac_ext <<_ACEOF
6878 /* end confdefs.h. */
6879 $ac_includes_default
6880
6881 #include <$ac_header>
6882 _ACEOF
6883 rm -f conftest.$ac_objext
6884 if { (ac_try="$ac_compile"
6885 case "(($ac_try" in
6886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6887 *) ac_try_echo=$ac_try;;
6888 esac
6889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6890 $as_echo "$ac_try_echo") >&5
6891 (eval "$ac_compile") 2>conftest.er1
6892 ac_status=$?
6893 grep -v '^ *+' conftest.er1 >conftest.err
6894 rm -f conftest.er1
6895 cat conftest.err >&5
6896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); } && {
6898 test -z "$ac_c_werror_flag" ||
6899 test ! -s conftest.err
6900 } && test -s conftest.$ac_objext; then
6901 eval "$as_ac_Header=yes"
6902 else
6903 $as_echo "$as_me: failed program was:" >&5
6904 sed 's/^/| /' conftest.$ac_ext >&5
6905
6906 eval "$as_ac_Header=no"
6907 fi
6908
6909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6910 fi
6911 ac_res=`eval 'as_val=${'$as_ac_Header'}
6912 $as_echo "$as_val"'`
6913 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6914 $as_echo "$ac_res" >&6; }
6915 as_val=`eval 'as_val=${'$as_ac_Header'}
6916 $as_echo "$as_val"'`
6917 if test "x$as_val" = x""yes; then
6918 cat >>confdefs.h <<_ACEOF
6919 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6920 _ACEOF
6921
6922 fi
6923
6924 done
6925
6926
6927
6928 for ac_header in dlfcn.h
6929 do
6930 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6931 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6932 $as_echo_n "checking for $ac_header... " >&6; }
6933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6934 $as_echo_n "(cached) " >&6
6935 else
6936 cat >conftest.$ac_ext <<_ACEOF
6937 /* confdefs.h. */
6938 _ACEOF
6939 cat confdefs.h >>conftest.$ac_ext
6940 cat >>conftest.$ac_ext <<_ACEOF
6941 /* end confdefs.h. */
6942 $ac_includes_default
6943
6944 #include <$ac_header>
6945 _ACEOF
6946 rm -f conftest.$ac_objext
6947 if { (ac_try="$ac_compile"
6948 case "(($ac_try" in
6949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6950 *) ac_try_echo=$ac_try;;
6951 esac
6952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6953 $as_echo "$ac_try_echo") >&5
6954 (eval "$ac_compile") 2>conftest.er1
6955 ac_status=$?
6956 grep -v '^ *+' conftest.er1 >conftest.err
6957 rm -f conftest.er1
6958 cat conftest.err >&5
6959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); } && {
6961 test -z "$ac_c_werror_flag" ||
6962 test ! -s conftest.err
6963 } && test -s conftest.$ac_objext; then
6964 eval "$as_ac_Header=yes"
6965 else
6966 $as_echo "$as_me: failed program was:" >&5
6967 sed 's/^/| /' conftest.$ac_ext >&5
6968
6969 eval "$as_ac_Header=no"
6970 fi
6971
6972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6973 fi
6974 ac_res=`eval 'as_val=${'$as_ac_Header'}
6975 $as_echo "$as_val"'`
6976 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6977 $as_echo "$ac_res" >&6; }
6978 as_val=`eval 'as_val=${'$as_ac_Header'}
6979 $as_echo "$as_val"'`
6980 if test "x$as_val" = x""yes; then
6981 cat >>confdefs.h <<_ACEOF
6982 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6983 _ACEOF
6984
6985 fi
6986
6987 done
6988
6989
6990
6991 # Set options
6992
6993
6994
6995 enable_dlopen=no
6996
6997
6998 enable_win32_dll=no
6999
7000
7001 # Check whether --enable-shared was given.
7002 if test "${enable_shared+set}" = set; then
7003 enableval=$enable_shared; p=${PACKAGE-default}
7004 case $enableval in
7005 yes) enable_shared=yes ;;
7006 no) enable_shared=no ;;
7007 *)
7008 enable_shared=no
7009 # Look at the argument we got. We use all the common list separators.
7010 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7011 for pkg in $enableval; do
7012 IFS="$lt_save_ifs"
7013 if test "X$pkg" = "X$p"; then
7014 enable_shared=yes
7015 fi
7016 done
7017 IFS="$lt_save_ifs"
7018 ;;
7019 esac
7020 else
7021 enable_shared=yes
7022 fi
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032 # Check whether --enable-static was given.
7033 if test "${enable_static+set}" = set; then
7034 enableval=$enable_static; p=${PACKAGE-default}
7035 case $enableval in
7036 yes) enable_static=yes ;;
7037 no) enable_static=no ;;
7038 *)
7039 enable_static=no
7040 # Look at the argument we got. We use all the common list separators.
7041 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7042 for pkg in $enableval; do
7043 IFS="$lt_save_ifs"
7044 if test "X$pkg" = "X$p"; then
7045 enable_static=yes
7046 fi
7047 done
7048 IFS="$lt_save_ifs"
7049 ;;
7050 esac
7051 else
7052 enable_static=yes
7053 fi
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064 # Check whether --with-pic was given.
7065 if test "${with_pic+set}" = set; then
7066 withval=$with_pic; pic_mode="$withval"
7067 else
7068 pic_mode=default
7069 fi
7070
7071
7072 test -z "$pic_mode" && pic_mode=default
7073
7074
7075
7076
7077
7078
7079
7080 # Check whether --enable-fast-install was given.
7081 if test "${enable_fast_install+set}" = set; then
7082 enableval=$enable_fast_install; p=${PACKAGE-default}
7083 case $enableval in
7084 yes) enable_fast_install=yes ;;
7085 no) enable_fast_install=no ;;
7086 *)
7087 enable_fast_install=no
7088 # Look at the argument we got. We use all the common list separators.
7089 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7090 for pkg in $enableval; do
7091 IFS="$lt_save_ifs"
7092 if test "X$pkg" = "X$p"; then
7093 enable_fast_install=yes
7094 fi
7095 done
7096 IFS="$lt_save_ifs"
7097 ;;
7098 esac
7099 else
7100 enable_fast_install=yes
7101 fi
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113 # This can be used to rebuild libtool when needed
7114 LIBTOOL_DEPS="$ltmain"
7115
7116 # Always use our own libtool.
7117 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143 test -z "$LN_S" && LN_S="ln -s"
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158 if test -n "${ZSH_VERSION+set}" ; then
7159 setopt NO_GLOB_SUBST
7160 fi
7161
7162 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7163 $as_echo_n "checking for objdir... " >&6; }
7164 if test "${lt_cv_objdir+set}" = set; then
7165 $as_echo_n "(cached) " >&6
7166 else
7167 rm -f .libs 2>/dev/null
7168 mkdir .libs 2>/dev/null
7169 if test -d .libs; then
7170 lt_cv_objdir=.libs
7171 else
7172 # MS-DOS does not allow filenames that begin with a dot.
7173 lt_cv_objdir=_libs
7174 fi
7175 rmdir .libs 2>/dev/null
7176 fi
7177 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7178 $as_echo "$lt_cv_objdir" >&6; }
7179 objdir=$lt_cv_objdir
7180
7181
7182
7183
7184
7185 cat >>confdefs.h <<_ACEOF
7186 #define LT_OBJDIR "$lt_cv_objdir/"
7187 _ACEOF
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205 case $host_os in
7206 aix3*)
7207 # AIX sometimes has problems with the GCC collect2 program. For some
7208 # reason, if we set the COLLECT_NAMES environment variable, the problems
7209 # vanish in a puff of smoke.
7210 if test "X${COLLECT_NAMES+set}" != Xset; then
7211 COLLECT_NAMES=
7212 export COLLECT_NAMES
7213 fi
7214 ;;
7215 esac
7216
7217 # Sed substitution that helps us do robust quoting. It backslashifies
7218 # metacharacters that are still active within double-quoted strings.
7219 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7220
7221 # Same as above, but do not quote variable references.
7222 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7223
7224 # Sed substitution to delay expansion of an escaped shell variable in a
7225 # double_quote_subst'ed string.
7226 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7227
7228 # Sed substitution to delay expansion of an escaped single quote.
7229 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7230
7231 # Sed substitution to avoid accidental globbing in evaled expressions
7232 no_glob_subst='s/\*/\\\*/g'
7233
7234 # Global variables:
7235 ofile=libtool
7236 can_build_shared=yes
7237
7238 # All known linkers require a `.a' archive for static linking (except MSVC,
7239 # which needs '.lib').
7240 libext=a
7241
7242 with_gnu_ld="$lt_cv_prog_gnu_ld"
7243
7244 old_CC="$CC"
7245 old_CFLAGS="$CFLAGS"
7246
7247 # Set sane defaults for various variables
7248 test -z "$CC" && CC=cc
7249 test -z "$LTCC" && LTCC=$CC
7250 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7251 test -z "$LD" && LD=ld
7252 test -z "$ac_objext" && ac_objext=o
7253
7254 for cc_temp in $compiler""; do
7255 case $cc_temp in
7256 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7257 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7258 \-*) ;;
7259 *) break;;
7260 esac
7261 done
7262 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7263
7264
7265 # Only perform the check for file, if the check method requires it
7266 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7267 case $deplibs_check_method in
7268 file_magic*)
7269 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7270 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7271 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7272 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7273 $as_echo_n "(cached) " >&6
7274 else
7275 case $MAGIC_CMD in
7276 [\\/*] | ?:[\\/]*)
7277 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7278 ;;
7279 *)
7280 lt_save_MAGIC_CMD="$MAGIC_CMD"
7281 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7282 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7283 for ac_dir in $ac_dummy; do
7284 IFS="$lt_save_ifs"
7285 test -z "$ac_dir" && ac_dir=.
7286 if test -f $ac_dir/${ac_tool_prefix}file; then
7287 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7288 if test -n "$file_magic_test_file"; then
7289 case $deplibs_check_method in
7290 "file_magic "*)
7291 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7292 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7293 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7294 $EGREP "$file_magic_regex" > /dev/null; then
7295 :
7296 else
7297 cat <<_LT_EOF 1>&2
7298
7299 *** Warning: the command libtool uses to detect shared libraries,
7300 *** $file_magic_cmd, produces output that libtool cannot recognize.
7301 *** The result is that libtool may fail to recognize shared libraries
7302 *** as such. This will affect the creation of libtool libraries that
7303 *** depend on shared libraries, but programs linked with such libtool
7304 *** libraries will work regardless of this problem. Nevertheless, you
7305 *** may want to report the problem to your system manager and/or to
7306 *** bug-libtool@gnu.org
7307
7308 _LT_EOF
7309 fi ;;
7310 esac
7311 fi
7312 break
7313 fi
7314 done
7315 IFS="$lt_save_ifs"
7316 MAGIC_CMD="$lt_save_MAGIC_CMD"
7317 ;;
7318 esac
7319 fi
7320
7321 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7322 if test -n "$MAGIC_CMD"; then
7323 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7324 $as_echo "$MAGIC_CMD" >&6; }
7325 else
7326 { $as_echo "$as_me:$LINENO: result: no" >&5
7327 $as_echo "no" >&6; }
7328 fi
7329
7330
7331
7332
7333
7334 if test -z "$lt_cv_path_MAGIC_CMD"; then
7335 if test -n "$ac_tool_prefix"; then
7336 { $as_echo "$as_me:$LINENO: checking for file" >&5
7337 $as_echo_n "checking for file... " >&6; }
7338 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7339 $as_echo_n "(cached) " >&6
7340 else
7341 case $MAGIC_CMD in
7342 [\\/*] | ?:[\\/]*)
7343 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7344 ;;
7345 *)
7346 lt_save_MAGIC_CMD="$MAGIC_CMD"
7347 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7348 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7349 for ac_dir in $ac_dummy; do
7350 IFS="$lt_save_ifs"
7351 test -z "$ac_dir" && ac_dir=.
7352 if test -f $ac_dir/file; then
7353 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7354 if test -n "$file_magic_test_file"; then
7355 case $deplibs_check_method in
7356 "file_magic "*)
7357 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7358 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7359 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7360 $EGREP "$file_magic_regex" > /dev/null; then
7361 :
7362 else
7363 cat <<_LT_EOF 1>&2
7364
7365 *** Warning: the command libtool uses to detect shared libraries,
7366 *** $file_magic_cmd, produces output that libtool cannot recognize.
7367 *** The result is that libtool may fail to recognize shared libraries
7368 *** as such. This will affect the creation of libtool libraries that
7369 *** depend on shared libraries, but programs linked with such libtool
7370 *** libraries will work regardless of this problem. Nevertheless, you
7371 *** may want to report the problem to your system manager and/or to
7372 *** bug-libtool@gnu.org
7373
7374 _LT_EOF
7375 fi ;;
7376 esac
7377 fi
7378 break
7379 fi
7380 done
7381 IFS="$lt_save_ifs"
7382 MAGIC_CMD="$lt_save_MAGIC_CMD"
7383 ;;
7384 esac
7385 fi
7386
7387 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7388 if test -n "$MAGIC_CMD"; then
7389 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7390 $as_echo "$MAGIC_CMD" >&6; }
7391 else
7392 { $as_echo "$as_me:$LINENO: result: no" >&5
7393 $as_echo "no" >&6; }
7394 fi
7395
7396
7397 else
7398 MAGIC_CMD=:
7399 fi
7400 fi
7401
7402 fi
7403 ;;
7404 esac
7405
7406 # Use C for the default configuration in the libtool script
7407
7408 lt_save_CC="$CC"
7409 ac_ext=c
7410 ac_cpp='$CPP $CPPFLAGS'
7411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7414
7415
7416 # Source file extension for C test sources.
7417 ac_ext=c
7418
7419 # Object file extension for compiled C test sources.
7420 objext=o
7421 objext=$objext
7422
7423 # Code to be used in simple compile tests
7424 lt_simple_compile_test_code="int some_variable = 0;"
7425
7426 # Code to be used in simple link tests
7427 lt_simple_link_test_code='int main(){return(0);}'
7428
7429
7430
7431
7432
7433
7434
7435 # If no C compiler was specified, use CC.
7436 LTCC=${LTCC-"$CC"}
7437
7438 # If no C compiler flags were specified, use CFLAGS.
7439 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7440
7441 # Allow CC to be a program name with arguments.
7442 compiler=$CC
7443
7444 # Save the default compiler, since it gets overwritten when the other
7445 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7446 compiler_DEFAULT=$CC
7447
7448 # save warnings/boilerplate of simple test code
7449 ac_outfile=conftest.$ac_objext
7450 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7451 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7452 _lt_compiler_boilerplate=`cat conftest.err`
7453 $RM conftest*
7454
7455 ac_outfile=conftest.$ac_objext
7456 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7457 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7458 _lt_linker_boilerplate=`cat conftest.err`
7459 $RM -r conftest*
7460
7461
7462 if test -n "$compiler"; then
7463
7464 lt_prog_compiler_no_builtin_flag=
7465
7466 if test "$GCC" = yes; then
7467 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7468
7469 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7470 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7471 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7472 $as_echo_n "(cached) " >&6
7473 else
7474 lt_cv_prog_compiler_rtti_exceptions=no
7475 ac_outfile=conftest.$ac_objext
7476 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7477 lt_compiler_flag="-fno-rtti -fno-exceptions"
7478 # Insert the option either (1) after the last *FLAGS variable, or
7479 # (2) before a word containing "conftest.", or (3) at the end.
7480 # Note that $ac_compile itself does not contain backslashes and begins
7481 # with a dollar sign (not a hyphen), so the echo should work correctly.
7482 # The option is referenced via a variable to avoid confusing sed.
7483 lt_compile=`echo "$ac_compile" | $SED \
7484 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7485 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7486 -e 's:$: $lt_compiler_flag:'`
7487 (eval echo "\"\$as_me:7487: $lt_compile\"" >&5)
7488 (eval "$lt_compile" 2>conftest.err)
7489 ac_status=$?
7490 cat conftest.err >&5
7491 echo "$as_me:7491: \$? = $ac_status" >&5
7492 if (exit $ac_status) && test -s "$ac_outfile"; then
7493 # The compiler can only warn and ignore the option if not recognized
7494 # So say no if there are warnings other than the usual output.
7495 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7496 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7497 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7498 lt_cv_prog_compiler_rtti_exceptions=yes
7499 fi
7500 fi
7501 $RM conftest*
7502
7503 fi
7504 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7505 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7506
7507 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7508 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7509 else
7510 :
7511 fi
7512
7513 fi
7514
7515
7516
7517
7518
7519
7520 lt_prog_compiler_wl=
7521 lt_prog_compiler_pic=
7522 lt_prog_compiler_static=
7523
7524 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7525 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7526
7527 if test "$GCC" = yes; then
7528 lt_prog_compiler_wl='-Wl,'
7529 lt_prog_compiler_static='-static'
7530
7531 case $host_os in
7532 aix*)
7533 # All AIX code is PIC.
7534 if test "$host_cpu" = ia64; then
7535 # AIX 5 now supports IA64 processor
7536 lt_prog_compiler_static='-Bstatic'
7537 fi
7538 ;;
7539
7540 amigaos*)
7541 case $host_cpu in
7542 powerpc)
7543 # see comment about AmigaOS4 .so support
7544 lt_prog_compiler_pic='-fPIC'
7545 ;;
7546 m68k)
7547 # FIXME: we need at least 68020 code to build shared libraries, but
7548 # adding the `-m68020' flag to GCC prevents building anything better,
7549 # like `-m68040'.
7550 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7551 ;;
7552 esac
7553 ;;
7554
7555 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7556 # PIC is the default for these OSes.
7557 ;;
7558
7559 mingw* | cygwin* | pw32* | os2* | cegcc*)
7560 # This hack is so that the source file can tell whether it is being
7561 # built for inclusion in a dll (and should export symbols for example).
7562 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7563 # (--disable-auto-import) libraries
7564 lt_prog_compiler_pic='-DDLL_EXPORT'
7565 ;;
7566
7567 darwin* | rhapsody*)
7568 # PIC is the default on this platform
7569 # Common symbols not allowed in MH_DYLIB files
7570 lt_prog_compiler_pic='-fno-common'
7571 ;;
7572
7573 hpux*)
7574 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7575 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7576 # sets the default TLS model and affects inlining.
7577 case $host_cpu in
7578 hppa*64*)
7579 # +Z the default
7580 ;;
7581 *)
7582 lt_prog_compiler_pic='-fPIC'
7583 ;;
7584 esac
7585 ;;
7586
7587 interix[3-9]*)
7588 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7589 # Instead, we relocate shared libraries at runtime.
7590 ;;
7591
7592 msdosdjgpp*)
7593 # Just because we use GCC doesn't mean we suddenly get shared libraries
7594 # on systems that don't support them.
7595 lt_prog_compiler_can_build_shared=no
7596 enable_shared=no
7597 ;;
7598
7599 *nto* | *qnx*)
7600 # QNX uses GNU C++, but need to define -shared option too, otherwise
7601 # it will coredump.
7602 lt_prog_compiler_pic='-fPIC -shared'
7603 ;;
7604
7605 sysv4*MP*)
7606 if test -d /usr/nec; then
7607 lt_prog_compiler_pic=-Kconform_pic
7608 fi
7609 ;;
7610
7611 *)
7612 lt_prog_compiler_pic='-fPIC'
7613 ;;
7614 esac
7615 else
7616 # PORTME Check for flag to pass linker flags through the system compiler.
7617 case $host_os in
7618 aix*)
7619 lt_prog_compiler_wl='-Wl,'
7620 if test "$host_cpu" = ia64; then
7621 # AIX 5 now supports IA64 processor
7622 lt_prog_compiler_static='-Bstatic'
7623 else
7624 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7625 fi
7626 ;;
7627
7628 mingw* | cygwin* | pw32* | os2* | cegcc*)
7629 # This hack is so that the source file can tell whether it is being
7630 # built for inclusion in a dll (and should export symbols for example).
7631 lt_prog_compiler_pic='-DDLL_EXPORT'
7632 ;;
7633
7634 hpux9* | hpux10* | hpux11*)
7635 lt_prog_compiler_wl='-Wl,'
7636 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7637 # not for PA HP-UX.
7638 case $host_cpu in
7639 hppa*64*|ia64*)
7640 # +Z the default
7641 ;;
7642 *)
7643 lt_prog_compiler_pic='+Z'
7644 ;;
7645 esac
7646 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7647 lt_prog_compiler_static='${wl}-a ${wl}archive'
7648 ;;
7649
7650 irix5* | irix6* | nonstopux*)
7651 lt_prog_compiler_wl='-Wl,'
7652 # PIC (with -KPIC) is the default.
7653 lt_prog_compiler_static='-non_shared'
7654 ;;
7655
7656 linux* | k*bsd*-gnu)
7657 case $cc_basename in
7658 # old Intel for x86_64 which still supported -KPIC.
7659 ecc*)
7660 lt_prog_compiler_wl='-Wl,'
7661 lt_prog_compiler_pic='-KPIC'
7662 lt_prog_compiler_static='-static'
7663 ;;
7664 # icc used to be incompatible with GCC.
7665 # ICC 10 doesn't accept -KPIC any more.
7666 icc* | ifort*)
7667 lt_prog_compiler_wl='-Wl,'
7668 lt_prog_compiler_pic='-fPIC'
7669 lt_prog_compiler_static='-static'
7670 ;;
7671 # Lahey Fortran 8.1.
7672 lf95*)
7673 lt_prog_compiler_wl='-Wl,'
7674 lt_prog_compiler_pic='--shared'
7675 lt_prog_compiler_static='--static'
7676 ;;
7677 pgcc* | pgf77* | pgf90* | pgf95*)
7678 # Portland Group compilers (*not* the Pentium gcc compiler,
7679 # which looks to be a dead project)
7680 lt_prog_compiler_wl='-Wl,'
7681 lt_prog_compiler_pic='-fpic'
7682 lt_prog_compiler_static='-Bstatic'
7683 ;;
7684 ccc*)
7685 lt_prog_compiler_wl='-Wl,'
7686 # All Alpha code is PIC.
7687 lt_prog_compiler_static='-non_shared'
7688 ;;
7689 xl*)
7690 # IBM XL C 8.0/Fortran 10.1 on PPC
7691 lt_prog_compiler_wl='-Wl,'
7692 lt_prog_compiler_pic='-qpic'
7693 lt_prog_compiler_static='-qstaticlink'
7694 ;;
7695 *)
7696 case `$CC -V 2>&1 | sed 5q` in
7697 *Sun\ C*)
7698 # Sun C 5.9
7699 lt_prog_compiler_pic='-KPIC'
7700 lt_prog_compiler_static='-Bstatic'
7701 lt_prog_compiler_wl='-Wl,'
7702 ;;
7703 *Sun\ F*)
7704 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7705 lt_prog_compiler_pic='-KPIC'
7706 lt_prog_compiler_static='-Bstatic'
7707 lt_prog_compiler_wl=''
7708 ;;
7709 esac
7710 ;;
7711 esac
7712 ;;
7713
7714 newsos6)
7715 lt_prog_compiler_pic='-KPIC'
7716 lt_prog_compiler_static='-Bstatic'
7717 ;;
7718
7719 *nto* | *qnx*)
7720 # QNX uses GNU C++, but need to define -shared option too, otherwise
7721 # it will coredump.
7722 lt_prog_compiler_pic='-fPIC -shared'
7723 ;;
7724
7725 osf3* | osf4* | osf5*)
7726 lt_prog_compiler_wl='-Wl,'
7727 # All OSF/1 code is PIC.
7728 lt_prog_compiler_static='-non_shared'
7729 ;;
7730
7731 rdos*)
7732 lt_prog_compiler_static='-non_shared'
7733 ;;
7734
7735 solaris*)
7736 lt_prog_compiler_pic='-KPIC'
7737 lt_prog_compiler_static='-Bstatic'
7738 case $cc_basename in
7739 f77* | f90* | f95*)
7740 lt_prog_compiler_wl='-Qoption ld ';;
7741 *)
7742 lt_prog_compiler_wl='-Wl,';;
7743 esac
7744 ;;
7745
7746 sunos4*)
7747 lt_prog_compiler_wl='-Qoption ld '
7748 lt_prog_compiler_pic='-PIC'
7749 lt_prog_compiler_static='-Bstatic'
7750 ;;
7751
7752 sysv4 | sysv4.2uw2* | sysv4.3*)
7753 lt_prog_compiler_wl='-Wl,'
7754 lt_prog_compiler_pic='-KPIC'
7755 lt_prog_compiler_static='-Bstatic'
7756 ;;
7757
7758 sysv4*MP*)
7759 if test -d /usr/nec ;then
7760 lt_prog_compiler_pic='-Kconform_pic'
7761 lt_prog_compiler_static='-Bstatic'
7762 fi
7763 ;;
7764
7765 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7766 lt_prog_compiler_wl='-Wl,'
7767 lt_prog_compiler_pic='-KPIC'
7768 lt_prog_compiler_static='-Bstatic'
7769 ;;
7770
7771 unicos*)
7772 lt_prog_compiler_wl='-Wl,'
7773 lt_prog_compiler_can_build_shared=no
7774 ;;
7775
7776 uts4*)
7777 lt_prog_compiler_pic='-pic'
7778 lt_prog_compiler_static='-Bstatic'
7779 ;;
7780
7781 *)
7782 lt_prog_compiler_can_build_shared=no
7783 ;;
7784 esac
7785 fi
7786
7787 case $host_os in
7788 # For platforms which do not support PIC, -DPIC is meaningless:
7789 *djgpp*)
7790 lt_prog_compiler_pic=
7791 ;;
7792 *)
7793 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7794 ;;
7795 esac
7796 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7797 $as_echo "$lt_prog_compiler_pic" >&6; }
7798
7799
7800
7801
7802
7803
7804 #
7805 # Check to make sure the PIC flag actually works.
7806 #
7807 if test -n "$lt_prog_compiler_pic"; then
7808 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7809 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7810 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7811 $as_echo_n "(cached) " >&6
7812 else
7813 lt_cv_prog_compiler_pic_works=no
7814 ac_outfile=conftest.$ac_objext
7815 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7816 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7817 # Insert the option either (1) after the last *FLAGS variable, or
7818 # (2) before a word containing "conftest.", or (3) at the end.
7819 # Note that $ac_compile itself does not contain backslashes and begins
7820 # with a dollar sign (not a hyphen), so the echo should work correctly.
7821 # The option is referenced via a variable to avoid confusing sed.
7822 lt_compile=`echo "$ac_compile" | $SED \
7823 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7824 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7825 -e 's:$: $lt_compiler_flag:'`
7826 (eval echo "\"\$as_me:7826: $lt_compile\"" >&5)
7827 (eval "$lt_compile" 2>conftest.err)
7828 ac_status=$?
7829 cat conftest.err >&5
7830 echo "$as_me:7830: \$? = $ac_status" >&5
7831 if (exit $ac_status) && test -s "$ac_outfile"; then
7832 # The compiler can only warn and ignore the option if not recognized
7833 # So say no if there are warnings other than the usual output.
7834 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7835 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7836 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7837 lt_cv_prog_compiler_pic_works=yes
7838 fi
7839 fi
7840 $RM conftest*
7841
7842 fi
7843 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7844 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7845
7846 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7847 case $lt_prog_compiler_pic in
7848 "" | " "*) ;;
7849 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7850 esac
7851 else
7852 lt_prog_compiler_pic=
7853 lt_prog_compiler_can_build_shared=no
7854 fi
7855
7856 fi
7857
7858
7859
7860
7861
7862
7863 #
7864 # Check to make sure the static flag actually works.
7865 #
7866 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7867 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7868 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7869 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7870 $as_echo_n "(cached) " >&6
7871 else
7872 lt_cv_prog_compiler_static_works=no
7873 save_LDFLAGS="$LDFLAGS"
7874 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7875 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7876 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7877 # The linker can only warn and ignore the option if not recognized
7878 # So say no if there are warnings
7879 if test -s conftest.err; then
7880 # Append any errors to the config.log.
7881 cat conftest.err 1>&5
7882 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7883 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7884 if diff conftest.exp conftest.er2 >/dev/null; then
7885 lt_cv_prog_compiler_static_works=yes
7886 fi
7887 else
7888 lt_cv_prog_compiler_static_works=yes
7889 fi
7890 fi
7891 $RM -r conftest*
7892 LDFLAGS="$save_LDFLAGS"
7893
7894 fi
7895 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7896 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7897
7898 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7899 :
7900 else
7901 lt_prog_compiler_static=
7902 fi
7903
7904
7905
7906
7907
7908
7909
7910 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7911 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7912 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7913 $as_echo_n "(cached) " >&6
7914 else
7915 lt_cv_prog_compiler_c_o=no
7916 $RM -r conftest 2>/dev/null
7917 mkdir conftest
7918 cd conftest
7919 mkdir out
7920 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7921
7922 lt_compiler_flag="-o out/conftest2.$ac_objext"
7923 # Insert the option either (1) after the last *FLAGS variable, or
7924 # (2) before a word containing "conftest.", or (3) at the end.
7925 # Note that $ac_compile itself does not contain backslashes and begins
7926 # with a dollar sign (not a hyphen), so the echo should work correctly.
7927 lt_compile=`echo "$ac_compile" | $SED \
7928 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7929 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7930 -e 's:$: $lt_compiler_flag:'`
7931 (eval echo "\"\$as_me:7931: $lt_compile\"" >&5)
7932 (eval "$lt_compile" 2>out/conftest.err)
7933 ac_status=$?
7934 cat out/conftest.err >&5
7935 echo "$as_me:7935: \$? = $ac_status" >&5
7936 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7937 then
7938 # The compiler can only warn and ignore the option if not recognized
7939 # So say no if there are warnings
7940 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7941 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7942 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7943 lt_cv_prog_compiler_c_o=yes
7944 fi
7945 fi
7946 chmod u+w . 2>&5
7947 $RM conftest*
7948 # SGI C++ compiler will create directory out/ii_files/ for
7949 # template instantiation
7950 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7951 $RM out/* && rmdir out
7952 cd ..
7953 $RM -r conftest
7954 $RM conftest*
7955
7956 fi
7957 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7958 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7959
7960
7961
7962
7963
7964
7965 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7966 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7967 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7968 $as_echo_n "(cached) " >&6
7969 else
7970 lt_cv_prog_compiler_c_o=no
7971 $RM -r conftest 2>/dev/null
7972 mkdir conftest
7973 cd conftest
7974 mkdir out
7975 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7976
7977 lt_compiler_flag="-o out/conftest2.$ac_objext"
7978 # Insert the option either (1) after the last *FLAGS variable, or
7979 # (2) before a word containing "conftest.", or (3) at the end.
7980 # Note that $ac_compile itself does not contain backslashes and begins
7981 # with a dollar sign (not a hyphen), so the echo should work correctly.
7982 lt_compile=`echo "$ac_compile" | $SED \
7983 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7984 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7985 -e 's:$: $lt_compiler_flag:'`
7986 (eval echo "\"\$as_me:7986: $lt_compile\"" >&5)
7987 (eval "$lt_compile" 2>out/conftest.err)
7988 ac_status=$?
7989 cat out/conftest.err >&5
7990 echo "$as_me:7990: \$? = $ac_status" >&5
7991 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7992 then
7993 # The compiler can only warn and ignore the option if not recognized
7994 # So say no if there are warnings
7995 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7996 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7997 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7998 lt_cv_prog_compiler_c_o=yes
7999 fi
8000 fi
8001 chmod u+w . 2>&5
8002 $RM conftest*
8003 # SGI C++ compiler will create directory out/ii_files/ for
8004 # template instantiation
8005 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8006 $RM out/* && rmdir out
8007 cd ..
8008 $RM -r conftest
8009 $RM conftest*
8010
8011 fi
8012 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8013 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8014
8015
8016
8017
8018 hard_links="nottested"
8019 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8020 # do not overwrite the value of need_locks provided by the user
8021 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8022 $as_echo_n "checking if we can lock with hard links... " >&6; }
8023 hard_links=yes
8024 $RM conftest*
8025 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8026 touch conftest.a
8027 ln conftest.a conftest.b 2>&5 || hard_links=no
8028 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8029 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8030 $as_echo "$hard_links" >&6; }
8031 if test "$hard_links" = no; then
8032 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8033 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8034 need_locks=warn
8035 fi
8036 else
8037 need_locks=no
8038 fi
8039
8040
8041
8042
8043
8044
8045 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8046 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8047
8048 runpath_var=
8049 allow_undefined_flag=
8050 always_export_symbols=no
8051 archive_cmds=
8052 archive_expsym_cmds=
8053 compiler_needs_object=no
8054 enable_shared_with_static_runtimes=no
8055 export_dynamic_flag_spec=
8056 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8057 hardcode_automatic=no
8058 hardcode_direct=no
8059 hardcode_direct_absolute=no
8060 hardcode_libdir_flag_spec=
8061 hardcode_libdir_flag_spec_ld=
8062 hardcode_libdir_separator=
8063 hardcode_minus_L=no
8064 hardcode_shlibpath_var=unsupported
8065 inherit_rpath=no
8066 link_all_deplibs=unknown
8067 module_cmds=
8068 module_expsym_cmds=
8069 old_archive_from_new_cmds=
8070 old_archive_from_expsyms_cmds=
8071 thread_safe_flag_spec=
8072 whole_archive_flag_spec=
8073 # include_expsyms should be a list of space-separated symbols to be *always*
8074 # included in the symbol list
8075 include_expsyms=
8076 # exclude_expsyms can be an extended regexp of symbols to exclude
8077 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8078 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8079 # as well as any symbol that contains `d'.
8080 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8081 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8082 # platforms (ab)use it in PIC code, but their linkers get confused if
8083 # the symbol is explicitly referenced. Since portable code cannot
8084 # rely on this symbol name, it's probably fine to never include it in
8085 # preloaded symbol tables.
8086 # Exclude shared library initialization/finalization symbols.
8087 extract_expsyms_cmds=
8088
8089 case $host_os in
8090 cygwin* | mingw* | pw32* | cegcc*)
8091 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8092 # When not using gcc, we currently assume that we are using
8093 # Microsoft Visual C++.
8094 if test "$GCC" != yes; then
8095 with_gnu_ld=no
8096 fi
8097 ;;
8098 interix*)
8099 # we just hope/assume this is gcc and not c89 (= MSVC++)
8100 with_gnu_ld=yes
8101 ;;
8102 openbsd*)
8103 with_gnu_ld=no
8104 ;;
8105 esac
8106
8107 ld_shlibs=yes
8108 if test "$with_gnu_ld" = yes; then
8109 # If archive_cmds runs LD, not CC, wlarc should be empty
8110 wlarc='${wl}'
8111
8112 # Set some defaults for GNU ld with shared library support. These
8113 # are reset later if shared libraries are not supported. Putting them
8114 # here allows them to be overridden if necessary.
8115 runpath_var=LD_RUN_PATH
8116 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8117 export_dynamic_flag_spec='${wl}--export-dynamic'
8118 # ancient GNU ld didn't support --whole-archive et. al.
8119 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8120 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8121 else
8122 whole_archive_flag_spec=
8123 fi
8124 supports_anon_versioning=no
8125 case `$LD -v 2>&1` in
8126 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8127 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8128 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8129 *\ 2.11.*) ;; # other 2.11 versions
8130 *) supports_anon_versioning=yes ;;
8131 esac
8132
8133 # See if GNU ld supports shared libraries.
8134 case $host_os in
8135 aix[3-9]*)
8136 # On AIX/PPC, the GNU linker is very broken
8137 if test "$host_cpu" != ia64; then
8138 ld_shlibs=no
8139 cat <<_LT_EOF 1>&2
8140
8141 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8142 *** to be unable to reliably create shared libraries on AIX.
8143 *** Therefore, libtool is disabling shared libraries support. If you
8144 *** really care for shared libraries, you may want to modify your PATH
8145 *** so that a non-GNU linker is found, and then restart.
8146
8147 _LT_EOF
8148 fi
8149 ;;
8150
8151 amigaos*)
8152 case $host_cpu in
8153 powerpc)
8154 # see comment about AmigaOS4 .so support
8155 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8156 archive_expsym_cmds=''
8157 ;;
8158 m68k)
8159 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)'
8160 hardcode_libdir_flag_spec='-L$libdir'
8161 hardcode_minus_L=yes
8162 ;;
8163 esac
8164 ;;
8165
8166 beos*)
8167 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8168 allow_undefined_flag=unsupported
8169 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8170 # support --undefined. This deserves some investigation. FIXME
8171 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8172 else
8173 ld_shlibs=no
8174 fi
8175 ;;
8176
8177 cygwin* | mingw* | pw32* | cegcc*)
8178 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8179 # as there is no search path for DLLs.
8180 hardcode_libdir_flag_spec='-L$libdir'
8181 allow_undefined_flag=unsupported
8182 always_export_symbols=no
8183 enable_shared_with_static_runtimes=yes
8184 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8185
8186 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8187 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8188 # If the export-symbols file already is a .def file (1st line
8189 # is EXPORTS), use it as is; otherwise, prepend...
8190 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8191 cp $export_symbols $output_objdir/$soname.def;
8192 else
8193 echo EXPORTS > $output_objdir/$soname.def;
8194 cat $export_symbols >> $output_objdir/$soname.def;
8195 fi~
8196 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8197 else
8198 ld_shlibs=no
8199 fi
8200 ;;
8201
8202 interix[3-9]*)
8203 hardcode_direct=no
8204 hardcode_shlibpath_var=no
8205 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8206 export_dynamic_flag_spec='${wl}-E'
8207 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8208 # Instead, shared libraries are loaded at an image base (0x10000000 by
8209 # default) and relocated if they conflict, which is a slow very memory
8210 # consuming and fragmenting process. To avoid this, we pick a random,
8211 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8212 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8213 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8214 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'
8215 ;;
8216
8217 gnu* | linux* | tpf* | k*bsd*-gnu)
8218 tmp_diet=no
8219 if test "$host_os" = linux-dietlibc; then
8220 case $cc_basename in
8221 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8222 esac
8223 fi
8224 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8225 && test "$tmp_diet" = no
8226 then
8227 tmp_addflag=
8228 tmp_sharedflag='-shared'
8229 case $cc_basename,$host_cpu in
8230 pgcc*) # Portland Group C compiler
8231 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'
8232 tmp_addflag=' $pic_flag'
8233 ;;
8234 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8235 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'
8236 tmp_addflag=' $pic_flag -Mnomain' ;;
8237 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8238 tmp_addflag=' -i_dynamic' ;;
8239 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8240 tmp_addflag=' -i_dynamic -nofor_main' ;;
8241 ifc* | ifort*) # Intel Fortran compiler
8242 tmp_addflag=' -nofor_main' ;;
8243 lf95*) # Lahey Fortran 8.1
8244 whole_archive_flag_spec=
8245 tmp_sharedflag='--shared' ;;
8246 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8247 tmp_sharedflag='-qmkshrobj'
8248 tmp_addflag= ;;
8249 esac
8250 case `$CC -V 2>&1 | sed 5q` in
8251 *Sun\ C*) # Sun C 5.9
8252 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'
8253 compiler_needs_object=yes
8254 tmp_sharedflag='-G' ;;
8255 *Sun\ F*) # Sun Fortran 8.3
8256 tmp_sharedflag='-G' ;;
8257 esac
8258 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8259
8260 if test "x$supports_anon_versioning" = xyes; then
8261 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8262 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8263 echo "local: *; };" >> $output_objdir/$libname.ver~
8264 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8265 fi
8266
8267 case $cc_basename in
8268 xlf*)
8269 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8270 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8271 hardcode_libdir_flag_spec=
8272 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8273 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8274 if test "x$supports_anon_versioning" = xyes; then
8275 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8276 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8277 echo "local: *; };" >> $output_objdir/$libname.ver~
8278 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8279 fi
8280 ;;
8281 esac
8282 else
8283 ld_shlibs=no
8284 fi
8285 ;;
8286
8287 netbsd*)
8288 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8289 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8290 wlarc=
8291 else
8292 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8293 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8294 fi
8295 ;;
8296
8297 solaris*)
8298 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8299 ld_shlibs=no
8300 cat <<_LT_EOF 1>&2
8301
8302 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8303 *** create shared libraries on Solaris systems. Therefore, libtool
8304 *** is disabling shared libraries support. We urge you to upgrade GNU
8305 *** binutils to release 2.9.1 or newer. Another option is to modify
8306 *** your PATH or compiler configuration so that the native linker is
8307 *** used, and then restart.
8308
8309 _LT_EOF
8310 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8311 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8312 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8313 else
8314 ld_shlibs=no
8315 fi
8316 ;;
8317
8318 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8319 case `$LD -v 2>&1` in
8320 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8321 ld_shlibs=no
8322 cat <<_LT_EOF 1>&2
8323
8324 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8325 *** reliably create shared libraries on SCO systems. Therefore, libtool
8326 *** is disabling shared libraries support. We urge you to upgrade GNU
8327 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8328 *** your PATH or compiler configuration so that the native linker is
8329 *** used, and then restart.
8330
8331 _LT_EOF
8332 ;;
8333 *)
8334 # For security reasons, it is highly recommended that you always
8335 # use absolute paths for naming shared libraries, and exclude the
8336 # DT_RUNPATH tag from executables and libraries. But doing so
8337 # requires that you compile everything twice, which is a pain.
8338 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8339 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8340 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8341 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8342 else
8343 ld_shlibs=no
8344 fi
8345 ;;
8346 esac
8347 ;;
8348
8349 sunos4*)
8350 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8351 wlarc=
8352 hardcode_direct=yes
8353 hardcode_shlibpath_var=no
8354 ;;
8355
8356 *)
8357 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8358 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8359 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8360 else
8361 ld_shlibs=no
8362 fi
8363 ;;
8364 esac
8365
8366 if test "$ld_shlibs" = no; then
8367 runpath_var=
8368 hardcode_libdir_flag_spec=
8369 export_dynamic_flag_spec=
8370 whole_archive_flag_spec=
8371 fi
8372 else
8373 # PORTME fill in a description of your system's linker (not GNU ld)
8374 case $host_os in
8375 aix3*)
8376 allow_undefined_flag=unsupported
8377 always_export_symbols=yes
8378 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'
8379 # Note: this linker hardcodes the directories in LIBPATH if there
8380 # are no directories specified by -L.
8381 hardcode_minus_L=yes
8382 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8383 # Neither direct hardcoding nor static linking is supported with a
8384 # broken collect2.
8385 hardcode_direct=unsupported
8386 fi
8387 ;;
8388
8389 aix[4-9]*)
8390 if test "$host_cpu" = ia64; then
8391 # On IA64, the linker does run time linking by default, so we don't
8392 # have to do anything special.
8393 aix_use_runtimelinking=no
8394 exp_sym_flag='-Bexport'
8395 no_entry_flag=""
8396 else
8397 # If we're using GNU nm, then we don't want the "-C" option.
8398 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8399 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8400 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'
8401 else
8402 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'
8403 fi
8404 aix_use_runtimelinking=no
8405
8406 # Test if we are trying to use run time linking or normal
8407 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8408 # need to do runtime linking.
8409 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8410 for ld_flag in $LDFLAGS; do
8411 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8412 aix_use_runtimelinking=yes
8413 break
8414 fi
8415 done
8416 ;;
8417 esac
8418
8419 exp_sym_flag='-bexport'
8420 no_entry_flag='-bnoentry'
8421 fi
8422
8423 # When large executables or shared objects are built, AIX ld can
8424 # have problems creating the table of contents. If linking a library
8425 # or program results in "error TOC overflow" add -mminimal-toc to
8426 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8427 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8428
8429 archive_cmds=''
8430 hardcode_direct=yes
8431 hardcode_direct_absolute=yes
8432 hardcode_libdir_separator=':'
8433 link_all_deplibs=yes
8434 file_list_spec='${wl}-f,'
8435
8436 if test "$GCC" = yes; then
8437 case $host_os in aix4.[012]|aix4.[012].*)
8438 # We only want to do this on AIX 4.2 and lower, the check
8439 # below for broken collect2 doesn't work under 4.3+
8440 collect2name=`${CC} -print-prog-name=collect2`
8441 if test -f "$collect2name" &&
8442 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8443 then
8444 # We have reworked collect2
8445 :
8446 else
8447 # We have old collect2
8448 hardcode_direct=unsupported
8449 # It fails to find uninstalled libraries when the uninstalled
8450 # path is not listed in the libpath. Setting hardcode_minus_L
8451 # to unsupported forces relinking
8452 hardcode_minus_L=yes
8453 hardcode_libdir_flag_spec='-L$libdir'
8454 hardcode_libdir_separator=
8455 fi
8456 ;;
8457 esac
8458 shared_flag='-shared'
8459 if test "$aix_use_runtimelinking" = yes; then
8460 shared_flag="$shared_flag "'${wl}-G'
8461 fi
8462 else
8463 # not using gcc
8464 if test "$host_cpu" = ia64; then
8465 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8466 # chokes on -Wl,-G. The following line is correct:
8467 shared_flag='-G'
8468 else
8469 if test "$aix_use_runtimelinking" = yes; then
8470 shared_flag='${wl}-G'
8471 else
8472 shared_flag='${wl}-bM:SRE'
8473 fi
8474 fi
8475 fi
8476
8477 export_dynamic_flag_spec='${wl}-bexpall'
8478 # It seems that -bexpall does not export symbols beginning with
8479 # underscore (_), so it is better to generate a list of symbols to export.
8480 always_export_symbols=yes
8481 if test "$aix_use_runtimelinking" = yes; then
8482 # Warning - without using the other runtime loading flags (-brtl),
8483 # -berok will link without error, but may produce a broken library.
8484 allow_undefined_flag='-berok'
8485 # Determine the default libpath from the value encoded in an
8486 # empty executable.
8487 cat >conftest.$ac_ext <<_ACEOF
8488 /* confdefs.h. */
8489 _ACEOF
8490 cat confdefs.h >>conftest.$ac_ext
8491 cat >>conftest.$ac_ext <<_ACEOF
8492 /* end confdefs.h. */
8493
8494 int
8495 main ()
8496 {
8497
8498 ;
8499 return 0;
8500 }
8501 _ACEOF
8502 rm -f conftest.$ac_objext conftest$ac_exeext
8503 if { (ac_try="$ac_link"
8504 case "(($ac_try" in
8505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8506 *) ac_try_echo=$ac_try;;
8507 esac
8508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8509 $as_echo "$ac_try_echo") >&5
8510 (eval "$ac_link") 2>conftest.er1
8511 ac_status=$?
8512 grep -v '^ *+' conftest.er1 >conftest.err
8513 rm -f conftest.er1
8514 cat conftest.err >&5
8515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); } && {
8517 test -z "$ac_c_werror_flag" ||
8518 test ! -s conftest.err
8519 } && test -s conftest$ac_exeext && {
8520 test "$cross_compiling" = yes ||
8521 $as_test_x conftest$ac_exeext
8522 }; then
8523
8524 lt_aix_libpath_sed='
8525 /Import File Strings/,/^$/ {
8526 /^0/ {
8527 s/^0 *\(.*\)$/\1/
8528 p
8529 }
8530 }'
8531 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8532 # Check for a 64-bit object if we didn't find anything.
8533 if test -z "$aix_libpath"; then
8534 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8535 fi
8536 else
8537 $as_echo "$as_me: failed program was:" >&5
8538 sed 's/^/| /' conftest.$ac_ext >&5
8539
8540
8541 fi
8542
8543 rm -rf conftest.dSYM
8544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8545 conftest$ac_exeext conftest.$ac_ext
8546 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8547
8548 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8549 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"
8550 else
8551 if test "$host_cpu" = ia64; then
8552 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8553 allow_undefined_flag="-z nodefs"
8554 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"
8555 else
8556 # Determine the default libpath from the value encoded in an
8557 # empty executable.
8558 cat >conftest.$ac_ext <<_ACEOF
8559 /* confdefs.h. */
8560 _ACEOF
8561 cat confdefs.h >>conftest.$ac_ext
8562 cat >>conftest.$ac_ext <<_ACEOF
8563 /* end confdefs.h. */
8564
8565 int
8566 main ()
8567 {
8568
8569 ;
8570 return 0;
8571 }
8572 _ACEOF
8573 rm -f conftest.$ac_objext conftest$ac_exeext
8574 if { (ac_try="$ac_link"
8575 case "(($ac_try" in
8576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8577 *) ac_try_echo=$ac_try;;
8578 esac
8579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8580 $as_echo "$ac_try_echo") >&5
8581 (eval "$ac_link") 2>conftest.er1
8582 ac_status=$?
8583 grep -v '^ *+' conftest.er1 >conftest.err
8584 rm -f conftest.er1
8585 cat conftest.err >&5
8586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); } && {
8588 test -z "$ac_c_werror_flag" ||
8589 test ! -s conftest.err
8590 } && test -s conftest$ac_exeext && {
8591 test "$cross_compiling" = yes ||
8592 $as_test_x conftest$ac_exeext
8593 }; then
8594
8595 lt_aix_libpath_sed='
8596 /Import File Strings/,/^$/ {
8597 /^0/ {
8598 s/^0 *\(.*\)$/\1/
8599 p
8600 }
8601 }'
8602 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8603 # Check for a 64-bit object if we didn't find anything.
8604 if test -z "$aix_libpath"; then
8605 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8606 fi
8607 else
8608 $as_echo "$as_me: failed program was:" >&5
8609 sed 's/^/| /' conftest.$ac_ext >&5
8610
8611
8612 fi
8613
8614 rm -rf conftest.dSYM
8615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8616 conftest$ac_exeext conftest.$ac_ext
8617 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8618
8619 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8620 # Warning - without using the other run time loading flags,
8621 # -berok will link without error, but may produce a broken library.
8622 no_undefined_flag=' ${wl}-bernotok'
8623 allow_undefined_flag=' ${wl}-berok'
8624 # Exported symbols can be pulled into shared objects from archives
8625 whole_archive_flag_spec='$convenience'
8626 archive_cmds_need_lc=yes
8627 # This is similar to how AIX traditionally builds its shared libraries.
8628 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'
8629 fi
8630 fi
8631 ;;
8632
8633 amigaos*)
8634 case $host_cpu in
8635 powerpc)
8636 # see comment about AmigaOS4 .so support
8637 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8638 archive_expsym_cmds=''
8639 ;;
8640 m68k)
8641 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)'
8642 hardcode_libdir_flag_spec='-L$libdir'
8643 hardcode_minus_L=yes
8644 ;;
8645 esac
8646 ;;
8647
8648 bsdi[45]*)
8649 export_dynamic_flag_spec=-rdynamic
8650 ;;
8651
8652 cygwin* | mingw* | pw32* | cegcc*)
8653 # When not using gcc, we currently assume that we are using
8654 # Microsoft Visual C++.
8655 # hardcode_libdir_flag_spec is actually meaningless, as there is
8656 # no search path for DLLs.
8657 hardcode_libdir_flag_spec=' '
8658 allow_undefined_flag=unsupported
8659 # Tell ltmain to make .lib files, not .a files.
8660 libext=lib
8661 # Tell ltmain to make .dll files, not .so files.
8662 shrext_cmds=".dll"
8663 # FIXME: Setting linknames here is a bad hack.
8664 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8665 # The linker will automatically build a .lib file if we build a DLL.
8666 old_archive_from_new_cmds='true'
8667 # FIXME: Should let the user specify the lib program.
8668 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8669 fix_srcfile_path='`cygpath -w "$srcfile"`'
8670 enable_shared_with_static_runtimes=yes
8671 ;;
8672
8673 darwin* | rhapsody*)
8674
8675
8676 archive_cmds_need_lc=no
8677 hardcode_direct=no
8678 hardcode_automatic=yes
8679 hardcode_shlibpath_var=unsupported
8680 whole_archive_flag_spec=''
8681 link_all_deplibs=yes
8682 allow_undefined_flag="$_lt_dar_allow_undefined"
8683 case $cc_basename in
8684 ifort*) _lt_dar_can_shared=yes ;;
8685 *) _lt_dar_can_shared=$GCC ;;
8686 esac
8687 if test "$_lt_dar_can_shared" = "yes"; then
8688 output_verbose_link_cmd=echo
8689 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8690 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8691 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}"
8692 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}"
8693
8694 else
8695 ld_shlibs=no
8696 fi
8697
8698 ;;
8699
8700 dgux*)
8701 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8702 hardcode_libdir_flag_spec='-L$libdir'
8703 hardcode_shlibpath_var=no
8704 ;;
8705
8706 freebsd1*)
8707 ld_shlibs=no
8708 ;;
8709
8710 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8711 # support. Future versions do this automatically, but an explicit c++rt0.o
8712 # does not break anything, and helps significantly (at the cost of a little
8713 # extra space).
8714 freebsd2.2*)
8715 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8716 hardcode_libdir_flag_spec='-R$libdir'
8717 hardcode_direct=yes
8718 hardcode_shlibpath_var=no
8719 ;;
8720
8721 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8722 freebsd2*)
8723 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8724 hardcode_direct=yes
8725 hardcode_minus_L=yes
8726 hardcode_shlibpath_var=no
8727 ;;
8728
8729 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8730 freebsd* | dragonfly*)
8731 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8732 hardcode_libdir_flag_spec='-R$libdir'
8733 hardcode_direct=yes
8734 hardcode_shlibpath_var=no
8735 ;;
8736
8737 hpux9*)
8738 if test "$GCC" = yes; then
8739 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'
8740 else
8741 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'
8742 fi
8743 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8744 hardcode_libdir_separator=:
8745 hardcode_direct=yes
8746
8747 # hardcode_minus_L: Not really in the search PATH,
8748 # but as the default location of the library.
8749 hardcode_minus_L=yes
8750 export_dynamic_flag_spec='${wl}-E'
8751 ;;
8752
8753 hpux10*)
8754 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8755 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8756 else
8757 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8758 fi
8759 if test "$with_gnu_ld" = no; then
8760 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8761 hardcode_libdir_flag_spec_ld='+b $libdir'
8762 hardcode_libdir_separator=:
8763 hardcode_direct=yes
8764 hardcode_direct_absolute=yes
8765 export_dynamic_flag_spec='${wl}-E'
8766 # hardcode_minus_L: Not really in the search PATH,
8767 # but as the default location of the library.
8768 hardcode_minus_L=yes
8769 fi
8770 ;;
8771
8772 hpux11*)
8773 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8774 case $host_cpu in
8775 hppa*64*)
8776 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8777 ;;
8778 ia64*)
8779 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8780 ;;
8781 *)
8782 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8783 ;;
8784 esac
8785 else
8786 case $host_cpu in
8787 hppa*64*)
8788 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8789 ;;
8790 ia64*)
8791 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8792 ;;
8793 *)
8794 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8795 ;;
8796 esac
8797 fi
8798 if test "$with_gnu_ld" = no; then
8799 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8800 hardcode_libdir_separator=:
8801
8802 case $host_cpu in
8803 hppa*64*|ia64*)
8804 hardcode_direct=no
8805 hardcode_shlibpath_var=no
8806 ;;
8807 *)
8808 hardcode_direct=yes
8809 hardcode_direct_absolute=yes
8810 export_dynamic_flag_spec='${wl}-E'
8811
8812 # hardcode_minus_L: Not really in the search PATH,
8813 # but as the default location of the library.
8814 hardcode_minus_L=yes
8815 ;;
8816 esac
8817 fi
8818 ;;
8819
8820 irix5* | irix6* | nonstopux*)
8821 if test "$GCC" = yes; then
8822 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'
8823 # Try to use the -exported_symbol ld option, if it does not
8824 # work, assume that -exports_file does not work either and
8825 # implicitly export all symbols.
8826 save_LDFLAGS="$LDFLAGS"
8827 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8828 cat >conftest.$ac_ext <<_ACEOF
8829 int foo(void) {}
8830 _ACEOF
8831 rm -f conftest.$ac_objext conftest$ac_exeext
8832 if { (ac_try="$ac_link"
8833 case "(($ac_try" in
8834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8835 *) ac_try_echo=$ac_try;;
8836 esac
8837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8838 $as_echo "$ac_try_echo") >&5
8839 (eval "$ac_link") 2>conftest.er1
8840 ac_status=$?
8841 grep -v '^ *+' conftest.er1 >conftest.err
8842 rm -f conftest.er1
8843 cat conftest.err >&5
8844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); } && {
8846 test -z "$ac_c_werror_flag" ||
8847 test ! -s conftest.err
8848 } && test -s conftest$ac_exeext && {
8849 test "$cross_compiling" = yes ||
8850 $as_test_x conftest$ac_exeext
8851 }; then
8852 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'
8853
8854 else
8855 $as_echo "$as_me: failed program was:" >&5
8856 sed 's/^/| /' conftest.$ac_ext >&5
8857
8858
8859 fi
8860
8861 rm -rf conftest.dSYM
8862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8863 conftest$ac_exeext conftest.$ac_ext
8864 LDFLAGS="$save_LDFLAGS"
8865 else
8866 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'
8867 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'
8868 fi
8869 archive_cmds_need_lc='no'
8870 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8871 hardcode_libdir_separator=:
8872 inherit_rpath=yes
8873 link_all_deplibs=yes
8874 ;;
8875
8876 netbsd*)
8877 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8878 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8879 else
8880 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8881 fi
8882 hardcode_libdir_flag_spec='-R$libdir'
8883 hardcode_direct=yes
8884 hardcode_shlibpath_var=no
8885 ;;
8886
8887 newsos6)
8888 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8889 hardcode_direct=yes
8890 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8891 hardcode_libdir_separator=:
8892 hardcode_shlibpath_var=no
8893 ;;
8894
8895 *nto* | *qnx*)
8896 ;;
8897
8898 openbsd*)
8899 if test -f /usr/libexec/ld.so; then
8900 hardcode_direct=yes
8901 hardcode_shlibpath_var=no
8902 hardcode_direct_absolute=yes
8903 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8904 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8905 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8906 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8907 export_dynamic_flag_spec='${wl}-E'
8908 else
8909 case $host_os in
8910 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8911 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8912 hardcode_libdir_flag_spec='-R$libdir'
8913 ;;
8914 *)
8915 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8916 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8917 ;;
8918 esac
8919 fi
8920 else
8921 ld_shlibs=no
8922 fi
8923 ;;
8924
8925 os2*)
8926 hardcode_libdir_flag_spec='-L$libdir'
8927 hardcode_minus_L=yes
8928 allow_undefined_flag=unsupported
8929 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'
8930 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8931 ;;
8932
8933 osf3*)
8934 if test "$GCC" = yes; then
8935 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8936 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'
8937 else
8938 allow_undefined_flag=' -expect_unresolved \*'
8939 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'
8940 fi
8941 archive_cmds_need_lc='no'
8942 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8943 hardcode_libdir_separator=:
8944 ;;
8945
8946 osf4* | osf5*) # as osf3* with the addition of -msym flag
8947 if test "$GCC" = yes; then
8948 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8949 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'
8950 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8951 else
8952 allow_undefined_flag=' -expect_unresolved \*'
8953 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'
8954 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~
8955 $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'
8956
8957 # Both c and cxx compiler support -rpath directly
8958 hardcode_libdir_flag_spec='-rpath $libdir'
8959 fi
8960 archive_cmds_need_lc='no'
8961 hardcode_libdir_separator=:
8962 ;;
8963
8964 solaris*)
8965 no_undefined_flag=' -z defs'
8966 if test "$GCC" = yes; then
8967 wlarc='${wl}'
8968 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8969 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8970 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8971 else
8972 case `$CC -V 2>&1` in
8973 *"Compilers 5.0"*)
8974 wlarc=''
8975 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8976 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8977 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8978 ;;
8979 *)
8980 wlarc='${wl}'
8981 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8982 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8983 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8984 ;;
8985 esac
8986 fi
8987 hardcode_libdir_flag_spec='-R$libdir'
8988 hardcode_shlibpath_var=no
8989 case $host_os in
8990 solaris2.[0-5] | solaris2.[0-5].*) ;;
8991 *)
8992 # The compiler driver will combine and reorder linker options,
8993 # but understands `-z linker_flag'. GCC discards it without `$wl',
8994 # but is careful enough not to reorder.
8995 # Supported since Solaris 2.6 (maybe 2.5.1?)
8996 if test "$GCC" = yes; then
8997 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8998 else
8999 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9000 fi
9001 ;;
9002 esac
9003 link_all_deplibs=yes
9004 ;;
9005
9006 sunos4*)
9007 if test "x$host_vendor" = xsequent; then
9008 # Use $CC to link under sequent, because it throws in some extra .o
9009 # files that make .init and .fini sections work.
9010 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9011 else
9012 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9013 fi
9014 hardcode_libdir_flag_spec='-L$libdir'
9015 hardcode_direct=yes
9016 hardcode_minus_L=yes
9017 hardcode_shlibpath_var=no
9018 ;;
9019
9020 sysv4)
9021 case $host_vendor in
9022 sni)
9023 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9024 hardcode_direct=yes # is this really true???
9025 ;;
9026 siemens)
9027 ## LD is ld it makes a PLAMLIB
9028 ## CC just makes a GrossModule.
9029 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9030 reload_cmds='$CC -r -o $output$reload_objs'
9031 hardcode_direct=no
9032 ;;
9033 motorola)
9034 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9035 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9036 ;;
9037 esac
9038 runpath_var='LD_RUN_PATH'
9039 hardcode_shlibpath_var=no
9040 ;;
9041
9042 sysv4.3*)
9043 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9044 hardcode_shlibpath_var=no
9045 export_dynamic_flag_spec='-Bexport'
9046 ;;
9047
9048 sysv4*MP*)
9049 if test -d /usr/nec; then
9050 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9051 hardcode_shlibpath_var=no
9052 runpath_var=LD_RUN_PATH
9053 hardcode_runpath_var=yes
9054 ld_shlibs=yes
9055 fi
9056 ;;
9057
9058 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9059 no_undefined_flag='${wl}-z,text'
9060 archive_cmds_need_lc=no
9061 hardcode_shlibpath_var=no
9062 runpath_var='LD_RUN_PATH'
9063
9064 if test "$GCC" = yes; then
9065 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9066 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9067 else
9068 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9069 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9070 fi
9071 ;;
9072
9073 sysv5* | sco3.2v5* | sco5v6*)
9074 # Note: We can NOT use -z defs as we might desire, because we do not
9075 # link with -lc, and that would cause any symbols used from libc to
9076 # always be unresolved, which means just about no library would
9077 # ever link correctly. If we're not using GNU ld we use -z text
9078 # though, which does catch some bad symbols but isn't as heavy-handed
9079 # as -z defs.
9080 no_undefined_flag='${wl}-z,text'
9081 allow_undefined_flag='${wl}-z,nodefs'
9082 archive_cmds_need_lc=no
9083 hardcode_shlibpath_var=no
9084 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9085 hardcode_libdir_separator=':'
9086 link_all_deplibs=yes
9087 export_dynamic_flag_spec='${wl}-Bexport'
9088 runpath_var='LD_RUN_PATH'
9089
9090 if test "$GCC" = yes; then
9091 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9092 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9093 else
9094 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9095 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9096 fi
9097 ;;
9098
9099 uts4*)
9100 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9101 hardcode_libdir_flag_spec='-L$libdir'
9102 hardcode_shlibpath_var=no
9103 ;;
9104
9105 *)
9106 ld_shlibs=no
9107 ;;
9108 esac
9109
9110 if test x$host_vendor = xsni; then
9111 case $host in
9112 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9113 export_dynamic_flag_spec='${wl}-Blargedynsym'
9114 ;;
9115 esac
9116 fi
9117 fi
9118
9119 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9120 $as_echo "$ld_shlibs" >&6; }
9121 test "$ld_shlibs" = no && can_build_shared=no
9122
9123 with_gnu_ld=$with_gnu_ld
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139 #
9140 # Do we need to explicitly link libc?
9141 #
9142 case "x$archive_cmds_need_lc" in
9143 x|xyes)
9144 # Assume -lc should be added
9145 archive_cmds_need_lc=yes
9146
9147 if test "$enable_shared" = yes && test "$GCC" = yes; then
9148 case $archive_cmds in
9149 *'~'*)
9150 # FIXME: we may have to deal with multi-command sequences.
9151 ;;
9152 '$CC '*)
9153 # Test whether the compiler implicitly links with -lc since on some
9154 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9155 # to ld, don't add -lc before -lgcc.
9156 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9157 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9158 $RM conftest*
9159 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9160
9161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9162 (eval $ac_compile) 2>&5
9163 ac_status=$?
9164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); } 2>conftest.err; then
9166 soname=conftest
9167 lib=conftest
9168 libobjs=conftest.$ac_objext
9169 deplibs=
9170 wl=$lt_prog_compiler_wl
9171 pic_flag=$lt_prog_compiler_pic
9172 compiler_flags=-v
9173 linker_flags=-v
9174 verstring=
9175 output_objdir=.
9176 libname=conftest
9177 lt_save_allow_undefined_flag=$allow_undefined_flag
9178 allow_undefined_flag=
9179 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9180 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9181 ac_status=$?
9182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183 (exit $ac_status); }
9184 then
9185 archive_cmds_need_lc=no
9186 else
9187 archive_cmds_need_lc=yes
9188 fi
9189 allow_undefined_flag=$lt_save_allow_undefined_flag
9190 else
9191 cat conftest.err 1>&5
9192 fi
9193 $RM conftest*
9194 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9195 $as_echo "$archive_cmds_need_lc" >&6; }
9196 ;;
9197 esac
9198 fi
9199 ;;
9200 esac
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9359 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9360
9361 if test "$GCC" = yes; then
9362 case $host_os in
9363 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9364 *) lt_awk_arg="/^libraries:/" ;;
9365 esac
9366 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9367 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9368 # if the path contains ";" then we assume it to be the separator
9369 # otherwise default to the standard path separator (i.e. ":") - it is
9370 # assumed that no part of a normal pathname contains ";" but that should
9371 # okay in the real world where ";" in dirpaths is itself problematic.
9372 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9373 else
9374 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9375 fi
9376 # Ok, now we have the path, separated by spaces, we can step through it
9377 # and add multilib dir if necessary.
9378 lt_tmp_lt_search_path_spec=
9379 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9380 for lt_sys_path in $lt_search_path_spec; do
9381 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9382 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9383 else
9384 test -d "$lt_sys_path" && \
9385 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9386 fi
9387 done
9388 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9389 BEGIN {RS=" "; FS="/|\n";} {
9390 lt_foo="";
9391 lt_count=0;
9392 for (lt_i = NF; lt_i > 0; lt_i--) {
9393 if ($lt_i != "" && $lt_i != ".") {
9394 if ($lt_i == "..") {
9395 lt_count++;
9396 } else {
9397 if (lt_count == 0) {
9398 lt_foo="/" $lt_i lt_foo;
9399 } else {
9400 lt_count--;
9401 }
9402 }
9403 }
9404 }
9405 if (lt_foo != "") { lt_freq[lt_foo]++; }
9406 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9407 }'`
9408 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9409 else
9410 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9411 fi
9412 library_names_spec=
9413 libname_spec='lib$name'
9414 soname_spec=
9415 shrext_cmds=".so"
9416 postinstall_cmds=
9417 postuninstall_cmds=
9418 finish_cmds=
9419 finish_eval=
9420 shlibpath_var=
9421 shlibpath_overrides_runpath=unknown
9422 version_type=none
9423 dynamic_linker="$host_os ld.so"
9424 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9425 need_lib_prefix=unknown
9426 hardcode_into_libs=no
9427
9428 # when you set need_version to no, make sure it does not cause -set_version
9429 # flags to be left without arguments
9430 need_version=unknown
9431
9432 case $host_os in
9433 aix3*)
9434 version_type=linux
9435 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9436 shlibpath_var=LIBPATH
9437
9438 # AIX 3 has no versioning support, so we append a major version to the name.
9439 soname_spec='${libname}${release}${shared_ext}$major'
9440 ;;
9441
9442 aix[4-9]*)
9443 version_type=linux
9444 need_lib_prefix=no
9445 need_version=no
9446 hardcode_into_libs=yes
9447 if test "$host_cpu" = ia64; then
9448 # AIX 5 supports IA64
9449 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9450 shlibpath_var=LD_LIBRARY_PATH
9451 else
9452 # With GCC up to 2.95.x, collect2 would create an import file
9453 # for dependence libraries. The import file would start with
9454 # the line `#! .'. This would cause the generated library to
9455 # depend on `.', always an invalid library. This was fixed in
9456 # development snapshots of GCC prior to 3.0.
9457 case $host_os in
9458 aix4 | aix4.[01] | aix4.[01].*)
9459 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9460 echo ' yes '
9461 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9462 :
9463 else
9464 can_build_shared=no
9465 fi
9466 ;;
9467 esac
9468 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9469 # soname into executable. Probably we can add versioning support to
9470 # collect2, so additional links can be useful in future.
9471 if test "$aix_use_runtimelinking" = yes; then
9472 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9473 # instead of lib<name>.a to let people know that these are not
9474 # typical AIX shared libraries.
9475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9476 else
9477 # We preserve .a as extension for shared libraries through AIX4.2
9478 # and later when we are not doing run time linking.
9479 library_names_spec='${libname}${release}.a $libname.a'
9480 soname_spec='${libname}${release}${shared_ext}$major'
9481 fi
9482 shlibpath_var=LIBPATH
9483 fi
9484 ;;
9485
9486 amigaos*)
9487 case $host_cpu in
9488 powerpc)
9489 # Since July 2007 AmigaOS4 officially supports .so libraries.
9490 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9492 ;;
9493 m68k)
9494 library_names_spec='$libname.ixlibrary $libname.a'
9495 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9496 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'
9497 ;;
9498 esac
9499 ;;
9500
9501 beos*)
9502 library_names_spec='${libname}${shared_ext}'
9503 dynamic_linker="$host_os ld.so"
9504 shlibpath_var=LIBRARY_PATH
9505 ;;
9506
9507 bsdi[45]*)
9508 version_type=linux
9509 need_version=no
9510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9511 soname_spec='${libname}${release}${shared_ext}$major'
9512 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9513 shlibpath_var=LD_LIBRARY_PATH
9514 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9515 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9516 # the default ld.so.conf also contains /usr/contrib/lib and
9517 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9518 # libtool to hard-code these into programs
9519 ;;
9520
9521 cygwin* | mingw* | pw32* | cegcc*)
9522 version_type=windows
9523 shrext_cmds=".dll"
9524 need_version=no
9525 need_lib_prefix=no
9526
9527 case $GCC,$host_os in
9528 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9529 library_names_spec='$libname.dll.a'
9530 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9531 postinstall_cmds='base_file=`basename \${file}`~
9532 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9533 dldir=$destdir/`dirname \$dlpath`~
9534 test -d \$dldir || mkdir -p \$dldir~
9535 $install_prog $dir/$dlname \$dldir/$dlname~
9536 chmod a+x \$dldir/$dlname~
9537 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9538 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9539 fi'
9540 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9541 dlpath=$dir/\$dldll~
9542 $RM \$dlpath'
9543 shlibpath_overrides_runpath=yes
9544
9545 case $host_os in
9546 cygwin*)
9547 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9548 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9549 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9550 ;;
9551 mingw* | cegcc*)
9552 # MinGW DLLs use traditional 'lib' prefix
9553 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9554 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9555 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9556 # It is most probably a Windows format PATH printed by
9557 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9558 # path with ; separators, and with drive letters. We can handle the
9559 # drive letters (cygwin fileutils understands them), so leave them,
9560 # especially as we might pass files found there to a mingw objdump,
9561 # which wouldn't understand a cygwinified path. Ahh.
9562 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9563 else
9564 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9565 fi
9566 ;;
9567 pw32*)
9568 # pw32 DLLs use 'pw' prefix rather than 'lib'
9569 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9570 ;;
9571 esac
9572 ;;
9573
9574 *)
9575 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9576 ;;
9577 esac
9578 dynamic_linker='Win32 ld.exe'
9579 # FIXME: first we should search . and the directory the executable is in
9580 shlibpath_var=PATH
9581 ;;
9582
9583 darwin* | rhapsody*)
9584 dynamic_linker="$host_os dyld"
9585 version_type=darwin
9586 need_lib_prefix=no
9587 need_version=no
9588 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9589 soname_spec='${libname}${release}${major}$shared_ext'
9590 shlibpath_overrides_runpath=yes
9591 shlibpath_var=DYLD_LIBRARY_PATH
9592 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9593
9594 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9595 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9596 ;;
9597
9598 dgux*)
9599 version_type=linux
9600 need_lib_prefix=no
9601 need_version=no
9602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9603 soname_spec='${libname}${release}${shared_ext}$major'
9604 shlibpath_var=LD_LIBRARY_PATH
9605 ;;
9606
9607 freebsd1*)
9608 dynamic_linker=no
9609 ;;
9610
9611 freebsd* | dragonfly*)
9612 # DragonFly does not have aout. When/if they implement a new
9613 # versioning mechanism, adjust this.
9614 if test -x /usr/bin/objformat; then
9615 objformat=`/usr/bin/objformat`
9616 else
9617 case $host_os in
9618 freebsd[123]*) objformat=aout ;;
9619 *) objformat=elf ;;
9620 esac
9621 fi
9622 version_type=freebsd-$objformat
9623 case $version_type in
9624 freebsd-elf*)
9625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9626 need_version=no
9627 need_lib_prefix=no
9628 ;;
9629 freebsd-*)
9630 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9631 need_version=yes
9632 ;;
9633 esac
9634 shlibpath_var=LD_LIBRARY_PATH
9635 case $host_os in
9636 freebsd2*)
9637 shlibpath_overrides_runpath=yes
9638 ;;
9639 freebsd3.[01]* | freebsdelf3.[01]*)
9640 shlibpath_overrides_runpath=yes
9641 hardcode_into_libs=yes
9642 ;;
9643 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9644 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9645 shlibpath_overrides_runpath=no
9646 hardcode_into_libs=yes
9647 ;;
9648 *) # from 4.6 on, and DragonFly
9649 shlibpath_overrides_runpath=yes
9650 hardcode_into_libs=yes
9651 ;;
9652 esac
9653 ;;
9654
9655 gnu*)
9656 version_type=linux
9657 need_lib_prefix=no
9658 need_version=no
9659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9660 soname_spec='${libname}${release}${shared_ext}$major'
9661 shlibpath_var=LD_LIBRARY_PATH
9662 hardcode_into_libs=yes
9663 ;;
9664
9665 hpux9* | hpux10* | hpux11*)
9666 # Give a soname corresponding to the major version so that dld.sl refuses to
9667 # link against other versions.
9668 version_type=sunos
9669 need_lib_prefix=no
9670 need_version=no
9671 case $host_cpu in
9672 ia64*)
9673 shrext_cmds='.so'
9674 hardcode_into_libs=yes
9675 dynamic_linker="$host_os dld.so"
9676 shlibpath_var=LD_LIBRARY_PATH
9677 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9679 soname_spec='${libname}${release}${shared_ext}$major'
9680 if test "X$HPUX_IA64_MODE" = X32; then
9681 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9682 else
9683 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9684 fi
9685 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9686 ;;
9687 hppa*64*)
9688 shrext_cmds='.sl'
9689 hardcode_into_libs=yes
9690 dynamic_linker="$host_os dld.sl"
9691 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9692 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9694 soname_spec='${libname}${release}${shared_ext}$major'
9695 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9696 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9697 ;;
9698 *)
9699 shrext_cmds='.sl'
9700 dynamic_linker="$host_os dld.sl"
9701 shlibpath_var=SHLIB_PATH
9702 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9704 soname_spec='${libname}${release}${shared_ext}$major'
9705 ;;
9706 esac
9707 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9708 postinstall_cmds='chmod 555 $lib'
9709 ;;
9710
9711 interix[3-9]*)
9712 version_type=linux
9713 need_lib_prefix=no
9714 need_version=no
9715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9716 soname_spec='${libname}${release}${shared_ext}$major'
9717 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9718 shlibpath_var=LD_LIBRARY_PATH
9719 shlibpath_overrides_runpath=no
9720 hardcode_into_libs=yes
9721 ;;
9722
9723 irix5* | irix6* | nonstopux*)
9724 case $host_os in
9725 nonstopux*) version_type=nonstopux ;;
9726 *)
9727 if test "$lt_cv_prog_gnu_ld" = yes; then
9728 version_type=linux
9729 else
9730 version_type=irix
9731 fi ;;
9732 esac
9733 need_lib_prefix=no
9734 need_version=no
9735 soname_spec='${libname}${release}${shared_ext}$major'
9736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9737 case $host_os in
9738 irix5* | nonstopux*)
9739 libsuff= shlibsuff=
9740 ;;
9741 *)
9742 case $LD in # libtool.m4 will add one of these switches to LD
9743 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9744 libsuff= shlibsuff= libmagic=32-bit;;
9745 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9746 libsuff=32 shlibsuff=N32 libmagic=N32;;
9747 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9748 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9749 *) libsuff= shlibsuff= libmagic=never-match;;
9750 esac
9751 ;;
9752 esac
9753 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9754 shlibpath_overrides_runpath=no
9755 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9756 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9757 hardcode_into_libs=yes
9758 ;;
9759
9760 # No shared lib support for Linux oldld, aout, or coff.
9761 linux*oldld* | linux*aout* | linux*coff*)
9762 dynamic_linker=no
9763 ;;
9764
9765 # This must be Linux ELF.
9766 linux* | k*bsd*-gnu)
9767 version_type=linux
9768 need_lib_prefix=no
9769 need_version=no
9770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9771 soname_spec='${libname}${release}${shared_ext}$major'
9772 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9773 shlibpath_var=LD_LIBRARY_PATH
9774 shlibpath_overrides_runpath=no
9775 # Some binutils ld are patched to set DT_RUNPATH
9776 save_LDFLAGS=$LDFLAGS
9777 save_libdir=$libdir
9778 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9779 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9780 cat >conftest.$ac_ext <<_ACEOF
9781 /* confdefs.h. */
9782 _ACEOF
9783 cat confdefs.h >>conftest.$ac_ext
9784 cat >>conftest.$ac_ext <<_ACEOF
9785 /* end confdefs.h. */
9786
9787 int
9788 main ()
9789 {
9790
9791 ;
9792 return 0;
9793 }
9794 _ACEOF
9795 rm -f conftest.$ac_objext conftest$ac_exeext
9796 if { (ac_try="$ac_link"
9797 case "(($ac_try" in
9798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9799 *) ac_try_echo=$ac_try;;
9800 esac
9801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9802 $as_echo "$ac_try_echo") >&5
9803 (eval "$ac_link") 2>conftest.er1
9804 ac_status=$?
9805 grep -v '^ *+' conftest.er1 >conftest.err
9806 rm -f conftest.er1
9807 cat conftest.err >&5
9808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); } && {
9810 test -z "$ac_c_werror_flag" ||
9811 test ! -s conftest.err
9812 } && test -s conftest$ac_exeext && {
9813 test "$cross_compiling" = yes ||
9814 $as_test_x conftest$ac_exeext
9815 }; then
9816 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9817 shlibpath_overrides_runpath=yes
9818 fi
9819
9820 else
9821 $as_echo "$as_me: failed program was:" >&5
9822 sed 's/^/| /' conftest.$ac_ext >&5
9823
9824
9825 fi
9826
9827 rm -rf conftest.dSYM
9828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9829 conftest$ac_exeext conftest.$ac_ext
9830 LDFLAGS=$save_LDFLAGS
9831 libdir=$save_libdir
9832
9833 # This implies no fast_install, which is unacceptable.
9834 # Some rework will be needed to allow for fast_install
9835 # before this can be enabled.
9836 hardcode_into_libs=yes
9837
9838 # Add ABI-specific directories to the system library path.
9839 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
9840
9841 # Append ld.so.conf contents to the search path
9842 if test -f /etc/ld.so.conf; then
9843 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' ' '`
9844 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9845 fi
9846
9847 # We used to test for /lib/ld.so.1 and disable shared libraries on
9848 # powerpc, because MkLinux only supported shared libraries with the
9849 # GNU dynamic linker. Since this was broken with cross compilers,
9850 # most powerpc-linux boxes support dynamic linking these days and
9851 # people can always --disable-shared, the test was removed, and we
9852 # assume the GNU/Linux dynamic linker is in use.
9853 dynamic_linker='GNU/Linux ld.so'
9854 ;;
9855
9856 netbsd*)
9857 version_type=sunos
9858 need_lib_prefix=no
9859 need_version=no
9860 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9862 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9863 dynamic_linker='NetBSD (a.out) ld.so'
9864 else
9865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9866 soname_spec='${libname}${release}${shared_ext}$major'
9867 dynamic_linker='NetBSD ld.elf_so'
9868 fi
9869 shlibpath_var=LD_LIBRARY_PATH
9870 shlibpath_overrides_runpath=yes
9871 hardcode_into_libs=yes
9872 ;;
9873
9874 newsos6)
9875 version_type=linux
9876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9877 shlibpath_var=LD_LIBRARY_PATH
9878 shlibpath_overrides_runpath=yes
9879 ;;
9880
9881 *nto* | *qnx*)
9882 version_type=qnx
9883 need_lib_prefix=no
9884 need_version=no
9885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9886 soname_spec='${libname}${release}${shared_ext}$major'
9887 shlibpath_var=LD_LIBRARY_PATH
9888 shlibpath_overrides_runpath=no
9889 hardcode_into_libs=yes
9890 dynamic_linker='ldqnx.so'
9891 ;;
9892
9893 openbsd*)
9894 version_type=sunos
9895 sys_lib_dlsearch_path_spec="/usr/lib"
9896 need_lib_prefix=no
9897 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9898 case $host_os in
9899 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9900 *) need_version=no ;;
9901 esac
9902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9903 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9904 shlibpath_var=LD_LIBRARY_PATH
9905 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9906 case $host_os in
9907 openbsd2.[89] | openbsd2.[89].*)
9908 shlibpath_overrides_runpath=no
9909 ;;
9910 *)
9911 shlibpath_overrides_runpath=yes
9912 ;;
9913 esac
9914 else
9915 shlibpath_overrides_runpath=yes
9916 fi
9917 ;;
9918
9919 os2*)
9920 libname_spec='$name'
9921 shrext_cmds=".dll"
9922 need_lib_prefix=no
9923 library_names_spec='$libname${shared_ext} $libname.a'
9924 dynamic_linker='OS/2 ld.exe'
9925 shlibpath_var=LIBPATH
9926 ;;
9927
9928 osf3* | osf4* | osf5*)
9929 version_type=osf
9930 need_lib_prefix=no
9931 need_version=no
9932 soname_spec='${libname}${release}${shared_ext}$major'
9933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9934 shlibpath_var=LD_LIBRARY_PATH
9935 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9936 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9937 ;;
9938
9939 rdos*)
9940 dynamic_linker=no
9941 ;;
9942
9943 solaris*)
9944 version_type=linux
9945 need_lib_prefix=no
9946 need_version=no
9947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9948 soname_spec='${libname}${release}${shared_ext}$major'
9949 shlibpath_var=LD_LIBRARY_PATH
9950 shlibpath_overrides_runpath=yes
9951 hardcode_into_libs=yes
9952 # ldd complains unless libraries are executable
9953 postinstall_cmds='chmod +x $lib'
9954 ;;
9955
9956 sunos4*)
9957 version_type=sunos
9958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9959 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9960 shlibpath_var=LD_LIBRARY_PATH
9961 shlibpath_overrides_runpath=yes
9962 if test "$with_gnu_ld" = yes; then
9963 need_lib_prefix=no
9964 fi
9965 need_version=yes
9966 ;;
9967
9968 sysv4 | sysv4.3*)
9969 version_type=linux
9970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9971 soname_spec='${libname}${release}${shared_ext}$major'
9972 shlibpath_var=LD_LIBRARY_PATH
9973 case $host_vendor in
9974 sni)
9975 shlibpath_overrides_runpath=no
9976 need_lib_prefix=no
9977 runpath_var=LD_RUN_PATH
9978 ;;
9979 siemens)
9980 need_lib_prefix=no
9981 ;;
9982 motorola)
9983 need_lib_prefix=no
9984 need_version=no
9985 shlibpath_overrides_runpath=no
9986 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9987 ;;
9988 esac
9989 ;;
9990
9991 sysv4*MP*)
9992 if test -d /usr/nec ;then
9993 version_type=linux
9994 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9995 soname_spec='$libname${shared_ext}.$major'
9996 shlibpath_var=LD_LIBRARY_PATH
9997 fi
9998 ;;
9999
10000 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10001 version_type=freebsd-elf
10002 need_lib_prefix=no
10003 need_version=no
10004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10005 soname_spec='${libname}${release}${shared_ext}$major'
10006 shlibpath_var=LD_LIBRARY_PATH
10007 shlibpath_overrides_runpath=yes
10008 hardcode_into_libs=yes
10009 if test "$with_gnu_ld" = yes; then
10010 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10011 else
10012 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10013 case $host_os in
10014 sco3.2v5*)
10015 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10016 ;;
10017 esac
10018 fi
10019 sys_lib_dlsearch_path_spec='/usr/lib'
10020 ;;
10021
10022 tpf*)
10023 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10024 version_type=linux
10025 need_lib_prefix=no
10026 need_version=no
10027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10028 shlibpath_var=LD_LIBRARY_PATH
10029 shlibpath_overrides_runpath=no
10030 hardcode_into_libs=yes
10031 ;;
10032
10033 uts4*)
10034 version_type=linux
10035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10036 soname_spec='${libname}${release}${shared_ext}$major'
10037 shlibpath_var=LD_LIBRARY_PATH
10038 ;;
10039
10040 *)
10041 dynamic_linker=no
10042 ;;
10043 esac
10044 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10045 $as_echo "$dynamic_linker" >&6; }
10046 test "$dynamic_linker" = no && can_build_shared=no
10047
10048 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10049 if test "$GCC" = yes; then
10050 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10051 fi
10052
10053 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10054 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10055 fi
10056 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10057 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10058 fi
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10147 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10148 hardcode_action=
10149 if test -n "$hardcode_libdir_flag_spec" ||
10150 test -n "$runpath_var" ||
10151 test "X$hardcode_automatic" = "Xyes" ; then
10152
10153 # We can hardcode non-existent directories.
10154 if test "$hardcode_direct" != no &&
10155 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10156 # have to relink, otherwise we might link with an installed library
10157 # when we should be linking with a yet-to-be-installed one
10158 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10159 test "$hardcode_minus_L" != no; then
10160 # Linking always hardcodes the temporary library directory.
10161 hardcode_action=relink
10162 else
10163 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10164 hardcode_action=immediate
10165 fi
10166 else
10167 # We cannot hardcode anything, or else we can only hardcode existing
10168 # directories.
10169 hardcode_action=unsupported
10170 fi
10171 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10172 $as_echo "$hardcode_action" >&6; }
10173
10174 if test "$hardcode_action" = relink ||
10175 test "$inherit_rpath" = yes; then
10176 # Fast installation is not supported
10177 enable_fast_install=no
10178 elif test "$shlibpath_overrides_runpath" = yes ||
10179 test "$enable_shared" = no; then
10180 # Fast installation is not necessary
10181 enable_fast_install=needless
10182 fi
10183
10184
10185
10186
10187
10188
10189 if test "x$enable_dlopen" != xyes; then
10190 enable_dlopen=unknown
10191 enable_dlopen_self=unknown
10192 enable_dlopen_self_static=unknown
10193 else
10194 lt_cv_dlopen=no
10195 lt_cv_dlopen_libs=
10196
10197 case $host_os in
10198 beos*)
10199 lt_cv_dlopen="load_add_on"
10200 lt_cv_dlopen_libs=
10201 lt_cv_dlopen_self=yes
10202 ;;
10203
10204 mingw* | pw32* | cegcc*)
10205 lt_cv_dlopen="LoadLibrary"
10206 lt_cv_dlopen_libs=
10207 ;;
10208
10209 cygwin*)
10210 lt_cv_dlopen="dlopen"
10211 lt_cv_dlopen_libs=
10212 ;;
10213
10214 darwin*)
10215 # if libdl is installed we need to link against it
10216 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10217 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10218 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10219 $as_echo_n "(cached) " >&6
10220 else
10221 ac_check_lib_save_LIBS=$LIBS
10222 LIBS="-ldl $LIBS"
10223 cat >conftest.$ac_ext <<_ACEOF
10224 /* confdefs.h. */
10225 _ACEOF
10226 cat confdefs.h >>conftest.$ac_ext
10227 cat >>conftest.$ac_ext <<_ACEOF
10228 /* end confdefs.h. */
10229
10230 /* Override any GCC internal prototype to avoid an error.
10231 Use char because int might match the return type of a GCC
10232 builtin and then its argument prototype would still apply. */
10233 #ifdef __cplusplus
10234 extern "C"
10235 #endif
10236 char dlopen ();
10237 int
10238 main ()
10239 {
10240 return dlopen ();
10241 ;
10242 return 0;
10243 }
10244 _ACEOF
10245 rm -f conftest.$ac_objext conftest$ac_exeext
10246 if { (ac_try="$ac_link"
10247 case "(($ac_try" in
10248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10249 *) ac_try_echo=$ac_try;;
10250 esac
10251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10252 $as_echo "$ac_try_echo") >&5
10253 (eval "$ac_link") 2>conftest.er1
10254 ac_status=$?
10255 grep -v '^ *+' conftest.er1 >conftest.err
10256 rm -f conftest.er1
10257 cat conftest.err >&5
10258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); } && {
10260 test -z "$ac_c_werror_flag" ||
10261 test ! -s conftest.err
10262 } && test -s conftest$ac_exeext && {
10263 test "$cross_compiling" = yes ||
10264 $as_test_x conftest$ac_exeext
10265 }; then
10266 ac_cv_lib_dl_dlopen=yes
10267 else
10268 $as_echo "$as_me: failed program was:" >&5
10269 sed 's/^/| /' conftest.$ac_ext >&5
10270
10271 ac_cv_lib_dl_dlopen=no
10272 fi
10273
10274 rm -rf conftest.dSYM
10275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10276 conftest$ac_exeext conftest.$ac_ext
10277 LIBS=$ac_check_lib_save_LIBS
10278 fi
10279 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10280 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10281 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10282 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10283 else
10284
10285 lt_cv_dlopen="dyld"
10286 lt_cv_dlopen_libs=
10287 lt_cv_dlopen_self=yes
10288
10289 fi
10290
10291 ;;
10292
10293 *)
10294 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10295 $as_echo_n "checking for shl_load... " >&6; }
10296 if test "${ac_cv_func_shl_load+set}" = set; then
10297 $as_echo_n "(cached) " >&6
10298 else
10299 cat >conftest.$ac_ext <<_ACEOF
10300 /* confdefs.h. */
10301 _ACEOF
10302 cat confdefs.h >>conftest.$ac_ext
10303 cat >>conftest.$ac_ext <<_ACEOF
10304 /* end confdefs.h. */
10305 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10307 #define shl_load innocuous_shl_load
10308
10309 /* System header to define __stub macros and hopefully few prototypes,
10310 which can conflict with char shl_load (); below.
10311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10312 <limits.h> exists even on freestanding compilers. */
10313
10314 #ifdef __STDC__
10315 # include <limits.h>
10316 #else
10317 # include <assert.h>
10318 #endif
10319
10320 #undef shl_load
10321
10322 /* Override any GCC internal prototype to avoid an error.
10323 Use char because int might match the return type of a GCC
10324 builtin and then its argument prototype would still apply. */
10325 #ifdef __cplusplus
10326 extern "C"
10327 #endif
10328 char shl_load ();
10329 /* The GNU C library defines this for functions which it implements
10330 to always fail with ENOSYS. Some functions are actually named
10331 something starting with __ and the normal name is an alias. */
10332 #if defined __stub_shl_load || defined __stub___shl_load
10333 choke me
10334 #endif
10335
10336 int
10337 main ()
10338 {
10339 return shl_load ();
10340 ;
10341 return 0;
10342 }
10343 _ACEOF
10344 rm -f conftest.$ac_objext conftest$ac_exeext
10345 if { (ac_try="$ac_link"
10346 case "(($ac_try" in
10347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10348 *) ac_try_echo=$ac_try;;
10349 esac
10350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10351 $as_echo "$ac_try_echo") >&5
10352 (eval "$ac_link") 2>conftest.er1
10353 ac_status=$?
10354 grep -v '^ *+' conftest.er1 >conftest.err
10355 rm -f conftest.er1
10356 cat conftest.err >&5
10357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358 (exit $ac_status); } && {
10359 test -z "$ac_c_werror_flag" ||
10360 test ! -s conftest.err
10361 } && test -s conftest$ac_exeext && {
10362 test "$cross_compiling" = yes ||
10363 $as_test_x conftest$ac_exeext
10364 }; then
10365 ac_cv_func_shl_load=yes
10366 else
10367 $as_echo "$as_me: failed program was:" >&5
10368 sed 's/^/| /' conftest.$ac_ext >&5
10369
10370 ac_cv_func_shl_load=no
10371 fi
10372
10373 rm -rf conftest.dSYM
10374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10375 conftest$ac_exeext conftest.$ac_ext
10376 fi
10377 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10378 $as_echo "$ac_cv_func_shl_load" >&6; }
10379 if test "x$ac_cv_func_shl_load" = x""yes; then
10380 lt_cv_dlopen="shl_load"
10381 else
10382 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10383 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10384 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10385 $as_echo_n "(cached) " >&6
10386 else
10387 ac_check_lib_save_LIBS=$LIBS
10388 LIBS="-ldld $LIBS"
10389 cat >conftest.$ac_ext <<_ACEOF
10390 /* confdefs.h. */
10391 _ACEOF
10392 cat confdefs.h >>conftest.$ac_ext
10393 cat >>conftest.$ac_ext <<_ACEOF
10394 /* end confdefs.h. */
10395
10396 /* Override any GCC internal prototype to avoid an error.
10397 Use char because int might match the return type of a GCC
10398 builtin and then its argument prototype would still apply. */
10399 #ifdef __cplusplus
10400 extern "C"
10401 #endif
10402 char shl_load ();
10403 int
10404 main ()
10405 {
10406 return shl_load ();
10407 ;
10408 return 0;
10409 }
10410 _ACEOF
10411 rm -f conftest.$ac_objext conftest$ac_exeext
10412 if { (ac_try="$ac_link"
10413 case "(($ac_try" in
10414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10415 *) ac_try_echo=$ac_try;;
10416 esac
10417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10418 $as_echo "$ac_try_echo") >&5
10419 (eval "$ac_link") 2>conftest.er1
10420 ac_status=$?
10421 grep -v '^ *+' conftest.er1 >conftest.err
10422 rm -f conftest.er1
10423 cat conftest.err >&5
10424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425 (exit $ac_status); } && {
10426 test -z "$ac_c_werror_flag" ||
10427 test ! -s conftest.err
10428 } && test -s conftest$ac_exeext && {
10429 test "$cross_compiling" = yes ||
10430 $as_test_x conftest$ac_exeext
10431 }; then
10432 ac_cv_lib_dld_shl_load=yes
10433 else
10434 $as_echo "$as_me: failed program was:" >&5
10435 sed 's/^/| /' conftest.$ac_ext >&5
10436
10437 ac_cv_lib_dld_shl_load=no
10438 fi
10439
10440 rm -rf conftest.dSYM
10441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10442 conftest$ac_exeext conftest.$ac_ext
10443 LIBS=$ac_check_lib_save_LIBS
10444 fi
10445 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10446 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10447 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10448 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10449 else
10450 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10451 $as_echo_n "checking for dlopen... " >&6; }
10452 if test "${ac_cv_func_dlopen+set}" = set; then
10453 $as_echo_n "(cached) " >&6
10454 else
10455 cat >conftest.$ac_ext <<_ACEOF
10456 /* confdefs.h. */
10457 _ACEOF
10458 cat confdefs.h >>conftest.$ac_ext
10459 cat >>conftest.$ac_ext <<_ACEOF
10460 /* end confdefs.h. */
10461 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10463 #define dlopen innocuous_dlopen
10464
10465 /* System header to define __stub macros and hopefully few prototypes,
10466 which can conflict with char dlopen (); below.
10467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10468 <limits.h> exists even on freestanding compilers. */
10469
10470 #ifdef __STDC__
10471 # include <limits.h>
10472 #else
10473 # include <assert.h>
10474 #endif
10475
10476 #undef dlopen
10477
10478 /* Override any GCC internal prototype to avoid an error.
10479 Use char because int might match the return type of a GCC
10480 builtin and then its argument prototype would still apply. */
10481 #ifdef __cplusplus
10482 extern "C"
10483 #endif
10484 char dlopen ();
10485 /* The GNU C library defines this for functions which it implements
10486 to always fail with ENOSYS. Some functions are actually named
10487 something starting with __ and the normal name is an alias. */
10488 #if defined __stub_dlopen || defined __stub___dlopen
10489 choke me
10490 #endif
10491
10492 int
10493 main ()
10494 {
10495 return dlopen ();
10496 ;
10497 return 0;
10498 }
10499 _ACEOF
10500 rm -f conftest.$ac_objext conftest$ac_exeext
10501 if { (ac_try="$ac_link"
10502 case "(($ac_try" in
10503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10504 *) ac_try_echo=$ac_try;;
10505 esac
10506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10507 $as_echo "$ac_try_echo") >&5
10508 (eval "$ac_link") 2>conftest.er1
10509 ac_status=$?
10510 grep -v '^ *+' conftest.er1 >conftest.err
10511 rm -f conftest.er1
10512 cat conftest.err >&5
10513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); } && {
10515 test -z "$ac_c_werror_flag" ||
10516 test ! -s conftest.err
10517 } && test -s conftest$ac_exeext && {
10518 test "$cross_compiling" = yes ||
10519 $as_test_x conftest$ac_exeext
10520 }; then
10521 ac_cv_func_dlopen=yes
10522 else
10523 $as_echo "$as_me: failed program was:" >&5
10524 sed 's/^/| /' conftest.$ac_ext >&5
10525
10526 ac_cv_func_dlopen=no
10527 fi
10528
10529 rm -rf conftest.dSYM
10530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10531 conftest$ac_exeext conftest.$ac_ext
10532 fi
10533 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10534 $as_echo "$ac_cv_func_dlopen" >&6; }
10535 if test "x$ac_cv_func_dlopen" = x""yes; then
10536 lt_cv_dlopen="dlopen"
10537 else
10538 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10539 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10540 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10541 $as_echo_n "(cached) " >&6
10542 else
10543 ac_check_lib_save_LIBS=$LIBS
10544 LIBS="-ldl $LIBS"
10545 cat >conftest.$ac_ext <<_ACEOF
10546 /* confdefs.h. */
10547 _ACEOF
10548 cat confdefs.h >>conftest.$ac_ext
10549 cat >>conftest.$ac_ext <<_ACEOF
10550 /* end confdefs.h. */
10551
10552 /* Override any GCC internal prototype to avoid an error.
10553 Use char because int might match the return type of a GCC
10554 builtin and then its argument prototype would still apply. */
10555 #ifdef __cplusplus
10556 extern "C"
10557 #endif
10558 char dlopen ();
10559 int
10560 main ()
10561 {
10562 return dlopen ();
10563 ;
10564 return 0;
10565 }
10566 _ACEOF
10567 rm -f conftest.$ac_objext conftest$ac_exeext
10568 if { (ac_try="$ac_link"
10569 case "(($ac_try" in
10570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10571 *) ac_try_echo=$ac_try;;
10572 esac
10573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10574 $as_echo "$ac_try_echo") >&5
10575 (eval "$ac_link") 2>conftest.er1
10576 ac_status=$?
10577 grep -v '^ *+' conftest.er1 >conftest.err
10578 rm -f conftest.er1
10579 cat conftest.err >&5
10580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 (exit $ac_status); } && {
10582 test -z "$ac_c_werror_flag" ||
10583 test ! -s conftest.err
10584 } && test -s conftest$ac_exeext && {
10585 test "$cross_compiling" = yes ||
10586 $as_test_x conftest$ac_exeext
10587 }; then
10588 ac_cv_lib_dl_dlopen=yes
10589 else
10590 $as_echo "$as_me: failed program was:" >&5
10591 sed 's/^/| /' conftest.$ac_ext >&5
10592
10593 ac_cv_lib_dl_dlopen=no
10594 fi
10595
10596 rm -rf conftest.dSYM
10597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10598 conftest$ac_exeext conftest.$ac_ext
10599 LIBS=$ac_check_lib_save_LIBS
10600 fi
10601 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10602 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10603 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10604 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10605 else
10606 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10607 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10608 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10609 $as_echo_n "(cached) " >&6
10610 else
10611 ac_check_lib_save_LIBS=$LIBS
10612 LIBS="-lsvld $LIBS"
10613 cat >conftest.$ac_ext <<_ACEOF
10614 /* confdefs.h. */
10615 _ACEOF
10616 cat confdefs.h >>conftest.$ac_ext
10617 cat >>conftest.$ac_ext <<_ACEOF
10618 /* end confdefs.h. */
10619
10620 /* Override any GCC internal prototype to avoid an error.
10621 Use char because int might match the return type of a GCC
10622 builtin and then its argument prototype would still apply. */
10623 #ifdef __cplusplus
10624 extern "C"
10625 #endif
10626 char dlopen ();
10627 int
10628 main ()
10629 {
10630 return dlopen ();
10631 ;
10632 return 0;
10633 }
10634 _ACEOF
10635 rm -f conftest.$ac_objext conftest$ac_exeext
10636 if { (ac_try="$ac_link"
10637 case "(($ac_try" in
10638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10639 *) ac_try_echo=$ac_try;;
10640 esac
10641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10642 $as_echo "$ac_try_echo") >&5
10643 (eval "$ac_link") 2>conftest.er1
10644 ac_status=$?
10645 grep -v '^ *+' conftest.er1 >conftest.err
10646 rm -f conftest.er1
10647 cat conftest.err >&5
10648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); } && {
10650 test -z "$ac_c_werror_flag" ||
10651 test ! -s conftest.err
10652 } && test -s conftest$ac_exeext && {
10653 test "$cross_compiling" = yes ||
10654 $as_test_x conftest$ac_exeext
10655 }; then
10656 ac_cv_lib_svld_dlopen=yes
10657 else
10658 $as_echo "$as_me: failed program was:" >&5
10659 sed 's/^/| /' conftest.$ac_ext >&5
10660
10661 ac_cv_lib_svld_dlopen=no
10662 fi
10663
10664 rm -rf conftest.dSYM
10665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10666 conftest$ac_exeext conftest.$ac_ext
10667 LIBS=$ac_check_lib_save_LIBS
10668 fi
10669 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10670 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10671 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10672 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10673 else
10674 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10675 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10676 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10677 $as_echo_n "(cached) " >&6
10678 else
10679 ac_check_lib_save_LIBS=$LIBS
10680 LIBS="-ldld $LIBS"
10681 cat >conftest.$ac_ext <<_ACEOF
10682 /* confdefs.h. */
10683 _ACEOF
10684 cat confdefs.h >>conftest.$ac_ext
10685 cat >>conftest.$ac_ext <<_ACEOF
10686 /* end confdefs.h. */
10687
10688 /* Override any GCC internal prototype to avoid an error.
10689 Use char because int might match the return type of a GCC
10690 builtin and then its argument prototype would still apply. */
10691 #ifdef __cplusplus
10692 extern "C"
10693 #endif
10694 char dld_link ();
10695 int
10696 main ()
10697 {
10698 return dld_link ();
10699 ;
10700 return 0;
10701 }
10702 _ACEOF
10703 rm -f conftest.$ac_objext conftest$ac_exeext
10704 if { (ac_try="$ac_link"
10705 case "(($ac_try" in
10706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10707 *) ac_try_echo=$ac_try;;
10708 esac
10709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10710 $as_echo "$ac_try_echo") >&5
10711 (eval "$ac_link") 2>conftest.er1
10712 ac_status=$?
10713 grep -v '^ *+' conftest.er1 >conftest.err
10714 rm -f conftest.er1
10715 cat conftest.err >&5
10716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); } && {
10718 test -z "$ac_c_werror_flag" ||
10719 test ! -s conftest.err
10720 } && test -s conftest$ac_exeext && {
10721 test "$cross_compiling" = yes ||
10722 $as_test_x conftest$ac_exeext
10723 }; then
10724 ac_cv_lib_dld_dld_link=yes
10725 else
10726 $as_echo "$as_me: failed program was:" >&5
10727 sed 's/^/| /' conftest.$ac_ext >&5
10728
10729 ac_cv_lib_dld_dld_link=no
10730 fi
10731
10732 rm -rf conftest.dSYM
10733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10734 conftest$ac_exeext conftest.$ac_ext
10735 LIBS=$ac_check_lib_save_LIBS
10736 fi
10737 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10738 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10739 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10740 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10741 fi
10742
10743
10744 fi
10745
10746
10747 fi
10748
10749
10750 fi
10751
10752
10753 fi
10754
10755
10756 fi
10757
10758 ;;
10759 esac
10760
10761 if test "x$lt_cv_dlopen" != xno; then
10762 enable_dlopen=yes
10763 else
10764 enable_dlopen=no
10765 fi
10766
10767 case $lt_cv_dlopen in
10768 dlopen)
10769 save_CPPFLAGS="$CPPFLAGS"
10770 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10771
10772 save_LDFLAGS="$LDFLAGS"
10773 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10774
10775 save_LIBS="$LIBS"
10776 LIBS="$lt_cv_dlopen_libs $LIBS"
10777
10778 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10779 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10780 if test "${lt_cv_dlopen_self+set}" = set; then
10781 $as_echo_n "(cached) " >&6
10782 else
10783 if test "$cross_compiling" = yes; then :
10784 lt_cv_dlopen_self=cross
10785 else
10786 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10787 lt_status=$lt_dlunknown
10788 cat > conftest.$ac_ext <<_LT_EOF
10789 #line 10789 "configure"
10790 #include "confdefs.h"
10791
10792 #if HAVE_DLFCN_H
10793 #include <dlfcn.h>
10794 #endif
10795
10796 #include <stdio.h>
10797
10798 #ifdef RTLD_GLOBAL
10799 # define LT_DLGLOBAL RTLD_GLOBAL
10800 #else
10801 # ifdef DL_GLOBAL
10802 # define LT_DLGLOBAL DL_GLOBAL
10803 # else
10804 # define LT_DLGLOBAL 0
10805 # endif
10806 #endif
10807
10808 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10809 find out it does not work in some platform. */
10810 #ifndef LT_DLLAZY_OR_NOW
10811 # ifdef RTLD_LAZY
10812 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10813 # else
10814 # ifdef DL_LAZY
10815 # define LT_DLLAZY_OR_NOW DL_LAZY
10816 # else
10817 # ifdef RTLD_NOW
10818 # define LT_DLLAZY_OR_NOW RTLD_NOW
10819 # else
10820 # ifdef DL_NOW
10821 # define LT_DLLAZY_OR_NOW DL_NOW
10822 # else
10823 # define LT_DLLAZY_OR_NOW 0
10824 # endif
10825 # endif
10826 # endif
10827 # endif
10828 #endif
10829
10830 void fnord() { int i=42;}
10831 int main ()
10832 {
10833 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10834 int status = $lt_dlunknown;
10835
10836 if (self)
10837 {
10838 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10839 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10840 /* dlclose (self); */
10841 }
10842 else
10843 puts (dlerror ());
10844
10845 return status;
10846 }
10847 _LT_EOF
10848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10849 (eval $ac_link) 2>&5
10850 ac_status=$?
10851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10853 (./conftest; exit; ) >&5 2>/dev/null
10854 lt_status=$?
10855 case x$lt_status in
10856 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10857 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10858 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10859 esac
10860 else :
10861 # compilation failed
10862 lt_cv_dlopen_self=no
10863 fi
10864 fi
10865 rm -fr conftest*
10866
10867
10868 fi
10869 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10870 $as_echo "$lt_cv_dlopen_self" >&6; }
10871
10872 if test "x$lt_cv_dlopen_self" = xyes; then
10873 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10874 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10875 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10876 if test "${lt_cv_dlopen_self_static+set}" = set; then
10877 $as_echo_n "(cached) " >&6
10878 else
10879 if test "$cross_compiling" = yes; then :
10880 lt_cv_dlopen_self_static=cross
10881 else
10882 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10883 lt_status=$lt_dlunknown
10884 cat > conftest.$ac_ext <<_LT_EOF
10885 #line 10885 "configure"
10886 #include "confdefs.h"
10887
10888 #if HAVE_DLFCN_H
10889 #include <dlfcn.h>
10890 #endif
10891
10892 #include <stdio.h>
10893
10894 #ifdef RTLD_GLOBAL
10895 # define LT_DLGLOBAL RTLD_GLOBAL
10896 #else
10897 # ifdef DL_GLOBAL
10898 # define LT_DLGLOBAL DL_GLOBAL
10899 # else
10900 # define LT_DLGLOBAL 0
10901 # endif
10902 #endif
10903
10904 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10905 find out it does not work in some platform. */
10906 #ifndef LT_DLLAZY_OR_NOW
10907 # ifdef RTLD_LAZY
10908 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10909 # else
10910 # ifdef DL_LAZY
10911 # define LT_DLLAZY_OR_NOW DL_LAZY
10912 # else
10913 # ifdef RTLD_NOW
10914 # define LT_DLLAZY_OR_NOW RTLD_NOW
10915 # else
10916 # ifdef DL_NOW
10917 # define LT_DLLAZY_OR_NOW DL_NOW
10918 # else
10919 # define LT_DLLAZY_OR_NOW 0
10920 # endif
10921 # endif
10922 # endif
10923 # endif
10924 #endif
10925
10926 void fnord() { int i=42;}
10927 int main ()
10928 {
10929 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10930 int status = $lt_dlunknown;
10931
10932 if (self)
10933 {
10934 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10935 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10936 /* dlclose (self); */
10937 }
10938 else
10939 puts (dlerror ());
10940
10941 return status;
10942 }
10943 _LT_EOF
10944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10945 (eval $ac_link) 2>&5
10946 ac_status=$?
10947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10949 (./conftest; exit; ) >&5 2>/dev/null
10950 lt_status=$?
10951 case x$lt_status in
10952 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10953 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10954 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10955 esac
10956 else :
10957 # compilation failed
10958 lt_cv_dlopen_self_static=no
10959 fi
10960 fi
10961 rm -fr conftest*
10962
10963
10964 fi
10965 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10966 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10967 fi
10968
10969 CPPFLAGS="$save_CPPFLAGS"
10970 LDFLAGS="$save_LDFLAGS"
10971 LIBS="$save_LIBS"
10972 ;;
10973 esac
10974
10975 case $lt_cv_dlopen_self in
10976 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10977 *) enable_dlopen_self=unknown ;;
10978 esac
10979
10980 case $lt_cv_dlopen_self_static in
10981 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10982 *) enable_dlopen_self_static=unknown ;;
10983 esac
10984 fi
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002 striplib=
11003 old_striplib=
11004 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11005 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11006 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11007 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11008 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11009 { $as_echo "$as_me:$LINENO: result: yes" >&5
11010 $as_echo "yes" >&6; }
11011 else
11012 # FIXME - insert some real tests, host_os isn't really good enough
11013 case $host_os in
11014 darwin*)
11015 if test -n "$STRIP" ; then
11016 striplib="$STRIP -x"
11017 old_striplib="$STRIP -S"
11018 { $as_echo "$as_me:$LINENO: result: yes" >&5
11019 $as_echo "yes" >&6; }
11020 else
11021 { $as_echo "$as_me:$LINENO: result: no" >&5
11022 $as_echo "no" >&6; }
11023 fi
11024 ;;
11025 *)
11026 { $as_echo "$as_me:$LINENO: result: no" >&5
11027 $as_echo "no" >&6; }
11028 ;;
11029 esac
11030 fi
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043 # Report which library types will actually be built
11044 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11045 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11046 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11047 $as_echo "$can_build_shared" >&6; }
11048
11049 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11050 $as_echo_n "checking whether to build shared libraries... " >&6; }
11051 test "$can_build_shared" = "no" && enable_shared=no
11052
11053 # On AIX, shared libraries and static libraries use the same namespace, and
11054 # are all built from PIC.
11055 case $host_os in
11056 aix3*)
11057 test "$enable_shared" = yes && enable_static=no
11058 if test -n "$RANLIB"; then
11059 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11060 postinstall_cmds='$RANLIB $lib'
11061 fi
11062 ;;
11063
11064 aix[4-9]*)
11065 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11066 test "$enable_shared" = yes && enable_static=no
11067 fi
11068 ;;
11069 esac
11070 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11071 $as_echo "$enable_shared" >&6; }
11072
11073 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11074 $as_echo_n "checking whether to build static libraries... " >&6; }
11075 # Make sure either enable_shared or enable_static is yes.
11076 test "$enable_shared" = yes || enable_static=yes
11077 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11078 $as_echo "$enable_static" >&6; }
11079
11080
11081
11082
11083 fi
11084 ac_ext=c
11085 ac_cpp='$CPP $CPPFLAGS'
11086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11089
11090 CC="$lt_save_CC"
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104 ac_config_commands="$ac_config_commands libtool"
11105
11106
11107
11108
11109 # Only expand once:
11110
11111
11112 if test "x$CC" != xcc; then
11113 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
11114 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11115 else
11116 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
11117 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11118 fi
11119 set dummy $CC; ac_cc=`$as_echo "$2" |
11120 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11121 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
11122 $as_echo_n "(cached) " >&6
11123 else
11124 cat >conftest.$ac_ext <<_ACEOF
11125 /* confdefs.h. */
11126 _ACEOF
11127 cat confdefs.h >>conftest.$ac_ext
11128 cat >>conftest.$ac_ext <<_ACEOF
11129 /* end confdefs.h. */
11130
11131 int
11132 main ()
11133 {
11134
11135 ;
11136 return 0;
11137 }
11138 _ACEOF
11139 # Make sure it works both with $CC and with simple cc.
11140 # We do the test twice because some compilers refuse to overwrite an
11141 # existing .o file with -o, though they will create one.
11142 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11143 rm -f conftest2.*
11144 if { (case "(($ac_try" in
11145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11146 *) ac_try_echo=$ac_try;;
11147 esac
11148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11149 $as_echo "$ac_try_echo") >&5
11150 (eval "$ac_try") 2>&5
11151 ac_status=$?
11152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); } &&
11154 test -f conftest2.$ac_objext && { (case "(($ac_try" in
11155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11156 *) ac_try_echo=$ac_try;;
11157 esac
11158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11159 $as_echo "$ac_try_echo") >&5
11160 (eval "$ac_try") 2>&5
11161 ac_status=$?
11162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); };
11164 then
11165 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11166 if test "x$CC" != xcc; then
11167 # Test first that cc exists at all.
11168 if { ac_try='cc -c conftest.$ac_ext >&5'
11169 { (case "(($ac_try" in
11170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11171 *) ac_try_echo=$ac_try;;
11172 esac
11173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11174 $as_echo "$ac_try_echo") >&5
11175 (eval "$ac_try") 2>&5
11176 ac_status=$?
11177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); }; }; then
11179 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11180 rm -f conftest2.*
11181 if { (case "(($ac_try" in
11182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11183 *) ac_try_echo=$ac_try;;
11184 esac
11185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11186 $as_echo "$ac_try_echo") >&5
11187 (eval "$ac_try") 2>&5
11188 ac_status=$?
11189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); } &&
11191 test -f conftest2.$ac_objext && { (case "(($ac_try" in
11192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11193 *) ac_try_echo=$ac_try;;
11194 esac
11195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11196 $as_echo "$ac_try_echo") >&5
11197 (eval "$ac_try") 2>&5
11198 ac_status=$?
11199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); };
11201 then
11202 # cc works too.
11203 :
11204 else
11205 # cc exists but doesn't like -o.
11206 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11207 fi
11208 fi
11209 fi
11210 else
11211 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11212 fi
11213 rm -f core conftest*
11214
11215 fi
11216 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11217 { $as_echo "$as_me:$LINENO: result: yes" >&5
11218 $as_echo "yes" >&6; }
11219 else
11220 { $as_echo "$as_me:$LINENO: result: no" >&5
11221 $as_echo "no" >&6; }
11222
11223 cat >>confdefs.h <<\_ACEOF
11224 #define NO_MINUS_C_MINUS_O 1
11225 _ACEOF
11226
11227 fi
11228
11229 # FIXME: we rely on the cache variable name because
11230 # there is no other way.
11231 set dummy $CC
11232 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11233 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11234 if test "$am_t" != yes; then
11235 # Losing compiler, so override with the script.
11236 # FIXME: It is wrong to rewrite CC.
11237 # But if we don't then we get into trouble of one sort or another.
11238 # A longer-term fix would be to have automake use am__CC in this case,
11239 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11240 CC="$am_aux_dir/compile $CC"
11241 fi
11242
11243
11244
11245
11246 if test "x$GCC" = xyes ; then
11247 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
11248 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
11249 -Wbad-function-cast"
11250 case `gcc -dumpversion` in
11251 3.4.* | 4.*)
11252 CWARNFLAGS+=" -Wold-style-definition -Wdeclaration-after-statement"
11253 ;;
11254 esac
11255 else
11256 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
11257 $as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
11258 if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
11259 $as_echo_n "(cached) " >&6
11260 else
11261 cat >conftest.$ac_ext <<_ACEOF
11262 /* confdefs.h. */
11263 _ACEOF
11264 cat confdefs.h >>conftest.$ac_ext
11265 cat >>conftest.$ac_ext <<_ACEOF
11266 /* end confdefs.h. */
11267 $ac_includes_default
11268 int
11269 main ()
11270 {
11271 #ifndef __SUNPRO_C
11272 (void) __SUNPRO_C;
11273 #endif
11274
11275 ;
11276 return 0;
11277 }
11278 _ACEOF
11279 rm -f conftest.$ac_objext
11280 if { (ac_try="$ac_compile"
11281 case "(($ac_try" in
11282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11283 *) ac_try_echo=$ac_try;;
11284 esac
11285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11286 $as_echo "$ac_try_echo") >&5
11287 (eval "$ac_compile") 2>conftest.er1
11288 ac_status=$?
11289 grep -v '^ *+' conftest.er1 >conftest.err
11290 rm -f conftest.er1
11291 cat conftest.err >&5
11292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); } && {
11294 test -z "$ac_c_werror_flag" ||
11295 test ! -s conftest.err
11296 } && test -s conftest.$ac_objext; then
11297 ac_cv_have_decl___SUNPRO_C=yes
11298 else
11299 $as_echo "$as_me: failed program was:" >&5
11300 sed 's/^/| /' conftest.$ac_ext >&5
11301
11302 ac_cv_have_decl___SUNPRO_C=no
11303 fi
11304
11305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11306 fi
11307 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
11308 $as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
11309 if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
11310 SUNCC="yes"
11311 else
11312 SUNCC="no"
11313 fi
11314
11315 if test "x$SUNCC" = "xyes"; then
11316 CWARNFLAGS="-v"
11317 fi
11318 fi
11319
11320
11321
11322 if test x"$CC_FOR_BUILD" = x; then
11323 if test x"$cross_compiling" = xyes; then
11324 for ac_prog in gcc cc
11325 do
11326 # Extract the first word of "$ac_prog", so it can be a program name with args.
11327 set dummy $ac_prog; ac_word=$2
11328 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11329 $as_echo_n "checking for $ac_word... " >&6; }
11330 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
11331 $as_echo_n "(cached) " >&6
11332 else
11333 if test -n "$CC_FOR_BUILD"; then
11334 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
11335 else
11336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11337 for as_dir in $PATH
11338 do
11339 IFS=$as_save_IFS
11340 test -z "$as_dir" && as_dir=.
11341 for ac_exec_ext in '' $ac_executable_extensions; do
11342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11343 ac_cv_prog_CC_FOR_BUILD="$ac_prog"
11344 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11345 break 2
11346 fi
11347 done
11348 done
11349 IFS=$as_save_IFS
11350
11351 fi
11352 fi
11353 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
11354 if test -n "$CC_FOR_BUILD"; then
11355 { $as_echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
11356 $as_echo "$CC_FOR_BUILD" >&6; }
11357 else
11358 { $as_echo "$as_me:$LINENO: result: no" >&5
11359 $as_echo "no" >&6; }
11360 fi
11361
11362
11363 test -n "$CC_FOR_BUILD" && break
11364 done
11365
11366 else
11367 CC_FOR_BUILD="$CC"
11368 fi
11369 fi
11370
11371
11372
11373
11374 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11375 if test -n "$ac_tool_prefix"; then
11376 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11377 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11378 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11379 $as_echo_n "checking for $ac_word... " >&6; }
11380 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11381 $as_echo_n "(cached) " >&6
11382 else
11383 case $PKG_CONFIG in
11384 [\\/]* | ?:[\\/]*)
11385 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11386 ;;
11387 *)
11388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11389 for as_dir in $PATH
11390 do
11391 IFS=$as_save_IFS
11392 test -z "$as_dir" && as_dir=.
11393 for ac_exec_ext in '' $ac_executable_extensions; do
11394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11395 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11396 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11397 break 2
11398 fi
11399 done
11400 done
11401 IFS=$as_save_IFS
11402
11403 ;;
11404 esac
11405 fi
11406 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11407 if test -n "$PKG_CONFIG"; then
11408 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11409 $as_echo "$PKG_CONFIG" >&6; }
11410 else
11411 { $as_echo "$as_me:$LINENO: result: no" >&5
11412 $as_echo "no" >&6; }
11413 fi
11414
11415
11416 fi
11417 if test -z "$ac_cv_path_PKG_CONFIG"; then
11418 ac_pt_PKG_CONFIG=$PKG_CONFIG
11419 # Extract the first word of "pkg-config", so it can be a program name with args.
11420 set dummy pkg-config; ac_word=$2
11421 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11422 $as_echo_n "checking for $ac_word... " >&6; }
11423 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
11424 $as_echo_n "(cached) " >&6
11425 else
11426 case $ac_pt_PKG_CONFIG in
11427 [\\/]* | ?:[\\/]*)
11428 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11429 ;;
11430 *)
11431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11432 for as_dir in $PATH
11433 do
11434 IFS=$as_save_IFS
11435 test -z "$as_dir" && as_dir=.
11436 for ac_exec_ext in '' $ac_executable_extensions; do
11437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11438 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11439 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11440 break 2
11441 fi
11442 done
11443 done
11444 IFS=$as_save_IFS
11445
11446 ;;
11447 esac
11448 fi
11449 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11450 if test -n "$ac_pt_PKG_CONFIG"; then
11451 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
11452 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11453 else
11454 { $as_echo "$as_me:$LINENO: result: no" >&5
11455 $as_echo "no" >&6; }
11456 fi
11457
11458 if test "x$ac_pt_PKG_CONFIG" = x; then
11459 PKG_CONFIG=""
11460 else
11461 case $cross_compiling:$ac_tool_warned in
11462 yes:)
11463 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11464 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11465 ac_tool_warned=yes ;;
11466 esac
11467 PKG_CONFIG=$ac_pt_PKG_CONFIG
11468 fi
11469 else
11470 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11471 fi
11472
11473 fi
11474 if test -n "$PKG_CONFIG"; then
11475 _pkg_min_version=0.9.0
11476 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
11477 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11478 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11479 { $as_echo "$as_me:$LINENO: result: yes" >&5
11480 $as_echo "yes" >&6; }
11481 else
11482 { $as_echo "$as_me:$LINENO: result: no" >&5
11483 $as_echo "no" >&6; }
11484 PKG_CONFIG=""
11485 fi
11486
11487 fi
11488
11489 pkg_failed=no
11490 { $as_echo "$as_me:$LINENO: checking for XT" >&5
11491 $as_echo_n "checking for XT... " >&6; }
11492
11493 if test -n "$XT_CFLAGS"; then
11494 pkg_cv_XT_CFLAGS="$XT_CFLAGS"
11495 elif test -n "$PKG_CONFIG"; then
11496 if test -n "$PKG_CONFIG" && \
11497 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sm x11 xproto kbproto\"") >&5
11498 ($PKG_CONFIG --exists --print-errors "sm x11 xproto kbproto") 2>&5
11499 ac_status=$?
11500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501 (exit $ac_status); }; then
11502 pkg_cv_XT_CFLAGS=`$PKG_CONFIG --cflags "sm x11 xproto kbproto" 2>/dev/null`
11503 else
11504 pkg_failed=yes
11505 fi
11506 else
11507 pkg_failed=untried
11508 fi
11509 if test -n "$XT_LIBS"; then
11510 pkg_cv_XT_LIBS="$XT_LIBS"
11511 elif test -n "$PKG_CONFIG"; then
11512 if test -n "$PKG_CONFIG" && \
11513 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sm x11 xproto kbproto\"") >&5
11514 ($PKG_CONFIG --exists --print-errors "sm x11 xproto kbproto") 2>&5
11515 ac_status=$?
11516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); }; then
11518 pkg_cv_XT_LIBS=`$PKG_CONFIG --libs "sm x11 xproto kbproto" 2>/dev/null`
11519 else
11520 pkg_failed=yes
11521 fi
11522 else
11523 pkg_failed=untried
11524 fi
11525
11526
11527
11528 if test $pkg_failed = yes; then
11529
11530 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11531 _pkg_short_errors_supported=yes
11532 else
11533 _pkg_short_errors_supported=no
11534 fi
11535 if test $_pkg_short_errors_supported = yes; then
11536 XT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sm x11 xproto kbproto" 2>&1`
11537 else
11538 XT_PKG_ERRORS=`$PKG_CONFIG --print-errors "sm x11 xproto kbproto" 2>&1`
11539 fi
11540 # Put the nasty error message in config.log where it belongs
11541 echo "$XT_PKG_ERRORS" >&5
11542
11543 { { $as_echo "$as_me:$LINENO: error: Package requirements (sm x11 xproto kbproto) were not met:
11544
11545 $XT_PKG_ERRORS
11546
11547 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11548 installed software in a non-standard prefix.
11549
11550 Alternatively, you may set the environment variables XT_CFLAGS
11551 and XT_LIBS to avoid the need to call pkg-config.
11552 See the pkg-config man page for more details.
11553 " >&5
11554 $as_echo "$as_me: error: Package requirements (sm x11 xproto kbproto) were not met:
11555
11556 $XT_PKG_ERRORS
11557
11558 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11559 installed software in a non-standard prefix.
11560
11561 Alternatively, you may set the environment variables XT_CFLAGS
11562 and XT_LIBS to avoid the need to call pkg-config.
11563 See the pkg-config man page for more details.
11564 " >&2;}
11565 { (exit 1); exit 1; }; }
11566 elif test $pkg_failed = untried; then
11567 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11569 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11570 is in your PATH or set the PKG_CONFIG environment variable to the full
11571 path to pkg-config.
11572
11573 Alternatively, you may set the environment variables XT_CFLAGS
11574 and XT_LIBS to avoid the need to call pkg-config.
11575 See the pkg-config man page for more details.
11576
11577 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11578 See \`config.log' for more details." >&5
11579 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11580 is in your PATH or set the PKG_CONFIG environment variable to the full
11581 path to pkg-config.
11582
11583 Alternatively, you may set the environment variables XT_CFLAGS
11584 and XT_LIBS to avoid the need to call pkg-config.
11585 See the pkg-config man page for more details.
11586
11587 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11588 See \`config.log' for more details." >&2;}
11589 { (exit 1); exit 1; }; }; }
11590 else
11591 XT_CFLAGS=$pkg_cv_XT_CFLAGS
11592 XT_LIBS=$pkg_cv_XT_LIBS
11593 { $as_echo "$as_me:$LINENO: result: yes" >&5
11594 $as_echo "yes" >&6; }
11595 :
11596 fi
11597
11598 # Needed for including Xalloca.h
11599 if test "${ac_cv_header_alloca_h+set}" = set; then
11600 { $as_echo "$as_me:$LINENO: checking for alloca.h" >&5
11601 $as_echo_n "checking for alloca.h... " >&6; }
11602 if test "${ac_cv_header_alloca_h+set}" = set; then
11603 $as_echo_n "(cached) " >&6
11604 fi
11605 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_alloca_h" >&5
11606 $as_echo "$ac_cv_header_alloca_h" >&6; }
11607 else
11608 # Is the header compilable?
11609 { $as_echo "$as_me:$LINENO: checking alloca.h usability" >&5
11610 $as_echo_n "checking alloca.h usability... " >&6; }
11611 cat >conftest.$ac_ext <<_ACEOF
11612 /* confdefs.h. */
11613 _ACEOF
11614 cat confdefs.h >>conftest.$ac_ext
11615 cat >>conftest.$ac_ext <<_ACEOF
11616 /* end confdefs.h. */
11617 $ac_includes_default
11618 #include <alloca.h>
11619 _ACEOF
11620 rm -f conftest.$ac_objext
11621 if { (ac_try="$ac_compile"
11622 case "(($ac_try" in
11623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11624 *) ac_try_echo=$ac_try;;
11625 esac
11626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11627 $as_echo "$ac_try_echo") >&5
11628 (eval "$ac_compile") 2>conftest.er1
11629 ac_status=$?
11630 grep -v '^ *+' conftest.er1 >conftest.err
11631 rm -f conftest.er1
11632 cat conftest.err >&5
11633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634 (exit $ac_status); } && {
11635 test -z "$ac_c_werror_flag" ||
11636 test ! -s conftest.err
11637 } && test -s conftest.$ac_objext; then
11638 ac_header_compiler=yes
11639 else
11640 $as_echo "$as_me: failed program was:" >&5
11641 sed 's/^/| /' conftest.$ac_ext >&5
11642
11643 ac_header_compiler=no
11644 fi
11645
11646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11647 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11648 $as_echo "$ac_header_compiler" >&6; }
11649
11650 # Is the header present?
11651 { $as_echo "$as_me:$LINENO: checking alloca.h presence" >&5
11652 $as_echo_n "checking alloca.h presence... " >&6; }
11653 cat >conftest.$ac_ext <<_ACEOF
11654 /* confdefs.h. */
11655 _ACEOF
11656 cat confdefs.h >>conftest.$ac_ext
11657 cat >>conftest.$ac_ext <<_ACEOF
11658 /* end confdefs.h. */
11659 #include <alloca.h>
11660 _ACEOF
11661 if { (ac_try="$ac_cpp conftest.$ac_ext"
11662 case "(($ac_try" in
11663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11664 *) ac_try_echo=$ac_try;;
11665 esac
11666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11667 $as_echo "$ac_try_echo") >&5
11668 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11669 ac_status=$?
11670 grep -v '^ *+' conftest.er1 >conftest.err
11671 rm -f conftest.er1
11672 cat conftest.err >&5
11673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); } >/dev/null && {
11675 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11676 test ! -s conftest.err
11677 }; then
11678 ac_header_preproc=yes
11679 else
11680 $as_echo "$as_me: failed program was:" >&5
11681 sed 's/^/| /' conftest.$ac_ext >&5
11682
11683 ac_header_preproc=no
11684 fi
11685
11686 rm -f conftest.err conftest.$ac_ext
11687 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11688 $as_echo "$ac_header_preproc" >&6; }
11689
11690 # So? What about this header?
11691 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11692 yes:no: )
11693 { $as_echo "$as_me:$LINENO: WARNING: alloca.h: accepted by the compiler, rejected by the preprocessor!" >&5
11694 $as_echo "$as_me: WARNING: alloca.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11695 { $as_echo "$as_me:$LINENO: WARNING: alloca.h: proceeding with the compiler's result" >&5
11696 $as_echo "$as_me: WARNING: alloca.h: proceeding with the compiler's result" >&2;}
11697 ac_header_preproc=yes
11698 ;;
11699 no:yes:* )
11700 { $as_echo "$as_me:$LINENO: WARNING: alloca.h: present but cannot be compiled" >&5
11701 $as_echo "$as_me: WARNING: alloca.h: present but cannot be compiled" >&2;}
11702 { $as_echo "$as_me:$LINENO: WARNING: alloca.h: check for missing prerequisite headers?" >&5
11703 $as_echo "$as_me: WARNING: alloca.h: check for missing prerequisite headers?" >&2;}
11704 { $as_echo "$as_me:$LINENO: WARNING: alloca.h: see the Autoconf documentation" >&5
11705 $as_echo "$as_me: WARNING: alloca.h: see the Autoconf documentation" >&2;}
11706 { $as_echo "$as_me:$LINENO: WARNING: alloca.h: section \"Present But Cannot Be Compiled\"" >&5
11707 $as_echo "$as_me: WARNING: alloca.h: section \"Present But Cannot Be Compiled\"" >&2;}
11708 { $as_echo "$as_me:$LINENO: WARNING: alloca.h: proceeding with the preprocessor's result" >&5
11709 $as_echo "$as_me: WARNING: alloca.h: proceeding with the preprocessor's result" >&2;}
11710 { $as_echo "$as_me:$LINENO: WARNING: alloca.h: in the future, the compiler will take precedence" >&5
11711 $as_echo "$as_me: WARNING: alloca.h: in the future, the compiler will take precedence" >&2;}
11712 ( cat <<\_ASBOX
11713 ## ---------------------------------------------------------------------- ##
11714 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
11715 ## ---------------------------------------------------------------------- ##
11716 _ASBOX
11717 ) | sed "s/^/$as_me: WARNING: /" >&2
11718 ;;
11719 esac
11720 { $as_echo "$as_me:$LINENO: checking for alloca.h" >&5
11721 $as_echo_n "checking for alloca.h... " >&6; }
11722 if test "${ac_cv_header_alloca_h+set}" = set; then
11723 $as_echo_n "(cached) " >&6
11724 else
11725 ac_cv_header_alloca_h=$ac_header_preproc
11726 fi
11727 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_alloca_h" >&5
11728 $as_echo "$ac_cv_header_alloca_h" >&6; }
11729
11730 fi
11731 if test "x$ac_cv_header_alloca_h" = x""yes; then
11732
11733 cat >>confdefs.h <<\_ACEOF
11734 #define INCLUDE_ALLOCA_H 1
11735 _ACEOF
11736
11737 fi
11738
11739
11740
11741 # Map function checks to old Imake #defines
11742 case $host_os in
11743 # darwin has poll() but can't be used to poll character devices
11744 # darwin10 (SnowLeopard) should be tested as well once released
11745 darwin7*) ;; darwin8*) ;; darwin9*) ;;
11746 *)
11747 { $as_echo "$as_me:$LINENO: checking for poll" >&5
11748 $as_echo_n "checking for poll... " >&6; }
11749 if test "${ac_cv_func_poll+set}" = set; then
11750 $as_echo_n "(cached) " >&6
11751 else
11752 cat >conftest.$ac_ext <<_ACEOF
11753 /* confdefs.h. */
11754 _ACEOF
11755 cat confdefs.h >>conftest.$ac_ext
11756 cat >>conftest.$ac_ext <<_ACEOF
11757 /* end confdefs.h. */
11758 /* Define poll to an innocuous variant, in case <limits.h> declares poll.
11759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11760 #define poll innocuous_poll
11761
11762 /* System header to define __stub macros and hopefully few prototypes,
11763 which can conflict with char poll (); below.
11764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11765 <limits.h> exists even on freestanding compilers. */
11766
11767 #ifdef __STDC__
11768 # include <limits.h>
11769 #else
11770 # include <assert.h>
11771 #endif
11772
11773 #undef poll
11774
11775 /* Override any GCC internal prototype to avoid an error.
11776 Use char because int might match the return type of a GCC
11777 builtin and then its argument prototype would still apply. */
11778 #ifdef __cplusplus
11779 extern "C"
11780 #endif
11781 char poll ();
11782 /* The GNU C library defines this for functions which it implements
11783 to always fail with ENOSYS. Some functions are actually named
11784 something starting with __ and the normal name is an alias. */
11785 #if defined __stub_poll || defined __stub___poll
11786 choke me
11787 #endif
11788
11789 int
11790 main ()
11791 {
11792 return poll ();
11793 ;
11794 return 0;
11795 }
11796 _ACEOF
11797 rm -f conftest.$ac_objext conftest$ac_exeext
11798 if { (ac_try="$ac_link"
11799 case "(($ac_try" in
11800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11801 *) ac_try_echo=$ac_try;;
11802 esac
11803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11804 $as_echo "$ac_try_echo") >&5
11805 (eval "$ac_link") 2>conftest.er1
11806 ac_status=$?
11807 grep -v '^ *+' conftest.er1 >conftest.err
11808 rm -f conftest.er1
11809 cat conftest.err >&5
11810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811 (exit $ac_status); } && {
11812 test -z "$ac_c_werror_flag" ||
11813 test ! -s conftest.err
11814 } && test -s conftest$ac_exeext && {
11815 test "$cross_compiling" = yes ||
11816 $as_test_x conftest$ac_exeext
11817 }; then
11818 ac_cv_func_poll=yes
11819 else
11820 $as_echo "$as_me: failed program was:" >&5
11821 sed 's/^/| /' conftest.$ac_ext >&5
11822
11823 ac_cv_func_poll=no
11824 fi
11825
11826 rm -rf conftest.dSYM
11827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11828 conftest$ac_exeext conftest.$ac_ext
11829 fi
11830 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_poll" >&5
11831 $as_echo "$ac_cv_func_poll" >&6; }
11832 if test "x$ac_cv_func_poll" = x""yes; then
11833
11834 cat >>confdefs.h <<\_ACEOF
11835 #define USE_POLL 1
11836 _ACEOF
11837
11838 fi
11839
11840 ;;
11841 esac
11842 { $as_echo "$as_me:$LINENO: checking for snprintf" >&5
11843 $as_echo_n "checking for snprintf... " >&6; }
11844 if test "${ac_cv_func_snprintf+set}" = set; then
11845 $as_echo_n "(cached) " >&6
11846 else
11847 cat >conftest.$ac_ext <<_ACEOF
11848 /* confdefs.h. */
11849 _ACEOF
11850 cat confdefs.h >>conftest.$ac_ext
11851 cat >>conftest.$ac_ext <<_ACEOF
11852 /* end confdefs.h. */
11853 /* Define snprintf to an innocuous variant, in case <limits.h> declares snprintf.
11854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11855 #define snprintf innocuous_snprintf
11856
11857 /* System header to define __stub macros and hopefully few prototypes,
11858 which can conflict with char snprintf (); below.
11859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11860 <limits.h> exists even on freestanding compilers. */
11861
11862 #ifdef __STDC__
11863 # include <limits.h>
11864 #else
11865 # include <assert.h>
11866 #endif
11867
11868 #undef snprintf
11869
11870 /* Override any GCC internal prototype to avoid an error.
11871 Use char because int might match the return type of a GCC
11872 builtin and then its argument prototype would still apply. */
11873 #ifdef __cplusplus
11874 extern "C"
11875 #endif
11876 char snprintf ();
11877 /* The GNU C library defines this for functions which it implements
11878 to always fail with ENOSYS. Some functions are actually named
11879 something starting with __ and the normal name is an alias. */
11880 #if defined __stub_snprintf || defined __stub___snprintf
11881 choke me
11882 #endif
11883
11884 int
11885 main ()
11886 {
11887 return snprintf ();
11888 ;
11889 return 0;
11890 }
11891 _ACEOF
11892 rm -f conftest.$ac_objext conftest$ac_exeext
11893 if { (ac_try="$ac_link"
11894 case "(($ac_try" in
11895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11896 *) ac_try_echo=$ac_try;;
11897 esac
11898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11899 $as_echo "$ac_try_echo") >&5
11900 (eval "$ac_link") 2>conftest.er1
11901 ac_status=$?
11902 grep -v '^ *+' conftest.er1 >conftest.err
11903 rm -f conftest.er1
11904 cat conftest.err >&5
11905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 (exit $ac_status); } && {
11907 test -z "$ac_c_werror_flag" ||
11908 test ! -s conftest.err
11909 } && test -s conftest$ac_exeext && {
11910 test "$cross_compiling" = yes ||
11911 $as_test_x conftest$ac_exeext
11912 }; then
11913 ac_cv_func_snprintf=yes
11914 else
11915 $as_echo "$as_me: failed program was:" >&5
11916 sed 's/^/| /' conftest.$ac_ext >&5
11917
11918 ac_cv_func_snprintf=no
11919 fi
11920
11921 rm -rf conftest.dSYM
11922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11923 conftest$ac_exeext conftest.$ac_ext
11924 fi
11925 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_snprintf" >&5
11926 $as_echo "$ac_cv_func_snprintf" >&6; }
11927 if test "x$ac_cv_func_snprintf" = x""yes; then
11928
11929 cat >>confdefs.h <<\_ACEOF
11930 #define USE_SNPRINTF 1
11931 _ACEOF
11932
11933 fi
11934
11935
11936
11937 { $as_echo "$as_me:$LINENO: checking for main in -lws2_32" >&5
11938 $as_echo_n "checking for main in -lws2_32... " >&6; }
11939 if test "${ac_cv_lib_ws2_32_main+set}" = set; then
11940 $as_echo_n "(cached) " >&6
11941 else
11942 ac_check_lib_save_LIBS=$LIBS
11943 LIBS="-lws2_32 $LIBS"
11944 cat >conftest.$ac_ext <<_ACEOF
11945 /* confdefs.h. */
11946 _ACEOF
11947 cat confdefs.h >>conftest.$ac_ext
11948 cat >>conftest.$ac_ext <<_ACEOF
11949 /* end confdefs.h. */
11950
11951
11952 int
11953 main ()
11954 {
11955 return main ();
11956 ;
11957 return 0;
11958 }
11959 _ACEOF
11960 rm -f conftest.$ac_objext conftest$ac_exeext
11961 if { (ac_try="$ac_link"
11962 case "(($ac_try" in
11963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11964 *) ac_try_echo=$ac_try;;
11965 esac
11966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11967 $as_echo "$ac_try_echo") >&5
11968 (eval "$ac_link") 2>conftest.er1
11969 ac_status=$?
11970 grep -v '^ *+' conftest.er1 >conftest.err
11971 rm -f conftest.er1
11972 cat conftest.err >&5
11973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); } && {
11975 test -z "$ac_c_werror_flag" ||
11976 test ! -s conftest.err
11977 } && test -s conftest$ac_exeext && {
11978 test "$cross_compiling" = yes ||
11979 $as_test_x conftest$ac_exeext
11980 }; then
11981 ac_cv_lib_ws2_32_main=yes
11982 else
11983 $as_echo "$as_me: failed program was:" >&5
11984 sed 's/^/| /' conftest.$ac_ext >&5
11985
11986 ac_cv_lib_ws2_32_main=no
11987 fi
11988
11989 rm -rf conftest.dSYM
11990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11991 conftest$ac_exeext conftest.$ac_ext
11992 LIBS=$ac_check_lib_save_LIBS
11993 fi
11994 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_main" >&5
11995 $as_echo "$ac_cv_lib_ws2_32_main" >&6; }
11996 if test "x$ac_cv_lib_ws2_32_main" = x""yes; then
11997 cat >>confdefs.h <<_ACEOF
11998 #define HAVE_LIBWS2_32 1
11999 _ACEOF
12000
12001 LIBS="-lws2_32 $LIBS"
12002
12003 fi
12004 ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main
12005
12006
12007 # Options
12008 # Check whether --enable-xkb was given.
12009 if test "${enable_xkb+set}" = set; then
12010 enableval=$enable_xkb; XKB="$enableval"
12011 else
12012 XKB="yes"
12013 fi
12014
12015 if test "x$XKB" = "xyes" ; then
12016
12017 cat >>confdefs.h <<\_ACEOF
12018 #define XKB 1
12019 _ACEOF
12020
12021 fi
12022
12023 # Check whether --enable-install-makestrs was given.
12024 if test "${enable_install_makestrs+set}" = set; then
12025 enableval=$enable_install_makestrs; INSTALL_MAKESTRS="$enableval"
12026 else
12027 INSTALL_MAKESTRS="yes"
12028 fi
12029
12030 if test "x$INSTALL_MAKESTRS" = xyes; then
12031 INSTALL_MAKESTRS_TRUE=
12032 INSTALL_MAKESTRS_FALSE='#'
12033 else
12034 INSTALL_MAKESTRS_TRUE='#'
12035 INSTALL_MAKESTRS_FALSE=
12036 fi
12037
12038
12039 # Replaces XFileSearchPathDefault from Imake configs
12040 XFILESEARCHPATHDEFAULT='$(sysconfdir)/X11/%L/%T/%N%C%S:$(sysconfdir)/X11/%l/%T/%N%C%S:$(sysconfdir)/X11/%T/%N%C%S:$(sysconfdir)/X11/%L/%T/%N%S:$(sysconfdir)/X11/%l/%T/%N%S:$(sysconfdir)/X11/%T/%N%S:$(datadir)/X11/%L/%T/%N%C%S:$(datadir)/X11/%l/%T/%N%C%S:$(datadir)/X11/%T/%N%C%S:$(datadir)/X11/%L/%T/%N%S:$(datadir)/X11/%l/%T/%N%S:$(datadir)/X11/%T/%N%S:$(libdir)/X11/%L/%T/%N%C%S:$(libdir)/X11/%l/%T/%N%C%S:$(libdir)/X11/%T/%N%C%S:$(libdir)/X11/%L/%T/%N%S:$(libdir)/X11/%l/%T/%N%S:$(libdir)/X11/%T/%N%S'
12041
12042
12043 # Check whether --with-xfile-search-path was given.
12044 if test "${with_xfile_search_path+set}" = set; then
12045 withval=$with_xfile_search_path; XFILESEARCHPATHDEFAULT="$withval"
12046 fi
12047
12048
12049
12050
12051 # Check whether --with-appdefaultdir was given.
12052 if test "${with_appdefaultdir+set}" = set; then
12053 withval=$with_appdefaultdir; appdefaultdir="$withval"
12054 else
12055 appdefaultdir=${datadir}/X11/app-defaults
12056 fi
12057
12058
12059 prefix_NONE=
12060 exec_prefix_NONE=
12061 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
12062 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
12063 eval ac_define_dir="\"$appdefaultdir\""
12064 eval ac_define_dir="\"$ac_define_dir\""
12065 appdefaultdir="$ac_define_dir"
12066
12067
12068 cat >>confdefs.h <<_ACEOF
12069 #define appdefaultdir "$ac_define_dir"
12070 _ACEOF
12071
12072 test "$prefix_NONE" && prefix=NONE
12073 test "$exec_prefix_NONE" && exec_prefix=NONE
12074
12075
12076 # Replacement for Imake ToolkitStringsABIOptions, controls string tables
12077 # generated by util/string.list in StringDefs.h & Shell.h
12078 case $host_os in
12079 solaris*)
12080 # Solaris uses -intelabi even on SPARC
12081 STRINGSABIOPTIONS="-intelabi -solarisabinames"
12082 ;;
12083 sco* | svr4*)
12084 case $host_cpu in
12085 i*86) STRINGSABIOPTIONS="-intelabi" ;;
12086 *) STRINGSABIOPTIONS="" ;;
12087 esac
12088 ;;
12089 esac
12090
12091
12092 case $host_os in
12093 darwin*)
12094 OS_CFLAGS="-Wl,-flat_namespace"
12095 ;;
12096 *)
12097 OS_CFLAGS=
12098 ;;
12099 esac
12100
12101 XT_CFLAGS="$CWARNFLAGS $XT_CFLAGS $OS_CFLAGS"
12102
12103 # Man page processing requirements
12104
12105
12106 for ac_prog in cpp
12107 do
12108 # Extract the first word of "$ac_prog", so it can be a program name with args.
12109 set dummy $ac_prog; ac_word=$2
12110 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12111 $as_echo_n "checking for $ac_word... " >&6; }
12112 if test "${ac_cv_path_RAWCPP+set}" = set; then
12113 $as_echo_n "(cached) " >&6
12114 else
12115 case $RAWCPP in
12116 [\\/]* | ?:[\\/]*)
12117 ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
12118 ;;
12119 *)
12120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12121 as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
12122 for as_dir in $as_dummy
12123 do
12124 IFS=$as_save_IFS
12125 test -z "$as_dir" && as_dir=.
12126 for ac_exec_ext in '' $ac_executable_extensions; do
12127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12128 ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext"
12129 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12130 break 2
12131 fi
12132 done
12133 done
12134 IFS=$as_save_IFS
12135
12136 ;;
12137 esac
12138 fi
12139 RAWCPP=$ac_cv_path_RAWCPP
12140 if test -n "$RAWCPP"; then
12141 { $as_echo "$as_me:$LINENO: result: $RAWCPP" >&5
12142 $as_echo "$RAWCPP" >&6; }
12143 else
12144 { $as_echo "$as_me:$LINENO: result: no" >&5
12145 $as_echo "no" >&6; }
12146 fi
12147
12148
12149 test -n "$RAWCPP" && break
12150 done
12151 test -n "$RAWCPP" || RAWCPP="${CPP}"
12152
12153
12154 # Check for flag to avoid builtin definitions - assumes unix is predefined,
12155 # which is not the best choice for supporting other OS'es, but covers most
12156 # of the ones we need for now.
12157 { $as_echo "$as_me:$LINENO: checking if $RAWCPP requires -undef" >&5
12158 $as_echo_n "checking if $RAWCPP requires -undef... " >&6; }
12159 cat >conftest.$ac_ext <<_ACEOF
12160 Does cpp redefine unix ?
12161 _ACEOF
12162 if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
12163 { $as_echo "$as_me:$LINENO: result: no" >&5
12164 $as_echo "no" >&6; }
12165 else
12166 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
12167 RAWCPPFLAGS=-undef
12168 { $as_echo "$as_me:$LINENO: result: yes" >&5
12169 $as_echo "yes" >&6; }
12170 # under Cygwin unix is still defined even with -undef
12171 elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
12172 RAWCPPFLAGS="-undef -ansi"
12173 { $as_echo "$as_me:$LINENO: result: yes, with -ansi" >&5
12174 $as_echo "yes, with -ansi" >&6; }
12175 else
12176 { { $as_echo "$as_me:$LINENO: error: ${RAWCPP} defines unix with or without -undef. I don't know what to do." >&5
12177 $as_echo "$as_me: error: ${RAWCPP} defines unix with or without -undef. I don't know what to do." >&2;}
12178 { (exit 1); exit 1; }; }
12179 fi
12180 fi
12181 rm -f conftest.$ac_ext
12182
12183 { $as_echo "$as_me:$LINENO: checking if $RAWCPP requires -traditional" >&5
12184 $as_echo_n "checking if $RAWCPP requires -traditional... " >&6; }
12185 cat >conftest.$ac_ext <<_ACEOF
12186 Does cpp preserve "whitespace"?
12187 _ACEOF
12188 if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
12189 { $as_echo "$as_me:$LINENO: result: no" >&5
12190 $as_echo "no" >&6; }
12191 else
12192 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
12193 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
12194 { $as_echo "$as_me:$LINENO: result: yes" >&5
12195 $as_echo "yes" >&6; }
12196 else
12197 { { $as_echo "$as_me:$LINENO: error: ${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." >&5
12198 $as_echo "$as_me: error: ${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." >&2;}
12199 { (exit 1); exit 1; }; }
12200 fi
12201 fi
12202 rm -f conftest.$ac_ext
12203
12204
12205
12206
12207
12208 if test x$APP_MAN_SUFFIX = x ; then
12209 APP_MAN_SUFFIX=1
12210 fi
12211 if test x$APP_MAN_DIR = x ; then
12212 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
12213 fi
12214
12215 if test x$LIB_MAN_SUFFIX = x ; then
12216 LIB_MAN_SUFFIX=3
12217 fi
12218 if test x$LIB_MAN_DIR = x ; then
12219 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
12220 fi
12221
12222 if test x$FILE_MAN_SUFFIX = x ; then
12223 case $host_os in
12224 solaris*) FILE_MAN_SUFFIX=4 ;;
12225 *) FILE_MAN_SUFFIX=5 ;;
12226 esac
12227 fi
12228 if test x$FILE_MAN_DIR = x ; then
12229 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
12230 fi
12231
12232 if test x$MISC_MAN_SUFFIX = x ; then
12233 case $host_os in
12234 solaris*) MISC_MAN_SUFFIX=5 ;;
12235 *) MISC_MAN_SUFFIX=7 ;;
12236 esac
12237 fi
12238 if test x$MISC_MAN_DIR = x ; then
12239 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
12240 fi
12241
12242 if test x$DRIVER_MAN_SUFFIX = x ; then
12243 case $host_os in
12244 solaris*) DRIVER_MAN_SUFFIX=7 ;;
12245 *) DRIVER_MAN_SUFFIX=4 ;;
12246 esac
12247 fi
12248 if test x$DRIVER_MAN_DIR = x ; then
12249 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
12250 fi
12251
12252 if test x$ADMIN_MAN_SUFFIX = x ; then
12253 case $host_os in
12254 solaris*) ADMIN_MAN_SUFFIX=1m ;;
12255 *) ADMIN_MAN_SUFFIX=8 ;;
12256 esac
12257 fi
12258 if test x$ADMIN_MAN_DIR = x ; then
12259 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
12260 fi
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277 # Check render configuration, strip extra digits from package version to
12278 # find the required protocol version
12279
12280
12281 # Check whether --enable-malloc0returnsnull was given.
12282 if test "${enable_malloc0returnsnull+set}" = set; then
12283 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
12284 else
12285 MALLOC_ZERO_RETURNS_NULL=auto
12286 fi
12287
12288
12289 { $as_echo "$as_me:$LINENO: checking whether malloc(0) returns NULL" >&5
12290 $as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
12291 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
12292 if test "$cross_compiling" = yes; then
12293 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12295 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12296 See \`config.log' for more details." >&5
12297 $as_echo "$as_me: error: cannot run test program while cross compiling
12298 See \`config.log' for more details." >&2;}
12299 { (exit 1); exit 1; }; }; }
12300 else
12301 cat >conftest.$ac_ext <<_ACEOF
12302
12303 char *malloc();
12304 char *realloc();
12305 char *calloc();
12306 main() {
12307 char *m0, *r0, *c0, *p;
12308 m0 = malloc(0);
12309 p = malloc(10);
12310 r0 = realloc(p,0);
12311 c0 = calloc(0);
12312 exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
12313 }
12314 _ACEOF
12315 rm -f conftest$ac_exeext
12316 if { (ac_try="$ac_link"
12317 case "(($ac_try" in
12318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12319 *) ac_try_echo=$ac_try;;
12320 esac
12321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12322 $as_echo "$ac_try_echo") >&5
12323 (eval "$ac_link") 2>&5
12324 ac_status=$?
12325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12327 { (case "(($ac_try" in
12328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12329 *) ac_try_echo=$ac_try;;
12330 esac
12331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12332 $as_echo "$ac_try_echo") >&5
12333 (eval "$ac_try") 2>&5
12334 ac_status=$?
12335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); }; }; then
12337 MALLOC_ZERO_RETURNS_NULL=yes
12338 else
12339 $as_echo "$as_me: program exited with status $ac_status" >&5
12340 $as_echo "$as_me: failed program was:" >&5
12341 sed 's/^/| /' conftest.$ac_ext >&5
12342
12343 ( exit $ac_status )
12344 MALLOC_ZERO_RETURNS_NULL=no
12345 fi
12346 rm -rf conftest.dSYM
12347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12348 fi
12349
12350
12351 fi
12352 { $as_echo "$as_me:$LINENO: result: $MALLOC_ZERO_RETURNS_NULL" >&5
12353 $as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
12354
12355 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
12356 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
12357 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
12358 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
12359 else
12360 MALLOC_ZERO_CFLAGS=""
12361 XMALLOC_ZERO_CFLAGS=""
12362 XTMALLOC_ZERO_CFLAGS=""
12363 fi
12364
12365
12366
12367
12368
12369
12370
12371 # Check whether --with-release-version was given.
12372 if test "${with_release_version+set}" = set; then
12373 withval=$with_release_version; RELEASE_VERSION="$withval"
12374 else
12375 RELEASE_VERSION=""
12376 fi
12377
12378 if test "x$RELEASE_VERSION" != "x"; then
12379 PACKAGE="$PACKAGE-$RELEASE_VERSION"
12380 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
12381 { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
12382 $as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
12383 fi
12384
12385 cat >>confdefs.h <<_ACEOF
12386 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
12387 _ACEOF
12388
12389 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
12390 if test "x$PVM" = "x"; then
12391 PVM="0"
12392 fi
12393
12394 cat >>confdefs.h <<_ACEOF
12395 #define PACKAGE_VERSION_MINOR $PVM
12396 _ACEOF
12397
12398 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
12399 if test "x$PVP" = "x"; then
12400 PVP="0"
12401 fi
12402
12403 cat >>confdefs.h <<_ACEOF
12404 #define PACKAGE_VERSION_PATCHLEVEL $PVP
12405 _ACEOF
12406
12407
12408
12409 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
12410 mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
12411 echo 'git directory not found: installing possibly empty changelog.' >&2)"
12412
12413 distcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
12414
12415
12416
12417 ac_config_files="$ac_config_files Makefile src/Makefile util/Makefile include/Makefile man/Makefile xt.pc"
12418
12419 cat >confcache <<\_ACEOF
12420 # This file is a shell script that caches the results of configure
12421 # tests run on this system so they can be shared between configure
12422 # scripts and configure runs, see configure's option --config-cache.
12423 # It is not useful on other systems. If it contains results you don't
12424 # want to keep, you may remove or edit it.
12425 #
12426 # config.status only pays attention to the cache file if you give it
12427 # the --recheck option to rerun configure.
12428 #
12429 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12430 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12431 # following values.
12432
12433 _ACEOF
12434
12435 # The following way of writing the cache mishandles newlines in values,
12436 # but we know of no workaround that is simple, portable, and efficient.
12437 # So, we kill variables containing newlines.
12438 # Ultrix sh set writes to stderr and can't be redirected directly,
12439 # and sets the high bit in the cache file unless we assign to the vars.
12440 (
12441 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12442 eval ac_val=\$$ac_var
12443 case $ac_val in #(
12444 *${as_nl}*)
12445 case $ac_var in #(
12446 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12447 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12448 esac
12449 case $ac_var in #(
12450 _ | IFS | as_nl) ;; #(
12451 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12452 *) $as_unset $ac_var ;;
12453 esac ;;
12454 esac
12455 done
12456
12457 (set) 2>&1 |
12458 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12459 *${as_nl}ac_space=\ *)
12460 # `set' does not quote correctly, so add quotes (double-quote
12461 # substitution turns \\\\ into \\, and sed turns \\ into \).
12462 sed -n \
12463 "s/'/'\\\\''/g;
12464 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12465 ;; #(
12466 *)
12467 # `set' quotes correctly as required by POSIX, so do not add quotes.
12468 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12469 ;;
12470 esac |
12471 sort
12472 ) |
12473 sed '
12474 /^ac_cv_env_/b end
12475 t clear
12476 :clear
12477 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12478 t end
12479 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12480 :end' >>confcache
12481 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12482 if test -w "$cache_file"; then
12483 test "x$cache_file" != "x/dev/null" &&
12484 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12485 $as_echo "$as_me: updating cache $cache_file" >&6;}
12486 cat confcache >$cache_file
12487 else
12488 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12489 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12490 fi
12491 fi
12492 rm -f confcache
12493
12494 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12495 # Let make expand exec_prefix.
12496 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12497
12498 DEFS=-DHAVE_CONFIG_H
12499
12500 ac_libobjs=
12501 ac_ltlibobjs=
12502 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12503 # 1. Remove the extension, and $U if already installed.
12504 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12505 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12506 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12507 # will be set to the directory where LIBOBJS objects are built.
12508 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12509 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12510 done
12511 LIBOBJS=$ac_libobjs
12512
12513 LTLIBOBJS=$ac_ltlibobjs
12514
12515
12516 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12517 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12518 Usually this means the macro was only invoked conditionally." >&5
12519 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12520 Usually this means the macro was only invoked conditionally." >&2;}
12521 { (exit 1); exit 1; }; }
12522 fi
12523 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12524 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12525 Usually this means the macro was only invoked conditionally." >&5
12526 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
12527 Usually this means the macro was only invoked conditionally." >&2;}
12528 { (exit 1); exit 1; }; }
12529 fi
12530 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12531 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12532 Usually this means the macro was only invoked conditionally." >&5
12533 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12534 Usually this means the macro was only invoked conditionally." >&2;}
12535 { (exit 1); exit 1; }; }
12536 fi
12537 if test -z "${INSTALL_MAKESTRS_TRUE}" && test -z "${INSTALL_MAKESTRS_FALSE}"; then
12538 { { $as_echo "$as_me:$LINENO: error: conditional \"INSTALL_MAKESTRS\" was never defined.
12539 Usually this means the macro was only invoked conditionally." >&5
12540 $as_echo "$as_me: error: conditional \"INSTALL_MAKESTRS\" was never defined.
12541 Usually this means the macro was only invoked conditionally." >&2;}
12542 { (exit 1); exit 1; }; }
12543 fi
12544
12545 : ${CONFIG_STATUS=./config.status}
12546 ac_write_fail=0
12547 ac_clean_files_save=$ac_clean_files
12548 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12549 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12550 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12551 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12552 #! $SHELL
12553 # Generated by $as_me.
12554 # Run this file to recreate the current configuration.
12555 # Compiler output produced by configure, useful for debugging
12556 # configure, is in config.log if it exists.
12557
12558 debug=false
12559 ac_cs_recheck=false
12560 ac_cs_silent=false
12561 SHELL=\${CONFIG_SHELL-$SHELL}
12562 _ACEOF
12563
12564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12565 ## --------------------- ##
12566 ## M4sh Initialization. ##
12567 ## --------------------- ##
12568
12569 # Be more Bourne compatible
12570 DUALCASE=1; export DUALCASE # for MKS sh
12571 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12572 emulate sh
12573 NULLCMD=:
12574 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12575 # is contrary to our usage. Disable this feature.
12576 alias -g '${1+"$@"}'='"$@"'
12577 setopt NO_GLOB_SUBST
12578 else
12579 case `(set -o) 2>/dev/null` in
12580 *posix*) set -o posix ;;
12581 esac
12582
12583 fi
12584
12585
12586
12587
12588 # PATH needs CR
12589 # Avoid depending upon Character Ranges.
12590 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12591 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12592 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12593 as_cr_digits='0123456789'
12594 as_cr_alnum=$as_cr_Letters$as_cr_digits
12595
12596 as_nl='
12597 '
12598 export as_nl
12599 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12600 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12601 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12602 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12603 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12604 as_echo='printf %s\n'
12605 as_echo_n='printf %s'
12606 else
12607 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12608 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12609 as_echo_n='/usr/ucb/echo -n'
12610 else
12611 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12612 as_echo_n_body='eval
12613 arg=$1;
12614 case $arg in
12615 *"$as_nl"*)
12616 expr "X$arg" : "X\\(.*\\)$as_nl";
12617 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12618 esac;
12619 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12620 '
12621 export as_echo_n_body
12622 as_echo_n='sh -c $as_echo_n_body as_echo'
12623 fi
12624 export as_echo_body
12625 as_echo='sh -c $as_echo_body as_echo'
12626 fi
12627
12628 # The user is always right.
12629 if test "${PATH_SEPARATOR+set}" != set; then
12630 PATH_SEPARATOR=:
12631 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12632 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12633 PATH_SEPARATOR=';'
12634 }
12635 fi
12636
12637 # Support unset when possible.
12638 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12639 as_unset=unset
12640 else
12641 as_unset=false
12642 fi
12643
12644
12645 # IFS
12646 # We need space, tab and new line, in precisely that order. Quoting is
12647 # there to prevent editors from complaining about space-tab.
12648 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12649 # splitting by setting IFS to empty value.)
12650 IFS=" "" $as_nl"
12651
12652 # Find who we are. Look in the path if we contain no directory separator.
12653 case $0 in
12654 *[\\/]* ) as_myself=$0 ;;
12655 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12656 for as_dir in $PATH
12657 do
12658 IFS=$as_save_IFS
12659 test -z "$as_dir" && as_dir=.
12660 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12661 done
12662 IFS=$as_save_IFS
12663
12664 ;;
12665 esac
12666 # We did not find ourselves, most probably we were run as `sh COMMAND'
12667 # in which case we are not to be found in the path.
12668 if test "x$as_myself" = x; then
12669 as_myself=$0
12670 fi
12671 if test ! -f "$as_myself"; then
12672 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12673 { (exit 1); exit 1; }
12674 fi
12675
12676 # Work around bugs in pre-3.0 UWIN ksh.
12677 for as_var in ENV MAIL MAILPATH
12678 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12679 done
12680 PS1='$ '
12681 PS2='> '
12682 PS4='+ '
12683
12684 # NLS nuisances.
12685 LC_ALL=C
12686 export LC_ALL
12687 LANGUAGE=C
12688 export LANGUAGE
12689
12690 # Required to use basename.
12691 if expr a : '\(a\)' >/dev/null 2>&1 &&
12692 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12693 as_expr=expr
12694 else
12695 as_expr=false
12696 fi
12697
12698 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12699 as_basename=basename
12700 else
12701 as_basename=false
12702 fi
12703
12704
12705 # Name of the executable.
12706 as_me=`$as_basename -- "$0" ||
12707 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12708 X"$0" : 'X\(//\)$' \| \
12709 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12710 $as_echo X/"$0" |
12711 sed '/^.*\/\([^/][^/]*\)\/*$/{
12712 s//\1/
12713 q
12714 }
12715 /^X\/\(\/\/\)$/{
12716 s//\1/
12717 q
12718 }
12719 /^X\/\(\/\).*/{
12720 s//\1/
12721 q
12722 }
12723 s/.*/./; q'`
12724
12725 # CDPATH.
12726 $as_unset CDPATH
12727
12728
12729
12730 as_lineno_1=$LINENO
12731 as_lineno_2=$LINENO
12732 test "x$as_lineno_1" != "x$as_lineno_2" &&
12733 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12734
12735 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12736 # uniformly replaced by the line number. The first 'sed' inserts a
12737 # line-number line after each line using $LINENO; the second 'sed'
12738 # does the real work. The second script uses 'N' to pair each
12739 # line-number line with the line containing $LINENO, and appends
12740 # trailing '-' during substitution so that $LINENO is not a special
12741 # case at line end.
12742 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12743 # scripts with optimization help from Paolo Bonzini. Blame Lee
12744 # E. McMahon (1931-1989) for sed's syntax. :-)
12745 sed -n '
12746 p
12747 /[$]LINENO/=
12748 ' <$as_myself |
12749 sed '
12750 s/[$]LINENO.*/&-/
12751 t lineno
12752 b
12753 :lineno
12754 N
12755 :loop
12756 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12757 t loop
12758 s/-\n.*//
12759 ' >$as_me.lineno &&
12760 chmod +x "$as_me.lineno" ||
12761 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12762 { (exit 1); exit 1; }; }
12763
12764 # Don't try to exec as it changes $[0], causing all sort of problems
12765 # (the dirname of $[0] is not the place where we might find the
12766 # original and so on. Autoconf is especially sensitive to this).
12767 . "./$as_me.lineno"
12768 # Exit status is that of the last command.
12769 exit
12770 }
12771
12772
12773 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12774 as_dirname=dirname
12775 else
12776 as_dirname=false
12777 fi
12778
12779 ECHO_C= ECHO_N= ECHO_T=
12780 case `echo -n x` in
12781 -n*)
12782 case `echo 'x\c'` in
12783 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12784 *) ECHO_C='\c';;
12785 esac;;
12786 *)
12787 ECHO_N='-n';;
12788 esac
12789 if expr a : '\(a\)' >/dev/null 2>&1 &&
12790 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12791 as_expr=expr
12792 else
12793 as_expr=false
12794 fi
12795
12796 rm -f conf$$ conf$$.exe conf$$.file
12797 if test -d conf$$.dir; then
12798 rm -f conf$$.dir/conf$$.file
12799 else
12800 rm -f conf$$.dir
12801 mkdir conf$$.dir 2>/dev/null
12802 fi
12803 if (echo >conf$$.file) 2>/dev/null; then
12804 if ln -s conf$$.file conf$$ 2>/dev/null; then
12805 as_ln_s='ln -s'
12806 # ... but there are two gotchas:
12807 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12808 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12809 # In both cases, we have to default to `cp -p'.
12810 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12811 as_ln_s='cp -p'
12812 elif ln conf$$.file conf$$ 2>/dev/null; then
12813 as_ln_s=ln
12814 else
12815 as_ln_s='cp -p'
12816 fi
12817 else
12818 as_ln_s='cp -p'
12819 fi
12820 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12821 rmdir conf$$.dir 2>/dev/null
12822
12823 if mkdir -p . 2>/dev/null; then
12824 as_mkdir_p=:
12825 else
12826 test -d ./-p && rmdir ./-p
12827 as_mkdir_p=false
12828 fi
12829
12830 if test -x / >/dev/null 2>&1; then
12831 as_test_x='test -x'
12832 else
12833 if ls -dL / >/dev/null 2>&1; then
12834 as_ls_L_option=L
12835 else
12836 as_ls_L_option=
12837 fi
12838 as_test_x='
12839 eval sh -c '\''
12840 if test -d "$1"; then
12841 test -d "$1/.";
12842 else
12843 case $1 in
12844 -*)set "./$1";;
12845 esac;
12846 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12847 ???[sx]*):;;*)false;;esac;fi
12848 '\'' sh
12849 '
12850 fi
12851 as_executable_p=$as_test_x
12852
12853 # Sed expression to map a string onto a valid CPP name.
12854 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12855
12856 # Sed expression to map a string onto a valid variable name.
12857 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12858
12859
12860 exec 6>&1
12861
12862 # Save the log message, to keep $[0] and so on meaningful, and to
12863 # report actual input values of CONFIG_FILES etc. instead of their
12864 # values after options handling.
12865 ac_log="
12866 This file was extended by libXt $as_me 1.0.6, which was
12867 generated by GNU Autoconf 2.63. Invocation command line was
12868
12869 CONFIG_FILES = $CONFIG_FILES
12870 CONFIG_HEADERS = $CONFIG_HEADERS
12871 CONFIG_LINKS = $CONFIG_LINKS
12872 CONFIG_COMMANDS = $CONFIG_COMMANDS
12873 $ $0 $@
12874
12875 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12876 "
12877
12878 _ACEOF
12879
12880 case $ac_config_files in *"
12881 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12882 esac
12883
12884 case $ac_config_headers in *"
12885 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12886 esac
12887
12888
12889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12890 # Files that config.status was made for.
12891 config_files="$ac_config_files"
12892 config_headers="$ac_config_headers"
12893 config_commands="$ac_config_commands"
12894
12895 _ACEOF
12896
12897 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12898 ac_cs_usage="\
12899 \`$as_me' instantiates files from templates according to the
12900 current configuration.
12901
12902 Usage: $0 [OPTION]... [FILE]...
12903
12904 -h, --help print this help, then exit
12905 -V, --version print version number and configuration settings, then exit
12906 -q, --quiet, --silent
12907 do not print progress messages
12908 -d, --debug don't remove temporary files
12909 --recheck update $as_me by reconfiguring in the same conditions
12910 --file=FILE[:TEMPLATE]
12911 instantiate the configuration file FILE
12912 --header=FILE[:TEMPLATE]
12913 instantiate the configuration header FILE
12914
12915 Configuration files:
12916 $config_files
12917
12918 Configuration headers:
12919 $config_headers
12920
12921 Configuration commands:
12922 $config_commands
12923
12924 Report bugs to <bug-autoconf (at] gnu.org>."
12925
12926 _ACEOF
12927 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12928 ac_cs_version="\\
12929 libXt config.status 1.0.6
12930 configured by $0, generated by GNU Autoconf 2.63,
12931 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12932
12933 Copyright (C) 2008 Free Software Foundation, Inc.
12934 This config.status script is free software; the Free Software Foundation
12935 gives unlimited permission to copy, distribute and modify it."
12936
12937 ac_pwd='$ac_pwd'
12938 srcdir='$srcdir'
12939 INSTALL='$INSTALL'
12940 MKDIR_P='$MKDIR_P'
12941 AWK='$AWK'
12942 test -n "\$AWK" || AWK=awk
12943 _ACEOF
12944
12945 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12946 # The default lists apply if the user does not specify any file.
12947 ac_need_defaults=:
12948 while test $# != 0
12949 do
12950 case $1 in
12951 --*=*)
12952 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12953 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12954 ac_shift=:
12955 ;;
12956 *)
12957 ac_option=$1
12958 ac_optarg=$2
12959 ac_shift=shift
12960 ;;
12961 esac
12962
12963 case $ac_option in
12964 # Handling of the options.
12965 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12966 ac_cs_recheck=: ;;
12967 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12968 $as_echo "$ac_cs_version"; exit ;;
12969 --debug | --debu | --deb | --de | --d | -d )
12970 debug=: ;;
12971 --file | --fil | --fi | --f )
12972 $ac_shift
12973 case $ac_optarg in
12974 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12975 esac
12976 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
12977 ac_need_defaults=false;;
12978 --header | --heade | --head | --hea )
12979 $ac_shift
12980 case $ac_optarg in
12981 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12982 esac
12983 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
12984 ac_need_defaults=false;;
12985 --he | --h)
12986 # Conflict between --help and --header
12987 { $as_echo "$as_me: error: ambiguous option: $1
12988 Try \`$0 --help' for more information." >&2
12989 { (exit 1); exit 1; }; };;
12990 --help | --hel | -h )
12991 $as_echo "$ac_cs_usage"; exit ;;
12992 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12993 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12994 ac_cs_silent=: ;;
12995
12996 # This is an error.
12997 -*) { $as_echo "$as_me: error: unrecognized option: $1
12998 Try \`$0 --help' for more information." >&2
12999 { (exit 1); exit 1; }; } ;;
13000
13001 *) ac_config_targets="$ac_config_targets $1"
13002 ac_need_defaults=false ;;
13003
13004 esac
13005 shift
13006 done
13007
13008 ac_configure_extra_args=
13009
13010 if $ac_cs_silent; then
13011 exec 6>/dev/null
13012 ac_configure_extra_args="$ac_configure_extra_args --silent"
13013 fi
13014
13015 _ACEOF
13016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13017 if \$ac_cs_recheck; then
13018 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13019 shift
13020 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13021 CONFIG_SHELL='$SHELL'
13022 export CONFIG_SHELL
13023 exec "\$@"
13024 fi
13025
13026 _ACEOF
13027 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13028 exec 5>>config.log
13029 {
13030 echo
13031 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13032 ## Running $as_me. ##
13033 _ASBOX
13034 $as_echo "$ac_log"
13035 } >&5
13036
13037 _ACEOF
13038 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13039 #
13040 # INIT-COMMANDS
13041 #
13042 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13043
13044
13045 # The HP-UX ksh and POSIX shell print the target directory to stdout
13046 # if CDPATH is set.
13047 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13048
13049 sed_quote_subst='$sed_quote_subst'
13050 double_quote_subst='$double_quote_subst'
13051 delay_variable_subst='$delay_variable_subst'
13052 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13053 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13054 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13055 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13056 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13057 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13058 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13059 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13060 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13061 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13062 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13063 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13064 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13065 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13066 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13067 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13068 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13069 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13070 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13071 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13072 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13073 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13074 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13075 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13076 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13077 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13078 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13079 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13080 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13081 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13082 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13083 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13084 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13085 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13086 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13087 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13088 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13089 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13090 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13091 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13092 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13093 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13094 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13095 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13096 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"`'
13097 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"`'
13098 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13099 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13100 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13101 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13102 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13103 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13104 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13105 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13106 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13107 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13108 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13109 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13110 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13111 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13112 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13113 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13114 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13115 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13116 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13117 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13118 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13119 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13120 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13121 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13122 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13123 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13124 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13125 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13126 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13127 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13128 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13129 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13130 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13131 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13132 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13133 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13134 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13135 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13136 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13137 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13138 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13139 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13140 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13141 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13142 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13143 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13144 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13145 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13146 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13147 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13148 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13149 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13150 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13151 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13152 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13153 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13154 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13155 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13156 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13157 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13158 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13159 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13160 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13161 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13162 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13163 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13164 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13165 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13166 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13167 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13168 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13169 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13170
13171 LTCC='$LTCC'
13172 LTCFLAGS='$LTCFLAGS'
13173 compiler='$compiler_DEFAULT'
13174
13175 # Quote evaled strings.
13176 for var in SED \
13177 GREP \
13178 EGREP \
13179 FGREP \
13180 LD \
13181 NM \
13182 LN_S \
13183 lt_SP2NL \
13184 lt_NL2SP \
13185 reload_flag \
13186 OBJDUMP \
13187 deplibs_check_method \
13188 file_magic_cmd \
13189 AR \
13190 AR_FLAGS \
13191 STRIP \
13192 RANLIB \
13193 CC \
13194 CFLAGS \
13195 compiler \
13196 lt_cv_sys_global_symbol_pipe \
13197 lt_cv_sys_global_symbol_to_cdecl \
13198 lt_cv_sys_global_symbol_to_c_name_address \
13199 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13200 SHELL \
13201 ECHO \
13202 lt_prog_compiler_no_builtin_flag \
13203 lt_prog_compiler_wl \
13204 lt_prog_compiler_pic \
13205 lt_prog_compiler_static \
13206 lt_cv_prog_compiler_c_o \
13207 need_locks \
13208 DSYMUTIL \
13209 NMEDIT \
13210 LIPO \
13211 OTOOL \
13212 OTOOL64 \
13213 shrext_cmds \
13214 export_dynamic_flag_spec \
13215 whole_archive_flag_spec \
13216 compiler_needs_object \
13217 with_gnu_ld \
13218 allow_undefined_flag \
13219 no_undefined_flag \
13220 hardcode_libdir_flag_spec \
13221 hardcode_libdir_flag_spec_ld \
13222 hardcode_libdir_separator \
13223 fix_srcfile_path \
13224 exclude_expsyms \
13225 include_expsyms \
13226 file_list_spec \
13227 variables_saved_for_relink \
13228 libname_spec \
13229 library_names_spec \
13230 soname_spec \
13231 finish_eval \
13232 old_striplib \
13233 striplib; do
13234 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13235 *[\\\\\\\`\\"\\\$]*)
13236 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13237 ;;
13238 *)
13239 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13240 ;;
13241 esac
13242 done
13243
13244 # Double-quote double-evaled strings.
13245 for var in reload_cmds \
13246 old_postinstall_cmds \
13247 old_postuninstall_cmds \
13248 old_archive_cmds \
13249 extract_expsyms_cmds \
13250 old_archive_from_new_cmds \
13251 old_archive_from_expsyms_cmds \
13252 archive_cmds \
13253 archive_expsym_cmds \
13254 module_cmds \
13255 module_expsym_cmds \
13256 export_symbols_cmds \
13257 prelink_cmds \
13258 postinstall_cmds \
13259 postuninstall_cmds \
13260 finish_cmds \
13261 sys_lib_search_path_spec \
13262 sys_lib_dlsearch_path_spec; do
13263 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13264 *[\\\\\\\`\\"\\\$]*)
13265 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13266 ;;
13267 *)
13268 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13269 ;;
13270 esac
13271 done
13272
13273 # Fix-up fallback echo if it was mangled by the above quoting rules.
13274 case \$lt_ECHO in
13275 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13276 ;;
13277 esac
13278
13279 ac_aux_dir='$ac_aux_dir'
13280 xsi_shell='$xsi_shell'
13281 lt_shell_append='$lt_shell_append'
13282
13283 # See if we are running on zsh, and set the options which allow our
13284 # commands through without removal of \ escapes INIT.
13285 if test -n "\${ZSH_VERSION+set}" ; then
13286 setopt NO_GLOB_SUBST
13287 fi
13288
13289
13290 PACKAGE='$PACKAGE'
13291 VERSION='$VERSION'
13292 TIMESTAMP='$TIMESTAMP'
13293 RM='$RM'
13294 ofile='$ofile'
13295
13296
13297
13298
13299 _ACEOF
13300
13301 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13302
13303 # Handling of arguments.
13304 for ac_config_target in $ac_config_targets
13305 do
13306 case $ac_config_target in
13307 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13308 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13309 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13310 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13311 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13312 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
13313 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13314 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13315 "xt.pc") CONFIG_FILES="$CONFIG_FILES xt.pc" ;;
13316
13317 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13318 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13319 { (exit 1); exit 1; }; };;
13320 esac
13321 done
13322
13323
13324 # If the user did not use the arguments to specify the items to instantiate,
13325 # then the envvar interface is used. Set only those that are not.
13326 # We use the long form for the default assignment because of an extremely
13327 # bizarre bug on SunOS 4.1.3.
13328 if $ac_need_defaults; then
13329 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13330 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13331 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13332 fi
13333
13334 # Have a temporary directory for convenience. Make it in the build tree
13335 # simply because there is no reason against having it here, and in addition,
13336 # creating and moving files from /tmp can sometimes cause problems.
13337 # Hook for its removal unless debugging.
13338 # Note that there is a small window in which the directory will not be cleaned:
13339 # after its creation but before its name has been assigned to `$tmp'.
13340 $debug ||
13341 {
13342 tmp=
13343 trap 'exit_status=$?
13344 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13345 ' 0
13346 trap '{ (exit 1); exit 1; }' 1 2 13 15
13347 }
13348 # Create a (secure) tmp directory for tmp files.
13349
13350 {
13351 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13352 test -n "$tmp" && test -d "$tmp"
13353 } ||
13354 {
13355 tmp=./conf$$-$RANDOM
13356 (umask 077 && mkdir "$tmp")
13357 } ||
13358 {
13359 $as_echo "$as_me: cannot create a temporary directory in ." >&2
13360 { (exit 1); exit 1; }
13361 }
13362
13363 # Set up the scripts for CONFIG_FILES section.
13364 # No need to generate them if there are no CONFIG_FILES.
13365 # This happens for instance with `./config.status config.h'.
13366 if test -n "$CONFIG_FILES"; then
13367
13368
13369 ac_cr='
'
13371 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13372 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13373 ac_cs_awk_cr='\\r'
13374 else
13375 ac_cs_awk_cr=$ac_cr
13376 fi
13377
13378 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13379 _ACEOF
13380
13381
13382 {
13383 echo "cat >conf$$subs.awk <<_ACEOF" &&
13384 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13385 echo "_ACEOF"
13386 } >conf$$subs.sh ||
13387 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13388 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13389 { (exit 1); exit 1; }; }
13390 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13391 ac_delim='%!_!# '
13392 for ac_last_try in false false false false false :; do
13393 . ./conf$$subs.sh ||
13394 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13395 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13396 { (exit 1); exit 1; }; }
13397
13398 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13399 if test $ac_delim_n = $ac_delim_num; then
13400 break
13401 elif $ac_last_try; then
13402 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13403 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13404 { (exit 1); exit 1; }; }
13405 else
13406 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13407 fi
13408 done
13409 rm -f conf$$subs.sh
13410
13411 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13412 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13413 _ACEOF
13414 sed -n '
13415 h
13416 s/^/S["/; s/!.*/"]=/
13417 p
13418 g
13419 s/^[^!]*!//
13420 :repl
13421 t repl
13422 s/'"$ac_delim"'$//
13423 t delim
13424 :nl
13425 h
13426 s/\(.\{148\}\).*/\1/
13427 t more1
13428 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13429 p
13430 n
13431 b repl
13432 :more1
13433 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13434 p
13435 g
13436 s/.\{148\}//
13437 t nl
13438 :delim
13439 h
13440 s/\(.\{148\}\).*/\1/
13441 t more2
13442 s/["\\]/\\&/g; s/^/"/; s/$/"/
13443 p
13444 b
13445 :more2
13446 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13447 p
13448 g
13449 s/.\{148\}//
13450 t delim
13451 ' <conf$$subs.awk | sed '
13452 /^[^""]/{
13453 N
13454 s/\n//
13455 }
13456 ' >>$CONFIG_STATUS || ac_write_fail=1
13457 rm -f conf$$subs.awk
13458 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13459 _ACAWK
13460 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13461 for (key in S) S_is_set[key] = 1
13462 FS = ""
13463
13464 }
13465 {
13466 line = $ 0
13467 nfields = split(line, field, "@")
13468 substed = 0
13469 len = length(field[1])
13470 for (i = 2; i < nfields; i++) {
13471 key = field[i]
13472 keylen = length(key)
13473 if (S_is_set[key]) {
13474 value = S[key]
13475 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13476 len += length(value) + length(field[++i])
13477 substed = 1
13478 } else
13479 len += 1 + keylen
13480 }
13481
13482 print line
13483 }
13484
13485 _ACAWK
13486 _ACEOF
13487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13488 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13489 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13490 else
13491 cat
13492 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13493 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13494 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
13495 { (exit 1); exit 1; }; }
13496 _ACEOF
13497
13498 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13499 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13500 # trailing colons and then remove the whole line if VPATH becomes empty
13501 # (actually we leave an empty line to preserve line numbers).
13502 if test "x$srcdir" = x.; then
13503 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13504 s/:*\$(srcdir):*/:/
13505 s/:*\${srcdir}:*/:/
13506 s/:*@srcdir@:*/:/
13507 s/^\([^=]*=[ ]*\):*/\1/
13508 s/:*$//
13509 s/^[^=]*=[ ]*$//
13510 }'
13511 fi
13512
13513 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13514 fi # test -n "$CONFIG_FILES"
13515
13516 # Set up the scripts for CONFIG_HEADERS section.
13517 # No need to generate them if there are no CONFIG_HEADERS.
13518 # This happens for instance with `./config.status Makefile'.
13519 if test -n "$CONFIG_HEADERS"; then
13520 cat >"$tmp/defines.awk" <<\_ACAWK ||
13521 BEGIN {
13522 _ACEOF
13523
13524 # Transform confdefs.h into an awk script `defines.awk', embedded as
13525 # here-document in config.status, that substitutes the proper values into
13526 # config.h.in to produce config.h.
13527
13528 # Create a delimiter string that does not exist in confdefs.h, to ease
13529 # handling of long lines.
13530 ac_delim='%!_!# '
13531 for ac_last_try in false false :; do
13532 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13533 if test -z "$ac_t"; then
13534 break
13535 elif $ac_last_try; then
13536 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
13537 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
13538 { (exit 1); exit 1; }; }
13539 else
13540 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13541 fi
13542 done
13543
13544 # For the awk script, D is an array of macro values keyed by name,
13545 # likewise P contains macro parameters if any. Preserve backslash
13546 # newline sequences.
13547
13548 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13549 sed -n '
13550 s/.\{148\}/&'"$ac_delim"'/g
13551 t rset
13552 :rset
13553 s/^[ ]*#[ ]*define[ ][ ]*/ /
13554 t def
13555 d
13556 :def
13557 s/\\$//
13558 t bsnl
13559 s/["\\]/\\&/g
13560 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13561 D["\1"]=" \3"/p
13562 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13563 d
13564 :bsnl
13565 s/["\\]/\\&/g
13566 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13567 D["\1"]=" \3\\\\\\n"\\/p
13568 t cont
13569 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13570 t cont
13571 d
13572 :cont
13573 n
13574 s/.\{148\}/&'"$ac_delim"'/g
13575 t clear
13576 :clear
13577 s/\\$//
13578 t bsnlc
13579 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13580 d
13581 :bsnlc
13582 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13583 b cont
13584 ' <confdefs.h | sed '
13585 s/'"$ac_delim"'/"\\\
13586 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13587
13588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13589 for (key in D) D_is_set[key] = 1
13590 FS = ""
13591 }
13592 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13593 line = \$ 0
13594 split(line, arg, " ")
13595 if (arg[1] == "#") {
13596 defundef = arg[2]
13597 mac1 = arg[3]
13598 } else {
13599 defundef = substr(arg[1], 2)
13600 mac1 = arg[2]
13601 }
13602 split(mac1, mac2, "(") #)
13603 macro = mac2[1]
13604 prefix = substr(line, 1, index(line, defundef) - 1)
13605 if (D_is_set[macro]) {
13606 # Preserve the white space surrounding the "#".
13607 print prefix "define", macro P[macro] D[macro]
13608 next
13609 } else {
13610 # Replace #undef with comments. This is necessary, for example,
13611 # in the case of _POSIX_SOURCE, which is predefined and required
13612 # on some systems where configure will not decide to define it.
13613 if (defundef == "undef") {
13614 print "/*", prefix defundef, macro, "*/"
13615 next
13616 }
13617 }
13618 }
13619 { print }
13620 _ACAWK
13621 _ACEOF
13622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13623 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
13624 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
13625 { (exit 1); exit 1; }; }
13626 fi # test -n "$CONFIG_HEADERS"
13627
13628
13629 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13630 shift
13631 for ac_tag
13632 do
13633 case $ac_tag in
13634 :[FHLC]) ac_mode=$ac_tag; continue;;
13635 esac
13636 case $ac_mode$ac_tag in
13637 :[FHL]*:*);;
13638 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
13639 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
13640 { (exit 1); exit 1; }; };;
13641 :[FH]-) ac_tag=-:-;;
13642 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13643 esac
13644 ac_save_IFS=$IFS
13645 IFS=:
13646 set x $ac_tag
13647 IFS=$ac_save_IFS
13648 shift
13649 ac_file=$1
13650 shift
13651
13652 case $ac_mode in
13653 :L) ac_source=$1;;
13654 :[FH])
13655 ac_file_inputs=
13656 for ac_f
13657 do
13658 case $ac_f in
13659 -) ac_f="$tmp/stdin";;
13660 *) # Look for the file first in the build tree, then in the source tree
13661 # (if the path is not absolute). The absolute path cannot be DOS-style,
13662 # because $ac_f cannot contain `:'.
13663 test -f "$ac_f" ||
13664 case $ac_f in
13665 [\\/$]*) false;;
13666 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13667 esac ||
13668 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13669 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13670 { (exit 1); exit 1; }; };;
13671 esac
13672 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13673 ac_file_inputs="$ac_file_inputs '$ac_f'"
13674 done
13675
13676 # Let's still pretend it is `configure' which instantiates (i.e., don't
13677 # use $as_me), people would be surprised to read:
13678 # /* config.h. Generated by config.status. */
13679 configure_input='Generated from '`
13680 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13681 `' by configure.'
13682 if test x"$ac_file" != x-; then
13683 configure_input="$ac_file. $configure_input"
13684 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13685 $as_echo "$as_me: creating $ac_file" >&6;}
13686 fi
13687 # Neutralize special characters interpreted by sed in replacement strings.
13688 case $configure_input in #(
13689 *\&* | *\|* | *\\* )
13690 ac_sed_conf_input=`$as_echo "$configure_input" |
13691 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13692 *) ac_sed_conf_input=$configure_input;;
13693 esac
13694
13695 case $ac_tag in
13696 *:-:* | *:-) cat >"$tmp/stdin" \
13697 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13698 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13699 { (exit 1); exit 1; }; } ;;
13700 esac
13701 ;;
13702 esac
13703
13704 ac_dir=`$as_dirname -- "$ac_file" ||
13705 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13706 X"$ac_file" : 'X\(//\)[^/]' \| \
13707 X"$ac_file" : 'X\(//\)$' \| \
13708 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13709 $as_echo X"$ac_file" |
13710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13711 s//\1/
13712 q
13713 }
13714 /^X\(\/\/\)[^/].*/{
13715 s//\1/
13716 q
13717 }
13718 /^X\(\/\/\)$/{
13719 s//\1/
13720 q
13721 }
13722 /^X\(\/\).*/{
13723 s//\1/
13724 q
13725 }
13726 s/.*/./; q'`
13727 { as_dir="$ac_dir"
13728 case $as_dir in #(
13729 -*) as_dir=./$as_dir;;
13730 esac
13731 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13732 as_dirs=
13733 while :; do
13734 case $as_dir in #(
13735 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13736 *) as_qdir=$as_dir;;
13737 esac
13738 as_dirs="'$as_qdir' $as_dirs"
13739 as_dir=`$as_dirname -- "$as_dir" ||
13740 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13741 X"$as_dir" : 'X\(//\)[^/]' \| \
13742 X"$as_dir" : 'X\(//\)$' \| \
13743 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13744 $as_echo X"$as_dir" |
13745 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13746 s//\1/
13747 q
13748 }
13749 /^X\(\/\/\)[^/].*/{
13750 s//\1/
13751 q
13752 }
13753 /^X\(\/\/\)$/{
13754 s//\1/
13755 q
13756 }
13757 /^X\(\/\).*/{
13758 s//\1/
13759 q
13760 }
13761 s/.*/./; q'`
13762 test -d "$as_dir" && break
13763 done
13764 test -z "$as_dirs" || eval "mkdir $as_dirs"
13765 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13766 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13767 { (exit 1); exit 1; }; }; }
13768 ac_builddir=.
13769
13770 case "$ac_dir" in
13771 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13772 *)
13773 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13774 # A ".." for each directory in $ac_dir_suffix.
13775 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13776 case $ac_top_builddir_sub in
13777 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13778 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13779 esac ;;
13780 esac
13781 ac_abs_top_builddir=$ac_pwd
13782 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13783 # for backward compatibility:
13784 ac_top_builddir=$ac_top_build_prefix
13785
13786 case $srcdir in
13787 .) # We are building in place.
13788 ac_srcdir=.
13789 ac_top_srcdir=$ac_top_builddir_sub
13790 ac_abs_top_srcdir=$ac_pwd ;;
13791 [\\/]* | ?:[\\/]* ) # Absolute name.
13792 ac_srcdir=$srcdir$ac_dir_suffix;
13793 ac_top_srcdir=$srcdir
13794 ac_abs_top_srcdir=$srcdir ;;
13795 *) # Relative name.
13796 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13797 ac_top_srcdir=$ac_top_build_prefix$srcdir
13798 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13799 esac
13800 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13801
13802
13803 case $ac_mode in
13804 :F)
13805 #
13806 # CONFIG_FILE
13807 #
13808
13809 case $INSTALL in
13810 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13811 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13812 esac
13813 ac_MKDIR_P=$MKDIR_P
13814 case $MKDIR_P in
13815 [\\/$]* | ?:[\\/]* ) ;;
13816 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13817 esac
13818 _ACEOF
13819
13820 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13821 # If the template does not know about datarootdir, expand it.
13822 # FIXME: This hack should be removed a few years after 2.60.
13823 ac_datarootdir_hack=; ac_datarootdir_seen=
13824
13825 ac_sed_dataroot='
13826 /datarootdir/ {
13827 p
13828 q
13829 }
13830 /@datadir@/p
13831 /@docdir@/p
13832 /@infodir@/p
13833 /@localedir@/p
13834 /@mandir@/p
13835 '
13836 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13837 *datarootdir*) ac_datarootdir_seen=yes;;
13838 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13839 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13840 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13841 _ACEOF
13842 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13843 ac_datarootdir_hack='
13844 s&@datadir@&$datadir&g
13845 s&@docdir@&$docdir&g
13846 s&@infodir@&$infodir&g
13847 s&@localedir@&$localedir&g
13848 s&@mandir@&$mandir&g
13849 s&\\\${datarootdir}&$datarootdir&g' ;;
13850 esac
13851 _ACEOF
13852
13853 # Neutralize VPATH when `$srcdir' = `.'.
13854 # Shell code in configure.ac might set extrasub.
13855 # FIXME: do we really want to maintain this feature?
13856 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13857 ac_sed_extra="$ac_vpsub
13858 $extrasub
13859 _ACEOF
13860 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13861 :t
13862 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13863 s|@configure_input@|$ac_sed_conf_input|;t t
13864 s&@top_builddir@&$ac_top_builddir_sub&;t t
13865 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13866 s&@srcdir@&$ac_srcdir&;t t
13867 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13868 s&@top_srcdir@&$ac_top_srcdir&;t t
13869 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13870 s&@builddir@&$ac_builddir&;t t
13871 s&@abs_builddir@&$ac_abs_builddir&;t t
13872 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13873 s&@INSTALL@&$ac_INSTALL&;t t
13874 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13875 $ac_datarootdir_hack
13876 "
13877 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13878 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13879 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13880 { (exit 1); exit 1; }; }
13881
13882 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13883 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13884 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13885 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13886 which seems to be undefined. Please make sure it is defined." >&5
13887 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13888 which seems to be undefined. Please make sure it is defined." >&2;}
13889
13890 rm -f "$tmp/stdin"
13891 case $ac_file in
13892 -) cat "$tmp/out" && rm -f "$tmp/out";;
13893 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13894 esac \
13895 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13896 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13897 { (exit 1); exit 1; }; }
13898 ;;
13899 :H)
13900 #
13901 # CONFIG_HEADER
13902 #
13903 if test x"$ac_file" != x-; then
13904 {
13905 $as_echo "/* $configure_input */" \
13906 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13907 } >"$tmp/config.h" \
13908 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13909 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13910 { (exit 1); exit 1; }; }
13911 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13912 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13913 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13914 else
13915 rm -f "$ac_file"
13916 mv "$tmp/config.h" "$ac_file" \
13917 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13918 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13919 { (exit 1); exit 1; }; }
13920 fi
13921 else
13922 $as_echo "/* $configure_input */" \
13923 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13924 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
13925 $as_echo "$as_me: error: could not create -" >&2;}
13926 { (exit 1); exit 1; }; }
13927 fi
13928 # Compute "$ac_file"'s index in $config_headers.
13929 _am_arg="$ac_file"
13930 _am_stamp_count=1
13931 for _am_header in $config_headers :; do
13932 case $_am_header in
13933 $_am_arg | $_am_arg:* )
13934 break ;;
13935 * )
13936 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13937 esac
13938 done
13939 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13940 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13941 X"$_am_arg" : 'X\(//\)[^/]' \| \
13942 X"$_am_arg" : 'X\(//\)$' \| \
13943 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13944 $as_echo X"$_am_arg" |
13945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13946 s//\1/
13947 q
13948 }
13949 /^X\(\/\/\)[^/].*/{
13950 s//\1/
13951 q
13952 }
13953 /^X\(\/\/\)$/{
13954 s//\1/
13955 q
13956 }
13957 /^X\(\/\).*/{
13958 s//\1/
13959 q
13960 }
13961 s/.*/./; q'`/stamp-h$_am_stamp_count
13962 ;;
13963
13964 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
13965 $as_echo "$as_me: executing $ac_file commands" >&6;}
13966 ;;
13967 esac
13968
13969
13970 case $ac_file$ac_mode in
13971 "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
13972 # are listed without --file. Let's play safe and only enable the eval
13973 # if we detect the quoting.
13974 case $CONFIG_FILES in
13975 *\'*) eval set x "$CONFIG_FILES" ;;
13976 *) set x $CONFIG_FILES ;;
13977 esac
13978 shift
13979 for mf
13980 do
13981 # Strip MF so we end up with the name of the file.
13982 mf=`echo "$mf" | sed -e 's/:.*$//'`
13983 # Check whether this is an Automake generated Makefile or not.
13984 # We used to match only the files named `Makefile.in', but
13985 # some people rename them; so instead we look at the file content.
13986 # Grep'ing the first line is not enough: some people post-process
13987 # each Makefile.in and add a new line on top of each file to say so.
13988 # Grep'ing the whole file is not good either: AIX grep has a line
13989 # limit of 2048, but all sed's we know have understand at least 4000.
13990 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13991 dirpart=`$as_dirname -- "$mf" ||
13992 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13993 X"$mf" : 'X\(//\)[^/]' \| \
13994 X"$mf" : 'X\(//\)$' \| \
13995 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13996 $as_echo X"$mf" |
13997 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13998 s//\1/
13999 q
14000 }
14001 /^X\(\/\/\)[^/].*/{
14002 s//\1/
14003 q
14004 }
14005 /^X\(\/\/\)$/{
14006 s//\1/
14007 q
14008 }
14009 /^X\(\/\).*/{
14010 s//\1/
14011 q
14012 }
14013 s/.*/./; q'`
14014 else
14015 continue
14016 fi
14017 # Extract the definition of DEPDIR, am__include, and am__quote
14018 # from the Makefile without running `make'.
14019 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14020 test -z "$DEPDIR" && continue
14021 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14022 test -z "am__include" && continue
14023 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14024 # When using ansi2knr, U may be empty or an underscore; expand it
14025 U=`sed -n 's/^U = //p' < "$mf"`
14026 # Find all dependency output files, they are included files with
14027 # $(DEPDIR) in their names. We invoke sed twice because it is the
14028 # simplest approach to changing $(DEPDIR) to its actual value in the
14029 # expansion.
14030 for file in `sed -n "
14031 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14032 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14033 # Make sure the directory exists.
14034 test -f "$dirpart/$file" && continue
14035 fdir=`$as_dirname -- "$file" ||
14036 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14037 X"$file" : 'X\(//\)[^/]' \| \
14038 X"$file" : 'X\(//\)$' \| \
14039 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14040 $as_echo X"$file" |
14041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14042 s//\1/
14043 q
14044 }
14045 /^X\(\/\/\)[^/].*/{
14046 s//\1/
14047 q
14048 }
14049 /^X\(\/\/\)$/{
14050 s//\1/
14051 q
14052 }
14053 /^X\(\/\).*/{
14054 s//\1/
14055 q
14056 }
14057 s/.*/./; q'`
14058 { as_dir=$dirpart/$fdir
14059 case $as_dir in #(
14060 -*) as_dir=./$as_dir;;
14061 esac
14062 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14063 as_dirs=
14064 while :; do
14065 case $as_dir in #(
14066 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14067 *) as_qdir=$as_dir;;
14068 esac
14069 as_dirs="'$as_qdir' $as_dirs"
14070 as_dir=`$as_dirname -- "$as_dir" ||
14071 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14072 X"$as_dir" : 'X\(//\)[^/]' \| \
14073 X"$as_dir" : 'X\(//\)$' \| \
14074 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14075 $as_echo X"$as_dir" |
14076 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14077 s//\1/
14078 q
14079 }
14080 /^X\(\/\/\)[^/].*/{
14081 s//\1/
14082 q
14083 }
14084 /^X\(\/\/\)$/{
14085 s//\1/
14086 q
14087 }
14088 /^X\(\/\).*/{
14089 s//\1/
14090 q
14091 }
14092 s/.*/./; q'`
14093 test -d "$as_dir" && break
14094 done
14095 test -z "$as_dirs" || eval "mkdir $as_dirs"
14096 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14097 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14098 { (exit 1); exit 1; }; }; }
14099 # echo "creating $dirpart/$file"
14100 echo '# dummy' > "$dirpart/$file"
14101 done
14102 done
14103 ;;
14104 "libtool":C)
14105
14106 # See if we are running on zsh, and set the options which allow our
14107 # commands through without removal of \ escapes.
14108 if test -n "${ZSH_VERSION+set}" ; then
14109 setopt NO_GLOB_SUBST
14110 fi
14111
14112 cfgfile="${ofile}T"
14113 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14114 $RM "$cfgfile"
14115
14116 cat <<_LT_EOF >> "$cfgfile"
14117 #! $SHELL
14118
14119 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14120 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14121 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14122 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14123 #
14124 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14125 # 2006, 2007, 2008 Free Software Foundation, Inc.
14126 # Written by Gordon Matzigkeit, 1996
14127 #
14128 # This file is part of GNU Libtool.
14129 #
14130 # GNU Libtool is free software; you can redistribute it and/or
14131 # modify it under the terms of the GNU General Public License as
14132 # published by the Free Software Foundation; either version 2 of
14133 # the License, or (at your option) any later version.
14134 #
14135 # As a special exception to the GNU General Public License,
14136 # if you distribute this file as part of a program or library that
14137 # is built using GNU Libtool, you may include this file under the
14138 # same distribution terms that you use for the rest of that program.
14139 #
14140 # GNU Libtool is distributed in the hope that it will be useful,
14141 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14142 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14143 # GNU General Public License for more details.
14144 #
14145 # You should have received a copy of the GNU General Public License
14146 # along with GNU Libtool; see the file COPYING. If not, a copy
14147 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14148 # obtained by writing to the Free Software Foundation, Inc.,
14149 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14150
14151
14152 # The names of the tagged configurations supported by this script.
14153 available_tags=""
14154
14155 # ### BEGIN LIBTOOL CONFIG
14156
14157 # Which release of libtool.m4 was used?
14158 macro_version=$macro_version
14159 macro_revision=$macro_revision
14160
14161 # Whether or not to build shared libraries.
14162 build_libtool_libs=$enable_shared
14163
14164 # Whether or not to build static libraries.
14165 build_old_libs=$enable_static
14166
14167 # What type of objects to build.
14168 pic_mode=$pic_mode
14169
14170 # Whether or not to optimize for fast installation.
14171 fast_install=$enable_fast_install
14172
14173 # The host system.
14174 host_alias=$host_alias
14175 host=$host
14176 host_os=$host_os
14177
14178 # The build system.
14179 build_alias=$build_alias
14180 build=$build
14181 build_os=$build_os
14182
14183 # A sed program that does not truncate output.
14184 SED=$lt_SED
14185
14186 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14187 Xsed="\$SED -e 1s/^X//"
14188
14189 # A grep program that handles long lines.
14190 GREP=$lt_GREP
14191
14192 # An ERE matcher.
14193 EGREP=$lt_EGREP
14194
14195 # A literal string matcher.
14196 FGREP=$lt_FGREP
14197
14198 # A BSD- or MS-compatible name lister.
14199 NM=$lt_NM
14200
14201 # Whether we need soft or hard links.
14202 LN_S=$lt_LN_S
14203
14204 # What is the maximum length of a command?
14205 max_cmd_len=$max_cmd_len
14206
14207 # Object file suffix (normally "o").
14208 objext=$ac_objext
14209
14210 # Executable file suffix (normally "").
14211 exeext=$exeext
14212
14213 # whether the shell understands "unset".
14214 lt_unset=$lt_unset
14215
14216 # turn spaces into newlines.
14217 SP2NL=$lt_lt_SP2NL
14218
14219 # turn newlines into spaces.
14220 NL2SP=$lt_lt_NL2SP
14221
14222 # How to create reloadable object files.
14223 reload_flag=$lt_reload_flag
14224 reload_cmds=$lt_reload_cmds
14225
14226 # An object symbol dumper.
14227 OBJDUMP=$lt_OBJDUMP
14228
14229 # Method to check whether dependent libraries are shared objects.
14230 deplibs_check_method=$lt_deplibs_check_method
14231
14232 # Command to use when deplibs_check_method == "file_magic".
14233 file_magic_cmd=$lt_file_magic_cmd
14234
14235 # The archiver.
14236 AR=$lt_AR
14237 AR_FLAGS=$lt_AR_FLAGS
14238
14239 # A symbol stripping program.
14240 STRIP=$lt_STRIP
14241
14242 # Commands used to install an old-style archive.
14243 RANLIB=$lt_RANLIB
14244 old_postinstall_cmds=$lt_old_postinstall_cmds
14245 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14246
14247 # A C compiler.
14248 LTCC=$lt_CC
14249
14250 # LTCC compiler flags.
14251 LTCFLAGS=$lt_CFLAGS
14252
14253 # Take the output of nm and produce a listing of raw symbols and C names.
14254 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14255
14256 # Transform the output of nm in a proper C declaration.
14257 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14258
14259 # Transform the output of nm in a C name address pair.
14260 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14261
14262 # Transform the output of nm in a C name address pair when lib prefix is needed.
14263 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14264
14265 # The name of the directory that contains temporary libtool files.
14266 objdir=$objdir
14267
14268 # Shell to use when invoking shell scripts.
14269 SHELL=$lt_SHELL
14270
14271 # An echo program that does not interpret backslashes.
14272 ECHO=$lt_ECHO
14273
14274 # Used to examine libraries when file_magic_cmd begins with "file".
14275 MAGIC_CMD=$MAGIC_CMD
14276
14277 # Must we lock files when doing compilation?
14278 need_locks=$lt_need_locks
14279
14280 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14281 DSYMUTIL=$lt_DSYMUTIL
14282
14283 # Tool to change global to local symbols on Mac OS X.
14284 NMEDIT=$lt_NMEDIT
14285
14286 # Tool to manipulate fat objects and archives on Mac OS X.
14287 LIPO=$lt_LIPO
14288
14289 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14290 OTOOL=$lt_OTOOL
14291
14292 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14293 OTOOL64=$lt_OTOOL64
14294
14295 # Old archive suffix (normally "a").
14296 libext=$libext
14297
14298 # Shared library suffix (normally ".so").
14299 shrext_cmds=$lt_shrext_cmds
14300
14301 # The commands to extract the exported symbol list from a shared archive.
14302 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14303
14304 # Variables whose values should be saved in libtool wrapper scripts and
14305 # restored at link time.
14306 variables_saved_for_relink=$lt_variables_saved_for_relink
14307
14308 # Do we need the "lib" prefix for modules?
14309 need_lib_prefix=$need_lib_prefix
14310
14311 # Do we need a version for libraries?
14312 need_version=$need_version
14313
14314 # Library versioning type.
14315 version_type=$version_type
14316
14317 # Shared library runtime path variable.
14318 runpath_var=$runpath_var
14319
14320 # Shared library path variable.
14321 shlibpath_var=$shlibpath_var
14322
14323 # Is shlibpath searched before the hard-coded library search path?
14324 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14325
14326 # Format of library name prefix.
14327 libname_spec=$lt_libname_spec
14328
14329 # List of archive names. First name is the real one, the rest are links.
14330 # The last name is the one that the linker finds with -lNAME
14331 library_names_spec=$lt_library_names_spec
14332
14333 # The coded name of the library, if different from the real name.
14334 soname_spec=$lt_soname_spec
14335
14336 # Command to use after installation of a shared archive.
14337 postinstall_cmds=$lt_postinstall_cmds
14338
14339 # Command to use after uninstallation of a shared archive.
14340 postuninstall_cmds=$lt_postuninstall_cmds
14341
14342 # Commands used to finish a libtool library installation in a directory.
14343 finish_cmds=$lt_finish_cmds
14344
14345 # As "finish_cmds", except a single script fragment to be evaled but
14346 # not shown.
14347 finish_eval=$lt_finish_eval
14348
14349 # Whether we should hardcode library paths into libraries.
14350 hardcode_into_libs=$hardcode_into_libs
14351
14352 # Compile-time system search path for libraries.
14353 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14354
14355 # Run-time system search path for libraries.
14356 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14357
14358 # Whether dlopen is supported.
14359 dlopen_support=$enable_dlopen
14360
14361 # Whether dlopen of programs is supported.
14362 dlopen_self=$enable_dlopen_self
14363
14364 # Whether dlopen of statically linked programs is supported.
14365 dlopen_self_static=$enable_dlopen_self_static
14366
14367 # Commands to strip libraries.
14368 old_striplib=$lt_old_striplib
14369 striplib=$lt_striplib
14370
14371
14372 # The linker used to build libraries.
14373 LD=$lt_LD
14374
14375 # Commands used to build an old-style archive.
14376 old_archive_cmds=$lt_old_archive_cmds
14377
14378 # A language specific compiler.
14379 CC=$lt_compiler
14380
14381 # Is the compiler the GNU compiler?
14382 with_gcc=$GCC
14383
14384 # Compiler flag to turn off builtin functions.
14385 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14386
14387 # How to pass a linker flag through the compiler.
14388 wl=$lt_lt_prog_compiler_wl
14389
14390 # Additional compiler flags for building library objects.
14391 pic_flag=$lt_lt_prog_compiler_pic
14392
14393 # Compiler flag to prevent dynamic linking.
14394 link_static_flag=$lt_lt_prog_compiler_static
14395
14396 # Does compiler simultaneously support -c and -o options?
14397 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14398
14399 # Whether or not to add -lc for building shared libraries.
14400 build_libtool_need_lc=$archive_cmds_need_lc
14401
14402 # Whether or not to disallow shared libs when runtime libs are static.
14403 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14404
14405 # Compiler flag to allow reflexive dlopens.
14406 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14407
14408 # Compiler flag to generate shared objects directly from archives.
14409 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14410
14411 # Whether the compiler copes with passing no objects directly.
14412 compiler_needs_object=$lt_compiler_needs_object
14413
14414 # Create an old-style archive from a shared archive.
14415 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14416
14417 # Create a temporary old-style archive to link instead of a shared archive.
14418 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14419
14420 # Commands used to build a shared archive.
14421 archive_cmds=$lt_archive_cmds
14422 archive_expsym_cmds=$lt_archive_expsym_cmds
14423
14424 # Commands used to build a loadable module if different from building
14425 # a shared archive.
14426 module_cmds=$lt_module_cmds
14427 module_expsym_cmds=$lt_module_expsym_cmds
14428
14429 # Whether we are building with GNU ld or not.
14430 with_gnu_ld=$lt_with_gnu_ld
14431
14432 # Flag that allows shared libraries with undefined symbols to be built.
14433 allow_undefined_flag=$lt_allow_undefined_flag
14434
14435 # Flag that enforces no undefined symbols.
14436 no_undefined_flag=$lt_no_undefined_flag
14437
14438 # Flag to hardcode \$libdir into a binary during linking.
14439 # This must work even if \$libdir does not exist
14440 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14441
14442 # If ld is used when linking, flag to hardcode \$libdir into a binary
14443 # during linking. This must work even if \$libdir does not exist.
14444 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14445
14446 # Whether we need a single "-rpath" flag with a separated argument.
14447 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14448
14449 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14450 # DIR into the resulting binary.
14451 hardcode_direct=$hardcode_direct
14452
14453 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14454 # DIR into the resulting binary and the resulting library dependency is
14455 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14456 # library is relocated.
14457 hardcode_direct_absolute=$hardcode_direct_absolute
14458
14459 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14460 # into the resulting binary.
14461 hardcode_minus_L=$hardcode_minus_L
14462
14463 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14464 # into the resulting binary.
14465 hardcode_shlibpath_var=$hardcode_shlibpath_var
14466
14467 # Set to "yes" if building a shared library automatically hardcodes DIR
14468 # into the library and all subsequent libraries and executables linked
14469 # against it.
14470 hardcode_automatic=$hardcode_automatic
14471
14472 # Set to yes if linker adds runtime paths of dependent libraries
14473 # to runtime path list.
14474 inherit_rpath=$inherit_rpath
14475
14476 # Whether libtool must link a program against all its dependency libraries.
14477 link_all_deplibs=$link_all_deplibs
14478
14479 # Fix the shell variable \$srcfile for the compiler.
14480 fix_srcfile_path=$lt_fix_srcfile_path
14481
14482 # Set to "yes" if exported symbols are required.
14483 always_export_symbols=$always_export_symbols
14484
14485 # The commands to list exported symbols.
14486 export_symbols_cmds=$lt_export_symbols_cmds
14487
14488 # Symbols that should not be listed in the preloaded symbols.
14489 exclude_expsyms=$lt_exclude_expsyms
14490
14491 # Symbols that must always be exported.
14492 include_expsyms=$lt_include_expsyms
14493
14494 # Commands necessary for linking programs (against libraries) with templates.
14495 prelink_cmds=$lt_prelink_cmds
14496
14497 # Specify filename containing input files.
14498 file_list_spec=$lt_file_list_spec
14499
14500 # How to hardcode a shared library path into an executable.
14501 hardcode_action=$hardcode_action
14502
14503 # ### END LIBTOOL CONFIG
14504
14505 _LT_EOF
14506
14507 case $host_os in
14508 aix3*)
14509 cat <<\_LT_EOF >> "$cfgfile"
14510 # AIX sometimes has problems with the GCC collect2 program. For some
14511 # reason, if we set the COLLECT_NAMES environment variable, the problems
14512 # vanish in a puff of smoke.
14513 if test "X${COLLECT_NAMES+set}" != Xset; then
14514 COLLECT_NAMES=
14515 export COLLECT_NAMES
14516 fi
14517 _LT_EOF
14518 ;;
14519 esac
14520
14521
14522 ltmain="$ac_aux_dir/ltmain.sh"
14523
14524
14525 # We use sed instead of cat because bash on DJGPP gets confused if
14526 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14527 # text mode, it properly converts lines to CR/LF. This bash problem
14528 # is reportedly fixed, but why not run on old versions too?
14529 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14530 || (rm -f "$cfgfile"; exit 1)
14531
14532 case $xsi_shell in
14533 yes)
14534 cat << \_LT_EOF >> "$cfgfile"
14535
14536 # func_dirname file append nondir_replacement
14537 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14538 # otherwise set result to NONDIR_REPLACEMENT.
14539 func_dirname ()
14540 {
14541 case ${1} in
14542 */*) func_dirname_result="${1%/*}${2}" ;;
14543 * ) func_dirname_result="${3}" ;;
14544 esac
14545 }
14546
14547 # func_basename file
14548 func_basename ()
14549 {
14550 func_basename_result="${1##*/}"
14551 }
14552
14553 # func_dirname_and_basename file append nondir_replacement
14554 # perform func_basename and func_dirname in a single function
14555 # call:
14556 # dirname: Compute the dirname of FILE. If nonempty,
14557 # add APPEND to the result, otherwise set result
14558 # to NONDIR_REPLACEMENT.
14559 # value returned in "$func_dirname_result"
14560 # basename: Compute filename of FILE.
14561 # value retuned in "$func_basename_result"
14562 # Implementation must be kept synchronized with func_dirname
14563 # and func_basename. For efficiency, we do not delegate to
14564 # those functions but instead duplicate the functionality here.
14565 func_dirname_and_basename ()
14566 {
14567 case ${1} in
14568 */*) func_dirname_result="${1%/*}${2}" ;;
14569 * ) func_dirname_result="${3}" ;;
14570 esac
14571 func_basename_result="${1##*/}"
14572 }
14573
14574 # func_stripname prefix suffix name
14575 # strip PREFIX and SUFFIX off of NAME.
14576 # PREFIX and SUFFIX must not contain globbing or regex special
14577 # characters, hashes, percent signs, but SUFFIX may contain a leading
14578 # dot (in which case that matches only a dot).
14579 func_stripname ()
14580 {
14581 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14582 # positional parameters, so assign one to ordinary parameter first.
14583 func_stripname_result=${3}
14584 func_stripname_result=${func_stripname_result#"${1}"}
14585 func_stripname_result=${func_stripname_result%"${2}"}
14586 }
14587
14588 # func_opt_split
14589 func_opt_split ()
14590 {
14591 func_opt_split_opt=${1%%=*}
14592 func_opt_split_arg=${1#*=}
14593 }
14594
14595 # func_lo2o object
14596 func_lo2o ()
14597 {
14598 case ${1} in
14599 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14600 *) func_lo2o_result=${1} ;;
14601 esac
14602 }
14603
14604 # func_xform libobj-or-source
14605 func_xform ()
14606 {
14607 func_xform_result=${1%.*}.lo
14608 }
14609
14610 # func_arith arithmetic-term...
14611 func_arith ()
14612 {
14613 func_arith_result=$(( $* ))
14614 }
14615
14616 # func_len string
14617 # STRING may not start with a hyphen.
14618 func_len ()
14619 {
14620 func_len_result=${#1}
14621 }
14622
14623 _LT_EOF
14624 ;;
14625 *) # Bourne compatible functions.
14626 cat << \_LT_EOF >> "$cfgfile"
14627
14628 # func_dirname file append nondir_replacement
14629 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14630 # otherwise set result to NONDIR_REPLACEMENT.
14631 func_dirname ()
14632 {
14633 # Extract subdirectory from the argument.
14634 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14635 if test "X$func_dirname_result" = "X${1}"; then
14636 func_dirname_result="${3}"
14637 else
14638 func_dirname_result="$func_dirname_result${2}"
14639 fi
14640 }
14641
14642 # func_basename file
14643 func_basename ()
14644 {
14645 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14646 }
14647
14648
14649 # func_stripname prefix suffix name
14650 # strip PREFIX and SUFFIX off of NAME.
14651 # PREFIX and SUFFIX must not contain globbing or regex special
14652 # characters, hashes, percent signs, but SUFFIX may contain a leading
14653 # dot (in which case that matches only a dot).
14654 # func_strip_suffix prefix name
14655 func_stripname ()
14656 {
14657 case ${2} in
14658 .*) func_stripname_result=`$ECHO "X${3}" \
14659 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14660 *) func_stripname_result=`$ECHO "X${3}" \
14661 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14662 esac
14663 }
14664
14665 # sed scripts:
14666 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14667 my_sed_long_arg='1s/^-[^=]*=//'
14668
14669 # func_opt_split
14670 func_opt_split ()
14671 {
14672 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14673 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14674 }
14675
14676 # func_lo2o object
14677 func_lo2o ()
14678 {
14679 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14680 }
14681
14682 # func_xform libobj-or-source
14683 func_xform ()
14684 {
14685 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14686 }
14687
14688 # func_arith arithmetic-term...
14689 func_arith ()
14690 {
14691 func_arith_result=`expr "$@"`
14692 }
14693
14694 # func_len string
14695 # STRING may not start with a hyphen.
14696 func_len ()
14697 {
14698 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14699 }
14700
14701 _LT_EOF
14702 esac
14703
14704 case $lt_shell_append in
14705 yes)
14706 cat << \_LT_EOF >> "$cfgfile"
14707
14708 # func_append var value
14709 # Append VALUE to the end of shell variable VAR.
14710 func_append ()
14711 {
14712 eval "$1+=\$2"
14713 }
14714 _LT_EOF
14715 ;;
14716 *)
14717 cat << \_LT_EOF >> "$cfgfile"
14718
14719 # func_append var value
14720 # Append VALUE to the end of shell variable VAR.
14721 func_append ()
14722 {
14723 eval "$1=\$$1\$2"
14724 }
14725
14726 _LT_EOF
14727 ;;
14728 esac
14729
14730
14731 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14732 || (rm -f "$cfgfile"; exit 1)
14733
14734 mv -f "$cfgfile" "$ofile" ||
14735 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14736 chmod +x "$ofile"
14737
14738 ;;
14739
14740 esac
14741 done # for ac_tag
14742
14743
14744 { (exit 0); exit 0; }
14745 _ACEOF
14746 chmod +x $CONFIG_STATUS
14747 ac_clean_files=$ac_clean_files_save
14748
14749 test $ac_write_fail = 0 ||
14750 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14751 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14752 { (exit 1); exit 1; }; }
14753
14754
14755 # configure is writing to config.log, and then calls config.status.
14756 # config.status does its own redirection, appending to config.log.
14757 # Unfortunately, on DOS this fails, as config.log is still kept open
14758 # by configure, so config.status won't be able to write to it; its
14759 # output is simply discarded. So we exec the FD to /dev/null,
14760 # effectively closing config.log, so it can be properly (re)opened and
14761 # appended to by config.status. When coming back to configure, we
14762 # need to make the FD available again.
14763 if test "$no_create" != yes; then
14764 ac_cs_success=:
14765 ac_config_status_args=
14766 test "$silent" = yes &&
14767 ac_config_status_args="$ac_config_status_args --quiet"
14768 exec 5>/dev/null
14769 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14770 exec 5>>config.log
14771 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14772 # would make configure fail if this is the last instruction.
14773 $ac_cs_success || { (exit 1); exit 1; }
14774 fi
14775 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14776 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14777 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14778 fi
14779
14780