configure revision 1.1.1.3 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for libICE 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='libICE'
747 PACKAGE_TARNAME='libICE'
748 PACKAGE_VERSION='1.0.6'
749 PACKAGE_STRING='libICE 1.0.6'
750 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
751
752 ac_unique_file="Makefile.am"
753 # Factoring default headers for most tests.
754 ac_includes_default="\
755 #include <stdio.h>
756 #ifdef HAVE_SYS_TYPES_H
757 # include <sys/types.h>
758 #endif
759 #ifdef HAVE_SYS_STAT_H
760 # include <sys/stat.h>
761 #endif
762 #ifdef STDC_HEADERS
763 # include <stdlib.h>
764 # include <stddef.h>
765 #else
766 # ifdef HAVE_STDLIB_H
767 # include <stdlib.h>
768 # endif
769 #endif
770 #ifdef HAVE_STRING_H
771 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
772 # include <memory.h>
773 # endif
774 # include <string.h>
775 #endif
776 #ifdef HAVE_STRINGS_H
777 # include <strings.h>
778 #endif
779 #ifdef HAVE_INTTYPES_H
780 # include <inttypes.h>
781 #endif
782 #ifdef HAVE_STDINT_H
783 # include <stdint.h>
784 #endif
785 #ifdef HAVE_UNISTD_H
786 # include <unistd.h>
787 #endif"
788
789 ac_subst_vars='am__EXEEXT_FALSE
790 am__EXEEXT_TRUE
791 LTLIBOBJS
792 LIBOBJS
793 distcleancheck_listfiles
794 CHANGELOG_CMD
795 MAKE_LINT_LIB_FALSE
796 MAKE_LINT_LIB_TRUE
797 LINTLIB
798 LINT_FALSE
799 LINT_TRUE
800 LINT_FLAGS
801 LINT
802 XTRANS_LIBS
803 XTRANS_CFLAGS
804 ICE_LIBS
805 ICE_CFLAGS
806 PKG_CONFIG
807 AM_BACKSLASH
808 AM_DEFAULT_VERBOSITY
809 CWARNFLAGS
810 CPP
811 OTOOL64
812 OTOOL
813 LIPO
814 NMEDIT
815 DSYMUTIL
816 lt_ECHO
817 RANLIB
818 AR
819 OBJDUMP
820 LN_S
821 NM
822 ac_ct_DUMPBIN
823 DUMPBIN
824 LD
825 FGREP
826 EGREP
827 GREP
828 SED
829 am__fastdepCC_FALSE
830 am__fastdepCC_TRUE
831 CCDEPMODE
832 AMDEPBACKSLASH
833 AMDEP_FALSE
834 AMDEP_TRUE
835 am__quote
836 am__include
837 DEPDIR
838 OBJEXT
839 EXEEXT
840 ac_ct_CC
841 CPPFLAGS
842 LDFLAGS
843 CFLAGS
844 CC
845 host_os
846 host_vendor
847 host_cpu
848 host
849 build_os
850 build_vendor
851 build_cpu
852 build
853 LIBTOOL
854 MAINT
855 MAINTAINER_MODE_FALSE
856 MAINTAINER_MODE_TRUE
857 am__untar
858 am__tar
859 AMTAR
860 am__leading_dot
861 SET_MAKE
862 AWK
863 mkdir_p
864 MKDIR_P
865 INSTALL_STRIP_PROGRAM
866 STRIP
867 install_sh
868 MAKEINFO
869 AUTOHEADER
870 AUTOMAKE
871 AUTOCONF
872 ACLOCAL
873 VERSION
874 PACKAGE
875 CYGPATH_W
876 am__isrc
877 INSTALL_DATA
878 INSTALL_SCRIPT
879 INSTALL_PROGRAM
880 target_alias
881 host_alias
882 build_alias
883 LIBS
884 ECHO_T
885 ECHO_N
886 ECHO_C
887 DEFS
888 mandir
889 localedir
890 libdir
891 psdir
892 pdfdir
893 dvidir
894 htmldir
895 infodir
896 docdir
897 oldincludedir
898 includedir
899 localstatedir
900 sharedstatedir
901 sysconfdir
902 datadir
903 datarootdir
904 libexecdir
905 sbindir
906 bindir
907 program_transform_name
908 prefix
909 exec_prefix
910 PACKAGE_BUGREPORT
911 PACKAGE_STRING
912 PACKAGE_VERSION
913 PACKAGE_TARNAME
914 PACKAGE_NAME
915 PATH_SEPARATOR
916 SHELL'
917 ac_subst_files=''
918 ac_user_opts='
919 enable_option_checking
920 enable_maintainer_mode
921 enable_shared
922 enable_static
923 with_pic
924 enable_fast_install
925 enable_dependency_tracking
926 with_gnu_ld
927 enable_libtool_lock
928 enable_silent_rules
929 enable_unix_transport
930 enable_tcp_transport
931 enable_ipv6
932 enable_local_transport
933 with_lint
934 enable_lint_library
935 with_release_version
936 '
937 ac_precious_vars='build_alias
938 host_alias
939 target_alias
940 CC
941 CFLAGS
942 LDFLAGS
943 LIBS
944 CPPFLAGS
945 CPP
946 PKG_CONFIG
947 ICE_CFLAGS
948 ICE_LIBS
949 XTRANS_CFLAGS
950 XTRANS_LIBS'
951
952
953 # Initialize some variables set by options.
954 ac_init_help=
955 ac_init_version=false
956 ac_unrecognized_opts=
957 ac_unrecognized_sep=
958 # The variables have the same names as the options, with
959 # dashes changed to underlines.
960 cache_file=/dev/null
961 exec_prefix=NONE
962 no_create=
963 no_recursion=
964 prefix=NONE
965 program_prefix=NONE
966 program_suffix=NONE
967 program_transform_name=s,x,x,
968 silent=
969 site=
970 srcdir=
971 verbose=
972 x_includes=NONE
973 x_libraries=NONE
974
975 # Installation directory options.
976 # These are left unexpanded so users can "make install exec_prefix=/foo"
977 # and all the variables that are supposed to be based on exec_prefix
978 # by default will actually change.
979 # Use braces instead of parens because sh, perl, etc. also accept them.
980 # (The list follows the same order as the GNU Coding Standards.)
981 bindir='${exec_prefix}/bin'
982 sbindir='${exec_prefix}/sbin'
983 libexecdir='${exec_prefix}/libexec'
984 datarootdir='${prefix}/share'
985 datadir='${datarootdir}'
986 sysconfdir='${prefix}/etc'
987 sharedstatedir='${prefix}/com'
988 localstatedir='${prefix}/var'
989 includedir='${prefix}/include'
990 oldincludedir='/usr/include'
991 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
992 infodir='${datarootdir}/info'
993 htmldir='${docdir}'
994 dvidir='${docdir}'
995 pdfdir='${docdir}'
996 psdir='${docdir}'
997 libdir='${exec_prefix}/lib'
998 localedir='${datarootdir}/locale'
999 mandir='${datarootdir}/man'
1000
1001 ac_prev=
1002 ac_dashdash=
1003 for ac_option
1004 do
1005 # If the previous option needs an argument, assign it.
1006 if test -n "$ac_prev"; then
1007 eval $ac_prev=\$ac_option
1008 ac_prev=
1009 continue
1010 fi
1011
1012 case $ac_option in
1013 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1014 *) ac_optarg=yes ;;
1015 esac
1016
1017 # Accept the important Cygnus configure options, so we can diagnose typos.
1018
1019 case $ac_dashdash$ac_option in
1020 --)
1021 ac_dashdash=yes ;;
1022
1023 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1024 ac_prev=bindir ;;
1025 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1026 bindir=$ac_optarg ;;
1027
1028 -build | --build | --buil | --bui | --bu)
1029 ac_prev=build_alias ;;
1030 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1031 build_alias=$ac_optarg ;;
1032
1033 -cache-file | --cache-file | --cache-fil | --cache-fi \
1034 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1035 ac_prev=cache_file ;;
1036 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1037 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1038 cache_file=$ac_optarg ;;
1039
1040 --config-cache | -C)
1041 cache_file=config.cache ;;
1042
1043 -datadir | --datadir | --datadi | --datad)
1044 ac_prev=datadir ;;
1045 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1046 datadir=$ac_optarg ;;
1047
1048 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1049 | --dataroo | --dataro | --datar)
1050 ac_prev=datarootdir ;;
1051 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1052 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1053 datarootdir=$ac_optarg ;;
1054
1055 -disable-* | --disable-*)
1056 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1057 # Reject names that are not valid shell variable names.
1058 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1059 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1060 { (exit 1); exit 1; }; }
1061 ac_useropt_orig=$ac_useropt
1062 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1063 case $ac_user_opts in
1064 *"
1065 "enable_$ac_useropt"
1066 "*) ;;
1067 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1068 ac_unrecognized_sep=', ';;
1069 esac
1070 eval enable_$ac_useropt=no ;;
1071
1072 -docdir | --docdir | --docdi | --doc | --do)
1073 ac_prev=docdir ;;
1074 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1075 docdir=$ac_optarg ;;
1076
1077 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1078 ac_prev=dvidir ;;
1079 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1080 dvidir=$ac_optarg ;;
1081
1082 -enable-* | --enable-*)
1083 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1084 # Reject names that are not valid shell variable names.
1085 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1086 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1087 { (exit 1); exit 1; }; }
1088 ac_useropt_orig=$ac_useropt
1089 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1090 case $ac_user_opts in
1091 *"
1092 "enable_$ac_useropt"
1093 "*) ;;
1094 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1095 ac_unrecognized_sep=', ';;
1096 esac
1097 eval enable_$ac_useropt=\$ac_optarg ;;
1098
1099 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1100 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1101 | --exec | --exe | --ex)
1102 ac_prev=exec_prefix ;;
1103 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1104 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1105 | --exec=* | --exe=* | --ex=*)
1106 exec_prefix=$ac_optarg ;;
1107
1108 -gas | --gas | --ga | --g)
1109 # Obsolete; use --with-gas.
1110 with_gas=yes ;;
1111
1112 -help | --help | --hel | --he | -h)
1113 ac_init_help=long ;;
1114 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1115 ac_init_help=recursive ;;
1116 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1117 ac_init_help=short ;;
1118
1119 -host | --host | --hos | --ho)
1120 ac_prev=host_alias ;;
1121 -host=* | --host=* | --hos=* | --ho=*)
1122 host_alias=$ac_optarg ;;
1123
1124 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1125 ac_prev=htmldir ;;
1126 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1127 | --ht=*)
1128 htmldir=$ac_optarg ;;
1129
1130 -includedir | --includedir | --includedi | --included | --include \
1131 | --includ | --inclu | --incl | --inc)
1132 ac_prev=includedir ;;
1133 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1134 | --includ=* | --inclu=* | --incl=* | --inc=*)
1135 includedir=$ac_optarg ;;
1136
1137 -infodir | --infodir | --infodi | --infod | --info | --inf)
1138 ac_prev=infodir ;;
1139 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1140 infodir=$ac_optarg ;;
1141
1142 -libdir | --libdir | --libdi | --libd)
1143 ac_prev=libdir ;;
1144 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1145 libdir=$ac_optarg ;;
1146
1147 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1148 | --libexe | --libex | --libe)
1149 ac_prev=libexecdir ;;
1150 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1151 | --libexe=* | --libex=* | --libe=*)
1152 libexecdir=$ac_optarg ;;
1153
1154 -localedir | --localedir | --localedi | --localed | --locale)
1155 ac_prev=localedir ;;
1156 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1157 localedir=$ac_optarg ;;
1158
1159 -localstatedir | --localstatedir | --localstatedi | --localstated \
1160 | --localstate | --localstat | --localsta | --localst | --locals)
1161 ac_prev=localstatedir ;;
1162 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1163 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1164 localstatedir=$ac_optarg ;;
1165
1166 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1167 ac_prev=mandir ;;
1168 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1169 mandir=$ac_optarg ;;
1170
1171 -nfp | --nfp | --nf)
1172 # Obsolete; use --without-fp.
1173 with_fp=no ;;
1174
1175 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1176 | --no-cr | --no-c | -n)
1177 no_create=yes ;;
1178
1179 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1180 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1181 no_recursion=yes ;;
1182
1183 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1184 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1185 | --oldin | --oldi | --old | --ol | --o)
1186 ac_prev=oldincludedir ;;
1187 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1188 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1189 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1190 oldincludedir=$ac_optarg ;;
1191
1192 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1193 ac_prev=prefix ;;
1194 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1195 prefix=$ac_optarg ;;
1196
1197 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1198 | --program-pre | --program-pr | --program-p)
1199 ac_prev=program_prefix ;;
1200 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1201 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1202 program_prefix=$ac_optarg ;;
1203
1204 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1205 | --program-suf | --program-su | --program-s)
1206 ac_prev=program_suffix ;;
1207 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1208 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1209 program_suffix=$ac_optarg ;;
1210
1211 -program-transform-name | --program-transform-name \
1212 | --program-transform-nam | --program-transform-na \
1213 | --program-transform-n | --program-transform- \
1214 | --program-transform | --program-transfor \
1215 | --program-transfo | --program-transf \
1216 | --program-trans | --program-tran \
1217 | --progr-tra | --program-tr | --program-t)
1218 ac_prev=program_transform_name ;;
1219 -program-transform-name=* | --program-transform-name=* \
1220 | --program-transform-nam=* | --program-transform-na=* \
1221 | --program-transform-n=* | --program-transform-=* \
1222 | --program-transform=* | --program-transfor=* \
1223 | --program-transfo=* | --program-transf=* \
1224 | --program-trans=* | --program-tran=* \
1225 | --progr-tra=* | --program-tr=* | --program-t=*)
1226 program_transform_name=$ac_optarg ;;
1227
1228 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1229 ac_prev=pdfdir ;;
1230 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1231 pdfdir=$ac_optarg ;;
1232
1233 -psdir | --psdir | --psdi | --psd | --ps)
1234 ac_prev=psdir ;;
1235 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1236 psdir=$ac_optarg ;;
1237
1238 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1239 | -silent | --silent | --silen | --sile | --sil)
1240 silent=yes ;;
1241
1242 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1243 ac_prev=sbindir ;;
1244 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1245 | --sbi=* | --sb=*)
1246 sbindir=$ac_optarg ;;
1247
1248 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1249 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1250 | --sharedst | --shareds | --shared | --share | --shar \
1251 | --sha | --sh)
1252 ac_prev=sharedstatedir ;;
1253 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1254 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1255 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1256 | --sha=* | --sh=*)
1257 sharedstatedir=$ac_optarg ;;
1258
1259 -site | --site | --sit)
1260 ac_prev=site ;;
1261 -site=* | --site=* | --sit=*)
1262 site=$ac_optarg ;;
1263
1264 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1265 ac_prev=srcdir ;;
1266 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1267 srcdir=$ac_optarg ;;
1268
1269 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1270 | --syscon | --sysco | --sysc | --sys | --sy)
1271 ac_prev=sysconfdir ;;
1272 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1273 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1274 sysconfdir=$ac_optarg ;;
1275
1276 -target | --target | --targe | --targ | --tar | --ta | --t)
1277 ac_prev=target_alias ;;
1278 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1279 target_alias=$ac_optarg ;;
1280
1281 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1282 verbose=yes ;;
1283
1284 -version | --version | --versio | --versi | --vers | -V)
1285 ac_init_version=: ;;
1286
1287 -with-* | --with-*)
1288 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1289 # Reject names that are not valid shell variable names.
1290 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1291 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1292 { (exit 1); exit 1; }; }
1293 ac_useropt_orig=$ac_useropt
1294 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1295 case $ac_user_opts in
1296 *"
1297 "with_$ac_useropt"
1298 "*) ;;
1299 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1300 ac_unrecognized_sep=', ';;
1301 esac
1302 eval with_$ac_useropt=\$ac_optarg ;;
1303
1304 -without-* | --without-*)
1305 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1306 # Reject names that are not valid shell variable names.
1307 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1308 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1309 { (exit 1); exit 1; }; }
1310 ac_useropt_orig=$ac_useropt
1311 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1312 case $ac_user_opts in
1313 *"
1314 "with_$ac_useropt"
1315 "*) ;;
1316 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1317 ac_unrecognized_sep=', ';;
1318 esac
1319 eval with_$ac_useropt=no ;;
1320
1321 --x)
1322 # Obsolete; use --with-x.
1323 with_x=yes ;;
1324
1325 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1326 | --x-incl | --x-inc | --x-in | --x-i)
1327 ac_prev=x_includes ;;
1328 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1329 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1330 x_includes=$ac_optarg ;;
1331
1332 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1333 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1334 ac_prev=x_libraries ;;
1335 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1336 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1337 x_libraries=$ac_optarg ;;
1338
1339 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1340 Try \`$0 --help' for more information." >&2
1341 { (exit 1); exit 1; }; }
1342 ;;
1343
1344 *=*)
1345 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1346 # Reject names that are not valid shell variable names.
1347 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1348 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1349 { (exit 1); exit 1; }; }
1350 eval $ac_envvar=\$ac_optarg
1351 export $ac_envvar ;;
1352
1353 *)
1354 # FIXME: should be removed in autoconf 3.0.
1355 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1356 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1357 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1358 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1359 ;;
1360
1361 esac
1362 done
1363
1364 if test -n "$ac_prev"; then
1365 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1366 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1367 { (exit 1); exit 1; }; }
1368 fi
1369
1370 if test -n "$ac_unrecognized_opts"; then
1371 case $enable_option_checking in
1372 no) ;;
1373 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1374 { (exit 1); exit 1; }; } ;;
1375 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1376 esac
1377 fi
1378
1379 # Check all directory arguments for consistency.
1380 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1381 datadir sysconfdir sharedstatedir localstatedir includedir \
1382 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1383 libdir localedir mandir
1384 do
1385 eval ac_val=\$$ac_var
1386 # Remove trailing slashes.
1387 case $ac_val in
1388 */ )
1389 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1390 eval $ac_var=\$ac_val;;
1391 esac
1392 # Be sure to have absolute directory names.
1393 case $ac_val in
1394 [\\/$]* | ?:[\\/]* ) continue;;
1395 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1396 esac
1397 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1398 { (exit 1); exit 1; }; }
1399 done
1400
1401 # There might be people who depend on the old broken behavior: `$host'
1402 # used to hold the argument of --host etc.
1403 # FIXME: To remove some day.
1404 build=$build_alias
1405 host=$host_alias
1406 target=$target_alias
1407
1408 # FIXME: To remove some day.
1409 if test "x$host_alias" != x; then
1410 if test "x$build_alias" = x; then
1411 cross_compiling=maybe
1412 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1413 If a cross compiler is detected then cross compile mode will be used." >&2
1414 elif test "x$build_alias" != "x$host_alias"; then
1415 cross_compiling=yes
1416 fi
1417 fi
1418
1419 ac_tool_prefix=
1420 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1421
1422 test "$silent" = yes && exec 6>/dev/null
1423
1424
1425 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1426 ac_ls_di=`ls -di .` &&
1427 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1428 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1429 { (exit 1); exit 1; }; }
1430 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1431 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1432 { (exit 1); exit 1; }; }
1433
1434
1435 # Find the source files, if location was not specified.
1436 if test -z "$srcdir"; then
1437 ac_srcdir_defaulted=yes
1438 # Try the directory containing this script, then the parent directory.
1439 ac_confdir=`$as_dirname -- "$as_myself" ||
1440 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1441 X"$as_myself" : 'X\(//\)[^/]' \| \
1442 X"$as_myself" : 'X\(//\)$' \| \
1443 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1444 $as_echo X"$as_myself" |
1445 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1446 s//\1/
1447 q
1448 }
1449 /^X\(\/\/\)[^/].*/{
1450 s//\1/
1451 q
1452 }
1453 /^X\(\/\/\)$/{
1454 s//\1/
1455 q
1456 }
1457 /^X\(\/\).*/{
1458 s//\1/
1459 q
1460 }
1461 s/.*/./; q'`
1462 srcdir=$ac_confdir
1463 if test ! -r "$srcdir/$ac_unique_file"; then
1464 srcdir=..
1465 fi
1466 else
1467 ac_srcdir_defaulted=no
1468 fi
1469 if test ! -r "$srcdir/$ac_unique_file"; then
1470 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1471 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1472 { (exit 1); exit 1; }; }
1473 fi
1474 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1475 ac_abs_confdir=`(
1476 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1477 { (exit 1); exit 1; }; }
1478 pwd)`
1479 # When building in place, set srcdir=.
1480 if test "$ac_abs_confdir" = "$ac_pwd"; then
1481 srcdir=.
1482 fi
1483 # Remove unnecessary trailing slashes from srcdir.
1484 # Double slashes in file names in object file debugging info
1485 # mess up M-x gdb in Emacs.
1486 case $srcdir in
1487 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1488 esac
1489 for ac_var in $ac_precious_vars; do
1490 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1491 eval ac_env_${ac_var}_value=\$${ac_var}
1492 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1493 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1494 done
1495
1496 #
1497 # Report the --help message.
1498 #
1499 if test "$ac_init_help" = "long"; then
1500 # Omit some internal or obsolete options to make the list less imposing.
1501 # This message is too long to be a string in the A/UX 3.1 sh.
1502 cat <<_ACEOF
1503 \`configure' configures libICE 1.0.6 to adapt to many kinds of systems.
1504
1505 Usage: $0 [OPTION]... [VAR=VALUE]...
1506
1507 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1508 VAR=VALUE. See below for descriptions of some of the useful variables.
1509
1510 Defaults for the options are specified in brackets.
1511
1512 Configuration:
1513 -h, --help display this help and exit
1514 --help=short display options specific to this package
1515 --help=recursive display the short help of all the included packages
1516 -V, --version display version information and exit
1517 -q, --quiet, --silent do not print \`checking...' messages
1518 --cache-file=FILE cache test results in FILE [disabled]
1519 -C, --config-cache alias for \`--cache-file=config.cache'
1520 -n, --no-create do not create output files
1521 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1522
1523 Installation directories:
1524 --prefix=PREFIX install architecture-independent files in PREFIX
1525 [$ac_default_prefix]
1526 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1527 [PREFIX]
1528
1529 By default, \`make install' will install all the files in
1530 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1531 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1532 for instance \`--prefix=\$HOME'.
1533
1534 For better control, use the options below.
1535
1536 Fine tuning of the installation directories:
1537 --bindir=DIR user executables [EPREFIX/bin]
1538 --sbindir=DIR system admin executables [EPREFIX/sbin]
1539 --libexecdir=DIR program executables [EPREFIX/libexec]
1540 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1541 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1542 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1543 --libdir=DIR object code libraries [EPREFIX/lib]
1544 --includedir=DIR C header files [PREFIX/include]
1545 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1546 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1547 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1548 --infodir=DIR info documentation [DATAROOTDIR/info]
1549 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1550 --mandir=DIR man documentation [DATAROOTDIR/man]
1551 --docdir=DIR documentation root [DATAROOTDIR/doc/libICE]
1552 --htmldir=DIR html documentation [DOCDIR]
1553 --dvidir=DIR dvi documentation [DOCDIR]
1554 --pdfdir=DIR pdf documentation [DOCDIR]
1555 --psdir=DIR ps documentation [DOCDIR]
1556 _ACEOF
1557
1558 cat <<\_ACEOF
1559
1560 Program names:
1561 --program-prefix=PREFIX prepend PREFIX to installed program names
1562 --program-suffix=SUFFIX append SUFFIX to installed program names
1563 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1564
1565 System types:
1566 --build=BUILD configure for building on BUILD [guessed]
1567 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1568 _ACEOF
1569 fi
1570
1571 if test -n "$ac_init_help"; then
1572 case $ac_init_help in
1573 short | recursive ) echo "Configuration of libICE 1.0.6:";;
1574 esac
1575 cat <<\_ACEOF
1576
1577 Optional Features:
1578 --disable-option-checking ignore unrecognized --enable/--with options
1579 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1580 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1581 --enable-maintainer-mode enable make rules and dependencies not useful
1582 (and sometimes confusing) to the casual installer
1583 --enable-shared[=PKGS] build shared libraries [default=yes]
1584 --enable-static[=PKGS] build static libraries [default=yes]
1585 --enable-fast-install[=PKGS]
1586 optimize for fast installation [default=yes]
1587 --disable-dependency-tracking speeds up one-time build
1588 --enable-dependency-tracking do not reject slow dependency extractors
1589 --disable-libtool-lock avoid locking (might break parallel builds)
1590 --enable-silent-rules less verbose build output (undo: `make V=1')
1591 --disable-silent-rules verbose build output (undo: `make V=0')
1592 --enable-unix-transport Enable UNIX domain socket transport
1593 --enable-tcp-transport Enable TCP socket transport
1594 --enable-ipv6 Enable IPv6 support
1595 --enable-local-transport
1596 Enable os-specific local transport
1597 --enable-lint-library Create lint library (default: disabled)
1598
1599 Optional Packages:
1600 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1601 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1602 --with-pic try to use only PIC/non-PIC objects [default=use
1603 both]
1604 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1605 --with-lint Use a lint-style source code checker (default:
1606 disabled)
1607 --with-release-version=STRING
1608 Use release version string in package name
1609
1610 Some influential environment variables:
1611 CC C compiler command
1612 CFLAGS C compiler flags
1613 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1614 nonstandard directory <lib dir>
1615 LIBS libraries to pass to the linker, e.g. -l<library>
1616 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1617 you have headers in a nonstandard directory <include dir>
1618 CPP C preprocessor
1619 PKG_CONFIG path to pkg-config utility
1620 ICE_CFLAGS C compiler flags for ICE, overriding pkg-config
1621 ICE_LIBS linker flags for ICE, overriding pkg-config
1622 XTRANS_CFLAGS
1623 C compiler flags for XTRANS, overriding pkg-config
1624 XTRANS_LIBS linker flags for XTRANS, overriding pkg-config
1625
1626 Use these variables to override the choices made by `configure' or to help
1627 it to find libraries and programs with nonstandard names/locations.
1628
1629 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1630 _ACEOF
1631 ac_status=$?
1632 fi
1633
1634 if test "$ac_init_help" = "recursive"; then
1635 # If there are subdirs, report their specific --help.
1636 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1637 test -d "$ac_dir" ||
1638 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1639 continue
1640 ac_builddir=.
1641
1642 case "$ac_dir" in
1643 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1644 *)
1645 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1646 # A ".." for each directory in $ac_dir_suffix.
1647 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1648 case $ac_top_builddir_sub in
1649 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1650 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1651 esac ;;
1652 esac
1653 ac_abs_top_builddir=$ac_pwd
1654 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1655 # for backward compatibility:
1656 ac_top_builddir=$ac_top_build_prefix
1657
1658 case $srcdir in
1659 .) # We are building in place.
1660 ac_srcdir=.
1661 ac_top_srcdir=$ac_top_builddir_sub
1662 ac_abs_top_srcdir=$ac_pwd ;;
1663 [\\/]* | ?:[\\/]* ) # Absolute name.
1664 ac_srcdir=$srcdir$ac_dir_suffix;
1665 ac_top_srcdir=$srcdir
1666 ac_abs_top_srcdir=$srcdir ;;
1667 *) # Relative name.
1668 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1669 ac_top_srcdir=$ac_top_build_prefix$srcdir
1670 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1671 esac
1672 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1673
1674 cd "$ac_dir" || { ac_status=$?; continue; }
1675 # Check for guested configure.
1676 if test -f "$ac_srcdir/configure.gnu"; then
1677 echo &&
1678 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1679 elif test -f "$ac_srcdir/configure"; then
1680 echo &&
1681 $SHELL "$ac_srcdir/configure" --help=recursive
1682 else
1683 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1684 fi || ac_status=$?
1685 cd "$ac_pwd" || { ac_status=$?; break; }
1686 done
1687 fi
1688
1689 test -n "$ac_init_help" && exit $ac_status
1690 if $ac_init_version; then
1691 cat <<\_ACEOF
1692 libICE configure 1.0.6
1693 generated by GNU Autoconf 2.63
1694
1695 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1696 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1697 This configure script is free software; the Free Software Foundation
1698 gives unlimited permission to copy, distribute and modify it.
1699 _ACEOF
1700 exit
1701 fi
1702 cat >config.log <<_ACEOF
1703 This file contains any messages produced by compilers while
1704 running configure, to aid debugging if configure makes a mistake.
1705
1706 It was created by libICE $as_me 1.0.6, which was
1707 generated by GNU Autoconf 2.63. Invocation command line was
1708
1709 $ $0 $@
1710
1711 _ACEOF
1712 exec 5>>config.log
1713 {
1714 cat <<_ASUNAME
1715 ## --------- ##
1716 ## Platform. ##
1717 ## --------- ##
1718
1719 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1720 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1721 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1722 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1723 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1724
1725 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1726 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1727
1728 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1729 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1730 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1731 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1732 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1733 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1734 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1735
1736 _ASUNAME
1737
1738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1739 for as_dir in $PATH
1740 do
1741 IFS=$as_save_IFS
1742 test -z "$as_dir" && as_dir=.
1743 $as_echo "PATH: $as_dir"
1744 done
1745 IFS=$as_save_IFS
1746
1747 } >&5
1748
1749 cat >&5 <<_ACEOF
1750
1751
1752 ## ----------- ##
1753 ## Core tests. ##
1754 ## ----------- ##
1755
1756 _ACEOF
1757
1758
1759 # Keep a trace of the command line.
1760 # Strip out --no-create and --no-recursion so they do not pile up.
1761 # Strip out --silent because we don't want to record it for future runs.
1762 # Also quote any args containing shell meta-characters.
1763 # Make two passes to allow for proper duplicate-argument suppression.
1764 ac_configure_args=
1765 ac_configure_args0=
1766 ac_configure_args1=
1767 ac_must_keep_next=false
1768 for ac_pass in 1 2
1769 do
1770 for ac_arg
1771 do
1772 case $ac_arg in
1773 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1774 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1775 | -silent | --silent | --silen | --sile | --sil)
1776 continue ;;
1777 *\'*)
1778 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1779 esac
1780 case $ac_pass in
1781 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1782 2)
1783 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1784 if test $ac_must_keep_next = true; then
1785 ac_must_keep_next=false # Got value, back to normal.
1786 else
1787 case $ac_arg in
1788 *=* | --config-cache | -C | -disable-* | --disable-* \
1789 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1790 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1791 | -with-* | --with-* | -without-* | --without-* | --x)
1792 case "$ac_configure_args0 " in
1793 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1794 esac
1795 ;;
1796 -* ) ac_must_keep_next=true ;;
1797 esac
1798 fi
1799 ac_configure_args="$ac_configure_args '$ac_arg'"
1800 ;;
1801 esac
1802 done
1803 done
1804 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1805 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1806
1807 # When interrupted or exit'd, cleanup temporary files, and complete
1808 # config.log. We remove comments because anyway the quotes in there
1809 # would cause problems or look ugly.
1810 # WARNING: Use '\'' to represent an apostrophe within the trap.
1811 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1812 trap 'exit_status=$?
1813 # Save into config.log some information that might help in debugging.
1814 {
1815 echo
1816
1817 cat <<\_ASBOX
1818 ## ---------------- ##
1819 ## Cache variables. ##
1820 ## ---------------- ##
1821 _ASBOX
1822 echo
1823 # The following way of writing the cache mishandles newlines in values,
1824 (
1825 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1826 eval ac_val=\$$ac_var
1827 case $ac_val in #(
1828 *${as_nl}*)
1829 case $ac_var in #(
1830 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1831 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1832 esac
1833 case $ac_var in #(
1834 _ | IFS | as_nl) ;; #(
1835 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1836 *) $as_unset $ac_var ;;
1837 esac ;;
1838 esac
1839 done
1840 (set) 2>&1 |
1841 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1842 *${as_nl}ac_space=\ *)
1843 sed -n \
1844 "s/'\''/'\''\\\\'\'''\''/g;
1845 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1846 ;; #(
1847 *)
1848 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1849 ;;
1850 esac |
1851 sort
1852 )
1853 echo
1854
1855 cat <<\_ASBOX
1856 ## ----------------- ##
1857 ## Output variables. ##
1858 ## ----------------- ##
1859 _ASBOX
1860 echo
1861 for ac_var in $ac_subst_vars
1862 do
1863 eval ac_val=\$$ac_var
1864 case $ac_val in
1865 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1866 esac
1867 $as_echo "$ac_var='\''$ac_val'\''"
1868 done | sort
1869 echo
1870
1871 if test -n "$ac_subst_files"; then
1872 cat <<\_ASBOX
1873 ## ------------------- ##
1874 ## File substitutions. ##
1875 ## ------------------- ##
1876 _ASBOX
1877 echo
1878 for ac_var in $ac_subst_files
1879 do
1880 eval ac_val=\$$ac_var
1881 case $ac_val in
1882 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1883 esac
1884 $as_echo "$ac_var='\''$ac_val'\''"
1885 done | sort
1886 echo
1887 fi
1888
1889 if test -s confdefs.h; then
1890 cat <<\_ASBOX
1891 ## ----------- ##
1892 ## confdefs.h. ##
1893 ## ----------- ##
1894 _ASBOX
1895 echo
1896 cat confdefs.h
1897 echo
1898 fi
1899 test "$ac_signal" != 0 &&
1900 $as_echo "$as_me: caught signal $ac_signal"
1901 $as_echo "$as_me: exit $exit_status"
1902 } >&5
1903 rm -f core *.core core.conftest.* &&
1904 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1905 exit $exit_status
1906 ' 0
1907 for ac_signal in 1 2 13 15; do
1908 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1909 done
1910 ac_signal=0
1911
1912 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1913 rm -f -r conftest* confdefs.h
1914
1915 # Predefined preprocessor variables.
1916
1917 cat >>confdefs.h <<_ACEOF
1918 #define PACKAGE_NAME "$PACKAGE_NAME"
1919 _ACEOF
1920
1921
1922 cat >>confdefs.h <<_ACEOF
1923 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1924 _ACEOF
1925
1926
1927 cat >>confdefs.h <<_ACEOF
1928 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1929 _ACEOF
1930
1931
1932 cat >>confdefs.h <<_ACEOF
1933 #define PACKAGE_STRING "$PACKAGE_STRING"
1934 _ACEOF
1935
1936
1937 cat >>confdefs.h <<_ACEOF
1938 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1939 _ACEOF
1940
1941
1942 # Let the site file select an alternate cache file if it wants to.
1943 # Prefer an explicitly selected file to automatically selected ones.
1944 ac_site_file1=NONE
1945 ac_site_file2=NONE
1946 if test -n "$CONFIG_SITE"; then
1947 ac_site_file1=$CONFIG_SITE
1948 elif test "x$prefix" != xNONE; then
1949 ac_site_file1=$prefix/share/config.site
1950 ac_site_file2=$prefix/etc/config.site
1951 else
1952 ac_site_file1=$ac_default_prefix/share/config.site
1953 ac_site_file2=$ac_default_prefix/etc/config.site
1954 fi
1955 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1956 do
1957 test "x$ac_site_file" = xNONE && continue
1958 if test -r "$ac_site_file"; then
1959 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1960 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1961 sed 's/^/| /' "$ac_site_file" >&5
1962 . "$ac_site_file"
1963 fi
1964 done
1965
1966 if test -r "$cache_file"; then
1967 # Some versions of bash will fail to source /dev/null (special
1968 # files actually), so we avoid doing that.
1969 if test -f "$cache_file"; then
1970 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1971 $as_echo "$as_me: loading cache $cache_file" >&6;}
1972 case $cache_file in
1973 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1974 *) . "./$cache_file";;
1975 esac
1976 fi
1977 else
1978 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1979 $as_echo "$as_me: creating cache $cache_file" >&6;}
1980 >$cache_file
1981 fi
1982
1983 # Check that the precious variables saved in the cache have kept the same
1984 # value.
1985 ac_cache_corrupted=false
1986 for ac_var in $ac_precious_vars; do
1987 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1988 eval ac_new_set=\$ac_env_${ac_var}_set
1989 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1990 eval ac_new_val=\$ac_env_${ac_var}_value
1991 case $ac_old_set,$ac_new_set in
1992 set,)
1993 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1994 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1995 ac_cache_corrupted=: ;;
1996 ,set)
1997 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1998 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1999 ac_cache_corrupted=: ;;
2000 ,);;
2001 *)
2002 if test "x$ac_old_val" != "x$ac_new_val"; then
2003 # differences in whitespace do not lead to failure.
2004 ac_old_val_w=`echo x $ac_old_val`
2005 ac_new_val_w=`echo x $ac_new_val`
2006 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2007 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2008 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2009 ac_cache_corrupted=:
2010 else
2011 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2012 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2013 eval $ac_var=\$ac_old_val
2014 fi
2015 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2016 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2017 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2018 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2019 fi;;
2020 esac
2021 # Pass precious variables to config.status.
2022 if test "$ac_new_set" = set; then
2023 case $ac_new_val in
2024 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2025 *) ac_arg=$ac_var=$ac_new_val ;;
2026 esac
2027 case " $ac_configure_args " in
2028 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2029 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2030 esac
2031 fi
2032 done
2033 if $ac_cache_corrupted; then
2034 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2035 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2036 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2037 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2038 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2039 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2040 { (exit 1); exit 1; }; }
2041 fi
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067 ac_ext=c
2068 ac_cpp='$CPP $CPPFLAGS'
2069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2072
2073
2074
2075
2076 am__api_version='1.11'
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 # Reject unsafe characters in $srcdir or the absolute working directory
2208 # name. Accept space and tab only in the latter.
2209 am_lf='
2210 '
2211 case `pwd` in
2212 *[\\\"\#\$\&\'\`$am_lf]*)
2213 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2214 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2215 { (exit 1); exit 1; }; };;
2216 esac
2217 case $srcdir in
2218 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2219 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2220 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2221 { (exit 1); exit 1; }; };;
2222 esac
2223
2224 # Do `set' in a subshell so we don't clobber the current shell's
2225 # arguments. Must try -L first in case configure is actually a
2226 # symlink; some systems play weird games with the mod time of symlinks
2227 # (eg FreeBSD returns the mod time of the symlink's containing
2228 # directory).
2229 if (
2230 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2231 if test "$*" = "X"; then
2232 # -L didn't work.
2233 set X `ls -t "$srcdir/configure" conftest.file`
2234 fi
2235 rm -f conftest.file
2236 if test "$*" != "X $srcdir/configure conftest.file" \
2237 && test "$*" != "X conftest.file $srcdir/configure"; then
2238
2239 # If neither matched, then we have a broken ls. This can happen
2240 # if, for instance, CONFIG_SHELL is bash and it inherits a
2241 # broken ls alias from the environment. This has actually
2242 # happened. Such a system could not be considered "sane".
2243 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2244 alias in your environment" >&5
2245 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2246 alias in your environment" >&2;}
2247 { (exit 1); exit 1; }; }
2248 fi
2249
2250 test "$2" = conftest.file
2251 )
2252 then
2253 # Ok.
2254 :
2255 else
2256 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2257 Check your system clock" >&5
2258 $as_echo "$as_me: error: newly created file is older than distributed files!
2259 Check your system clock" >&2;}
2260 { (exit 1); exit 1; }; }
2261 fi
2262 { $as_echo "$as_me:$LINENO: result: yes" >&5
2263 $as_echo "yes" >&6; }
2264 test "$program_prefix" != NONE &&
2265 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2266 # Use a double $ so make ignores it.
2267 test "$program_suffix" != NONE &&
2268 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2269 # Double any \ or $.
2270 # By default was `s,x,x', remove it if useless.
2271 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2272 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2273
2274 # expand $ac_aux_dir to an absolute path
2275 am_aux_dir=`cd $ac_aux_dir && pwd`
2276
2277 if test x"${MISSING+set}" != xset; then
2278 case $am_aux_dir in
2279 *\ * | *\ *)
2280 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2281 *)
2282 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2283 esac
2284 fi
2285 # Use eval to expand $SHELL
2286 if eval "$MISSING --run true"; then
2287 am_missing_run="$MISSING --run "
2288 else
2289 am_missing_run=
2290 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2291 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2292 fi
2293
2294 if test x"${install_sh}" != xset; then
2295 case $am_aux_dir in
2296 *\ * | *\ *)
2297 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2298 *)
2299 install_sh="\${SHELL} $am_aux_dir/install-sh"
2300 esac
2301 fi
2302
2303 # Installed binaries are usually stripped using `strip' when the user
2304 # run `make install-strip'. However `strip' might not be the right
2305 # tool to use in cross-compilation environments, therefore Automake
2306 # will honor the `STRIP' environment variable to overrule this program.
2307 if test "$cross_compiling" != no; then
2308 if test -n "$ac_tool_prefix"; then
2309 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2310 set dummy ${ac_tool_prefix}strip; ac_word=$2
2311 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2312 $as_echo_n "checking for $ac_word... " >&6; }
2313 if test "${ac_cv_prog_STRIP+set}" = set; then
2314 $as_echo_n "(cached) " >&6
2315 else
2316 if test -n "$STRIP"; then
2317 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2318 else
2319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320 for as_dir in $PATH
2321 do
2322 IFS=$as_save_IFS
2323 test -z "$as_dir" && as_dir=.
2324 for ac_exec_ext in '' $ac_executable_extensions; do
2325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2326 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2327 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2328 break 2
2329 fi
2330 done
2331 done
2332 IFS=$as_save_IFS
2333
2334 fi
2335 fi
2336 STRIP=$ac_cv_prog_STRIP
2337 if test -n "$STRIP"; then
2338 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2339 $as_echo "$STRIP" >&6; }
2340 else
2341 { $as_echo "$as_me:$LINENO: result: no" >&5
2342 $as_echo "no" >&6; }
2343 fi
2344
2345
2346 fi
2347 if test -z "$ac_cv_prog_STRIP"; then
2348 ac_ct_STRIP=$STRIP
2349 # Extract the first word of "strip", so it can be a program name with args.
2350 set dummy strip; ac_word=$2
2351 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2352 $as_echo_n "checking for $ac_word... " >&6; }
2353 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2354 $as_echo_n "(cached) " >&6
2355 else
2356 if test -n "$ac_ct_STRIP"; then
2357 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2358 else
2359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360 for as_dir in $PATH
2361 do
2362 IFS=$as_save_IFS
2363 test -z "$as_dir" && as_dir=.
2364 for ac_exec_ext in '' $ac_executable_extensions; do
2365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2366 ac_cv_prog_ac_ct_STRIP="strip"
2367 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2368 break 2
2369 fi
2370 done
2371 done
2372 IFS=$as_save_IFS
2373
2374 fi
2375 fi
2376 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2377 if test -n "$ac_ct_STRIP"; then
2378 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2379 $as_echo "$ac_ct_STRIP" >&6; }
2380 else
2381 { $as_echo "$as_me:$LINENO: result: no" >&5
2382 $as_echo "no" >&6; }
2383 fi
2384
2385 if test "x$ac_ct_STRIP" = x; then
2386 STRIP=":"
2387 else
2388 case $cross_compiling:$ac_tool_warned in
2389 yes:)
2390 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2392 ac_tool_warned=yes ;;
2393 esac
2394 STRIP=$ac_ct_STRIP
2395 fi
2396 else
2397 STRIP="$ac_cv_prog_STRIP"
2398 fi
2399
2400 fi
2401 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2402
2403 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2404 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2405 if test -z "$MKDIR_P"; then
2406 if test "${ac_cv_path_mkdir+set}" = set; then
2407 $as_echo_n "(cached) " >&6
2408 else
2409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2411 do
2412 IFS=$as_save_IFS
2413 test -z "$as_dir" && as_dir=.
2414 for ac_prog in mkdir gmkdir; do
2415 for ac_exec_ext in '' $ac_executable_extensions; do
2416 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2417 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2418 'mkdir (GNU coreutils) '* | \
2419 'mkdir (coreutils) '* | \
2420 'mkdir (fileutils) '4.1*)
2421 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2422 break 3;;
2423 esac
2424 done
2425 done
2426 done
2427 IFS=$as_save_IFS
2428
2429 fi
2430
2431 if test "${ac_cv_path_mkdir+set}" = set; then
2432 MKDIR_P="$ac_cv_path_mkdir -p"
2433 else
2434 # As a last resort, use the slow shell script. Don't cache a
2435 # value for MKDIR_P within a source directory, because that will
2436 # break other packages using the cache if that directory is
2437 # removed, or if the value is a relative name.
2438 test -d ./--version && rmdir ./--version
2439 MKDIR_P="$ac_install_sh -d"
2440 fi
2441 fi
2442 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2443 $as_echo "$MKDIR_P" >&6; }
2444
2445 mkdir_p="$MKDIR_P"
2446 case $mkdir_p in
2447 [\\/$]* | ?:[\\/]*) ;;
2448 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2449 esac
2450
2451 for ac_prog in gawk mawk nawk awk
2452 do
2453 # Extract the first word of "$ac_prog", so it can be a program name with args.
2454 set dummy $ac_prog; ac_word=$2
2455 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2456 $as_echo_n "checking for $ac_word... " >&6; }
2457 if test "${ac_cv_prog_AWK+set}" = set; then
2458 $as_echo_n "(cached) " >&6
2459 else
2460 if test -n "$AWK"; then
2461 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2462 else
2463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 for as_dir in $PATH
2465 do
2466 IFS=$as_save_IFS
2467 test -z "$as_dir" && as_dir=.
2468 for ac_exec_ext in '' $ac_executable_extensions; do
2469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2470 ac_cv_prog_AWK="$ac_prog"
2471 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2472 break 2
2473 fi
2474 done
2475 done
2476 IFS=$as_save_IFS
2477
2478 fi
2479 fi
2480 AWK=$ac_cv_prog_AWK
2481 if test -n "$AWK"; then
2482 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2483 $as_echo "$AWK" >&6; }
2484 else
2485 { $as_echo "$as_me:$LINENO: result: no" >&5
2486 $as_echo "no" >&6; }
2487 fi
2488
2489
2490 test -n "$AWK" && break
2491 done
2492
2493 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2494 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2495 set x ${MAKE-make}
2496 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2497 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2498 $as_echo_n "(cached) " >&6
2499 else
2500 cat >conftest.make <<\_ACEOF
2501 SHELL = /bin/sh
2502 all:
2503 @echo '@@@%%%=$(MAKE)=@@@%%%'
2504 _ACEOF
2505 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2506 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2507 *@@@%%%=?*=@@@%%%*)
2508 eval ac_cv_prog_make_${ac_make}_set=yes;;
2509 *)
2510 eval ac_cv_prog_make_${ac_make}_set=no;;
2511 esac
2512 rm -f conftest.make
2513 fi
2514 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2515 { $as_echo "$as_me:$LINENO: result: yes" >&5
2516 $as_echo "yes" >&6; }
2517 SET_MAKE=
2518 else
2519 { $as_echo "$as_me:$LINENO: result: no" >&5
2520 $as_echo "no" >&6; }
2521 SET_MAKE="MAKE=${MAKE-make}"
2522 fi
2523
2524 rm -rf .tst 2>/dev/null
2525 mkdir .tst 2>/dev/null
2526 if test -d .tst; then
2527 am__leading_dot=.
2528 else
2529 am__leading_dot=_
2530 fi
2531 rmdir .tst 2>/dev/null
2532
2533 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2534 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2535 # is not polluted with repeated "-I."
2536 am__isrc=' -I$(srcdir)'
2537 # test to see if srcdir already configured
2538 if test -f $srcdir/config.status; then
2539 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2540 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2541 { (exit 1); exit 1; }; }
2542 fi
2543 fi
2544
2545 # test whether we have cygpath
2546 if test -z "$CYGPATH_W"; then
2547 if (cygpath --version) >/dev/null 2>/dev/null; then
2548 CYGPATH_W='cygpath -w'
2549 else
2550 CYGPATH_W=echo
2551 fi
2552 fi
2553
2554
2555 # Define the identity of the package.
2556 PACKAGE='libICE'
2557 VERSION='1.0.6'
2558
2559
2560 cat >>confdefs.h <<_ACEOF
2561 #define PACKAGE "$PACKAGE"
2562 _ACEOF
2563
2564
2565 cat >>confdefs.h <<_ACEOF
2566 #define VERSION "$VERSION"
2567 _ACEOF
2568
2569 # Some tools Automake needs.
2570
2571 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2572
2573
2574 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2575
2576
2577 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2578
2579
2580 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2581
2582
2583 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2584
2585 # We need awk for the "check" target. The system "awk" is bad on
2586 # some platforms.
2587 # Always define AMTAR for backward compatibility.
2588
2589 AMTAR=${AMTAR-"${am_missing_run}tar"}
2590
2591 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2592
2593
2594
2595
2596
2597
2598
2599 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2600 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2601 # Check whether --enable-maintainer-mode was given.
2602 if test "${enable_maintainer_mode+set}" = set; then
2603 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2604 else
2605 USE_MAINTAINER_MODE=no
2606 fi
2607
2608 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2609 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2610 if test $USE_MAINTAINER_MODE = yes; then
2611 MAINTAINER_MODE_TRUE=
2612 MAINTAINER_MODE_FALSE='#'
2613 else
2614 MAINTAINER_MODE_TRUE='#'
2615 MAINTAINER_MODE_FALSE=
2616 fi
2617
2618 MAINT=$MAINTAINER_MODE_TRUE
2619
2620
2621
2622 # Require xorg-macros at least 1.2.1
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634 ac_config_headers="$ac_config_headers config.h"
2635
2636
2637 # Checks for programs.
2638 case `pwd` in
2639 *\ * | *\ *)
2640 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2641 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2642 esac
2643
2644
2645
2646 macro_version='2.2.6'
2647 macro_revision='1.3012'
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661 ltmain="$ac_aux_dir/ltmain.sh"
2662
2663 # Make sure we can run config.sub.
2664 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2665 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2666 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2667 { (exit 1); exit 1; }; }
2668
2669 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2670 $as_echo_n "checking build system type... " >&6; }
2671 if test "${ac_cv_build+set}" = set; then
2672 $as_echo_n "(cached) " >&6
2673 else
2674 ac_build_alias=$build_alias
2675 test "x$ac_build_alias" = x &&
2676 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2677 test "x$ac_build_alias" = x &&
2678 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2679 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2680 { (exit 1); exit 1; }; }
2681 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2682 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2683 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2684 { (exit 1); exit 1; }; }
2685
2686 fi
2687 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2688 $as_echo "$ac_cv_build" >&6; }
2689 case $ac_cv_build in
2690 *-*-*) ;;
2691 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2692 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2693 { (exit 1); exit 1; }; };;
2694 esac
2695 build=$ac_cv_build
2696 ac_save_IFS=$IFS; IFS='-'
2697 set x $ac_cv_build
2698 shift
2699 build_cpu=$1
2700 build_vendor=$2
2701 shift; shift
2702 # Remember, the first character of IFS is used to create $*,
2703 # except with old shells:
2704 build_os=$*
2705 IFS=$ac_save_IFS
2706 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2707
2708
2709 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2710 $as_echo_n "checking host system type... " >&6; }
2711 if test "${ac_cv_host+set}" = set; then
2712 $as_echo_n "(cached) " >&6
2713 else
2714 if test "x$host_alias" = x; then
2715 ac_cv_host=$ac_cv_build
2716 else
2717 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2718 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2719 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2720 { (exit 1); exit 1; }; }
2721 fi
2722
2723 fi
2724 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2725 $as_echo "$ac_cv_host" >&6; }
2726 case $ac_cv_host in
2727 *-*-*) ;;
2728 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2729 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2730 { (exit 1); exit 1; }; };;
2731 esac
2732 host=$ac_cv_host
2733 ac_save_IFS=$IFS; IFS='-'
2734 set x $ac_cv_host
2735 shift
2736 host_cpu=$1
2737 host_vendor=$2
2738 shift; shift
2739 # Remember, the first character of IFS is used to create $*,
2740 # except with old shells:
2741 host_os=$*
2742 IFS=$ac_save_IFS
2743 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2744
2745
2746 DEPDIR="${am__leading_dot}deps"
2747
2748 ac_config_commands="$ac_config_commands depfiles"
2749
2750
2751 am_make=${MAKE-make}
2752 cat > confinc << 'END'
2753 am__doit:
2754 @echo this is the am__doit target
2755 .PHONY: am__doit
2756 END
2757 # If we don't find an include directive, just comment out the code.
2758 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2759 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2760 am__include="#"
2761 am__quote=
2762 _am_result=none
2763 # First try GNU make style include.
2764 echo "include confinc" > confmf
2765 # Ignore all kinds of additional output from `make'.
2766 case `$am_make -s -f confmf 2> /dev/null` in #(
2767 *the\ am__doit\ target*)
2768 am__include=include
2769 am__quote=
2770 _am_result=GNU
2771 ;;
2772 esac
2773 # Now try BSD make style include.
2774 if test "$am__include" = "#"; then
2775 echo '.include "confinc"' > confmf
2776 case `$am_make -s -f confmf 2> /dev/null` in #(
2777 *the\ am__doit\ target*)
2778 am__include=.include
2779 am__quote="\""
2780 _am_result=BSD
2781 ;;
2782 esac
2783 fi
2784
2785
2786 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2787 $as_echo "$_am_result" >&6; }
2788 rm -f confinc confmf
2789
2790 # Check whether --enable-dependency-tracking was given.
2791 if test "${enable_dependency_tracking+set}" = set; then
2792 enableval=$enable_dependency_tracking;
2793 fi
2794
2795 if test "x$enable_dependency_tracking" != xno; then
2796 am_depcomp="$ac_aux_dir/depcomp"
2797 AMDEPBACKSLASH='\'
2798 fi
2799 if test "x$enable_dependency_tracking" != xno; then
2800 AMDEP_TRUE=
2801 AMDEP_FALSE='#'
2802 else
2803 AMDEP_TRUE='#'
2804 AMDEP_FALSE=
2805 fi
2806
2807
2808 ac_ext=c
2809 ac_cpp='$CPP $CPPFLAGS'
2810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2813 if test -n "$ac_tool_prefix"; then
2814 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2815 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2816 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2817 $as_echo_n "checking for $ac_word... " >&6; }
2818 if test "${ac_cv_prog_CC+set}" = set; then
2819 $as_echo_n "(cached) " >&6
2820 else
2821 if test -n "$CC"; then
2822 ac_cv_prog_CC="$CC" # Let the user override the test.
2823 else
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 for as_dir in $PATH
2826 do
2827 IFS=$as_save_IFS
2828 test -z "$as_dir" && as_dir=.
2829 for ac_exec_ext in '' $ac_executable_extensions; do
2830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2831 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2832 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2833 break 2
2834 fi
2835 done
2836 done
2837 IFS=$as_save_IFS
2838
2839 fi
2840 fi
2841 CC=$ac_cv_prog_CC
2842 if test -n "$CC"; then
2843 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2844 $as_echo "$CC" >&6; }
2845 else
2846 { $as_echo "$as_me:$LINENO: result: no" >&5
2847 $as_echo "no" >&6; }
2848 fi
2849
2850
2851 fi
2852 if test -z "$ac_cv_prog_CC"; then
2853 ac_ct_CC=$CC
2854 # Extract the first word of "gcc", so it can be a program name with args.
2855 set dummy gcc; ac_word=$2
2856 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2857 $as_echo_n "checking for $ac_word... " >&6; }
2858 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2859 $as_echo_n "(cached) " >&6
2860 else
2861 if test -n "$ac_ct_CC"; then
2862 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2863 else
2864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865 for as_dir in $PATH
2866 do
2867 IFS=$as_save_IFS
2868 test -z "$as_dir" && as_dir=.
2869 for ac_exec_ext in '' $ac_executable_extensions; do
2870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2871 ac_cv_prog_ac_ct_CC="gcc"
2872 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2873 break 2
2874 fi
2875 done
2876 done
2877 IFS=$as_save_IFS
2878
2879 fi
2880 fi
2881 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2882 if test -n "$ac_ct_CC"; then
2883 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2884 $as_echo "$ac_ct_CC" >&6; }
2885 else
2886 { $as_echo "$as_me:$LINENO: result: no" >&5
2887 $as_echo "no" >&6; }
2888 fi
2889
2890 if test "x$ac_ct_CC" = x; then
2891 CC=""
2892 else
2893 case $cross_compiling:$ac_tool_warned in
2894 yes:)
2895 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2897 ac_tool_warned=yes ;;
2898 esac
2899 CC=$ac_ct_CC
2900 fi
2901 else
2902 CC="$ac_cv_prog_CC"
2903 fi
2904
2905 if test -z "$CC"; then
2906 if test -n "$ac_tool_prefix"; then
2907 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2908 set dummy ${ac_tool_prefix}cc; ac_word=$2
2909 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2910 $as_echo_n "checking for $ac_word... " >&6; }
2911 if test "${ac_cv_prog_CC+set}" = set; then
2912 $as_echo_n "(cached) " >&6
2913 else
2914 if test -n "$CC"; then
2915 ac_cv_prog_CC="$CC" # Let the user override the test.
2916 else
2917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918 for as_dir in $PATH
2919 do
2920 IFS=$as_save_IFS
2921 test -z "$as_dir" && as_dir=.
2922 for ac_exec_ext in '' $ac_executable_extensions; do
2923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2924 ac_cv_prog_CC="${ac_tool_prefix}cc"
2925 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2926 break 2
2927 fi
2928 done
2929 done
2930 IFS=$as_save_IFS
2931
2932 fi
2933 fi
2934 CC=$ac_cv_prog_CC
2935 if test -n "$CC"; then
2936 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2937 $as_echo "$CC" >&6; }
2938 else
2939 { $as_echo "$as_me:$LINENO: result: no" >&5
2940 $as_echo "no" >&6; }
2941 fi
2942
2943
2944 fi
2945 fi
2946 if test -z "$CC"; then
2947 # Extract the first word of "cc", so it can be a program name with args.
2948 set dummy cc; ac_word=$2
2949 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2950 $as_echo_n "checking for $ac_word... " >&6; }
2951 if test "${ac_cv_prog_CC+set}" = set; then
2952 $as_echo_n "(cached) " >&6
2953 else
2954 if test -n "$CC"; then
2955 ac_cv_prog_CC="$CC" # Let the user override the test.
2956 else
2957 ac_prog_rejected=no
2958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959 for as_dir in $PATH
2960 do
2961 IFS=$as_save_IFS
2962 test -z "$as_dir" && as_dir=.
2963 for ac_exec_ext in '' $ac_executable_extensions; do
2964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2965 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2966 ac_prog_rejected=yes
2967 continue
2968 fi
2969 ac_cv_prog_CC="cc"
2970 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2971 break 2
2972 fi
2973 done
2974 done
2975 IFS=$as_save_IFS
2976
2977 if test $ac_prog_rejected = yes; then
2978 # We found a bogon in the path, so make sure we never use it.
2979 set dummy $ac_cv_prog_CC
2980 shift
2981 if test $# != 0; then
2982 # We chose a different compiler from the bogus one.
2983 # However, it has the same basename, so the bogon will be chosen
2984 # first if we set CC to just the basename; use the full file name.
2985 shift
2986 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2987 fi
2988 fi
2989 fi
2990 fi
2991 CC=$ac_cv_prog_CC
2992 if test -n "$CC"; then
2993 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2994 $as_echo "$CC" >&6; }
2995 else
2996 { $as_echo "$as_me:$LINENO: result: no" >&5
2997 $as_echo "no" >&6; }
2998 fi
2999
3000
3001 fi
3002 if test -z "$CC"; then
3003 if test -n "$ac_tool_prefix"; then
3004 for ac_prog in cl.exe
3005 do
3006 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3007 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3008 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3009 $as_echo_n "checking for $ac_word... " >&6; }
3010 if test "${ac_cv_prog_CC+set}" = set; then
3011 $as_echo_n "(cached) " >&6
3012 else
3013 if test -n "$CC"; then
3014 ac_cv_prog_CC="$CC" # Let the user override the test.
3015 else
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 for as_dir in $PATH
3018 do
3019 IFS=$as_save_IFS
3020 test -z "$as_dir" && as_dir=.
3021 for ac_exec_ext in '' $ac_executable_extensions; do
3022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3023 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3024 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3025 break 2
3026 fi
3027 done
3028 done
3029 IFS=$as_save_IFS
3030
3031 fi
3032 fi
3033 CC=$ac_cv_prog_CC
3034 if test -n "$CC"; then
3035 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3036 $as_echo "$CC" >&6; }
3037 else
3038 { $as_echo "$as_me:$LINENO: result: no" >&5
3039 $as_echo "no" >&6; }
3040 fi
3041
3042
3043 test -n "$CC" && break
3044 done
3045 fi
3046 if test -z "$CC"; then
3047 ac_ct_CC=$CC
3048 for ac_prog in cl.exe
3049 do
3050 # Extract the first word of "$ac_prog", so it can be a program name with args.
3051 set dummy $ac_prog; ac_word=$2
3052 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3053 $as_echo_n "checking for $ac_word... " >&6; }
3054 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3055 $as_echo_n "(cached) " >&6
3056 else
3057 if test -n "$ac_ct_CC"; then
3058 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3059 else
3060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061 for as_dir in $PATH
3062 do
3063 IFS=$as_save_IFS
3064 test -z "$as_dir" && as_dir=.
3065 for ac_exec_ext in '' $ac_executable_extensions; do
3066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3067 ac_cv_prog_ac_ct_CC="$ac_prog"
3068 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3069 break 2
3070 fi
3071 done
3072 done
3073 IFS=$as_save_IFS
3074
3075 fi
3076 fi
3077 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3078 if test -n "$ac_ct_CC"; then
3079 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3080 $as_echo "$ac_ct_CC" >&6; }
3081 else
3082 { $as_echo "$as_me:$LINENO: result: no" >&5
3083 $as_echo "no" >&6; }
3084 fi
3085
3086
3087 test -n "$ac_ct_CC" && break
3088 done
3089
3090 if test "x$ac_ct_CC" = x; then
3091 CC=""
3092 else
3093 case $cross_compiling:$ac_tool_warned in
3094 yes:)
3095 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3097 ac_tool_warned=yes ;;
3098 esac
3099 CC=$ac_ct_CC
3100 fi
3101 fi
3102
3103 fi
3104
3105
3106 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3108 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3109 See \`config.log' for more details." >&5
3110 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3111 See \`config.log' for more details." >&2;}
3112 { (exit 1); exit 1; }; }; }
3113
3114 # Provide some information about the compiler.
3115 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3116 set X $ac_compile
3117 ac_compiler=$2
3118 { (ac_try="$ac_compiler --version >&5"
3119 case "(($ac_try" in
3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121 *) ac_try_echo=$ac_try;;
3122 esac
3123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3124 $as_echo "$ac_try_echo") >&5
3125 (eval "$ac_compiler --version >&5") 2>&5
3126 ac_status=$?
3127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); }
3129 { (ac_try="$ac_compiler -v >&5"
3130 case "(($ac_try" in
3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3133 esac
3134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3135 $as_echo "$ac_try_echo") >&5
3136 (eval "$ac_compiler -v >&5") 2>&5
3137 ac_status=$?
3138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }
3140 { (ac_try="$ac_compiler -V >&5"
3141 case "(($ac_try" in
3142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143 *) ac_try_echo=$ac_try;;
3144 esac
3145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3146 $as_echo "$ac_try_echo") >&5
3147 (eval "$ac_compiler -V >&5") 2>&5
3148 ac_status=$?
3149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); }
3151
3152 cat >conftest.$ac_ext <<_ACEOF
3153 /* confdefs.h. */
3154 _ACEOF
3155 cat confdefs.h >>conftest.$ac_ext
3156 cat >>conftest.$ac_ext <<_ACEOF
3157 /* end confdefs.h. */
3158
3159 int
3160 main ()
3161 {
3162
3163 ;
3164 return 0;
3165 }
3166 _ACEOF
3167 ac_clean_files_save=$ac_clean_files
3168 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3169 # Try to create an executable without -o first, disregard a.out.
3170 # It will help us diagnose broken compilers, and finding out an intuition
3171 # of exeext.
3172 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3173 $as_echo_n "checking for C compiler default output file name... " >&6; }
3174 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3175
3176 # The possible output files:
3177 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3178
3179 ac_rmfiles=
3180 for ac_file in $ac_files
3181 do
3182 case $ac_file in
3183 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3184 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3185 esac
3186 done
3187 rm -f $ac_rmfiles
3188
3189 if { (ac_try="$ac_link_default"
3190 case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3193 esac
3194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3195 $as_echo "$ac_try_echo") >&5
3196 (eval "$ac_link_default") 2>&5
3197 ac_status=$?
3198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); }; then
3200 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3201 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3202 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3203 # so that the user can short-circuit this test for compilers unknown to
3204 # Autoconf.
3205 for ac_file in $ac_files ''
3206 do
3207 test -f "$ac_file" || continue
3208 case $ac_file in
3209 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3210 ;;
3211 [ab].out )
3212 # We found the default executable, but exeext='' is most
3213 # certainly right.
3214 break;;
3215 *.* )
3216 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3217 then :; else
3218 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3219 fi
3220 # We set ac_cv_exeext here because the later test for it is not
3221 # safe: cross compilers may not add the suffix if given an `-o'
3222 # argument, so we may need to know it at that point already.
3223 # Even if this section looks crufty: it has the advantage of
3224 # actually working.
3225 break;;
3226 * )
3227 break;;
3228 esac
3229 done
3230 test "$ac_cv_exeext" = no && ac_cv_exeext=
3231
3232 else
3233 ac_file=''
3234 fi
3235
3236 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3237 $as_echo "$ac_file" >&6; }
3238 if test -z "$ac_file"; then
3239 $as_echo "$as_me: failed program was:" >&5
3240 sed 's/^/| /' conftest.$ac_ext >&5
3241
3242 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3244 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3245 See \`config.log' for more details." >&5
3246 $as_echo "$as_me: error: C compiler cannot create executables
3247 See \`config.log' for more details." >&2;}
3248 { (exit 77); exit 77; }; }; }
3249 fi
3250
3251 ac_exeext=$ac_cv_exeext
3252
3253 # Check that the compiler produces executables we can run. If not, either
3254 # the compiler is broken, or we cross compile.
3255 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3256 $as_echo_n "checking whether the C compiler works... " >&6; }
3257 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3258 # If not cross compiling, check that we can run a simple program.
3259 if test "$cross_compiling" != yes; then
3260 if { ac_try='./$ac_file'
3261 { (case "(($ac_try" in
3262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263 *) ac_try_echo=$ac_try;;
3264 esac
3265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3266 $as_echo "$ac_try_echo") >&5
3267 (eval "$ac_try") 2>&5
3268 ac_status=$?
3269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); }; }; then
3271 cross_compiling=no
3272 else
3273 if test "$cross_compiling" = maybe; then
3274 cross_compiling=yes
3275 else
3276 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3278 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3279 If you meant to cross compile, use \`--host'.
3280 See \`config.log' for more details." >&5
3281 $as_echo "$as_me: error: cannot run C compiled programs.
3282 If you meant to cross compile, use \`--host'.
3283 See \`config.log' for more details." >&2;}
3284 { (exit 1); exit 1; }; }; }
3285 fi
3286 fi
3287 fi
3288 { $as_echo "$as_me:$LINENO: result: yes" >&5
3289 $as_echo "yes" >&6; }
3290
3291 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3292 ac_clean_files=$ac_clean_files_save
3293 # Check that the compiler produces executables we can run. If not, either
3294 # the compiler is broken, or we cross compile.
3295 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3296 $as_echo_n "checking whether we are cross compiling... " >&6; }
3297 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3298 $as_echo "$cross_compiling" >&6; }
3299
3300 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3301 $as_echo_n "checking for suffix of executables... " >&6; }
3302 if { (ac_try="$ac_link"
3303 case "(($ac_try" in
3304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305 *) ac_try_echo=$ac_try;;
3306 esac
3307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3308 $as_echo "$ac_try_echo") >&5
3309 (eval "$ac_link") 2>&5
3310 ac_status=$?
3311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); }; then
3313 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3314 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3315 # work properly (i.e., refer to `conftest.exe'), while it won't with
3316 # `rm'.
3317 for ac_file in conftest.exe conftest conftest.*; do
3318 test -f "$ac_file" || continue
3319 case $ac_file in
3320 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3321 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3322 break;;
3323 * ) break;;
3324 esac
3325 done
3326 else
3327 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3328 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3329 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3330 See \`config.log' for more details." >&5
3331 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3332 See \`config.log' for more details." >&2;}
3333 { (exit 1); exit 1; }; }; }
3334 fi
3335
3336 rm -f conftest$ac_cv_exeext
3337 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3338 $as_echo "$ac_cv_exeext" >&6; }
3339
3340 rm -f conftest.$ac_ext
3341 EXEEXT=$ac_cv_exeext
3342 ac_exeext=$EXEEXT
3343 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3344 $as_echo_n "checking for suffix of object files... " >&6; }
3345 if test "${ac_cv_objext+set}" = set; then
3346 $as_echo_n "(cached) " >&6
3347 else
3348 cat >conftest.$ac_ext <<_ACEOF
3349 /* confdefs.h. */
3350 _ACEOF
3351 cat confdefs.h >>conftest.$ac_ext
3352 cat >>conftest.$ac_ext <<_ACEOF
3353 /* end confdefs.h. */
3354
3355 int
3356 main ()
3357 {
3358
3359 ;
3360 return 0;
3361 }
3362 _ACEOF
3363 rm -f conftest.o conftest.obj
3364 if { (ac_try="$ac_compile"
3365 case "(($ac_try" in
3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367 *) ac_try_echo=$ac_try;;
3368 esac
3369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3370 $as_echo "$ac_try_echo") >&5
3371 (eval "$ac_compile") 2>&5
3372 ac_status=$?
3373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); }; then
3375 for ac_file in conftest.o conftest.obj conftest.*; do
3376 test -f "$ac_file" || continue;
3377 case $ac_file in
3378 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3379 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3380 break;;
3381 esac
3382 done
3383 else
3384 $as_echo "$as_me: failed program was:" >&5
3385 sed 's/^/| /' conftest.$ac_ext >&5
3386
3387 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3389 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3390 See \`config.log' for more details." >&5
3391 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3392 See \`config.log' for more details." >&2;}
3393 { (exit 1); exit 1; }; }; }
3394 fi
3395
3396 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3397 fi
3398 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3399 $as_echo "$ac_cv_objext" >&6; }
3400 OBJEXT=$ac_cv_objext
3401 ac_objext=$OBJEXT
3402 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3403 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3404 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3405 $as_echo_n "(cached) " >&6
3406 else
3407 cat >conftest.$ac_ext <<_ACEOF
3408 /* confdefs.h. */
3409 _ACEOF
3410 cat confdefs.h >>conftest.$ac_ext
3411 cat >>conftest.$ac_ext <<_ACEOF
3412 /* end confdefs.h. */
3413
3414 int
3415 main ()
3416 {
3417 #ifndef __GNUC__
3418 choke me
3419 #endif
3420
3421 ;
3422 return 0;
3423 }
3424 _ACEOF
3425 rm -f conftest.$ac_objext
3426 if { (ac_try="$ac_compile"
3427 case "(($ac_try" in
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3430 esac
3431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3432 $as_echo "$ac_try_echo") >&5
3433 (eval "$ac_compile") 2>conftest.er1
3434 ac_status=$?
3435 grep -v '^ *+' conftest.er1 >conftest.err
3436 rm -f conftest.er1
3437 cat conftest.err >&5
3438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); } && {
3440 test -z "$ac_c_werror_flag" ||
3441 test ! -s conftest.err
3442 } && test -s conftest.$ac_objext; then
3443 ac_compiler_gnu=yes
3444 else
3445 $as_echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.$ac_ext >&5
3447
3448 ac_compiler_gnu=no
3449 fi
3450
3451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3452 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3453
3454 fi
3455 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3456 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3457 if test $ac_compiler_gnu = yes; then
3458 GCC=yes
3459 else
3460 GCC=
3461 fi
3462 ac_test_CFLAGS=${CFLAGS+set}
3463 ac_save_CFLAGS=$CFLAGS
3464 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3465 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3466 if test "${ac_cv_prog_cc_g+set}" = set; then
3467 $as_echo_n "(cached) " >&6
3468 else
3469 ac_save_c_werror_flag=$ac_c_werror_flag
3470 ac_c_werror_flag=yes
3471 ac_cv_prog_cc_g=no
3472 CFLAGS="-g"
3473 cat >conftest.$ac_ext <<_ACEOF
3474 /* confdefs.h. */
3475 _ACEOF
3476 cat confdefs.h >>conftest.$ac_ext
3477 cat >>conftest.$ac_ext <<_ACEOF
3478 /* end confdefs.h. */
3479
3480 int
3481 main ()
3482 {
3483
3484 ;
3485 return 0;
3486 }
3487 _ACEOF
3488 rm -f conftest.$ac_objext
3489 if { (ac_try="$ac_compile"
3490 case "(($ac_try" in
3491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492 *) ac_try_echo=$ac_try;;
3493 esac
3494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3495 $as_echo "$ac_try_echo") >&5
3496 (eval "$ac_compile") 2>conftest.er1
3497 ac_status=$?
3498 grep -v '^ *+' conftest.er1 >conftest.err
3499 rm -f conftest.er1
3500 cat conftest.err >&5
3501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); } && {
3503 test -z "$ac_c_werror_flag" ||
3504 test ! -s conftest.err
3505 } && test -s conftest.$ac_objext; then
3506 ac_cv_prog_cc_g=yes
3507 else
3508 $as_echo "$as_me: failed program was:" >&5
3509 sed 's/^/| /' conftest.$ac_ext >&5
3510
3511 CFLAGS=""
3512 cat >conftest.$ac_ext <<_ACEOF
3513 /* confdefs.h. */
3514 _ACEOF
3515 cat confdefs.h >>conftest.$ac_ext
3516 cat >>conftest.$ac_ext <<_ACEOF
3517 /* end confdefs.h. */
3518
3519 int
3520 main ()
3521 {
3522
3523 ;
3524 return 0;
3525 }
3526 _ACEOF
3527 rm -f conftest.$ac_objext
3528 if { (ac_try="$ac_compile"
3529 case "(($ac_try" in
3530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3531 *) ac_try_echo=$ac_try;;
3532 esac
3533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3534 $as_echo "$ac_try_echo") >&5
3535 (eval "$ac_compile") 2>conftest.er1
3536 ac_status=$?
3537 grep -v '^ *+' conftest.er1 >conftest.err
3538 rm -f conftest.er1
3539 cat conftest.err >&5
3540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); } && {
3542 test -z "$ac_c_werror_flag" ||
3543 test ! -s conftest.err
3544 } && test -s conftest.$ac_objext; then
3545 :
3546 else
3547 $as_echo "$as_me: failed program was:" >&5
3548 sed 's/^/| /' conftest.$ac_ext >&5
3549
3550 ac_c_werror_flag=$ac_save_c_werror_flag
3551 CFLAGS="-g"
3552 cat >conftest.$ac_ext <<_ACEOF
3553 /* confdefs.h. */
3554 _ACEOF
3555 cat confdefs.h >>conftest.$ac_ext
3556 cat >>conftest.$ac_ext <<_ACEOF
3557 /* end confdefs.h. */
3558
3559 int
3560 main ()
3561 {
3562
3563 ;
3564 return 0;
3565 }
3566 _ACEOF
3567 rm -f conftest.$ac_objext
3568 if { (ac_try="$ac_compile"
3569 case "(($ac_try" in
3570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571 *) ac_try_echo=$ac_try;;
3572 esac
3573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3574 $as_echo "$ac_try_echo") >&5
3575 (eval "$ac_compile") 2>conftest.er1
3576 ac_status=$?
3577 grep -v '^ *+' conftest.er1 >conftest.err
3578 rm -f conftest.er1
3579 cat conftest.err >&5
3580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); } && {
3582 test -z "$ac_c_werror_flag" ||
3583 test ! -s conftest.err
3584 } && test -s conftest.$ac_objext; then
3585 ac_cv_prog_cc_g=yes
3586 else
3587 $as_echo "$as_me: failed program was:" >&5
3588 sed 's/^/| /' conftest.$ac_ext >&5
3589
3590
3591 fi
3592
3593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3594 fi
3595
3596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3597 fi
3598
3599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3600 ac_c_werror_flag=$ac_save_c_werror_flag
3601 fi
3602 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3603 $as_echo "$ac_cv_prog_cc_g" >&6; }
3604 if test "$ac_test_CFLAGS" = set; then
3605 CFLAGS=$ac_save_CFLAGS
3606 elif test $ac_cv_prog_cc_g = yes; then
3607 if test "$GCC" = yes; then
3608 CFLAGS="-g -O2"
3609 else
3610 CFLAGS="-g"
3611 fi
3612 else
3613 if test "$GCC" = yes; then
3614 CFLAGS="-O2"
3615 else
3616 CFLAGS=
3617 fi
3618 fi
3619 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3620 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3621 if test "${ac_cv_prog_cc_c89+set}" = set; then
3622 $as_echo_n "(cached) " >&6
3623 else
3624 ac_cv_prog_cc_c89=no
3625 ac_save_CC=$CC
3626 cat >conftest.$ac_ext <<_ACEOF
3627 /* confdefs.h. */
3628 _ACEOF
3629 cat confdefs.h >>conftest.$ac_ext
3630 cat >>conftest.$ac_ext <<_ACEOF
3631 /* end confdefs.h. */
3632 #include <stdarg.h>
3633 #include <stdio.h>
3634 #include <sys/types.h>
3635 #include <sys/stat.h>
3636 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3637 struct buf { int x; };
3638 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3639 static char *e (p, i)
3640 char **p;
3641 int i;
3642 {
3643 return p[i];
3644 }
3645 static char *f (char * (*g) (char **, int), char **p, ...)
3646 {
3647 char *s;
3648 va_list v;
3649 va_start (v,p);
3650 s = g (p, va_arg (v,int));
3651 va_end (v);
3652 return s;
3653 }
3654
3655 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3656 function prototypes and stuff, but not '\xHH' hex character constants.
3657 These don't provoke an error unfortunately, instead are silently treated
3658 as 'x'. The following induces an error, until -std is added to get
3659 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3660 array size at least. It's necessary to write '\x00'==0 to get something
3661 that's true only with -std. */
3662 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3663
3664 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3665 inside strings and character constants. */
3666 #define FOO(x) 'x'
3667 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3668
3669 int test (int i, double x);
3670 struct s1 {int (*f) (int a);};
3671 struct s2 {int (*f) (double a);};
3672 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3673 int argc;
3674 char **argv;
3675 int
3676 main ()
3677 {
3678 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3679 ;
3680 return 0;
3681 }
3682 _ACEOF
3683 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3684 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3685 do
3686 CC="$ac_save_CC $ac_arg"
3687 rm -f conftest.$ac_objext
3688 if { (ac_try="$ac_compile"
3689 case "(($ac_try" in
3690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3691 *) ac_try_echo=$ac_try;;
3692 esac
3693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3694 $as_echo "$ac_try_echo") >&5
3695 (eval "$ac_compile") 2>conftest.er1
3696 ac_status=$?
3697 grep -v '^ *+' conftest.er1 >conftest.err
3698 rm -f conftest.er1
3699 cat conftest.err >&5
3700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701 (exit $ac_status); } && {
3702 test -z "$ac_c_werror_flag" ||
3703 test ! -s conftest.err
3704 } && test -s conftest.$ac_objext; then
3705 ac_cv_prog_cc_c89=$ac_arg
3706 else
3707 $as_echo "$as_me: failed program was:" >&5
3708 sed 's/^/| /' conftest.$ac_ext >&5
3709
3710
3711 fi
3712
3713 rm -f core conftest.err conftest.$ac_objext
3714 test "x$ac_cv_prog_cc_c89" != "xno" && break
3715 done
3716 rm -f conftest.$ac_ext
3717 CC=$ac_save_CC
3718
3719 fi
3720 # AC_CACHE_VAL
3721 case "x$ac_cv_prog_cc_c89" in
3722 x)
3723 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3724 $as_echo "none needed" >&6; } ;;
3725 xno)
3726 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3727 $as_echo "unsupported" >&6; } ;;
3728 *)
3729 CC="$CC $ac_cv_prog_cc_c89"
3730 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3731 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3732 esac
3733
3734
3735 ac_ext=c
3736 ac_cpp='$CPP $CPPFLAGS'
3737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3740
3741 depcc="$CC" am_compiler_list=
3742
3743 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3744 $as_echo_n "checking dependency style of $depcc... " >&6; }
3745 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3746 $as_echo_n "(cached) " >&6
3747 else
3748 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3749 # We make a subdir and do the tests there. Otherwise we can end up
3750 # making bogus files that we don't know about and never remove. For
3751 # instance it was reported that on HP-UX the gcc test will end up
3752 # making a dummy file named `D' -- because `-MD' means `put the output
3753 # in D'.
3754 mkdir conftest.dir
3755 # Copy depcomp to subdir because otherwise we won't find it if we're
3756 # using a relative directory.
3757 cp "$am_depcomp" conftest.dir
3758 cd conftest.dir
3759 # We will build objects and dependencies in a subdirectory because
3760 # it helps to detect inapplicable dependency modes. For instance
3761 # both Tru64's cc and ICC support -MD to output dependencies as a
3762 # side effect of compilation, but ICC will put the dependencies in
3763 # the current directory while Tru64 will put them in the object
3764 # directory.
3765 mkdir sub
3766
3767 am_cv_CC_dependencies_compiler_type=none
3768 if test "$am_compiler_list" = ""; then
3769 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3770 fi
3771 am__universal=false
3772 case " $depcc " in #(
3773 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3774 esac
3775
3776 for depmode in $am_compiler_list; do
3777 # Setup a source with many dependencies, because some compilers
3778 # like to wrap large dependency lists on column 80 (with \), and
3779 # we should not choose a depcomp mode which is confused by this.
3780 #
3781 # We need to recreate these files for each test, as the compiler may
3782 # overwrite some of them when testing with obscure command lines.
3783 # This happens at least with the AIX C compiler.
3784 : > sub/conftest.c
3785 for i in 1 2 3 4 5 6; do
3786 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3787 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3788 # Solaris 8's {/usr,}/bin/sh.
3789 touch sub/conftst$i.h
3790 done
3791 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3792
3793 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3794 # mode. It turns out that the SunPro C++ compiler does not properly
3795 # handle `-M -o', and we need to detect this. Also, some Intel
3796 # versions had trouble with output in subdirs
3797 am__obj=sub/conftest.${OBJEXT-o}
3798 am__minus_obj="-o $am__obj"
3799 case $depmode in
3800 gcc)
3801 # This depmode causes a compiler race in universal mode.
3802 test "$am__universal" = false || continue
3803 ;;
3804 nosideeffect)
3805 # after this tag, mechanisms are not by side-effect, so they'll
3806 # only be used when explicitly requested
3807 if test "x$enable_dependency_tracking" = xyes; then
3808 continue
3809 else
3810 break
3811 fi
3812 ;;
3813 msvisualcpp | msvcmsys)
3814 # This compiler won't grok `-c -o', but also, the minuso test has
3815 # not run yet. These depmodes are late enough in the game, and
3816 # so weak that their functioning should not be impacted.
3817 am__obj=conftest.${OBJEXT-o}
3818 am__minus_obj=
3819 ;;
3820 none) break ;;
3821 esac
3822 if depmode=$depmode \
3823 source=sub/conftest.c object=$am__obj \
3824 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3825 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3826 >/dev/null 2>conftest.err &&
3827 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3828 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3829 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3830 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3831 # icc doesn't choke on unknown options, it will just issue warnings
3832 # or remarks (even with -Werror). So we grep stderr for any message
3833 # that says an option was ignored or not supported.
3834 # When given -MP, icc 7.0 and 7.1 complain thusly:
3835 # icc: Command line warning: ignoring option '-M'; no argument required
3836 # The diagnosis changed in icc 8.0:
3837 # icc: Command line remark: option '-MP' not supported
3838 if (grep 'ignoring option' conftest.err ||
3839 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3840 am_cv_CC_dependencies_compiler_type=$depmode
3841 break
3842 fi
3843 fi
3844 done
3845
3846 cd ..
3847 rm -rf conftest.dir
3848 else
3849 am_cv_CC_dependencies_compiler_type=none
3850 fi
3851
3852 fi
3853 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3854 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3855 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3856
3857 if
3858 test "x$enable_dependency_tracking" != xno \
3859 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3860 am__fastdepCC_TRUE=
3861 am__fastdepCC_FALSE='#'
3862 else
3863 am__fastdepCC_TRUE='#'
3864 am__fastdepCC_FALSE=
3865 fi
3866
3867
3868 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3869 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3870 if test "${ac_cv_path_SED+set}" = set; then
3871 $as_echo_n "(cached) " >&6
3872 else
3873 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3874 for ac_i in 1 2 3 4 5 6 7; do
3875 ac_script="$ac_script$as_nl$ac_script"
3876 done
3877 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3878 $as_unset ac_script || ac_script=
3879 if test -z "$SED"; then
3880 ac_path_SED_found=false
3881 # Loop through the user's path and test for each of PROGNAME-LIST
3882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883 for as_dir in $PATH
3884 do
3885 IFS=$as_save_IFS
3886 test -z "$as_dir" && as_dir=.
3887 for ac_prog in sed gsed; do
3888 for ac_exec_ext in '' $ac_executable_extensions; do
3889 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3890 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3891 # Check for GNU ac_path_SED and select it if it is found.
3892 # Check for GNU $ac_path_SED
3893 case `"$ac_path_SED" --version 2>&1` in
3894 *GNU*)
3895 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3896 *)
3897 ac_count=0
3898 $as_echo_n 0123456789 >"conftest.in"
3899 while :
3900 do
3901 cat "conftest.in" "conftest.in" >"conftest.tmp"
3902 mv "conftest.tmp" "conftest.in"
3903 cp "conftest.in" "conftest.nl"
3904 $as_echo '' >> "conftest.nl"
3905 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3906 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3907 ac_count=`expr $ac_count + 1`
3908 if test $ac_count -gt ${ac_path_SED_max-0}; then
3909 # Best one so far, save it but keep looking for a better one
3910 ac_cv_path_SED="$ac_path_SED"
3911 ac_path_SED_max=$ac_count
3912 fi
3913 # 10*(2^10) chars as input seems more than enough
3914 test $ac_count -gt 10 && break
3915 done
3916 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3917 esac
3918
3919 $ac_path_SED_found && break 3
3920 done
3921 done
3922 done
3923 IFS=$as_save_IFS
3924 if test -z "$ac_cv_path_SED"; then
3925 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3926 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3927 { (exit 1); exit 1; }; }
3928 fi
3929 else
3930 ac_cv_path_SED=$SED
3931 fi
3932
3933 fi
3934 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3935 $as_echo "$ac_cv_path_SED" >&6; }
3936 SED="$ac_cv_path_SED"
3937 rm -f conftest.sed
3938
3939 test -z "$SED" && SED=sed
3940 Xsed="$SED -e 1s/^X//"
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3953 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3954 if test "${ac_cv_path_GREP+set}" = set; then
3955 $as_echo_n "(cached) " >&6
3956 else
3957 if test -z "$GREP"; then
3958 ac_path_GREP_found=false
3959 # Loop through the user's path and test for each of PROGNAME-LIST
3960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3962 do
3963 IFS=$as_save_IFS
3964 test -z "$as_dir" && as_dir=.
3965 for ac_prog in grep ggrep; do
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3968 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3969 # Check for GNU ac_path_GREP and select it if it is found.
3970 # Check for GNU $ac_path_GREP
3971 case `"$ac_path_GREP" --version 2>&1` in
3972 *GNU*)
3973 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3974 *)
3975 ac_count=0
3976 $as_echo_n 0123456789 >"conftest.in"
3977 while :
3978 do
3979 cat "conftest.in" "conftest.in" >"conftest.tmp"
3980 mv "conftest.tmp" "conftest.in"
3981 cp "conftest.in" "conftest.nl"
3982 $as_echo 'GREP' >> "conftest.nl"
3983 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3984 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3985 ac_count=`expr $ac_count + 1`
3986 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3987 # Best one so far, save it but keep looking for a better one
3988 ac_cv_path_GREP="$ac_path_GREP"
3989 ac_path_GREP_max=$ac_count
3990 fi
3991 # 10*(2^10) chars as input seems more than enough
3992 test $ac_count -gt 10 && break
3993 done
3994 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3995 esac
3996
3997 $ac_path_GREP_found && break 3
3998 done
3999 done
4000 done
4001 IFS=$as_save_IFS
4002 if test -z "$ac_cv_path_GREP"; then
4003 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4004 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4005 { (exit 1); exit 1; }; }
4006 fi
4007 else
4008 ac_cv_path_GREP=$GREP
4009 fi
4010
4011 fi
4012 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4013 $as_echo "$ac_cv_path_GREP" >&6; }
4014 GREP="$ac_cv_path_GREP"
4015
4016
4017 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4018 $as_echo_n "checking for egrep... " >&6; }
4019 if test "${ac_cv_path_EGREP+set}" = set; then
4020 $as_echo_n "(cached) " >&6
4021 else
4022 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4023 then ac_cv_path_EGREP="$GREP -E"
4024 else
4025 if test -z "$EGREP"; then
4026 ac_path_EGREP_found=false
4027 # Loop through the user's path and test for each of PROGNAME-LIST
4028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4030 do
4031 IFS=$as_save_IFS
4032 test -z "$as_dir" && as_dir=.
4033 for ac_prog in egrep; do
4034 for ac_exec_ext in '' $ac_executable_extensions; do
4035 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4036 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4037 # Check for GNU ac_path_EGREP and select it if it is found.
4038 # Check for GNU $ac_path_EGREP
4039 case `"$ac_path_EGREP" --version 2>&1` in
4040 *GNU*)
4041 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4042 *)
4043 ac_count=0
4044 $as_echo_n 0123456789 >"conftest.in"
4045 while :
4046 do
4047 cat "conftest.in" "conftest.in" >"conftest.tmp"
4048 mv "conftest.tmp" "conftest.in"
4049 cp "conftest.in" "conftest.nl"
4050 $as_echo 'EGREP' >> "conftest.nl"
4051 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4052 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4053 ac_count=`expr $ac_count + 1`
4054 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4055 # Best one so far, save it but keep looking for a better one
4056 ac_cv_path_EGREP="$ac_path_EGREP"
4057 ac_path_EGREP_max=$ac_count
4058 fi
4059 # 10*(2^10) chars as input seems more than enough
4060 test $ac_count -gt 10 && break
4061 done
4062 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4063 esac
4064
4065 $ac_path_EGREP_found && break 3
4066 done
4067 done
4068 done
4069 IFS=$as_save_IFS
4070 if test -z "$ac_cv_path_EGREP"; then
4071 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4072 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4073 { (exit 1); exit 1; }; }
4074 fi
4075 else
4076 ac_cv_path_EGREP=$EGREP
4077 fi
4078
4079 fi
4080 fi
4081 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4082 $as_echo "$ac_cv_path_EGREP" >&6; }
4083 EGREP="$ac_cv_path_EGREP"
4084
4085
4086 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4087 $as_echo_n "checking for fgrep... " >&6; }
4088 if test "${ac_cv_path_FGREP+set}" = set; then
4089 $as_echo_n "(cached) " >&6
4090 else
4091 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4092 then ac_cv_path_FGREP="$GREP -F"
4093 else
4094 if test -z "$FGREP"; then
4095 ac_path_FGREP_found=false
4096 # Loop through the user's path and test for each of PROGNAME-LIST
4097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4099 do
4100 IFS=$as_save_IFS
4101 test -z "$as_dir" && as_dir=.
4102 for ac_prog in fgrep; do
4103 for ac_exec_ext in '' $ac_executable_extensions; do
4104 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4105 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4106 # Check for GNU ac_path_FGREP and select it if it is found.
4107 # Check for GNU $ac_path_FGREP
4108 case `"$ac_path_FGREP" --version 2>&1` in
4109 *GNU*)
4110 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4111 *)
4112 ac_count=0
4113 $as_echo_n 0123456789 >"conftest.in"
4114 while :
4115 do
4116 cat "conftest.in" "conftest.in" >"conftest.tmp"
4117 mv "conftest.tmp" "conftest.in"
4118 cp "conftest.in" "conftest.nl"
4119 $as_echo 'FGREP' >> "conftest.nl"
4120 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4121 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4122 ac_count=`expr $ac_count + 1`
4123 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4124 # Best one so far, save it but keep looking for a better one
4125 ac_cv_path_FGREP="$ac_path_FGREP"
4126 ac_path_FGREP_max=$ac_count
4127 fi
4128 # 10*(2^10) chars as input seems more than enough
4129 test $ac_count -gt 10 && break
4130 done
4131 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4132 esac
4133
4134 $ac_path_FGREP_found && break 3
4135 done
4136 done
4137 done
4138 IFS=$as_save_IFS
4139 if test -z "$ac_cv_path_FGREP"; then
4140 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4141 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4142 { (exit 1); exit 1; }; }
4143 fi
4144 else
4145 ac_cv_path_FGREP=$FGREP
4146 fi
4147
4148 fi
4149 fi
4150 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4151 $as_echo "$ac_cv_path_FGREP" >&6; }
4152 FGREP="$ac_cv_path_FGREP"
4153
4154
4155 test -z "$GREP" && GREP=grep
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175 # Check whether --with-gnu-ld was given.
4176 if test "${with_gnu_ld+set}" = set; then
4177 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4178 else
4179 with_gnu_ld=no
4180 fi
4181
4182 ac_prog=ld
4183 if test "$GCC" = yes; then
4184 # Check if gcc -print-prog-name=ld gives a path.
4185 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4186 $as_echo_n "checking for ld used by $CC... " >&6; }
4187 case $host in
4188 *-*-mingw*)
4189 # gcc leaves a trailing carriage return which upsets mingw
4190 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4191 *)
4192 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4193 esac
4194 case $ac_prog in
4195 # Accept absolute paths.
4196 [\\/]* | ?:[\\/]*)
4197 re_direlt='/[^/][^/]*/\.\./'
4198 # Canonicalize the pathname of ld
4199 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4200 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4201 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4202 done
4203 test -z "$LD" && LD="$ac_prog"
4204 ;;
4205 "")
4206 # If it fails, then pretend we aren't using GCC.
4207 ac_prog=ld
4208 ;;
4209 *)
4210 # If it is relative, then search for the first ld in PATH.
4211 with_gnu_ld=unknown
4212 ;;
4213 esac
4214 elif test "$with_gnu_ld" = yes; then
4215 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4216 $as_echo_n "checking for GNU ld... " >&6; }
4217 else
4218 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4219 $as_echo_n "checking for non-GNU ld... " >&6; }
4220 fi
4221 if test "${lt_cv_path_LD+set}" = set; then
4222 $as_echo_n "(cached) " >&6
4223 else
4224 if test -z "$LD"; then
4225 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4226 for ac_dir in $PATH; do
4227 IFS="$lt_save_ifs"
4228 test -z "$ac_dir" && ac_dir=.
4229 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4230 lt_cv_path_LD="$ac_dir/$ac_prog"
4231 # Check to see if the program is GNU ld. I'd rather use --version,
4232 # but apparently some variants of GNU ld only accept -v.
4233 # Break only if it was the GNU/non-GNU ld that we prefer.
4234 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4235 *GNU* | *'with BFD'*)
4236 test "$with_gnu_ld" != no && break
4237 ;;
4238 *)
4239 test "$with_gnu_ld" != yes && break
4240 ;;
4241 esac
4242 fi
4243 done
4244 IFS="$lt_save_ifs"
4245 else
4246 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4247 fi
4248 fi
4249
4250 LD="$lt_cv_path_LD"
4251 if test -n "$LD"; then
4252 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4253 $as_echo "$LD" >&6; }
4254 else
4255 { $as_echo "$as_me:$LINENO: result: no" >&5
4256 $as_echo "no" >&6; }
4257 fi
4258 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4259 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4260 { (exit 1); exit 1; }; }
4261 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4262 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4263 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4264 $as_echo_n "(cached) " >&6
4265 else
4266 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4267 case `$LD -v 2>&1 </dev/null` in
4268 *GNU* | *'with BFD'*)
4269 lt_cv_prog_gnu_ld=yes
4270 ;;
4271 *)
4272 lt_cv_prog_gnu_ld=no
4273 ;;
4274 esac
4275 fi
4276 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4277 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4278 with_gnu_ld=$lt_cv_prog_gnu_ld
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4289 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4290 if test "${lt_cv_path_NM+set}" = set; then
4291 $as_echo_n "(cached) " >&6
4292 else
4293 if test -n "$NM"; then
4294 # Let the user override the test.
4295 lt_cv_path_NM="$NM"
4296 else
4297 lt_nm_to_check="${ac_tool_prefix}nm"
4298 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4299 lt_nm_to_check="$lt_nm_to_check nm"
4300 fi
4301 for lt_tmp_nm in $lt_nm_to_check; do
4302 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4303 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4304 IFS="$lt_save_ifs"
4305 test -z "$ac_dir" && ac_dir=.
4306 tmp_nm="$ac_dir/$lt_tmp_nm"
4307 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4308 # Check to see if the nm accepts a BSD-compat flag.
4309 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4310 # nm: unknown option "B" ignored
4311 # Tru64's nm complains that /dev/null is an invalid object file
4312 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4313 */dev/null* | *'Invalid file or object type'*)
4314 lt_cv_path_NM="$tmp_nm -B"
4315 break
4316 ;;
4317 *)
4318 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4319 */dev/null*)
4320 lt_cv_path_NM="$tmp_nm -p"
4321 break
4322 ;;
4323 *)
4324 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4325 continue # so that we can try to find one that supports BSD flags
4326 ;;
4327 esac
4328 ;;
4329 esac
4330 fi
4331 done
4332 IFS="$lt_save_ifs"
4333 done
4334 : ${lt_cv_path_NM=no}
4335 fi
4336 fi
4337 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4338 $as_echo "$lt_cv_path_NM" >&6; }
4339 if test "$lt_cv_path_NM" != "no"; then
4340 NM="$lt_cv_path_NM"
4341 else
4342 # Didn't find any BSD compatible name lister, look for dumpbin.
4343 if test -n "$ac_tool_prefix"; then
4344 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4345 do
4346 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4347 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4348 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4349 $as_echo_n "checking for $ac_word... " >&6; }
4350 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4351 $as_echo_n "(cached) " >&6
4352 else
4353 if test -n "$DUMPBIN"; then
4354 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4355 else
4356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4357 for as_dir in $PATH
4358 do
4359 IFS=$as_save_IFS
4360 test -z "$as_dir" && as_dir=.
4361 for ac_exec_ext in '' $ac_executable_extensions; do
4362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4363 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4364 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4365 break 2
4366 fi
4367 done
4368 done
4369 IFS=$as_save_IFS
4370
4371 fi
4372 fi
4373 DUMPBIN=$ac_cv_prog_DUMPBIN
4374 if test -n "$DUMPBIN"; then
4375 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4376 $as_echo "$DUMPBIN" >&6; }
4377 else
4378 { $as_echo "$as_me:$LINENO: result: no" >&5
4379 $as_echo "no" >&6; }
4380 fi
4381
4382
4383 test -n "$DUMPBIN" && break
4384 done
4385 fi
4386 if test -z "$DUMPBIN"; then
4387 ac_ct_DUMPBIN=$DUMPBIN
4388 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4389 do
4390 # Extract the first word of "$ac_prog", so it can be a program name with args.
4391 set dummy $ac_prog; ac_word=$2
4392 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4393 $as_echo_n "checking for $ac_word... " >&6; }
4394 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4395 $as_echo_n "(cached) " >&6
4396 else
4397 if test -n "$ac_ct_DUMPBIN"; then
4398 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4399 else
4400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401 for as_dir in $PATH
4402 do
4403 IFS=$as_save_IFS
4404 test -z "$as_dir" && as_dir=.
4405 for ac_exec_ext in '' $ac_executable_extensions; do
4406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4407 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4408 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4409 break 2
4410 fi
4411 done
4412 done
4413 IFS=$as_save_IFS
4414
4415 fi
4416 fi
4417 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4418 if test -n "$ac_ct_DUMPBIN"; then
4419 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4420 $as_echo "$ac_ct_DUMPBIN" >&6; }
4421 else
4422 { $as_echo "$as_me:$LINENO: result: no" >&5
4423 $as_echo "no" >&6; }
4424 fi
4425
4426
4427 test -n "$ac_ct_DUMPBIN" && break
4428 done
4429
4430 if test "x$ac_ct_DUMPBIN" = x; then
4431 DUMPBIN=":"
4432 else
4433 case $cross_compiling:$ac_tool_warned in
4434 yes:)
4435 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4437 ac_tool_warned=yes ;;
4438 esac
4439 DUMPBIN=$ac_ct_DUMPBIN
4440 fi
4441 fi
4442
4443
4444 if test "$DUMPBIN" != ":"; then
4445 NM="$DUMPBIN"
4446 fi
4447 fi
4448 test -z "$NM" && NM=nm
4449
4450
4451
4452
4453
4454
4455 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4456 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4457 if test "${lt_cv_nm_interface+set}" = set; then
4458 $as_echo_n "(cached) " >&6
4459 else
4460 lt_cv_nm_interface="BSD nm"
4461 echo "int some_variable = 0;" > conftest.$ac_ext
4462 (eval echo "\"\$as_me:4462: $ac_compile\"" >&5)
4463 (eval "$ac_compile" 2>conftest.err)
4464 cat conftest.err >&5
4465 (eval echo "\"\$as_me:4465: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4466 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4467 cat conftest.err >&5
4468 (eval echo "\"\$as_me:4468: output\"" >&5)
4469 cat conftest.out >&5
4470 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4471 lt_cv_nm_interface="MS dumpbin"
4472 fi
4473 rm -f conftest*
4474 fi
4475 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4476 $as_echo "$lt_cv_nm_interface" >&6; }
4477
4478 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4479 $as_echo_n "checking whether ln -s works... " >&6; }
4480 LN_S=$as_ln_s
4481 if test "$LN_S" = "ln -s"; then
4482 { $as_echo "$as_me:$LINENO: result: yes" >&5
4483 $as_echo "yes" >&6; }
4484 else
4485 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4486 $as_echo "no, using $LN_S" >&6; }
4487 fi
4488
4489 # find the maximum length of command line arguments
4490 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4491 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4492 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4493 $as_echo_n "(cached) " >&6
4494 else
4495 i=0
4496 teststring="ABCD"
4497
4498 case $build_os in
4499 msdosdjgpp*)
4500 # On DJGPP, this test can blow up pretty badly due to problems in libc
4501 # (any single argument exceeding 2000 bytes causes a buffer overrun
4502 # during glob expansion). Even if it were fixed, the result of this
4503 # check would be larger than it should be.
4504 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4505 ;;
4506
4507 gnu*)
4508 # Under GNU Hurd, this test is not required because there is
4509 # no limit to the length of command line arguments.
4510 # Libtool will interpret -1 as no limit whatsoever
4511 lt_cv_sys_max_cmd_len=-1;
4512 ;;
4513
4514 cygwin* | mingw* | cegcc*)
4515 # On Win9x/ME, this test blows up -- it succeeds, but takes
4516 # about 5 minutes as the teststring grows exponentially.
4517 # Worse, since 9x/ME are not pre-emptively multitasking,
4518 # you end up with a "frozen" computer, even though with patience
4519 # the test eventually succeeds (with a max line length of 256k).
4520 # Instead, let's just punt: use the minimum linelength reported by
4521 # all of the supported platforms: 8192 (on NT/2K/XP).
4522 lt_cv_sys_max_cmd_len=8192;
4523 ;;
4524
4525 amigaos*)
4526 # On AmigaOS with pdksh, this test takes hours, literally.
4527 # So we just punt and use a minimum line length of 8192.
4528 lt_cv_sys_max_cmd_len=8192;
4529 ;;
4530
4531 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4532 # This has been around since 386BSD, at least. Likely further.
4533 if test -x /sbin/sysctl; then
4534 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4535 elif test -x /usr/sbin/sysctl; then
4536 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4537 else
4538 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4539 fi
4540 # And add a safety zone
4541 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4542 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4543 ;;
4544
4545 interix*)
4546 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4547 lt_cv_sys_max_cmd_len=196608
4548 ;;
4549
4550 osf*)
4551 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4552 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4553 # nice to cause kernel panics so lets avoid the loop below.
4554 # First set a reasonable default.
4555 lt_cv_sys_max_cmd_len=16384
4556 #
4557 if test -x /sbin/sysconfig; then
4558 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4559 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4560 esac
4561 fi
4562 ;;
4563 sco3.2v5*)
4564 lt_cv_sys_max_cmd_len=102400
4565 ;;
4566 sysv5* | sco5v6* | sysv4.2uw2*)
4567 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4568 if test -n "$kargmax"; then
4569 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4570 else
4571 lt_cv_sys_max_cmd_len=32768
4572 fi
4573 ;;
4574 *)
4575 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4576 if test -n "$lt_cv_sys_max_cmd_len"; then
4577 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4578 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4579 else
4580 # Make teststring a little bigger before we do anything with it.
4581 # a 1K string should be a reasonable start.
4582 for i in 1 2 3 4 5 6 7 8 ; do
4583 teststring=$teststring$teststring
4584 done
4585 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4586 # If test is not a shell built-in, we'll probably end up computing a
4587 # maximum length that is only half of the actual maximum length, but
4588 # we can't tell.
4589 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4590 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4591 test $i != 17 # 1/2 MB should be enough
4592 do
4593 i=`expr $i + 1`
4594 teststring=$teststring$teststring
4595 done
4596 # Only check the string length outside the loop.
4597 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4598 teststring=
4599 # Add a significant safety factor because C++ compilers can tack on
4600 # massive amounts of additional arguments before passing them to the
4601 # linker. It appears as though 1/2 is a usable value.
4602 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4603 fi
4604 ;;
4605 esac
4606
4607 fi
4608
4609 if test -n $lt_cv_sys_max_cmd_len ; then
4610 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4611 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4612 else
4613 { $as_echo "$as_me:$LINENO: result: none" >&5
4614 $as_echo "none" >&6; }
4615 fi
4616 max_cmd_len=$lt_cv_sys_max_cmd_len
4617
4618
4619
4620
4621
4622
4623 : ${CP="cp -f"}
4624 : ${MV="mv -f"}
4625 : ${RM="rm -f"}
4626
4627 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4628 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4629 # Try some XSI features
4630 xsi_shell=no
4631 ( _lt_dummy="a/b/c"
4632 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4633 = c,a/b,, \
4634 && eval 'test $(( 1 + 1 )) -eq 2 \
4635 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4636 && xsi_shell=yes
4637 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4638 $as_echo "$xsi_shell" >&6; }
4639
4640
4641 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4642 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4643 lt_shell_append=no
4644 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4645 >/dev/null 2>&1 \
4646 && lt_shell_append=yes
4647 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4648 $as_echo "$lt_shell_append" >&6; }
4649
4650
4651 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4652 lt_unset=unset
4653 else
4654 lt_unset=false
4655 fi
4656
4657
4658
4659
4660
4661 # test EBCDIC or ASCII
4662 case `echo X|tr X '\101'` in
4663 A) # ASCII based system
4664 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4665 lt_SP2NL='tr \040 \012'
4666 lt_NL2SP='tr \015\012 \040\040'
4667 ;;
4668 *) # EBCDIC based system
4669 lt_SP2NL='tr \100 \n'
4670 lt_NL2SP='tr \r\n \100\100'
4671 ;;
4672 esac
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4683 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4684 if test "${lt_cv_ld_reload_flag+set}" = set; then
4685 $as_echo_n "(cached) " >&6
4686 else
4687 lt_cv_ld_reload_flag='-r'
4688 fi
4689 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4690 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4691 reload_flag=$lt_cv_ld_reload_flag
4692 case $reload_flag in
4693 "" | " "*) ;;
4694 *) reload_flag=" $reload_flag" ;;
4695 esac
4696 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4697 case $host_os in
4698 darwin*)
4699 if test "$GCC" = yes; then
4700 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4701 else
4702 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4703 fi
4704 ;;
4705 esac
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715 if test -n "$ac_tool_prefix"; then
4716 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4717 set dummy ${ac_tool_prefix}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_OBJDUMP+set}" = set; then
4721 $as_echo_n "(cached) " >&6
4722 else
4723 if test -n "$OBJDUMP"; then
4724 ac_cv_prog_OBJDUMP="$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_OBJDUMP="${ac_tool_prefix}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 OBJDUMP=$ac_cv_prog_OBJDUMP
4744 if test -n "$OBJDUMP"; then
4745 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4746 $as_echo "$OBJDUMP" >&6; }
4747 else
4748 { $as_echo "$as_me:$LINENO: result: no" >&5
4749 $as_echo "no" >&6; }
4750 fi
4751
4752
4753 fi
4754 if test -z "$ac_cv_prog_OBJDUMP"; then
4755 ac_ct_OBJDUMP=$OBJDUMP
4756 # Extract the first word of "objdump", so it can be a program name with args.
4757 set dummy objdump; ac_word=$2
4758 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4759 $as_echo_n "checking for $ac_word... " >&6; }
4760 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4761 $as_echo_n "(cached) " >&6
4762 else
4763 if test -n "$ac_ct_OBJDUMP"; then
4764 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4765 else
4766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767 for as_dir in $PATH
4768 do
4769 IFS=$as_save_IFS
4770 test -z "$as_dir" && as_dir=.
4771 for ac_exec_ext in '' $ac_executable_extensions; do
4772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4773 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4774 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4775 break 2
4776 fi
4777 done
4778 done
4779 IFS=$as_save_IFS
4780
4781 fi
4782 fi
4783 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4784 if test -n "$ac_ct_OBJDUMP"; then
4785 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4786 $as_echo "$ac_ct_OBJDUMP" >&6; }
4787 else
4788 { $as_echo "$as_me:$LINENO: result: no" >&5
4789 $as_echo "no" >&6; }
4790 fi
4791
4792 if test "x$ac_ct_OBJDUMP" = x; then
4793 OBJDUMP="false"
4794 else
4795 case $cross_compiling:$ac_tool_warned in
4796 yes:)
4797 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4799 ac_tool_warned=yes ;;
4800 esac
4801 OBJDUMP=$ac_ct_OBJDUMP
4802 fi
4803 else
4804 OBJDUMP="$ac_cv_prog_OBJDUMP"
4805 fi
4806
4807 test -z "$OBJDUMP" && OBJDUMP=objdump
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4818 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4819 if test "${lt_cv_deplibs_check_method+set}" = set; then
4820 $as_echo_n "(cached) " >&6
4821 else
4822 lt_cv_file_magic_cmd='$MAGIC_CMD'
4823 lt_cv_file_magic_test_file=
4824 lt_cv_deplibs_check_method='unknown'
4825 # Need to set the preceding variable on all platforms that support
4826 # interlibrary dependencies.
4827 # 'none' -- dependencies not supported.
4828 # `unknown' -- same as none, but documents that we really don't know.
4829 # 'pass_all' -- all dependencies passed with no checks.
4830 # 'test_compile' -- check by making test program.
4831 # 'file_magic [[regex]]' -- check by looking for files in library path
4832 # which responds to the $file_magic_cmd with a given extended regex.
4833 # If you have `file' or equivalent on your system and you're not sure
4834 # whether `pass_all' will *always* work, you probably want this one.
4835
4836 case $host_os in
4837 aix[4-9]*)
4838 lt_cv_deplibs_check_method=pass_all
4839 ;;
4840
4841 beos*)
4842 lt_cv_deplibs_check_method=pass_all
4843 ;;
4844
4845 bsdi[45]*)
4846 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4847 lt_cv_file_magic_cmd='/usr/bin/file -L'
4848 lt_cv_file_magic_test_file=/shlib/libc.so
4849 ;;
4850
4851 cygwin*)
4852 # func_win32_libid is a shell function defined in ltmain.sh
4853 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4854 lt_cv_file_magic_cmd='func_win32_libid'
4855 ;;
4856
4857 mingw* | pw32*)
4858 # Base MSYS/MinGW do not provide the 'file' command needed by
4859 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4860 # unless we find 'file', for example because we are cross-compiling.
4861 if ( file / ) >/dev/null 2>&1; then
4862 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4863 lt_cv_file_magic_cmd='func_win32_libid'
4864 else
4865 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4866 lt_cv_file_magic_cmd='$OBJDUMP -f'
4867 fi
4868 ;;
4869
4870 cegcc)
4871 # use the weaker test based on 'objdump'. See mingw*.
4872 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4873 lt_cv_file_magic_cmd='$OBJDUMP -f'
4874 ;;
4875
4876 darwin* | rhapsody*)
4877 lt_cv_deplibs_check_method=pass_all
4878 ;;
4879
4880 freebsd* | dragonfly*)
4881 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4882 case $host_cpu in
4883 i*86 )
4884 # Not sure whether the presence of OpenBSD here was a mistake.
4885 # Let's accept both of them until this is cleared up.
4886 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4887 lt_cv_file_magic_cmd=/usr/bin/file
4888 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4889 ;;
4890 esac
4891 else
4892 lt_cv_deplibs_check_method=pass_all
4893 fi
4894 ;;
4895
4896 gnu*)
4897 lt_cv_deplibs_check_method=pass_all
4898 ;;
4899
4900 hpux10.20* | hpux11*)
4901 lt_cv_file_magic_cmd=/usr/bin/file
4902 case $host_cpu in
4903 ia64*)
4904 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4905 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4906 ;;
4907 hppa*64*)
4908 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]'
4909 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4910 ;;
4911 *)
4912 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4913 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4914 ;;
4915 esac
4916 ;;
4917
4918 interix[3-9]*)
4919 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4920 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4921 ;;
4922
4923 irix5* | irix6* | nonstopux*)
4924 case $LD in
4925 *-32|*"-32 ") libmagic=32-bit;;
4926 *-n32|*"-n32 ") libmagic=N32;;
4927 *-64|*"-64 ") libmagic=64-bit;;
4928 *) libmagic=never-match;;
4929 esac
4930 lt_cv_deplibs_check_method=pass_all
4931 ;;
4932
4933 # This must be Linux ELF.
4934 linux* | k*bsd*-gnu)
4935 lt_cv_deplibs_check_method=pass_all
4936 ;;
4937
4938 netbsd*)
4939 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4940 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4941 else
4942 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4943 fi
4944 ;;
4945
4946 newos6*)
4947 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4948 lt_cv_file_magic_cmd=/usr/bin/file
4949 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4950 ;;
4951
4952 *nto* | *qnx*)
4953 lt_cv_deplibs_check_method=pass_all
4954 ;;
4955
4956 openbsd*)
4957 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4958 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4959 else
4960 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4961 fi
4962 ;;
4963
4964 osf3* | osf4* | osf5*)
4965 lt_cv_deplibs_check_method=pass_all
4966 ;;
4967
4968 rdos*)
4969 lt_cv_deplibs_check_method=pass_all
4970 ;;
4971
4972 solaris*)
4973 lt_cv_deplibs_check_method=pass_all
4974 ;;
4975
4976 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4977 lt_cv_deplibs_check_method=pass_all
4978 ;;
4979
4980 sysv4 | sysv4.3*)
4981 case $host_vendor in
4982 motorola)
4983 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]'
4984 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4985 ;;
4986 ncr)
4987 lt_cv_deplibs_check_method=pass_all
4988 ;;
4989 sequent)
4990 lt_cv_file_magic_cmd='/bin/file'
4991 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4992 ;;
4993 sni)
4994 lt_cv_file_magic_cmd='/bin/file'
4995 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4996 lt_cv_file_magic_test_file=/lib/libc.so
4997 ;;
4998 siemens)
4999 lt_cv_deplibs_check_method=pass_all
5000 ;;
5001 pc)
5002 lt_cv_deplibs_check_method=pass_all
5003 ;;
5004 esac
5005 ;;
5006
5007 tpf*)
5008 lt_cv_deplibs_check_method=pass_all
5009 ;;
5010 esac
5011
5012 fi
5013 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5014 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5015 file_magic_cmd=$lt_cv_file_magic_cmd
5016 deplibs_check_method=$lt_cv_deplibs_check_method
5017 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030 if test -n "$ac_tool_prefix"; then
5031 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5032 set dummy ${ac_tool_prefix}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_AR+set}" = set; then
5036 $as_echo_n "(cached) " >&6
5037 else
5038 if test -n "$AR"; then
5039 ac_cv_prog_AR="$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_AR="${ac_tool_prefix}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 AR=$ac_cv_prog_AR
5059 if test -n "$AR"; then
5060 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5061 $as_echo "$AR" >&6; }
5062 else
5063 { $as_echo "$as_me:$LINENO: result: no" >&5
5064 $as_echo "no" >&6; }
5065 fi
5066
5067
5068 fi
5069 if test -z "$ac_cv_prog_AR"; then
5070 ac_ct_AR=$AR
5071 # Extract the first word of "ar", so it can be a program name with args.
5072 set dummy ar; ac_word=$2
5073 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5074 $as_echo_n "checking for $ac_word... " >&6; }
5075 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5076 $as_echo_n "(cached) " >&6
5077 else
5078 if test -n "$ac_ct_AR"; then
5079 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5080 else
5081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082 for as_dir in $PATH
5083 do
5084 IFS=$as_save_IFS
5085 test -z "$as_dir" && as_dir=.
5086 for ac_exec_ext in '' $ac_executable_extensions; do
5087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5088 ac_cv_prog_ac_ct_AR="ar"
5089 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5090 break 2
5091 fi
5092 done
5093 done
5094 IFS=$as_save_IFS
5095
5096 fi
5097 fi
5098 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5099 if test -n "$ac_ct_AR"; then
5100 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5101 $as_echo "$ac_ct_AR" >&6; }
5102 else
5103 { $as_echo "$as_me:$LINENO: result: no" >&5
5104 $as_echo "no" >&6; }
5105 fi
5106
5107 if test "x$ac_ct_AR" = x; then
5108 AR="false"
5109 else
5110 case $cross_compiling:$ac_tool_warned in
5111 yes:)
5112 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5114 ac_tool_warned=yes ;;
5115 esac
5116 AR=$ac_ct_AR
5117 fi
5118 else
5119 AR="$ac_cv_prog_AR"
5120 fi
5121
5122 test -z "$AR" && AR=ar
5123 test -z "$AR_FLAGS" && AR_FLAGS=cru
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135 if test -n "$ac_tool_prefix"; then
5136 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5137 set dummy ${ac_tool_prefix}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_STRIP+set}" = set; then
5141 $as_echo_n "(cached) " >&6
5142 else
5143 if test -n "$STRIP"; then
5144 ac_cv_prog_STRIP="$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_STRIP="${ac_tool_prefix}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 STRIP=$ac_cv_prog_STRIP
5164 if test -n "$STRIP"; then
5165 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5166 $as_echo "$STRIP" >&6; }
5167 else
5168 { $as_echo "$as_me:$LINENO: result: no" >&5
5169 $as_echo "no" >&6; }
5170 fi
5171
5172
5173 fi
5174 if test -z "$ac_cv_prog_STRIP"; then
5175 ac_ct_STRIP=$STRIP
5176 # Extract the first word of "strip", so it can be a program name with args.
5177 set dummy strip; ac_word=$2
5178 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5179 $as_echo_n "checking for $ac_word... " >&6; }
5180 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5181 $as_echo_n "(cached) " >&6
5182 else
5183 if test -n "$ac_ct_STRIP"; then
5184 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5185 else
5186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 for as_dir in $PATH
5188 do
5189 IFS=$as_save_IFS
5190 test -z "$as_dir" && as_dir=.
5191 for ac_exec_ext in '' $ac_executable_extensions; do
5192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5193 ac_cv_prog_ac_ct_STRIP="strip"
5194 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5195 break 2
5196 fi
5197 done
5198 done
5199 IFS=$as_save_IFS
5200
5201 fi
5202 fi
5203 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5204 if test -n "$ac_ct_STRIP"; then
5205 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5206 $as_echo "$ac_ct_STRIP" >&6; }
5207 else
5208 { $as_echo "$as_me:$LINENO: result: no" >&5
5209 $as_echo "no" >&6; }
5210 fi
5211
5212 if test "x$ac_ct_STRIP" = x; then
5213 STRIP=":"
5214 else
5215 case $cross_compiling:$ac_tool_warned in
5216 yes:)
5217 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5219 ac_tool_warned=yes ;;
5220 esac
5221 STRIP=$ac_ct_STRIP
5222 fi
5223 else
5224 STRIP="$ac_cv_prog_STRIP"
5225 fi
5226
5227 test -z "$STRIP" && STRIP=:
5228
5229
5230
5231
5232
5233
5234 if test -n "$ac_tool_prefix"; then
5235 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5236 set dummy ${ac_tool_prefix}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_RANLIB+set}" = set; then
5240 $as_echo_n "(cached) " >&6
5241 else
5242 if test -n "$RANLIB"; then
5243 ac_cv_prog_RANLIB="$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_RANLIB="${ac_tool_prefix}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 RANLIB=$ac_cv_prog_RANLIB
5263 if test -n "$RANLIB"; then
5264 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5265 $as_echo "$RANLIB" >&6; }
5266 else
5267 { $as_echo "$as_me:$LINENO: result: no" >&5
5268 $as_echo "no" >&6; }
5269 fi
5270
5271
5272 fi
5273 if test -z "$ac_cv_prog_RANLIB"; then
5274 ac_ct_RANLIB=$RANLIB
5275 # Extract the first word of "ranlib", so it can be a program name with args.
5276 set dummy ranlib; ac_word=$2
5277 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5278 $as_echo_n "checking for $ac_word... " >&6; }
5279 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5280 $as_echo_n "(cached) " >&6
5281 else
5282 if test -n "$ac_ct_RANLIB"; then
5283 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5284 else
5285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5286 for as_dir in $PATH
5287 do
5288 IFS=$as_save_IFS
5289 test -z "$as_dir" && as_dir=.
5290 for ac_exec_ext in '' $ac_executable_extensions; do
5291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5292 ac_cv_prog_ac_ct_RANLIB="ranlib"
5293 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5294 break 2
5295 fi
5296 done
5297 done
5298 IFS=$as_save_IFS
5299
5300 fi
5301 fi
5302 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5303 if test -n "$ac_ct_RANLIB"; then
5304 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5305 $as_echo "$ac_ct_RANLIB" >&6; }
5306 else
5307 { $as_echo "$as_me:$LINENO: result: no" >&5
5308 $as_echo "no" >&6; }
5309 fi
5310
5311 if test "x$ac_ct_RANLIB" = x; then
5312 RANLIB=":"
5313 else
5314 case $cross_compiling:$ac_tool_warned in
5315 yes:)
5316 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5317 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5318 ac_tool_warned=yes ;;
5319 esac
5320 RANLIB=$ac_ct_RANLIB
5321 fi
5322 else
5323 RANLIB="$ac_cv_prog_RANLIB"
5324 fi
5325
5326 test -z "$RANLIB" && RANLIB=:
5327
5328
5329
5330
5331
5332
5333 # Determine commands to create old-style static archives.
5334 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5335 old_postinstall_cmds='chmod 644 $oldlib'
5336 old_postuninstall_cmds=
5337
5338 if test -n "$RANLIB"; then
5339 case $host_os in
5340 openbsd*)
5341 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5342 ;;
5343 *)
5344 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5345 ;;
5346 esac
5347 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5348 fi
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383 # If no C compiler was specified, use CC.
5384 LTCC=${LTCC-"$CC"}
5385
5386 # If no C compiler flags were specified, use CFLAGS.
5387 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5388
5389 # Allow CC to be a program name with arguments.
5390 compiler=$CC
5391
5392
5393 # Check for command to grab the raw symbol name followed by C symbol from nm.
5394 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5395 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5396 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5397 $as_echo_n "(cached) " >&6
5398 else
5399
5400 # These are sane defaults that work on at least a few old systems.
5401 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5402
5403 # Character class describing NM global symbol codes.
5404 symcode='[BCDEGRST]'
5405
5406 # Regexp to match symbols that can be accessed directly from C.
5407 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5408
5409 # Define system-specific variables.
5410 case $host_os in
5411 aix*)
5412 symcode='[BCDT]'
5413 ;;
5414 cygwin* | mingw* | pw32* | cegcc*)
5415 symcode='[ABCDGISTW]'
5416 ;;
5417 hpux*)
5418 if test "$host_cpu" = ia64; then
5419 symcode='[ABCDEGRST]'
5420 fi
5421 ;;
5422 irix* | nonstopux*)
5423 symcode='[BCDEGRST]'
5424 ;;
5425 osf*)
5426 symcode='[BCDEGQRST]'
5427 ;;
5428 solaris*)
5429 symcode='[BDRT]'
5430 ;;
5431 sco3.2v5*)
5432 symcode='[DT]'
5433 ;;
5434 sysv4.2uw2*)
5435 symcode='[DT]'
5436 ;;
5437 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5438 symcode='[ABDT]'
5439 ;;
5440 sysv4)
5441 symcode='[DFNSTU]'
5442 ;;
5443 esac
5444
5445 # If we're using GNU nm, then use its standard symbol codes.
5446 case `$NM -V 2>&1` in
5447 *GNU* | *'with BFD'*)
5448 symcode='[ABCDGIRSTW]' ;;
5449 esac
5450
5451 # Transform an extracted symbol line into a proper C declaration.
5452 # Some systems (esp. on ia64) link data and code symbols differently,
5453 # so use this general approach.
5454 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5455
5456 # Transform an extracted symbol line into symbol name and symbol address
5457 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5458 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'"
5459
5460 # Handle CRLF in mingw tool chain
5461 opt_cr=
5462 case $build_os in
5463 mingw*)
5464 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5465 ;;
5466 esac
5467
5468 # Try without a prefix underscore, then with it.
5469 for ac_symprfx in "" "_"; do
5470
5471 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5472 symxfrm="\\1 $ac_symprfx\\2 \\2"
5473
5474 # Write the raw and C identifiers.
5475 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5476 # Fake it for dumpbin and say T for any non-static function
5477 # and D for any global variable.
5478 # Also find C++ and __fastcall symbols from MSVC++,
5479 # which start with @ or ?.
5480 lt_cv_sys_global_symbol_pipe="$AWK '"\
5481 " {last_section=section; section=\$ 3};"\
5482 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5483 " \$ 0!~/External *\|/{next};"\
5484 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5485 " {if(hide[section]) next};"\
5486 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5487 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5488 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5489 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5490 " ' prfx=^$ac_symprfx"
5491 else
5492 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5493 fi
5494
5495 # Check to see that the pipe works correctly.
5496 pipe_works=no
5497
5498 rm -f conftest*
5499 cat > conftest.$ac_ext <<_LT_EOF
5500 #ifdef __cplusplus
5501 extern "C" {
5502 #endif
5503 char nm_test_var;
5504 void nm_test_func(void);
5505 void nm_test_func(void){}
5506 #ifdef __cplusplus
5507 }
5508 #endif
5509 int main(){nm_test_var='a';nm_test_func();return(0);}
5510 _LT_EOF
5511
5512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5513 (eval $ac_compile) 2>&5
5514 ac_status=$?
5515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); }; then
5517 # Now try to grab the symbols.
5518 nlist=conftest.nm
5519 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5520 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5521 ac_status=$?
5522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); } && test -s "$nlist"; then
5524 # Try sorting and uniquifying the output.
5525 if sort "$nlist" | uniq > "$nlist"T; then
5526 mv -f "$nlist"T "$nlist"
5527 else
5528 rm -f "$nlist"T
5529 fi
5530
5531 # Make sure that we snagged all the symbols we need.
5532 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5533 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5534 cat <<_LT_EOF > conftest.$ac_ext
5535 #ifdef __cplusplus
5536 extern "C" {
5537 #endif
5538
5539 _LT_EOF
5540 # Now generate the symbol file.
5541 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5542
5543 cat <<_LT_EOF >> conftest.$ac_ext
5544
5545 /* The mapping between symbol names and symbols. */
5546 const struct {
5547 const char *name;
5548 void *address;
5549 }
5550 lt__PROGRAM__LTX_preloaded_symbols[] =
5551 {
5552 { "@PROGRAM@", (void *) 0 },
5553 _LT_EOF
5554 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5555 cat <<\_LT_EOF >> conftest.$ac_ext
5556 {0, (void *) 0}
5557 };
5558
5559 /* This works around a problem in FreeBSD linker */
5560 #ifdef FREEBSD_WORKAROUND
5561 static const void *lt_preloaded_setup() {
5562 return lt__PROGRAM__LTX_preloaded_symbols;
5563 }
5564 #endif
5565
5566 #ifdef __cplusplus
5567 }
5568 #endif
5569 _LT_EOF
5570 # Now try linking the two files.
5571 mv conftest.$ac_objext conftstm.$ac_objext
5572 lt_save_LIBS="$LIBS"
5573 lt_save_CFLAGS="$CFLAGS"
5574 LIBS="conftstm.$ac_objext"
5575 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5577 (eval $ac_link) 2>&5
5578 ac_status=$?
5579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5581 pipe_works=yes
5582 fi
5583 LIBS="$lt_save_LIBS"
5584 CFLAGS="$lt_save_CFLAGS"
5585 else
5586 echo "cannot find nm_test_func in $nlist" >&5
5587 fi
5588 else
5589 echo "cannot find nm_test_var in $nlist" >&5
5590 fi
5591 else
5592 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5593 fi
5594 else
5595 echo "$progname: failed program was:" >&5
5596 cat conftest.$ac_ext >&5
5597 fi
5598 rm -rf conftest* conftst*
5599
5600 # Do not use the global_symbol_pipe unless it works.
5601 if test "$pipe_works" = yes; then
5602 break
5603 else
5604 lt_cv_sys_global_symbol_pipe=
5605 fi
5606 done
5607
5608 fi
5609
5610 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5611 lt_cv_sys_global_symbol_to_cdecl=
5612 fi
5613 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5614 { $as_echo "$as_me:$LINENO: result: failed" >&5
5615 $as_echo "failed" >&6; }
5616 else
5617 { $as_echo "$as_me:$LINENO: result: ok" >&5
5618 $as_echo "ok" >&6; }
5619 fi
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643 # Check whether --enable-libtool-lock was given.
5644 if test "${enable_libtool_lock+set}" = set; then
5645 enableval=$enable_libtool_lock;
5646 fi
5647
5648 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5649
5650 # Some flags need to be propagated to the compiler or linker for good
5651 # libtool support.
5652 case $host in
5653 ia64-*-hpux*)
5654 # Find out which ABI we are using.
5655 echo 'int i;' > conftest.$ac_ext
5656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5657 (eval $ac_compile) 2>&5
5658 ac_status=$?
5659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); }; then
5661 case `/usr/bin/file conftest.$ac_objext` in
5662 *ELF-32*)
5663 HPUX_IA64_MODE="32"
5664 ;;
5665 *ELF-64*)
5666 HPUX_IA64_MODE="64"
5667 ;;
5668 esac
5669 fi
5670 rm -rf conftest*
5671 ;;
5672 *-*-irix6*)
5673 # Find out which ABI we are using.
5674 echo '#line 5674 "configure"' > conftest.$ac_ext
5675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5676 (eval $ac_compile) 2>&5
5677 ac_status=$?
5678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); }; then
5680 if test "$lt_cv_prog_gnu_ld" = yes; then
5681 case `/usr/bin/file conftest.$ac_objext` in
5682 *32-bit*)
5683 LD="${LD-ld} -melf32bsmip"
5684 ;;
5685 *N32*)
5686 LD="${LD-ld} -melf32bmipn32"
5687 ;;
5688 *64-bit*)
5689 LD="${LD-ld} -melf64bmip"
5690 ;;
5691 esac
5692 else
5693 case `/usr/bin/file conftest.$ac_objext` in
5694 *32-bit*)
5695 LD="${LD-ld} -32"
5696 ;;
5697 *N32*)
5698 LD="${LD-ld} -n32"
5699 ;;
5700 *64-bit*)
5701 LD="${LD-ld} -64"
5702 ;;
5703 esac
5704 fi
5705 fi
5706 rm -rf conftest*
5707 ;;
5708
5709 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5710 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5711 # Find out which ABI we are using.
5712 echo 'int i;' > conftest.$ac_ext
5713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5714 (eval $ac_compile) 2>&5
5715 ac_status=$?
5716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); }; then
5718 case `/usr/bin/file conftest.o` in
5719 *32-bit*)
5720 case $host in
5721 x86_64-*kfreebsd*-gnu)
5722 LD="${LD-ld} -m elf_i386_fbsd"
5723 ;;
5724 x86_64-*linux*)
5725 LD="${LD-ld} -m elf_i386"
5726 ;;
5727 ppc64-*linux*|powerpc64-*linux*)
5728 LD="${LD-ld} -m elf32ppclinux"
5729 ;;
5730 s390x-*linux*)
5731 LD="${LD-ld} -m elf_s390"
5732 ;;
5733 sparc64-*linux*)
5734 LD="${LD-ld} -m elf32_sparc"
5735 ;;
5736 esac
5737 ;;
5738 *64-bit*)
5739 case $host in
5740 x86_64-*kfreebsd*-gnu)
5741 LD="${LD-ld} -m elf_x86_64_fbsd"
5742 ;;
5743 x86_64-*linux*)
5744 LD="${LD-ld} -m elf_x86_64"
5745 ;;
5746 ppc*-*linux*|powerpc*-*linux*)
5747 LD="${LD-ld} -m elf64ppc"
5748 ;;
5749 s390*-*linux*|s390*-*tpf*)
5750 LD="${LD-ld} -m elf64_s390"
5751 ;;
5752 sparc*-*linux*)
5753 LD="${LD-ld} -m elf64_sparc"
5754 ;;
5755 esac
5756 ;;
5757 esac
5758 fi
5759 rm -rf conftest*
5760 ;;
5761
5762 *-*-sco3.2v5*)
5763 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5764 SAVE_CFLAGS="$CFLAGS"
5765 CFLAGS="$CFLAGS -belf"
5766 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5767 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5768 if test "${lt_cv_cc_needs_belf+set}" = set; then
5769 $as_echo_n "(cached) " >&6
5770 else
5771 ac_ext=c
5772 ac_cpp='$CPP $CPPFLAGS'
5773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5776
5777 cat >conftest.$ac_ext <<_ACEOF
5778 /* confdefs.h. */
5779 _ACEOF
5780 cat confdefs.h >>conftest.$ac_ext
5781 cat >>conftest.$ac_ext <<_ACEOF
5782 /* end confdefs.h. */
5783
5784 int
5785 main ()
5786 {
5787
5788 ;
5789 return 0;
5790 }
5791 _ACEOF
5792 rm -f conftest.$ac_objext conftest$ac_exeext
5793 if { (ac_try="$ac_link"
5794 case "(($ac_try" in
5795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5796 *) ac_try_echo=$ac_try;;
5797 esac
5798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5799 $as_echo "$ac_try_echo") >&5
5800 (eval "$ac_link") 2>conftest.er1
5801 ac_status=$?
5802 grep -v '^ *+' conftest.er1 >conftest.err
5803 rm -f conftest.er1
5804 cat conftest.err >&5
5805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); } && {
5807 test -z "$ac_c_werror_flag" ||
5808 test ! -s conftest.err
5809 } && test -s conftest$ac_exeext && {
5810 test "$cross_compiling" = yes ||
5811 $as_test_x conftest$ac_exeext
5812 }; then
5813 lt_cv_cc_needs_belf=yes
5814 else
5815 $as_echo "$as_me: failed program was:" >&5
5816 sed 's/^/| /' conftest.$ac_ext >&5
5817
5818 lt_cv_cc_needs_belf=no
5819 fi
5820
5821 rm -rf conftest.dSYM
5822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5823 conftest$ac_exeext conftest.$ac_ext
5824 ac_ext=c
5825 ac_cpp='$CPP $CPPFLAGS'
5826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5829
5830 fi
5831 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5832 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5833 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5834 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5835 CFLAGS="$SAVE_CFLAGS"
5836 fi
5837 ;;
5838 sparc*-*solaris*)
5839 # Find out which ABI we are using.
5840 echo 'int i;' > conftest.$ac_ext
5841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5842 (eval $ac_compile) 2>&5
5843 ac_status=$?
5844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); }; then
5846 case `/usr/bin/file conftest.o` in
5847 *64-bit*)
5848 case $lt_cv_prog_gnu_ld in
5849 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5850 *)
5851 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5852 LD="${LD-ld} -64"
5853 fi
5854 ;;
5855 esac
5856 ;;
5857 esac
5858 fi
5859 rm -rf conftest*
5860 ;;
5861 esac
5862
5863 need_locks="$enable_libtool_lock"
5864
5865
5866 case $host_os in
5867 rhapsody* | darwin*)
5868 if test -n "$ac_tool_prefix"; then
5869 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5870 set dummy ${ac_tool_prefix}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_DSYMUTIL+set}" = set; then
5874 $as_echo_n "(cached) " >&6
5875 else
5876 if test -n "$DSYMUTIL"; then
5877 ac_cv_prog_DSYMUTIL="$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_DSYMUTIL="${ac_tool_prefix}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 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5897 if test -n "$DSYMUTIL"; then
5898 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5899 $as_echo "$DSYMUTIL" >&6; }
5900 else
5901 { $as_echo "$as_me:$LINENO: result: no" >&5
5902 $as_echo "no" >&6; }
5903 fi
5904
5905
5906 fi
5907 if test -z "$ac_cv_prog_DSYMUTIL"; then
5908 ac_ct_DSYMUTIL=$DSYMUTIL
5909 # Extract the first word of "dsymutil", so it can be a program name with args.
5910 set dummy dsymutil; ac_word=$2
5911 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5912 $as_echo_n "checking for $ac_word... " >&6; }
5913 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5914 $as_echo_n "(cached) " >&6
5915 else
5916 if test -n "$ac_ct_DSYMUTIL"; then
5917 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5918 else
5919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5920 for as_dir in $PATH
5921 do
5922 IFS=$as_save_IFS
5923 test -z "$as_dir" && as_dir=.
5924 for ac_exec_ext in '' $ac_executable_extensions; do
5925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5926 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5927 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5928 break 2
5929 fi
5930 done
5931 done
5932 IFS=$as_save_IFS
5933
5934 fi
5935 fi
5936 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5937 if test -n "$ac_ct_DSYMUTIL"; then
5938 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5939 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5940 else
5941 { $as_echo "$as_me:$LINENO: result: no" >&5
5942 $as_echo "no" >&6; }
5943 fi
5944
5945 if test "x$ac_ct_DSYMUTIL" = x; then
5946 DSYMUTIL=":"
5947 else
5948 case $cross_compiling:$ac_tool_warned in
5949 yes:)
5950 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5952 ac_tool_warned=yes ;;
5953 esac
5954 DSYMUTIL=$ac_ct_DSYMUTIL
5955 fi
5956 else
5957 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5958 fi
5959
5960 if test -n "$ac_tool_prefix"; then
5961 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5962 set dummy ${ac_tool_prefix}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_NMEDIT+set}" = set; then
5966 $as_echo_n "(cached) " >&6
5967 else
5968 if test -n "$NMEDIT"; then
5969 ac_cv_prog_NMEDIT="$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_NMEDIT="${ac_tool_prefix}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 NMEDIT=$ac_cv_prog_NMEDIT
5989 if test -n "$NMEDIT"; then
5990 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
5991 $as_echo "$NMEDIT" >&6; }
5992 else
5993 { $as_echo "$as_me:$LINENO: result: no" >&5
5994 $as_echo "no" >&6; }
5995 fi
5996
5997
5998 fi
5999 if test -z "$ac_cv_prog_NMEDIT"; then
6000 ac_ct_NMEDIT=$NMEDIT
6001 # Extract the first word of "nmedit", so it can be a program name with args.
6002 set dummy nmedit; ac_word=$2
6003 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6004 $as_echo_n "checking for $ac_word... " >&6; }
6005 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6006 $as_echo_n "(cached) " >&6
6007 else
6008 if test -n "$ac_ct_NMEDIT"; then
6009 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6010 else
6011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012 for as_dir in $PATH
6013 do
6014 IFS=$as_save_IFS
6015 test -z "$as_dir" && as_dir=.
6016 for ac_exec_ext in '' $ac_executable_extensions; do
6017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6018 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6019 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6020 break 2
6021 fi
6022 done
6023 done
6024 IFS=$as_save_IFS
6025
6026 fi
6027 fi
6028 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6029 if test -n "$ac_ct_NMEDIT"; then
6030 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6031 $as_echo "$ac_ct_NMEDIT" >&6; }
6032 else
6033 { $as_echo "$as_me:$LINENO: result: no" >&5
6034 $as_echo "no" >&6; }
6035 fi
6036
6037 if test "x$ac_ct_NMEDIT" = x; then
6038 NMEDIT=":"
6039 else
6040 case $cross_compiling:$ac_tool_warned in
6041 yes:)
6042 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6043 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6044 ac_tool_warned=yes ;;
6045 esac
6046 NMEDIT=$ac_ct_NMEDIT
6047 fi
6048 else
6049 NMEDIT="$ac_cv_prog_NMEDIT"
6050 fi
6051
6052 if test -n "$ac_tool_prefix"; then
6053 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6054 set dummy ${ac_tool_prefix}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_LIPO+set}" = set; then
6058 $as_echo_n "(cached) " >&6
6059 else
6060 if test -n "$LIPO"; then
6061 ac_cv_prog_LIPO="$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_LIPO="${ac_tool_prefix}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 LIPO=$ac_cv_prog_LIPO
6081 if test -n "$LIPO"; then
6082 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6083 $as_echo "$LIPO" >&6; }
6084 else
6085 { $as_echo "$as_me:$LINENO: result: no" >&5
6086 $as_echo "no" >&6; }
6087 fi
6088
6089
6090 fi
6091 if test -z "$ac_cv_prog_LIPO"; then
6092 ac_ct_LIPO=$LIPO
6093 # Extract the first word of "lipo", so it can be a program name with args.
6094 set dummy lipo; ac_word=$2
6095 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6096 $as_echo_n "checking for $ac_word... " >&6; }
6097 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6098 $as_echo_n "(cached) " >&6
6099 else
6100 if test -n "$ac_ct_LIPO"; then
6101 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6102 else
6103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6104 for as_dir in $PATH
6105 do
6106 IFS=$as_save_IFS
6107 test -z "$as_dir" && as_dir=.
6108 for ac_exec_ext in '' $ac_executable_extensions; do
6109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6110 ac_cv_prog_ac_ct_LIPO="lipo"
6111 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6112 break 2
6113 fi
6114 done
6115 done
6116 IFS=$as_save_IFS
6117
6118 fi
6119 fi
6120 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6121 if test -n "$ac_ct_LIPO"; then
6122 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6123 $as_echo "$ac_ct_LIPO" >&6; }
6124 else
6125 { $as_echo "$as_me:$LINENO: result: no" >&5
6126 $as_echo "no" >&6; }
6127 fi
6128
6129 if test "x$ac_ct_LIPO" = x; then
6130 LIPO=":"
6131 else
6132 case $cross_compiling:$ac_tool_warned in
6133 yes:)
6134 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6136 ac_tool_warned=yes ;;
6137 esac
6138 LIPO=$ac_ct_LIPO
6139 fi
6140 else
6141 LIPO="$ac_cv_prog_LIPO"
6142 fi
6143
6144 if test -n "$ac_tool_prefix"; then
6145 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6146 set dummy ${ac_tool_prefix}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_OTOOL+set}" = set; then
6150 $as_echo_n "(cached) " >&6
6151 else
6152 if test -n "$OTOOL"; then
6153 ac_cv_prog_OTOOL="$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_OTOOL="${ac_tool_prefix}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 OTOOL=$ac_cv_prog_OTOOL
6173 if test -n "$OTOOL"; then
6174 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6175 $as_echo "$OTOOL" >&6; }
6176 else
6177 { $as_echo "$as_me:$LINENO: result: no" >&5
6178 $as_echo "no" >&6; }
6179 fi
6180
6181
6182 fi
6183 if test -z "$ac_cv_prog_OTOOL"; then
6184 ac_ct_OTOOL=$OTOOL
6185 # Extract the first word of "otool", so it can be a program name with args.
6186 set dummy otool; ac_word=$2
6187 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6188 $as_echo_n "checking for $ac_word... " >&6; }
6189 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6190 $as_echo_n "(cached) " >&6
6191 else
6192 if test -n "$ac_ct_OTOOL"; then
6193 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6194 else
6195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6196 for as_dir in $PATH
6197 do
6198 IFS=$as_save_IFS
6199 test -z "$as_dir" && as_dir=.
6200 for ac_exec_ext in '' $ac_executable_extensions; do
6201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6202 ac_cv_prog_ac_ct_OTOOL="otool"
6203 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6204 break 2
6205 fi
6206 done
6207 done
6208 IFS=$as_save_IFS
6209
6210 fi
6211 fi
6212 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6213 if test -n "$ac_ct_OTOOL"; then
6214 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6215 $as_echo "$ac_ct_OTOOL" >&6; }
6216 else
6217 { $as_echo "$as_me:$LINENO: result: no" >&5
6218 $as_echo "no" >&6; }
6219 fi
6220
6221 if test "x$ac_ct_OTOOL" = x; then
6222 OTOOL=":"
6223 else
6224 case $cross_compiling:$ac_tool_warned in
6225 yes:)
6226 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6227 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6228 ac_tool_warned=yes ;;
6229 esac
6230 OTOOL=$ac_ct_OTOOL
6231 fi
6232 else
6233 OTOOL="$ac_cv_prog_OTOOL"
6234 fi
6235
6236 if test -n "$ac_tool_prefix"; then
6237 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6238 set dummy ${ac_tool_prefix}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_OTOOL64+set}" = set; then
6242 $as_echo_n "(cached) " >&6
6243 else
6244 if test -n "$OTOOL64"; then
6245 ac_cv_prog_OTOOL64="$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_OTOOL64="${ac_tool_prefix}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 OTOOL64=$ac_cv_prog_OTOOL64
6265 if test -n "$OTOOL64"; then
6266 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6267 $as_echo "$OTOOL64" >&6; }
6268 else
6269 { $as_echo "$as_me:$LINENO: result: no" >&5
6270 $as_echo "no" >&6; }
6271 fi
6272
6273
6274 fi
6275 if test -z "$ac_cv_prog_OTOOL64"; then
6276 ac_ct_OTOOL64=$OTOOL64
6277 # Extract the first word of "otool64", so it can be a program name with args.
6278 set dummy otool64; ac_word=$2
6279 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6280 $as_echo_n "checking for $ac_word... " >&6; }
6281 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6282 $as_echo_n "(cached) " >&6
6283 else
6284 if test -n "$ac_ct_OTOOL64"; then
6285 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6286 else
6287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288 for as_dir in $PATH
6289 do
6290 IFS=$as_save_IFS
6291 test -z "$as_dir" && as_dir=.
6292 for ac_exec_ext in '' $ac_executable_extensions; do
6293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6294 ac_cv_prog_ac_ct_OTOOL64="otool64"
6295 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6296 break 2
6297 fi
6298 done
6299 done
6300 IFS=$as_save_IFS
6301
6302 fi
6303 fi
6304 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6305 if test -n "$ac_ct_OTOOL64"; then
6306 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6307 $as_echo "$ac_ct_OTOOL64" >&6; }
6308 else
6309 { $as_echo "$as_me:$LINENO: result: no" >&5
6310 $as_echo "no" >&6; }
6311 fi
6312
6313 if test "x$ac_ct_OTOOL64" = x; then
6314 OTOOL64=":"
6315 else
6316 case $cross_compiling:$ac_tool_warned in
6317 yes:)
6318 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6320 ac_tool_warned=yes ;;
6321 esac
6322 OTOOL64=$ac_ct_OTOOL64
6323 fi
6324 else
6325 OTOOL64="$ac_cv_prog_OTOOL64"
6326 fi
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6355 $as_echo_n "checking for -single_module linker flag... " >&6; }
6356 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6357 $as_echo_n "(cached) " >&6
6358 else
6359 lt_cv_apple_cc_single_mod=no
6360 if test -z "${LT_MULTI_MODULE}"; then
6361 # By default we will add the -single_module flag. You can override
6362 # by either setting the environment variable LT_MULTI_MODULE
6363 # non-empty at configure time, or by adding -multi_module to the
6364 # link flags.
6365 rm -rf libconftest.dylib*
6366 echo "int foo(void){return 1;}" > conftest.c
6367 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6368 -dynamiclib -Wl,-single_module conftest.c" >&5
6369 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6370 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6371 _lt_result=$?
6372 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6373 lt_cv_apple_cc_single_mod=yes
6374 else
6375 cat conftest.err >&5
6376 fi
6377 rm -rf libconftest.dylib*
6378 rm -f conftest.*
6379 fi
6380 fi
6381 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6382 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6383 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6384 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6385 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6386 $as_echo_n "(cached) " >&6
6387 else
6388 lt_cv_ld_exported_symbols_list=no
6389 save_LDFLAGS=$LDFLAGS
6390 echo "_main" > conftest.sym
6391 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6392 cat >conftest.$ac_ext <<_ACEOF
6393 /* confdefs.h. */
6394 _ACEOF
6395 cat confdefs.h >>conftest.$ac_ext
6396 cat >>conftest.$ac_ext <<_ACEOF
6397 /* end confdefs.h. */
6398
6399 int
6400 main ()
6401 {
6402
6403 ;
6404 return 0;
6405 }
6406 _ACEOF
6407 rm -f conftest.$ac_objext conftest$ac_exeext
6408 if { (ac_try="$ac_link"
6409 case "(($ac_try" in
6410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6411 *) ac_try_echo=$ac_try;;
6412 esac
6413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6414 $as_echo "$ac_try_echo") >&5
6415 (eval "$ac_link") 2>conftest.er1
6416 ac_status=$?
6417 grep -v '^ *+' conftest.er1 >conftest.err
6418 rm -f conftest.er1
6419 cat conftest.err >&5
6420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); } && {
6422 test -z "$ac_c_werror_flag" ||
6423 test ! -s conftest.err
6424 } && test -s conftest$ac_exeext && {
6425 test "$cross_compiling" = yes ||
6426 $as_test_x conftest$ac_exeext
6427 }; then
6428 lt_cv_ld_exported_symbols_list=yes
6429 else
6430 $as_echo "$as_me: failed program was:" >&5
6431 sed 's/^/| /' conftest.$ac_ext >&5
6432
6433 lt_cv_ld_exported_symbols_list=no
6434 fi
6435
6436 rm -rf conftest.dSYM
6437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6438 conftest$ac_exeext conftest.$ac_ext
6439 LDFLAGS="$save_LDFLAGS"
6440
6441 fi
6442 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6443 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6444 case $host_os in
6445 rhapsody* | darwin1.[012])
6446 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6447 darwin1.*)
6448 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6449 darwin*) # darwin 5.x on
6450 # if running on 10.5 or later, the deployment target defaults
6451 # to the OS version, if on x86, and 10.4, the deployment
6452 # target defaults to 10.4. Don't you love it?
6453 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6454 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6455 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6456 10.[012]*)
6457 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6458 10.*)
6459 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6460 esac
6461 ;;
6462 esac
6463 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6464 _lt_dar_single_mod='$single_module'
6465 fi
6466 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6467 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6468 else
6469 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6470 fi
6471 if test "$DSYMUTIL" != ":"; then
6472 _lt_dsymutil='~$DSYMUTIL $lib || :'
6473 else
6474 _lt_dsymutil=
6475 fi
6476 ;;
6477 esac
6478
6479 ac_ext=c
6480 ac_cpp='$CPP $CPPFLAGS'
6481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6484 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6485 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6486 # On Suns, sometimes $CPP names a directory.
6487 if test -n "$CPP" && test -d "$CPP"; then
6488 CPP=
6489 fi
6490 if test -z "$CPP"; then
6491 if test "${ac_cv_prog_CPP+set}" = set; then
6492 $as_echo_n "(cached) " >&6
6493 else
6494 # Double quotes because CPP needs to be expanded
6495 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6496 do
6497 ac_preproc_ok=false
6498 for ac_c_preproc_warn_flag in '' yes
6499 do
6500 # Use a header file that comes with gcc, so configuring glibc
6501 # with a fresh cross-compiler works.
6502 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6503 # <limits.h> exists even on freestanding compilers.
6504 # On the NeXT, cc -E runs the code through the compiler's parser,
6505 # not just through cpp. "Syntax error" is here to catch this case.
6506 cat >conftest.$ac_ext <<_ACEOF
6507 /* confdefs.h. */
6508 _ACEOF
6509 cat confdefs.h >>conftest.$ac_ext
6510 cat >>conftest.$ac_ext <<_ACEOF
6511 /* end confdefs.h. */
6512 #ifdef __STDC__
6513 # include <limits.h>
6514 #else
6515 # include <assert.h>
6516 #endif
6517 Syntax error
6518 _ACEOF
6519 if { (ac_try="$ac_cpp conftest.$ac_ext"
6520 case "(($ac_try" in
6521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6522 *) ac_try_echo=$ac_try;;
6523 esac
6524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6525 $as_echo "$ac_try_echo") >&5
6526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6527 ac_status=$?
6528 grep -v '^ *+' conftest.er1 >conftest.err
6529 rm -f conftest.er1
6530 cat conftest.err >&5
6531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); } >/dev/null && {
6533 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6534 test ! -s conftest.err
6535 }; then
6536 :
6537 else
6538 $as_echo "$as_me: failed program was:" >&5
6539 sed 's/^/| /' conftest.$ac_ext >&5
6540
6541 # Broken: fails on valid input.
6542 continue
6543 fi
6544
6545 rm -f conftest.err conftest.$ac_ext
6546
6547 # OK, works on sane cases. Now check whether nonexistent headers
6548 # can be detected and how.
6549 cat >conftest.$ac_ext <<_ACEOF
6550 /* confdefs.h. */
6551 _ACEOF
6552 cat confdefs.h >>conftest.$ac_ext
6553 cat >>conftest.$ac_ext <<_ACEOF
6554 /* end confdefs.h. */
6555 #include <ac_nonexistent.h>
6556 _ACEOF
6557 if { (ac_try="$ac_cpp conftest.$ac_ext"
6558 case "(($ac_try" in
6559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6560 *) ac_try_echo=$ac_try;;
6561 esac
6562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6563 $as_echo "$ac_try_echo") >&5
6564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6565 ac_status=$?
6566 grep -v '^ *+' conftest.er1 >conftest.err
6567 rm -f conftest.er1
6568 cat conftest.err >&5
6569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); } >/dev/null && {
6571 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6572 test ! -s conftest.err
6573 }; then
6574 # Broken: success on invalid input.
6575 continue
6576 else
6577 $as_echo "$as_me: failed program was:" >&5
6578 sed 's/^/| /' conftest.$ac_ext >&5
6579
6580 # Passes both tests.
6581 ac_preproc_ok=:
6582 break
6583 fi
6584
6585 rm -f conftest.err conftest.$ac_ext
6586
6587 done
6588 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6589 rm -f conftest.err conftest.$ac_ext
6590 if $ac_preproc_ok; then
6591 break
6592 fi
6593
6594 done
6595 ac_cv_prog_CPP=$CPP
6596
6597 fi
6598 CPP=$ac_cv_prog_CPP
6599 else
6600 ac_cv_prog_CPP=$CPP
6601 fi
6602 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6603 $as_echo "$CPP" >&6; }
6604 ac_preproc_ok=false
6605 for ac_c_preproc_warn_flag in '' yes
6606 do
6607 # Use a header file that comes with gcc, so configuring glibc
6608 # with a fresh cross-compiler works.
6609 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6610 # <limits.h> exists even on freestanding compilers.
6611 # On the NeXT, cc -E runs the code through the compiler's parser,
6612 # not just through cpp. "Syntax error" is here to catch this case.
6613 cat >conftest.$ac_ext <<_ACEOF
6614 /* confdefs.h. */
6615 _ACEOF
6616 cat confdefs.h >>conftest.$ac_ext
6617 cat >>conftest.$ac_ext <<_ACEOF
6618 /* end confdefs.h. */
6619 #ifdef __STDC__
6620 # include <limits.h>
6621 #else
6622 # include <assert.h>
6623 #endif
6624 Syntax error
6625 _ACEOF
6626 if { (ac_try="$ac_cpp conftest.$ac_ext"
6627 case "(($ac_try" in
6628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6629 *) ac_try_echo=$ac_try;;
6630 esac
6631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6632 $as_echo "$ac_try_echo") >&5
6633 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6634 ac_status=$?
6635 grep -v '^ *+' conftest.er1 >conftest.err
6636 rm -f conftest.er1
6637 cat conftest.err >&5
6638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); } >/dev/null && {
6640 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6641 test ! -s conftest.err
6642 }; then
6643 :
6644 else
6645 $as_echo "$as_me: failed program was:" >&5
6646 sed 's/^/| /' conftest.$ac_ext >&5
6647
6648 # Broken: fails on valid input.
6649 continue
6650 fi
6651
6652 rm -f conftest.err conftest.$ac_ext
6653
6654 # OK, works on sane cases. Now check whether nonexistent headers
6655 # can be detected and how.
6656 cat >conftest.$ac_ext <<_ACEOF
6657 /* confdefs.h. */
6658 _ACEOF
6659 cat confdefs.h >>conftest.$ac_ext
6660 cat >>conftest.$ac_ext <<_ACEOF
6661 /* end confdefs.h. */
6662 #include <ac_nonexistent.h>
6663 _ACEOF
6664 if { (ac_try="$ac_cpp conftest.$ac_ext"
6665 case "(($ac_try" in
6666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6667 *) ac_try_echo=$ac_try;;
6668 esac
6669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6670 $as_echo "$ac_try_echo") >&5
6671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6672 ac_status=$?
6673 grep -v '^ *+' conftest.er1 >conftest.err
6674 rm -f conftest.er1
6675 cat conftest.err >&5
6676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677 (exit $ac_status); } >/dev/null && {
6678 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6679 test ! -s conftest.err
6680 }; then
6681 # Broken: success on invalid input.
6682 continue
6683 else
6684 $as_echo "$as_me: failed program was:" >&5
6685 sed 's/^/| /' conftest.$ac_ext >&5
6686
6687 # Passes both tests.
6688 ac_preproc_ok=:
6689 break
6690 fi
6691
6692 rm -f conftest.err conftest.$ac_ext
6693
6694 done
6695 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6696 rm -f conftest.err conftest.$ac_ext
6697 if $ac_preproc_ok; then
6698 :
6699 else
6700 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6702 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6703 See \`config.log' for more details." >&5
6704 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6705 See \`config.log' for more details." >&2;}
6706 { (exit 1); exit 1; }; }; }
6707 fi
6708
6709 ac_ext=c
6710 ac_cpp='$CPP $CPPFLAGS'
6711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6714
6715
6716 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6717 $as_echo_n "checking for ANSI C header files... " >&6; }
6718 if test "${ac_cv_header_stdc+set}" = set; then
6719 $as_echo_n "(cached) " >&6
6720 else
6721 cat >conftest.$ac_ext <<_ACEOF
6722 /* confdefs.h. */
6723 _ACEOF
6724 cat confdefs.h >>conftest.$ac_ext
6725 cat >>conftest.$ac_ext <<_ACEOF
6726 /* end confdefs.h. */
6727 #include <stdlib.h>
6728 #include <stdarg.h>
6729 #include <string.h>
6730 #include <float.h>
6731
6732 int
6733 main ()
6734 {
6735
6736 ;
6737 return 0;
6738 }
6739 _ACEOF
6740 rm -f conftest.$ac_objext
6741 if { (ac_try="$ac_compile"
6742 case "(($ac_try" in
6743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6744 *) ac_try_echo=$ac_try;;
6745 esac
6746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6747 $as_echo "$ac_try_echo") >&5
6748 (eval "$ac_compile") 2>conftest.er1
6749 ac_status=$?
6750 grep -v '^ *+' conftest.er1 >conftest.err
6751 rm -f conftest.er1
6752 cat conftest.err >&5
6753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); } && {
6755 test -z "$ac_c_werror_flag" ||
6756 test ! -s conftest.err
6757 } && test -s conftest.$ac_objext; then
6758 ac_cv_header_stdc=yes
6759 else
6760 $as_echo "$as_me: failed program was:" >&5
6761 sed 's/^/| /' conftest.$ac_ext >&5
6762
6763 ac_cv_header_stdc=no
6764 fi
6765
6766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6767
6768 if test $ac_cv_header_stdc = yes; then
6769 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6770 cat >conftest.$ac_ext <<_ACEOF
6771 /* confdefs.h. */
6772 _ACEOF
6773 cat confdefs.h >>conftest.$ac_ext
6774 cat >>conftest.$ac_ext <<_ACEOF
6775 /* end confdefs.h. */
6776 #include <string.h>
6777
6778 _ACEOF
6779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6780 $EGREP "memchr" >/dev/null 2>&1; then
6781 :
6782 else
6783 ac_cv_header_stdc=no
6784 fi
6785 rm -f conftest*
6786
6787 fi
6788
6789 if test $ac_cv_header_stdc = yes; then
6790 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6791 cat >conftest.$ac_ext <<_ACEOF
6792 /* confdefs.h. */
6793 _ACEOF
6794 cat confdefs.h >>conftest.$ac_ext
6795 cat >>conftest.$ac_ext <<_ACEOF
6796 /* end confdefs.h. */
6797 #include <stdlib.h>
6798
6799 _ACEOF
6800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6801 $EGREP "free" >/dev/null 2>&1; then
6802 :
6803 else
6804 ac_cv_header_stdc=no
6805 fi
6806 rm -f conftest*
6807
6808 fi
6809
6810 if test $ac_cv_header_stdc = yes; then
6811 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6812 if test "$cross_compiling" = yes; then
6813 :
6814 else
6815 cat >conftest.$ac_ext <<_ACEOF
6816 /* confdefs.h. */
6817 _ACEOF
6818 cat confdefs.h >>conftest.$ac_ext
6819 cat >>conftest.$ac_ext <<_ACEOF
6820 /* end confdefs.h. */
6821 #include <ctype.h>
6822 #include <stdlib.h>
6823 #if ((' ' & 0x0FF) == 0x020)
6824 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6825 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6826 #else
6827 # define ISLOWER(c) \
6828 (('a' <= (c) && (c) <= 'i') \
6829 || ('j' <= (c) && (c) <= 'r') \
6830 || ('s' <= (c) && (c) <= 'z'))
6831 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6832 #endif
6833
6834 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6835 int
6836 main ()
6837 {
6838 int i;
6839 for (i = 0; i < 256; i++)
6840 if (XOR (islower (i), ISLOWER (i))
6841 || toupper (i) != TOUPPER (i))
6842 return 2;
6843 return 0;
6844 }
6845 _ACEOF
6846 rm -f conftest$ac_exeext
6847 if { (ac_try="$ac_link"
6848 case "(($ac_try" in
6849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6850 *) ac_try_echo=$ac_try;;
6851 esac
6852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6853 $as_echo "$ac_try_echo") >&5
6854 (eval "$ac_link") 2>&5
6855 ac_status=$?
6856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6858 { (case "(($ac_try" in
6859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6860 *) ac_try_echo=$ac_try;;
6861 esac
6862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6863 $as_echo "$ac_try_echo") >&5
6864 (eval "$ac_try") 2>&5
6865 ac_status=$?
6866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867 (exit $ac_status); }; }; then
6868 :
6869 else
6870 $as_echo "$as_me: program exited with status $ac_status" >&5
6871 $as_echo "$as_me: failed program was:" >&5
6872 sed 's/^/| /' conftest.$ac_ext >&5
6873
6874 ( exit $ac_status )
6875 ac_cv_header_stdc=no
6876 fi
6877 rm -rf conftest.dSYM
6878 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6879 fi
6880
6881
6882 fi
6883 fi
6884 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6885 $as_echo "$ac_cv_header_stdc" >&6; }
6886 if test $ac_cv_header_stdc = yes; then
6887
6888 cat >>confdefs.h <<\_ACEOF
6889 #define STDC_HEADERS 1
6890 _ACEOF
6891
6892 fi
6893
6894 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6905 inttypes.h stdint.h unistd.h
6906 do
6907 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6908 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6909 $as_echo_n "checking for $ac_header... " >&6; }
6910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6911 $as_echo_n "(cached) " >&6
6912 else
6913 cat >conftest.$ac_ext <<_ACEOF
6914 /* confdefs.h. */
6915 _ACEOF
6916 cat confdefs.h >>conftest.$ac_ext
6917 cat >>conftest.$ac_ext <<_ACEOF
6918 /* end confdefs.h. */
6919 $ac_includes_default
6920
6921 #include <$ac_header>
6922 _ACEOF
6923 rm -f conftest.$ac_objext
6924 if { (ac_try="$ac_compile"
6925 case "(($ac_try" in
6926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6927 *) ac_try_echo=$ac_try;;
6928 esac
6929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6930 $as_echo "$ac_try_echo") >&5
6931 (eval "$ac_compile") 2>conftest.er1
6932 ac_status=$?
6933 grep -v '^ *+' conftest.er1 >conftest.err
6934 rm -f conftest.er1
6935 cat conftest.err >&5
6936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); } && {
6938 test -z "$ac_c_werror_flag" ||
6939 test ! -s conftest.err
6940 } && test -s conftest.$ac_objext; then
6941 eval "$as_ac_Header=yes"
6942 else
6943 $as_echo "$as_me: failed program was:" >&5
6944 sed 's/^/| /' conftest.$ac_ext >&5
6945
6946 eval "$as_ac_Header=no"
6947 fi
6948
6949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6950 fi
6951 ac_res=`eval 'as_val=${'$as_ac_Header'}
6952 $as_echo "$as_val"'`
6953 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6954 $as_echo "$ac_res" >&6; }
6955 as_val=`eval 'as_val=${'$as_ac_Header'}
6956 $as_echo "$as_val"'`
6957 if test "x$as_val" = x""yes; then
6958 cat >>confdefs.h <<_ACEOF
6959 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6960 _ACEOF
6961
6962 fi
6963
6964 done
6965
6966
6967
6968 for ac_header in dlfcn.h
6969 do
6970 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6971 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6972 $as_echo_n "checking for $ac_header... " >&6; }
6973 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6974 $as_echo_n "(cached) " >&6
6975 else
6976 cat >conftest.$ac_ext <<_ACEOF
6977 /* confdefs.h. */
6978 _ACEOF
6979 cat confdefs.h >>conftest.$ac_ext
6980 cat >>conftest.$ac_ext <<_ACEOF
6981 /* end confdefs.h. */
6982 $ac_includes_default
6983
6984 #include <$ac_header>
6985 _ACEOF
6986 rm -f conftest.$ac_objext
6987 if { (ac_try="$ac_compile"
6988 case "(($ac_try" in
6989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6990 *) ac_try_echo=$ac_try;;
6991 esac
6992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6993 $as_echo "$ac_try_echo") >&5
6994 (eval "$ac_compile") 2>conftest.er1
6995 ac_status=$?
6996 grep -v '^ *+' conftest.er1 >conftest.err
6997 rm -f conftest.er1
6998 cat conftest.err >&5
6999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); } && {
7001 test -z "$ac_c_werror_flag" ||
7002 test ! -s conftest.err
7003 } && test -s conftest.$ac_objext; then
7004 eval "$as_ac_Header=yes"
7005 else
7006 $as_echo "$as_me: failed program was:" >&5
7007 sed 's/^/| /' conftest.$ac_ext >&5
7008
7009 eval "$as_ac_Header=no"
7010 fi
7011
7012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7013 fi
7014 ac_res=`eval 'as_val=${'$as_ac_Header'}
7015 $as_echo "$as_val"'`
7016 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7017 $as_echo "$ac_res" >&6; }
7018 as_val=`eval 'as_val=${'$as_ac_Header'}
7019 $as_echo "$as_val"'`
7020 if test "x$as_val" = x""yes; then
7021 cat >>confdefs.h <<_ACEOF
7022 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7023 _ACEOF
7024
7025 fi
7026
7027 done
7028
7029
7030
7031 # Set options
7032
7033
7034
7035 enable_dlopen=no
7036
7037
7038 enable_win32_dll=no
7039
7040
7041 # Check whether --enable-shared was given.
7042 if test "${enable_shared+set}" = set; then
7043 enableval=$enable_shared; p=${PACKAGE-default}
7044 case $enableval in
7045 yes) enable_shared=yes ;;
7046 no) enable_shared=no ;;
7047 *)
7048 enable_shared=no
7049 # Look at the argument we got. We use all the common list separators.
7050 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7051 for pkg in $enableval; do
7052 IFS="$lt_save_ifs"
7053 if test "X$pkg" = "X$p"; then
7054 enable_shared=yes
7055 fi
7056 done
7057 IFS="$lt_save_ifs"
7058 ;;
7059 esac
7060 else
7061 enable_shared=yes
7062 fi
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072 # Check whether --enable-static was given.
7073 if test "${enable_static+set}" = set; then
7074 enableval=$enable_static; p=${PACKAGE-default}
7075 case $enableval in
7076 yes) enable_static=yes ;;
7077 no) enable_static=no ;;
7078 *)
7079 enable_static=no
7080 # Look at the argument we got. We use all the common list separators.
7081 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7082 for pkg in $enableval; do
7083 IFS="$lt_save_ifs"
7084 if test "X$pkg" = "X$p"; then
7085 enable_static=yes
7086 fi
7087 done
7088 IFS="$lt_save_ifs"
7089 ;;
7090 esac
7091 else
7092 enable_static=yes
7093 fi
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104 # Check whether --with-pic was given.
7105 if test "${with_pic+set}" = set; then
7106 withval=$with_pic; pic_mode="$withval"
7107 else
7108 pic_mode=default
7109 fi
7110
7111
7112 test -z "$pic_mode" && pic_mode=default
7113
7114
7115
7116
7117
7118
7119
7120 # Check whether --enable-fast-install was given.
7121 if test "${enable_fast_install+set}" = set; then
7122 enableval=$enable_fast_install; p=${PACKAGE-default}
7123 case $enableval in
7124 yes) enable_fast_install=yes ;;
7125 no) enable_fast_install=no ;;
7126 *)
7127 enable_fast_install=no
7128 # Look at the argument we got. We use all the common list separators.
7129 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7130 for pkg in $enableval; do
7131 IFS="$lt_save_ifs"
7132 if test "X$pkg" = "X$p"; then
7133 enable_fast_install=yes
7134 fi
7135 done
7136 IFS="$lt_save_ifs"
7137 ;;
7138 esac
7139 else
7140 enable_fast_install=yes
7141 fi
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153 # This can be used to rebuild libtool when needed
7154 LIBTOOL_DEPS="$ltmain"
7155
7156 # Always use our own libtool.
7157 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183 test -z "$LN_S" && LN_S="ln -s"
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198 if test -n "${ZSH_VERSION+set}" ; then
7199 setopt NO_GLOB_SUBST
7200 fi
7201
7202 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7203 $as_echo_n "checking for objdir... " >&6; }
7204 if test "${lt_cv_objdir+set}" = set; then
7205 $as_echo_n "(cached) " >&6
7206 else
7207 rm -f .libs 2>/dev/null
7208 mkdir .libs 2>/dev/null
7209 if test -d .libs; then
7210 lt_cv_objdir=.libs
7211 else
7212 # MS-DOS does not allow filenames that begin with a dot.
7213 lt_cv_objdir=_libs
7214 fi
7215 rmdir .libs 2>/dev/null
7216 fi
7217 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7218 $as_echo "$lt_cv_objdir" >&6; }
7219 objdir=$lt_cv_objdir
7220
7221
7222
7223
7224
7225 cat >>confdefs.h <<_ACEOF
7226 #define LT_OBJDIR "$lt_cv_objdir/"
7227 _ACEOF
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245 case $host_os in
7246 aix3*)
7247 # AIX sometimes has problems with the GCC collect2 program. For some
7248 # reason, if we set the COLLECT_NAMES environment variable, the problems
7249 # vanish in a puff of smoke.
7250 if test "X${COLLECT_NAMES+set}" != Xset; then
7251 COLLECT_NAMES=
7252 export COLLECT_NAMES
7253 fi
7254 ;;
7255 esac
7256
7257 # Sed substitution that helps us do robust quoting. It backslashifies
7258 # metacharacters that are still active within double-quoted strings.
7259 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7260
7261 # Same as above, but do not quote variable references.
7262 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7263
7264 # Sed substitution to delay expansion of an escaped shell variable in a
7265 # double_quote_subst'ed string.
7266 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7267
7268 # Sed substitution to delay expansion of an escaped single quote.
7269 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7270
7271 # Sed substitution to avoid accidental globbing in evaled expressions
7272 no_glob_subst='s/\*/\\\*/g'
7273
7274 # Global variables:
7275 ofile=libtool
7276 can_build_shared=yes
7277
7278 # All known linkers require a `.a' archive for static linking (except MSVC,
7279 # which needs '.lib').
7280 libext=a
7281
7282 with_gnu_ld="$lt_cv_prog_gnu_ld"
7283
7284 old_CC="$CC"
7285 old_CFLAGS="$CFLAGS"
7286
7287 # Set sane defaults for various variables
7288 test -z "$CC" && CC=cc
7289 test -z "$LTCC" && LTCC=$CC
7290 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7291 test -z "$LD" && LD=ld
7292 test -z "$ac_objext" && ac_objext=o
7293
7294 for cc_temp in $compiler""; do
7295 case $cc_temp in
7296 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7297 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7298 \-*) ;;
7299 *) break;;
7300 esac
7301 done
7302 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7303
7304
7305 # Only perform the check for file, if the check method requires it
7306 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7307 case $deplibs_check_method in
7308 file_magic*)
7309 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7310 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7311 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7312 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7313 $as_echo_n "(cached) " >&6
7314 else
7315 case $MAGIC_CMD in
7316 [\\/*] | ?:[\\/]*)
7317 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7318 ;;
7319 *)
7320 lt_save_MAGIC_CMD="$MAGIC_CMD"
7321 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7322 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7323 for ac_dir in $ac_dummy; do
7324 IFS="$lt_save_ifs"
7325 test -z "$ac_dir" && ac_dir=.
7326 if test -f $ac_dir/${ac_tool_prefix}file; then
7327 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7328 if test -n "$file_magic_test_file"; then
7329 case $deplibs_check_method in
7330 "file_magic "*)
7331 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7332 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7333 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7334 $EGREP "$file_magic_regex" > /dev/null; then
7335 :
7336 else
7337 cat <<_LT_EOF 1>&2
7338
7339 *** Warning: the command libtool uses to detect shared libraries,
7340 *** $file_magic_cmd, produces output that libtool cannot recognize.
7341 *** The result is that libtool may fail to recognize shared libraries
7342 *** as such. This will affect the creation of libtool libraries that
7343 *** depend on shared libraries, but programs linked with such libtool
7344 *** libraries will work regardless of this problem. Nevertheless, you
7345 *** may want to report the problem to your system manager and/or to
7346 *** bug-libtool@gnu.org
7347
7348 _LT_EOF
7349 fi ;;
7350 esac
7351 fi
7352 break
7353 fi
7354 done
7355 IFS="$lt_save_ifs"
7356 MAGIC_CMD="$lt_save_MAGIC_CMD"
7357 ;;
7358 esac
7359 fi
7360
7361 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7362 if test -n "$MAGIC_CMD"; then
7363 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7364 $as_echo "$MAGIC_CMD" >&6; }
7365 else
7366 { $as_echo "$as_me:$LINENO: result: no" >&5
7367 $as_echo "no" >&6; }
7368 fi
7369
7370
7371
7372
7373
7374 if test -z "$lt_cv_path_MAGIC_CMD"; then
7375 if test -n "$ac_tool_prefix"; then
7376 { $as_echo "$as_me:$LINENO: checking for file" >&5
7377 $as_echo_n "checking for file... " >&6; }
7378 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7379 $as_echo_n "(cached) " >&6
7380 else
7381 case $MAGIC_CMD in
7382 [\\/*] | ?:[\\/]*)
7383 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7384 ;;
7385 *)
7386 lt_save_MAGIC_CMD="$MAGIC_CMD"
7387 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7388 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7389 for ac_dir in $ac_dummy; do
7390 IFS="$lt_save_ifs"
7391 test -z "$ac_dir" && ac_dir=.
7392 if test -f $ac_dir/file; then
7393 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7394 if test -n "$file_magic_test_file"; then
7395 case $deplibs_check_method in
7396 "file_magic "*)
7397 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7398 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7399 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7400 $EGREP "$file_magic_regex" > /dev/null; then
7401 :
7402 else
7403 cat <<_LT_EOF 1>&2
7404
7405 *** Warning: the command libtool uses to detect shared libraries,
7406 *** $file_magic_cmd, produces output that libtool cannot recognize.
7407 *** The result is that libtool may fail to recognize shared libraries
7408 *** as such. This will affect the creation of libtool libraries that
7409 *** depend on shared libraries, but programs linked with such libtool
7410 *** libraries will work regardless of this problem. Nevertheless, you
7411 *** may want to report the problem to your system manager and/or to
7412 *** bug-libtool@gnu.org
7413
7414 _LT_EOF
7415 fi ;;
7416 esac
7417 fi
7418 break
7419 fi
7420 done
7421 IFS="$lt_save_ifs"
7422 MAGIC_CMD="$lt_save_MAGIC_CMD"
7423 ;;
7424 esac
7425 fi
7426
7427 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7428 if test -n "$MAGIC_CMD"; then
7429 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7430 $as_echo "$MAGIC_CMD" >&6; }
7431 else
7432 { $as_echo "$as_me:$LINENO: result: no" >&5
7433 $as_echo "no" >&6; }
7434 fi
7435
7436
7437 else
7438 MAGIC_CMD=:
7439 fi
7440 fi
7441
7442 fi
7443 ;;
7444 esac
7445
7446 # Use C for the default configuration in the libtool script
7447
7448 lt_save_CC="$CC"
7449 ac_ext=c
7450 ac_cpp='$CPP $CPPFLAGS'
7451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7454
7455
7456 # Source file extension for C test sources.
7457 ac_ext=c
7458
7459 # Object file extension for compiled C test sources.
7460 objext=o
7461 objext=$objext
7462
7463 # Code to be used in simple compile tests
7464 lt_simple_compile_test_code="int some_variable = 0;"
7465
7466 # Code to be used in simple link tests
7467 lt_simple_link_test_code='int main(){return(0);}'
7468
7469
7470
7471
7472
7473
7474
7475 # If no C compiler was specified, use CC.
7476 LTCC=${LTCC-"$CC"}
7477
7478 # If no C compiler flags were specified, use CFLAGS.
7479 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7480
7481 # Allow CC to be a program name with arguments.
7482 compiler=$CC
7483
7484 # Save the default compiler, since it gets overwritten when the other
7485 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7486 compiler_DEFAULT=$CC
7487
7488 # save warnings/boilerplate of simple test code
7489 ac_outfile=conftest.$ac_objext
7490 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7491 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7492 _lt_compiler_boilerplate=`cat conftest.err`
7493 $RM conftest*
7494
7495 ac_outfile=conftest.$ac_objext
7496 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7497 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7498 _lt_linker_boilerplate=`cat conftest.err`
7499 $RM -r conftest*
7500
7501
7502 if test -n "$compiler"; then
7503
7504 lt_prog_compiler_no_builtin_flag=
7505
7506 if test "$GCC" = yes; then
7507 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7508
7509 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7510 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7511 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7512 $as_echo_n "(cached) " >&6
7513 else
7514 lt_cv_prog_compiler_rtti_exceptions=no
7515 ac_outfile=conftest.$ac_objext
7516 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7517 lt_compiler_flag="-fno-rtti -fno-exceptions"
7518 # Insert the option either (1) after the last *FLAGS variable, or
7519 # (2) before a word containing "conftest.", or (3) at the end.
7520 # Note that $ac_compile itself does not contain backslashes and begins
7521 # with a dollar sign (not a hyphen), so the echo should work correctly.
7522 # The option is referenced via a variable to avoid confusing sed.
7523 lt_compile=`echo "$ac_compile" | $SED \
7524 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7525 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7526 -e 's:$: $lt_compiler_flag:'`
7527 (eval echo "\"\$as_me:7527: $lt_compile\"" >&5)
7528 (eval "$lt_compile" 2>conftest.err)
7529 ac_status=$?
7530 cat conftest.err >&5
7531 echo "$as_me:7531: \$? = $ac_status" >&5
7532 if (exit $ac_status) && test -s "$ac_outfile"; then
7533 # The compiler can only warn and ignore the option if not recognized
7534 # So say no if there are warnings other than the usual output.
7535 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7536 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7537 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7538 lt_cv_prog_compiler_rtti_exceptions=yes
7539 fi
7540 fi
7541 $RM conftest*
7542
7543 fi
7544 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7545 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7546
7547 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7548 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7549 else
7550 :
7551 fi
7552
7553 fi
7554
7555
7556
7557
7558
7559
7560 lt_prog_compiler_wl=
7561 lt_prog_compiler_pic=
7562 lt_prog_compiler_static=
7563
7564 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7565 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7566
7567 if test "$GCC" = yes; then
7568 lt_prog_compiler_wl='-Wl,'
7569 lt_prog_compiler_static='-static'
7570
7571 case $host_os in
7572 aix*)
7573 # All AIX code is PIC.
7574 if test "$host_cpu" = ia64; then
7575 # AIX 5 now supports IA64 processor
7576 lt_prog_compiler_static='-Bstatic'
7577 fi
7578 ;;
7579
7580 amigaos*)
7581 case $host_cpu in
7582 powerpc)
7583 # see comment about AmigaOS4 .so support
7584 lt_prog_compiler_pic='-fPIC'
7585 ;;
7586 m68k)
7587 # FIXME: we need at least 68020 code to build shared libraries, but
7588 # adding the `-m68020' flag to GCC prevents building anything better,
7589 # like `-m68040'.
7590 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7591 ;;
7592 esac
7593 ;;
7594
7595 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7596 # PIC is the default for these OSes.
7597 ;;
7598
7599 mingw* | cygwin* | pw32* | os2* | cegcc*)
7600 # This hack is so that the source file can tell whether it is being
7601 # built for inclusion in a dll (and should export symbols for example).
7602 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7603 # (--disable-auto-import) libraries
7604 lt_prog_compiler_pic='-DDLL_EXPORT'
7605 ;;
7606
7607 darwin* | rhapsody*)
7608 # PIC is the default on this platform
7609 # Common symbols not allowed in MH_DYLIB files
7610 lt_prog_compiler_pic='-fno-common'
7611 ;;
7612
7613 hpux*)
7614 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7615 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7616 # sets the default TLS model and affects inlining.
7617 case $host_cpu in
7618 hppa*64*)
7619 # +Z the default
7620 ;;
7621 *)
7622 lt_prog_compiler_pic='-fPIC'
7623 ;;
7624 esac
7625 ;;
7626
7627 interix[3-9]*)
7628 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7629 # Instead, we relocate shared libraries at runtime.
7630 ;;
7631
7632 msdosdjgpp*)
7633 # Just because we use GCC doesn't mean we suddenly get shared libraries
7634 # on systems that don't support them.
7635 lt_prog_compiler_can_build_shared=no
7636 enable_shared=no
7637 ;;
7638
7639 *nto* | *qnx*)
7640 # QNX uses GNU C++, but need to define -shared option too, otherwise
7641 # it will coredump.
7642 lt_prog_compiler_pic='-fPIC -shared'
7643 ;;
7644
7645 sysv4*MP*)
7646 if test -d /usr/nec; then
7647 lt_prog_compiler_pic=-Kconform_pic
7648 fi
7649 ;;
7650
7651 *)
7652 lt_prog_compiler_pic='-fPIC'
7653 ;;
7654 esac
7655 else
7656 # PORTME Check for flag to pass linker flags through the system compiler.
7657 case $host_os in
7658 aix*)
7659 lt_prog_compiler_wl='-Wl,'
7660 if test "$host_cpu" = ia64; then
7661 # AIX 5 now supports IA64 processor
7662 lt_prog_compiler_static='-Bstatic'
7663 else
7664 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7665 fi
7666 ;;
7667
7668 mingw* | cygwin* | pw32* | os2* | cegcc*)
7669 # This hack is so that the source file can tell whether it is being
7670 # built for inclusion in a dll (and should export symbols for example).
7671 lt_prog_compiler_pic='-DDLL_EXPORT'
7672 ;;
7673
7674 hpux9* | hpux10* | hpux11*)
7675 lt_prog_compiler_wl='-Wl,'
7676 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7677 # not for PA HP-UX.
7678 case $host_cpu in
7679 hppa*64*|ia64*)
7680 # +Z the default
7681 ;;
7682 *)
7683 lt_prog_compiler_pic='+Z'
7684 ;;
7685 esac
7686 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7687 lt_prog_compiler_static='${wl}-a ${wl}archive'
7688 ;;
7689
7690 irix5* | irix6* | nonstopux*)
7691 lt_prog_compiler_wl='-Wl,'
7692 # PIC (with -KPIC) is the default.
7693 lt_prog_compiler_static='-non_shared'
7694 ;;
7695
7696 linux* | k*bsd*-gnu)
7697 case $cc_basename in
7698 # old Intel for x86_64 which still supported -KPIC.
7699 ecc*)
7700 lt_prog_compiler_wl='-Wl,'
7701 lt_prog_compiler_pic='-KPIC'
7702 lt_prog_compiler_static='-static'
7703 ;;
7704 # icc used to be incompatible with GCC.
7705 # ICC 10 doesn't accept -KPIC any more.
7706 icc* | ifort*)
7707 lt_prog_compiler_wl='-Wl,'
7708 lt_prog_compiler_pic='-fPIC'
7709 lt_prog_compiler_static='-static'
7710 ;;
7711 # Lahey Fortran 8.1.
7712 lf95*)
7713 lt_prog_compiler_wl='-Wl,'
7714 lt_prog_compiler_pic='--shared'
7715 lt_prog_compiler_static='--static'
7716 ;;
7717 pgcc* | pgf77* | pgf90* | pgf95*)
7718 # Portland Group compilers (*not* the Pentium gcc compiler,
7719 # which looks to be a dead project)
7720 lt_prog_compiler_wl='-Wl,'
7721 lt_prog_compiler_pic='-fpic'
7722 lt_prog_compiler_static='-Bstatic'
7723 ;;
7724 ccc*)
7725 lt_prog_compiler_wl='-Wl,'
7726 # All Alpha code is PIC.
7727 lt_prog_compiler_static='-non_shared'
7728 ;;
7729 xl*)
7730 # IBM XL C 8.0/Fortran 10.1 on PPC
7731 lt_prog_compiler_wl='-Wl,'
7732 lt_prog_compiler_pic='-qpic'
7733 lt_prog_compiler_static='-qstaticlink'
7734 ;;
7735 *)
7736 case `$CC -V 2>&1 | sed 5q` in
7737 *Sun\ C*)
7738 # Sun C 5.9
7739 lt_prog_compiler_pic='-KPIC'
7740 lt_prog_compiler_static='-Bstatic'
7741 lt_prog_compiler_wl='-Wl,'
7742 ;;
7743 *Sun\ F*)
7744 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7745 lt_prog_compiler_pic='-KPIC'
7746 lt_prog_compiler_static='-Bstatic'
7747 lt_prog_compiler_wl=''
7748 ;;
7749 esac
7750 ;;
7751 esac
7752 ;;
7753
7754 newsos6)
7755 lt_prog_compiler_pic='-KPIC'
7756 lt_prog_compiler_static='-Bstatic'
7757 ;;
7758
7759 *nto* | *qnx*)
7760 # QNX uses GNU C++, but need to define -shared option too, otherwise
7761 # it will coredump.
7762 lt_prog_compiler_pic='-fPIC -shared'
7763 ;;
7764
7765 osf3* | osf4* | osf5*)
7766 lt_prog_compiler_wl='-Wl,'
7767 # All OSF/1 code is PIC.
7768 lt_prog_compiler_static='-non_shared'
7769 ;;
7770
7771 rdos*)
7772 lt_prog_compiler_static='-non_shared'
7773 ;;
7774
7775 solaris*)
7776 lt_prog_compiler_pic='-KPIC'
7777 lt_prog_compiler_static='-Bstatic'
7778 case $cc_basename in
7779 f77* | f90* | f95*)
7780 lt_prog_compiler_wl='-Qoption ld ';;
7781 *)
7782 lt_prog_compiler_wl='-Wl,';;
7783 esac
7784 ;;
7785
7786 sunos4*)
7787 lt_prog_compiler_wl='-Qoption ld '
7788 lt_prog_compiler_pic='-PIC'
7789 lt_prog_compiler_static='-Bstatic'
7790 ;;
7791
7792 sysv4 | sysv4.2uw2* | sysv4.3*)
7793 lt_prog_compiler_wl='-Wl,'
7794 lt_prog_compiler_pic='-KPIC'
7795 lt_prog_compiler_static='-Bstatic'
7796 ;;
7797
7798 sysv4*MP*)
7799 if test -d /usr/nec ;then
7800 lt_prog_compiler_pic='-Kconform_pic'
7801 lt_prog_compiler_static='-Bstatic'
7802 fi
7803 ;;
7804
7805 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7806 lt_prog_compiler_wl='-Wl,'
7807 lt_prog_compiler_pic='-KPIC'
7808 lt_prog_compiler_static='-Bstatic'
7809 ;;
7810
7811 unicos*)
7812 lt_prog_compiler_wl='-Wl,'
7813 lt_prog_compiler_can_build_shared=no
7814 ;;
7815
7816 uts4*)
7817 lt_prog_compiler_pic='-pic'
7818 lt_prog_compiler_static='-Bstatic'
7819 ;;
7820
7821 *)
7822 lt_prog_compiler_can_build_shared=no
7823 ;;
7824 esac
7825 fi
7826
7827 case $host_os in
7828 # For platforms which do not support PIC, -DPIC is meaningless:
7829 *djgpp*)
7830 lt_prog_compiler_pic=
7831 ;;
7832 *)
7833 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7834 ;;
7835 esac
7836 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7837 $as_echo "$lt_prog_compiler_pic" >&6; }
7838
7839
7840
7841
7842
7843
7844 #
7845 # Check to make sure the PIC flag actually works.
7846 #
7847 if test -n "$lt_prog_compiler_pic"; then
7848 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7849 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7850 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7851 $as_echo_n "(cached) " >&6
7852 else
7853 lt_cv_prog_compiler_pic_works=no
7854 ac_outfile=conftest.$ac_objext
7855 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7856 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7857 # Insert the option either (1) after the last *FLAGS variable, or
7858 # (2) before a word containing "conftest.", or (3) at the end.
7859 # Note that $ac_compile itself does not contain backslashes and begins
7860 # with a dollar sign (not a hyphen), so the echo should work correctly.
7861 # The option is referenced via a variable to avoid confusing sed.
7862 lt_compile=`echo "$ac_compile" | $SED \
7863 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7864 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7865 -e 's:$: $lt_compiler_flag:'`
7866 (eval echo "\"\$as_me:7866: $lt_compile\"" >&5)
7867 (eval "$lt_compile" 2>conftest.err)
7868 ac_status=$?
7869 cat conftest.err >&5
7870 echo "$as_me:7870: \$? = $ac_status" >&5
7871 if (exit $ac_status) && test -s "$ac_outfile"; then
7872 # The compiler can only warn and ignore the option if not recognized
7873 # So say no if there are warnings other than the usual output.
7874 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7875 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7876 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7877 lt_cv_prog_compiler_pic_works=yes
7878 fi
7879 fi
7880 $RM conftest*
7881
7882 fi
7883 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7884 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7885
7886 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7887 case $lt_prog_compiler_pic in
7888 "" | " "*) ;;
7889 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7890 esac
7891 else
7892 lt_prog_compiler_pic=
7893 lt_prog_compiler_can_build_shared=no
7894 fi
7895
7896 fi
7897
7898
7899
7900
7901
7902
7903 #
7904 # Check to make sure the static flag actually works.
7905 #
7906 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7907 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7908 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7909 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7910 $as_echo_n "(cached) " >&6
7911 else
7912 lt_cv_prog_compiler_static_works=no
7913 save_LDFLAGS="$LDFLAGS"
7914 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7915 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7916 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7917 # The linker can only warn and ignore the option if not recognized
7918 # So say no if there are warnings
7919 if test -s conftest.err; then
7920 # Append any errors to the config.log.
7921 cat conftest.err 1>&5
7922 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7923 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7924 if diff conftest.exp conftest.er2 >/dev/null; then
7925 lt_cv_prog_compiler_static_works=yes
7926 fi
7927 else
7928 lt_cv_prog_compiler_static_works=yes
7929 fi
7930 fi
7931 $RM -r conftest*
7932 LDFLAGS="$save_LDFLAGS"
7933
7934 fi
7935 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7936 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7937
7938 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7939 :
7940 else
7941 lt_prog_compiler_static=
7942 fi
7943
7944
7945
7946
7947
7948
7949
7950 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7951 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7952 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7953 $as_echo_n "(cached) " >&6
7954 else
7955 lt_cv_prog_compiler_c_o=no
7956 $RM -r conftest 2>/dev/null
7957 mkdir conftest
7958 cd conftest
7959 mkdir out
7960 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7961
7962 lt_compiler_flag="-o out/conftest2.$ac_objext"
7963 # Insert the option either (1) after the last *FLAGS variable, or
7964 # (2) before a word containing "conftest.", or (3) at the end.
7965 # Note that $ac_compile itself does not contain backslashes and begins
7966 # with a dollar sign (not a hyphen), so the echo should work correctly.
7967 lt_compile=`echo "$ac_compile" | $SED \
7968 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7969 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7970 -e 's:$: $lt_compiler_flag:'`
7971 (eval echo "\"\$as_me:7971: $lt_compile\"" >&5)
7972 (eval "$lt_compile" 2>out/conftest.err)
7973 ac_status=$?
7974 cat out/conftest.err >&5
7975 echo "$as_me:7975: \$? = $ac_status" >&5
7976 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7977 then
7978 # The compiler can only warn and ignore the option if not recognized
7979 # So say no if there are warnings
7980 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7981 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7982 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7983 lt_cv_prog_compiler_c_o=yes
7984 fi
7985 fi
7986 chmod u+w . 2>&5
7987 $RM conftest*
7988 # SGI C++ compiler will create directory out/ii_files/ for
7989 # template instantiation
7990 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7991 $RM out/* && rmdir out
7992 cd ..
7993 $RM -r conftest
7994 $RM conftest*
7995
7996 fi
7997 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7998 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7999
8000
8001
8002
8003
8004
8005 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8006 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8007 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8008 $as_echo_n "(cached) " >&6
8009 else
8010 lt_cv_prog_compiler_c_o=no
8011 $RM -r conftest 2>/dev/null
8012 mkdir conftest
8013 cd conftest
8014 mkdir out
8015 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8016
8017 lt_compiler_flag="-o out/conftest2.$ac_objext"
8018 # Insert the option either (1) after the last *FLAGS variable, or
8019 # (2) before a word containing "conftest.", or (3) at the end.
8020 # Note that $ac_compile itself does not contain backslashes and begins
8021 # with a dollar sign (not a hyphen), so the echo should work correctly.
8022 lt_compile=`echo "$ac_compile" | $SED \
8023 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8024 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8025 -e 's:$: $lt_compiler_flag:'`
8026 (eval echo "\"\$as_me:8026: $lt_compile\"" >&5)
8027 (eval "$lt_compile" 2>out/conftest.err)
8028 ac_status=$?
8029 cat out/conftest.err >&5
8030 echo "$as_me:8030: \$? = $ac_status" >&5
8031 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8032 then
8033 # The compiler can only warn and ignore the option if not recognized
8034 # So say no if there are warnings
8035 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8036 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8037 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8038 lt_cv_prog_compiler_c_o=yes
8039 fi
8040 fi
8041 chmod u+w . 2>&5
8042 $RM conftest*
8043 # SGI C++ compiler will create directory out/ii_files/ for
8044 # template instantiation
8045 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8046 $RM out/* && rmdir out
8047 cd ..
8048 $RM -r conftest
8049 $RM conftest*
8050
8051 fi
8052 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8053 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8054
8055
8056
8057
8058 hard_links="nottested"
8059 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8060 # do not overwrite the value of need_locks provided by the user
8061 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8062 $as_echo_n "checking if we can lock with hard links... " >&6; }
8063 hard_links=yes
8064 $RM conftest*
8065 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8066 touch conftest.a
8067 ln conftest.a conftest.b 2>&5 || hard_links=no
8068 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8069 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8070 $as_echo "$hard_links" >&6; }
8071 if test "$hard_links" = no; then
8072 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8073 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8074 need_locks=warn
8075 fi
8076 else
8077 need_locks=no
8078 fi
8079
8080
8081
8082
8083
8084
8085 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8086 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8087
8088 runpath_var=
8089 allow_undefined_flag=
8090 always_export_symbols=no
8091 archive_cmds=
8092 archive_expsym_cmds=
8093 compiler_needs_object=no
8094 enable_shared_with_static_runtimes=no
8095 export_dynamic_flag_spec=
8096 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8097 hardcode_automatic=no
8098 hardcode_direct=no
8099 hardcode_direct_absolute=no
8100 hardcode_libdir_flag_spec=
8101 hardcode_libdir_flag_spec_ld=
8102 hardcode_libdir_separator=
8103 hardcode_minus_L=no
8104 hardcode_shlibpath_var=unsupported
8105 inherit_rpath=no
8106 link_all_deplibs=unknown
8107 module_cmds=
8108 module_expsym_cmds=
8109 old_archive_from_new_cmds=
8110 old_archive_from_expsyms_cmds=
8111 thread_safe_flag_spec=
8112 whole_archive_flag_spec=
8113 # include_expsyms should be a list of space-separated symbols to be *always*
8114 # included in the symbol list
8115 include_expsyms=
8116 # exclude_expsyms can be an extended regexp of symbols to exclude
8117 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8118 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8119 # as well as any symbol that contains `d'.
8120 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8121 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8122 # platforms (ab)use it in PIC code, but their linkers get confused if
8123 # the symbol is explicitly referenced. Since portable code cannot
8124 # rely on this symbol name, it's probably fine to never include it in
8125 # preloaded symbol tables.
8126 # Exclude shared library initialization/finalization symbols.
8127 extract_expsyms_cmds=
8128
8129 case $host_os in
8130 cygwin* | mingw* | pw32* | cegcc*)
8131 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8132 # When not using gcc, we currently assume that we are using
8133 # Microsoft Visual C++.
8134 if test "$GCC" != yes; then
8135 with_gnu_ld=no
8136 fi
8137 ;;
8138 interix*)
8139 # we just hope/assume this is gcc and not c89 (= MSVC++)
8140 with_gnu_ld=yes
8141 ;;
8142 openbsd*)
8143 with_gnu_ld=no
8144 ;;
8145 esac
8146
8147 ld_shlibs=yes
8148 if test "$with_gnu_ld" = yes; then
8149 # If archive_cmds runs LD, not CC, wlarc should be empty
8150 wlarc='${wl}'
8151
8152 # Set some defaults for GNU ld with shared library support. These
8153 # are reset later if shared libraries are not supported. Putting them
8154 # here allows them to be overridden if necessary.
8155 runpath_var=LD_RUN_PATH
8156 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8157 export_dynamic_flag_spec='${wl}--export-dynamic'
8158 # ancient GNU ld didn't support --whole-archive et. al.
8159 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8160 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8161 else
8162 whole_archive_flag_spec=
8163 fi
8164 supports_anon_versioning=no
8165 case `$LD -v 2>&1` in
8166 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8167 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8168 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8169 *\ 2.11.*) ;; # other 2.11 versions
8170 *) supports_anon_versioning=yes ;;
8171 esac
8172
8173 # See if GNU ld supports shared libraries.
8174 case $host_os in
8175 aix[3-9]*)
8176 # On AIX/PPC, the GNU linker is very broken
8177 if test "$host_cpu" != ia64; then
8178 ld_shlibs=no
8179 cat <<_LT_EOF 1>&2
8180
8181 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8182 *** to be unable to reliably create shared libraries on AIX.
8183 *** Therefore, libtool is disabling shared libraries support. If you
8184 *** really care for shared libraries, you may want to modify your PATH
8185 *** so that a non-GNU linker is found, and then restart.
8186
8187 _LT_EOF
8188 fi
8189 ;;
8190
8191 amigaos*)
8192 case $host_cpu in
8193 powerpc)
8194 # see comment about AmigaOS4 .so support
8195 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8196 archive_expsym_cmds=''
8197 ;;
8198 m68k)
8199 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)'
8200 hardcode_libdir_flag_spec='-L$libdir'
8201 hardcode_minus_L=yes
8202 ;;
8203 esac
8204 ;;
8205
8206 beos*)
8207 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8208 allow_undefined_flag=unsupported
8209 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8210 # support --undefined. This deserves some investigation. FIXME
8211 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8212 else
8213 ld_shlibs=no
8214 fi
8215 ;;
8216
8217 cygwin* | mingw* | pw32* | cegcc*)
8218 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8219 # as there is no search path for DLLs.
8220 hardcode_libdir_flag_spec='-L$libdir'
8221 allow_undefined_flag=unsupported
8222 always_export_symbols=no
8223 enable_shared_with_static_runtimes=yes
8224 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8225
8226 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8227 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8228 # If the export-symbols file already is a .def file (1st line
8229 # is EXPORTS), use it as is; otherwise, prepend...
8230 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8231 cp $export_symbols $output_objdir/$soname.def;
8232 else
8233 echo EXPORTS > $output_objdir/$soname.def;
8234 cat $export_symbols >> $output_objdir/$soname.def;
8235 fi~
8236 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8237 else
8238 ld_shlibs=no
8239 fi
8240 ;;
8241
8242 interix[3-9]*)
8243 hardcode_direct=no
8244 hardcode_shlibpath_var=no
8245 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8246 export_dynamic_flag_spec='${wl}-E'
8247 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8248 # Instead, shared libraries are loaded at an image base (0x10000000 by
8249 # default) and relocated if they conflict, which is a slow very memory
8250 # consuming and fragmenting process. To avoid this, we pick a random,
8251 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8252 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8253 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8254 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'
8255 ;;
8256
8257 gnu* | linux* | tpf* | k*bsd*-gnu)
8258 tmp_diet=no
8259 if test "$host_os" = linux-dietlibc; then
8260 case $cc_basename in
8261 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8262 esac
8263 fi
8264 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8265 && test "$tmp_diet" = no
8266 then
8267 tmp_addflag=
8268 tmp_sharedflag='-shared'
8269 case $cc_basename,$host_cpu in
8270 pgcc*) # Portland Group C compiler
8271 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'
8272 tmp_addflag=' $pic_flag'
8273 ;;
8274 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8275 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'
8276 tmp_addflag=' $pic_flag -Mnomain' ;;
8277 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8278 tmp_addflag=' -i_dynamic' ;;
8279 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8280 tmp_addflag=' -i_dynamic -nofor_main' ;;
8281 ifc* | ifort*) # Intel Fortran compiler
8282 tmp_addflag=' -nofor_main' ;;
8283 lf95*) # Lahey Fortran 8.1
8284 whole_archive_flag_spec=
8285 tmp_sharedflag='--shared' ;;
8286 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8287 tmp_sharedflag='-qmkshrobj'
8288 tmp_addflag= ;;
8289 esac
8290 case `$CC -V 2>&1 | sed 5q` in
8291 *Sun\ C*) # Sun C 5.9
8292 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'
8293 compiler_needs_object=yes
8294 tmp_sharedflag='-G' ;;
8295 *Sun\ F*) # Sun Fortran 8.3
8296 tmp_sharedflag='-G' ;;
8297 esac
8298 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8299
8300 if test "x$supports_anon_versioning" = xyes; then
8301 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8302 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8303 echo "local: *; };" >> $output_objdir/$libname.ver~
8304 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8305 fi
8306
8307 case $cc_basename in
8308 xlf*)
8309 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8310 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8311 hardcode_libdir_flag_spec=
8312 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8313 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8314 if test "x$supports_anon_versioning" = xyes; then
8315 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8316 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8317 echo "local: *; };" >> $output_objdir/$libname.ver~
8318 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8319 fi
8320 ;;
8321 esac
8322 else
8323 ld_shlibs=no
8324 fi
8325 ;;
8326
8327 netbsd*)
8328 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8329 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8330 wlarc=
8331 else
8332 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8333 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8334 fi
8335 ;;
8336
8337 solaris*)
8338 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8339 ld_shlibs=no
8340 cat <<_LT_EOF 1>&2
8341
8342 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8343 *** create shared libraries on Solaris systems. Therefore, libtool
8344 *** is disabling shared libraries support. We urge you to upgrade GNU
8345 *** binutils to release 2.9.1 or newer. Another option is to modify
8346 *** your PATH or compiler configuration so that the native linker is
8347 *** used, and then restart.
8348
8349 _LT_EOF
8350 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8351 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8352 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8353 else
8354 ld_shlibs=no
8355 fi
8356 ;;
8357
8358 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8359 case `$LD -v 2>&1` in
8360 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8361 ld_shlibs=no
8362 cat <<_LT_EOF 1>&2
8363
8364 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8365 *** reliably create shared libraries on SCO systems. Therefore, libtool
8366 *** is disabling shared libraries support. We urge you to upgrade GNU
8367 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8368 *** your PATH or compiler configuration so that the native linker is
8369 *** used, and then restart.
8370
8371 _LT_EOF
8372 ;;
8373 *)
8374 # For security reasons, it is highly recommended that you always
8375 # use absolute paths for naming shared libraries, and exclude the
8376 # DT_RUNPATH tag from executables and libraries. But doing so
8377 # requires that you compile everything twice, which is a pain.
8378 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8379 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8380 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8381 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8382 else
8383 ld_shlibs=no
8384 fi
8385 ;;
8386 esac
8387 ;;
8388
8389 sunos4*)
8390 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8391 wlarc=
8392 hardcode_direct=yes
8393 hardcode_shlibpath_var=no
8394 ;;
8395
8396 *)
8397 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8398 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8399 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8400 else
8401 ld_shlibs=no
8402 fi
8403 ;;
8404 esac
8405
8406 if test "$ld_shlibs" = no; then
8407 runpath_var=
8408 hardcode_libdir_flag_spec=
8409 export_dynamic_flag_spec=
8410 whole_archive_flag_spec=
8411 fi
8412 else
8413 # PORTME fill in a description of your system's linker (not GNU ld)
8414 case $host_os in
8415 aix3*)
8416 allow_undefined_flag=unsupported
8417 always_export_symbols=yes
8418 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'
8419 # Note: this linker hardcodes the directories in LIBPATH if there
8420 # are no directories specified by -L.
8421 hardcode_minus_L=yes
8422 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8423 # Neither direct hardcoding nor static linking is supported with a
8424 # broken collect2.
8425 hardcode_direct=unsupported
8426 fi
8427 ;;
8428
8429 aix[4-9]*)
8430 if test "$host_cpu" = ia64; then
8431 # On IA64, the linker does run time linking by default, so we don't
8432 # have to do anything special.
8433 aix_use_runtimelinking=no
8434 exp_sym_flag='-Bexport'
8435 no_entry_flag=""
8436 else
8437 # If we're using GNU nm, then we don't want the "-C" option.
8438 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8439 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8440 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'
8441 else
8442 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'
8443 fi
8444 aix_use_runtimelinking=no
8445
8446 # Test if we are trying to use run time linking or normal
8447 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8448 # need to do runtime linking.
8449 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8450 for ld_flag in $LDFLAGS; do
8451 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8452 aix_use_runtimelinking=yes
8453 break
8454 fi
8455 done
8456 ;;
8457 esac
8458
8459 exp_sym_flag='-bexport'
8460 no_entry_flag='-bnoentry'
8461 fi
8462
8463 # When large executables or shared objects are built, AIX ld can
8464 # have problems creating the table of contents. If linking a library
8465 # or program results in "error TOC overflow" add -mminimal-toc to
8466 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8467 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8468
8469 archive_cmds=''
8470 hardcode_direct=yes
8471 hardcode_direct_absolute=yes
8472 hardcode_libdir_separator=':'
8473 link_all_deplibs=yes
8474 file_list_spec='${wl}-f,'
8475
8476 if test "$GCC" = yes; then
8477 case $host_os in aix4.[012]|aix4.[012].*)
8478 # We only want to do this on AIX 4.2 and lower, the check
8479 # below for broken collect2 doesn't work under 4.3+
8480 collect2name=`${CC} -print-prog-name=collect2`
8481 if test -f "$collect2name" &&
8482 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8483 then
8484 # We have reworked collect2
8485 :
8486 else
8487 # We have old collect2
8488 hardcode_direct=unsupported
8489 # It fails to find uninstalled libraries when the uninstalled
8490 # path is not listed in the libpath. Setting hardcode_minus_L
8491 # to unsupported forces relinking
8492 hardcode_minus_L=yes
8493 hardcode_libdir_flag_spec='-L$libdir'
8494 hardcode_libdir_separator=
8495 fi
8496 ;;
8497 esac
8498 shared_flag='-shared'
8499 if test "$aix_use_runtimelinking" = yes; then
8500 shared_flag="$shared_flag "'${wl}-G'
8501 fi
8502 else
8503 # not using gcc
8504 if test "$host_cpu" = ia64; then
8505 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8506 # chokes on -Wl,-G. The following line is correct:
8507 shared_flag='-G'
8508 else
8509 if test "$aix_use_runtimelinking" = yes; then
8510 shared_flag='${wl}-G'
8511 else
8512 shared_flag='${wl}-bM:SRE'
8513 fi
8514 fi
8515 fi
8516
8517 export_dynamic_flag_spec='${wl}-bexpall'
8518 # It seems that -bexpall does not export symbols beginning with
8519 # underscore (_), so it is better to generate a list of symbols to export.
8520 always_export_symbols=yes
8521 if test "$aix_use_runtimelinking" = yes; then
8522 # Warning - without using the other runtime loading flags (-brtl),
8523 # -berok will link without error, but may produce a broken library.
8524 allow_undefined_flag='-berok'
8525 # Determine the default libpath from the value encoded in an
8526 # empty executable.
8527 cat >conftest.$ac_ext <<_ACEOF
8528 /* confdefs.h. */
8529 _ACEOF
8530 cat confdefs.h >>conftest.$ac_ext
8531 cat >>conftest.$ac_ext <<_ACEOF
8532 /* end confdefs.h. */
8533
8534 int
8535 main ()
8536 {
8537
8538 ;
8539 return 0;
8540 }
8541 _ACEOF
8542 rm -f conftest.$ac_objext conftest$ac_exeext
8543 if { (ac_try="$ac_link"
8544 case "(($ac_try" in
8545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8546 *) ac_try_echo=$ac_try;;
8547 esac
8548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8549 $as_echo "$ac_try_echo") >&5
8550 (eval "$ac_link") 2>conftest.er1
8551 ac_status=$?
8552 grep -v '^ *+' conftest.er1 >conftest.err
8553 rm -f conftest.er1
8554 cat conftest.err >&5
8555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); } && {
8557 test -z "$ac_c_werror_flag" ||
8558 test ! -s conftest.err
8559 } && test -s conftest$ac_exeext && {
8560 test "$cross_compiling" = yes ||
8561 $as_test_x conftest$ac_exeext
8562 }; then
8563
8564 lt_aix_libpath_sed='
8565 /Import File Strings/,/^$/ {
8566 /^0/ {
8567 s/^0 *\(.*\)$/\1/
8568 p
8569 }
8570 }'
8571 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8572 # Check for a 64-bit object if we didn't find anything.
8573 if test -z "$aix_libpath"; then
8574 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8575 fi
8576 else
8577 $as_echo "$as_me: failed program was:" >&5
8578 sed 's/^/| /' conftest.$ac_ext >&5
8579
8580
8581 fi
8582
8583 rm -rf conftest.dSYM
8584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8585 conftest$ac_exeext conftest.$ac_ext
8586 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8587
8588 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8589 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"
8590 else
8591 if test "$host_cpu" = ia64; then
8592 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8593 allow_undefined_flag="-z nodefs"
8594 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"
8595 else
8596 # Determine the default libpath from the value encoded in an
8597 # empty executable.
8598 cat >conftest.$ac_ext <<_ACEOF
8599 /* confdefs.h. */
8600 _ACEOF
8601 cat confdefs.h >>conftest.$ac_ext
8602 cat >>conftest.$ac_ext <<_ACEOF
8603 /* end confdefs.h. */
8604
8605 int
8606 main ()
8607 {
8608
8609 ;
8610 return 0;
8611 }
8612 _ACEOF
8613 rm -f conftest.$ac_objext conftest$ac_exeext
8614 if { (ac_try="$ac_link"
8615 case "(($ac_try" in
8616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8617 *) ac_try_echo=$ac_try;;
8618 esac
8619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8620 $as_echo "$ac_try_echo") >&5
8621 (eval "$ac_link") 2>conftest.er1
8622 ac_status=$?
8623 grep -v '^ *+' conftest.er1 >conftest.err
8624 rm -f conftest.er1
8625 cat conftest.err >&5
8626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); } && {
8628 test -z "$ac_c_werror_flag" ||
8629 test ! -s conftest.err
8630 } && test -s conftest$ac_exeext && {
8631 test "$cross_compiling" = yes ||
8632 $as_test_x conftest$ac_exeext
8633 }; then
8634
8635 lt_aix_libpath_sed='
8636 /Import File Strings/,/^$/ {
8637 /^0/ {
8638 s/^0 *\(.*\)$/\1/
8639 p
8640 }
8641 }'
8642 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8643 # Check for a 64-bit object if we didn't find anything.
8644 if test -z "$aix_libpath"; then
8645 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8646 fi
8647 else
8648 $as_echo "$as_me: failed program was:" >&5
8649 sed 's/^/| /' conftest.$ac_ext >&5
8650
8651
8652 fi
8653
8654 rm -rf conftest.dSYM
8655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8656 conftest$ac_exeext conftest.$ac_ext
8657 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8658
8659 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8660 # Warning - without using the other run time loading flags,
8661 # -berok will link without error, but may produce a broken library.
8662 no_undefined_flag=' ${wl}-bernotok'
8663 allow_undefined_flag=' ${wl}-berok'
8664 # Exported symbols can be pulled into shared objects from archives
8665 whole_archive_flag_spec='$convenience'
8666 archive_cmds_need_lc=yes
8667 # This is similar to how AIX traditionally builds its shared libraries.
8668 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'
8669 fi
8670 fi
8671 ;;
8672
8673 amigaos*)
8674 case $host_cpu in
8675 powerpc)
8676 # see comment about AmigaOS4 .so support
8677 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8678 archive_expsym_cmds=''
8679 ;;
8680 m68k)
8681 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)'
8682 hardcode_libdir_flag_spec='-L$libdir'
8683 hardcode_minus_L=yes
8684 ;;
8685 esac
8686 ;;
8687
8688 bsdi[45]*)
8689 export_dynamic_flag_spec=-rdynamic
8690 ;;
8691
8692 cygwin* | mingw* | pw32* | cegcc*)
8693 # When not using gcc, we currently assume that we are using
8694 # Microsoft Visual C++.
8695 # hardcode_libdir_flag_spec is actually meaningless, as there is
8696 # no search path for DLLs.
8697 hardcode_libdir_flag_spec=' '
8698 allow_undefined_flag=unsupported
8699 # Tell ltmain to make .lib files, not .a files.
8700 libext=lib
8701 # Tell ltmain to make .dll files, not .so files.
8702 shrext_cmds=".dll"
8703 # FIXME: Setting linknames here is a bad hack.
8704 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8705 # The linker will automatically build a .lib file if we build a DLL.
8706 old_archive_from_new_cmds='true'
8707 # FIXME: Should let the user specify the lib program.
8708 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8709 fix_srcfile_path='`cygpath -w "$srcfile"`'
8710 enable_shared_with_static_runtimes=yes
8711 ;;
8712
8713 darwin* | rhapsody*)
8714
8715
8716 archive_cmds_need_lc=no
8717 hardcode_direct=no
8718 hardcode_automatic=yes
8719 hardcode_shlibpath_var=unsupported
8720 whole_archive_flag_spec=''
8721 link_all_deplibs=yes
8722 allow_undefined_flag="$_lt_dar_allow_undefined"
8723 case $cc_basename in
8724 ifort*) _lt_dar_can_shared=yes ;;
8725 *) _lt_dar_can_shared=$GCC ;;
8726 esac
8727 if test "$_lt_dar_can_shared" = "yes"; then
8728 output_verbose_link_cmd=echo
8729 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8730 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8731 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}"
8732 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}"
8733
8734 else
8735 ld_shlibs=no
8736 fi
8737
8738 ;;
8739
8740 dgux*)
8741 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8742 hardcode_libdir_flag_spec='-L$libdir'
8743 hardcode_shlibpath_var=no
8744 ;;
8745
8746 freebsd1*)
8747 ld_shlibs=no
8748 ;;
8749
8750 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8751 # support. Future versions do this automatically, but an explicit c++rt0.o
8752 # does not break anything, and helps significantly (at the cost of a little
8753 # extra space).
8754 freebsd2.2*)
8755 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8756 hardcode_libdir_flag_spec='-R$libdir'
8757 hardcode_direct=yes
8758 hardcode_shlibpath_var=no
8759 ;;
8760
8761 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8762 freebsd2*)
8763 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8764 hardcode_direct=yes
8765 hardcode_minus_L=yes
8766 hardcode_shlibpath_var=no
8767 ;;
8768
8769 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8770 freebsd* | dragonfly*)
8771 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8772 hardcode_libdir_flag_spec='-R$libdir'
8773 hardcode_direct=yes
8774 hardcode_shlibpath_var=no
8775 ;;
8776
8777 hpux9*)
8778 if test "$GCC" = yes; then
8779 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'
8780 else
8781 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'
8782 fi
8783 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8784 hardcode_libdir_separator=:
8785 hardcode_direct=yes
8786
8787 # hardcode_minus_L: Not really in the search PATH,
8788 # but as the default location of the library.
8789 hardcode_minus_L=yes
8790 export_dynamic_flag_spec='${wl}-E'
8791 ;;
8792
8793 hpux10*)
8794 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8795 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8796 else
8797 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8798 fi
8799 if test "$with_gnu_ld" = no; then
8800 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8801 hardcode_libdir_flag_spec_ld='+b $libdir'
8802 hardcode_libdir_separator=:
8803 hardcode_direct=yes
8804 hardcode_direct_absolute=yes
8805 export_dynamic_flag_spec='${wl}-E'
8806 # hardcode_minus_L: Not really in the search PATH,
8807 # but as the default location of the library.
8808 hardcode_minus_L=yes
8809 fi
8810 ;;
8811
8812 hpux11*)
8813 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8814 case $host_cpu in
8815 hppa*64*)
8816 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8817 ;;
8818 ia64*)
8819 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8820 ;;
8821 *)
8822 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8823 ;;
8824 esac
8825 else
8826 case $host_cpu in
8827 hppa*64*)
8828 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8829 ;;
8830 ia64*)
8831 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8832 ;;
8833 *)
8834 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8835 ;;
8836 esac
8837 fi
8838 if test "$with_gnu_ld" = no; then
8839 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8840 hardcode_libdir_separator=:
8841
8842 case $host_cpu in
8843 hppa*64*|ia64*)
8844 hardcode_direct=no
8845 hardcode_shlibpath_var=no
8846 ;;
8847 *)
8848 hardcode_direct=yes
8849 hardcode_direct_absolute=yes
8850 export_dynamic_flag_spec='${wl}-E'
8851
8852 # hardcode_minus_L: Not really in the search PATH,
8853 # but as the default location of the library.
8854 hardcode_minus_L=yes
8855 ;;
8856 esac
8857 fi
8858 ;;
8859
8860 irix5* | irix6* | nonstopux*)
8861 if test "$GCC" = yes; then
8862 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'
8863 # Try to use the -exported_symbol ld option, if it does not
8864 # work, assume that -exports_file does not work either and
8865 # implicitly export all symbols.
8866 save_LDFLAGS="$LDFLAGS"
8867 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8868 cat >conftest.$ac_ext <<_ACEOF
8869 int foo(void) {}
8870 _ACEOF
8871 rm -f conftest.$ac_objext conftest$ac_exeext
8872 if { (ac_try="$ac_link"
8873 case "(($ac_try" in
8874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8875 *) ac_try_echo=$ac_try;;
8876 esac
8877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8878 $as_echo "$ac_try_echo") >&5
8879 (eval "$ac_link") 2>conftest.er1
8880 ac_status=$?
8881 grep -v '^ *+' conftest.er1 >conftest.err
8882 rm -f conftest.er1
8883 cat conftest.err >&5
8884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 (exit $ac_status); } && {
8886 test -z "$ac_c_werror_flag" ||
8887 test ! -s conftest.err
8888 } && test -s conftest$ac_exeext && {
8889 test "$cross_compiling" = yes ||
8890 $as_test_x conftest$ac_exeext
8891 }; then
8892 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'
8893
8894 else
8895 $as_echo "$as_me: failed program was:" >&5
8896 sed 's/^/| /' conftest.$ac_ext >&5
8897
8898
8899 fi
8900
8901 rm -rf conftest.dSYM
8902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8903 conftest$ac_exeext conftest.$ac_ext
8904 LDFLAGS="$save_LDFLAGS"
8905 else
8906 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'
8907 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'
8908 fi
8909 archive_cmds_need_lc='no'
8910 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8911 hardcode_libdir_separator=:
8912 inherit_rpath=yes
8913 link_all_deplibs=yes
8914 ;;
8915
8916 netbsd*)
8917 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8918 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8919 else
8920 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8921 fi
8922 hardcode_libdir_flag_spec='-R$libdir'
8923 hardcode_direct=yes
8924 hardcode_shlibpath_var=no
8925 ;;
8926
8927 newsos6)
8928 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8929 hardcode_direct=yes
8930 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8931 hardcode_libdir_separator=:
8932 hardcode_shlibpath_var=no
8933 ;;
8934
8935 *nto* | *qnx*)
8936 ;;
8937
8938 openbsd*)
8939 if test -f /usr/libexec/ld.so; then
8940 hardcode_direct=yes
8941 hardcode_shlibpath_var=no
8942 hardcode_direct_absolute=yes
8943 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8944 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8945 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8946 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8947 export_dynamic_flag_spec='${wl}-E'
8948 else
8949 case $host_os in
8950 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8951 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8952 hardcode_libdir_flag_spec='-R$libdir'
8953 ;;
8954 *)
8955 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8956 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8957 ;;
8958 esac
8959 fi
8960 else
8961 ld_shlibs=no
8962 fi
8963 ;;
8964
8965 os2*)
8966 hardcode_libdir_flag_spec='-L$libdir'
8967 hardcode_minus_L=yes
8968 allow_undefined_flag=unsupported
8969 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'
8970 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8971 ;;
8972
8973 osf3*)
8974 if test "$GCC" = yes; then
8975 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8976 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'
8977 else
8978 allow_undefined_flag=' -expect_unresolved \*'
8979 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'
8980 fi
8981 archive_cmds_need_lc='no'
8982 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8983 hardcode_libdir_separator=:
8984 ;;
8985
8986 osf4* | osf5*) # as osf3* with the addition of -msym flag
8987 if test "$GCC" = yes; then
8988 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8989 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'
8990 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8991 else
8992 allow_undefined_flag=' -expect_unresolved \*'
8993 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'
8994 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~
8995 $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'
8996
8997 # Both c and cxx compiler support -rpath directly
8998 hardcode_libdir_flag_spec='-rpath $libdir'
8999 fi
9000 archive_cmds_need_lc='no'
9001 hardcode_libdir_separator=:
9002 ;;
9003
9004 solaris*)
9005 no_undefined_flag=' -z defs'
9006 if test "$GCC" = yes; then
9007 wlarc='${wl}'
9008 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9009 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9010 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9011 else
9012 case `$CC -V 2>&1` in
9013 *"Compilers 5.0"*)
9014 wlarc=''
9015 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9016 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9017 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9018 ;;
9019 *)
9020 wlarc='${wl}'
9021 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9022 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9023 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9024 ;;
9025 esac
9026 fi
9027 hardcode_libdir_flag_spec='-R$libdir'
9028 hardcode_shlibpath_var=no
9029 case $host_os in
9030 solaris2.[0-5] | solaris2.[0-5].*) ;;
9031 *)
9032 # The compiler driver will combine and reorder linker options,
9033 # but understands `-z linker_flag'. GCC discards it without `$wl',
9034 # but is careful enough not to reorder.
9035 # Supported since Solaris 2.6 (maybe 2.5.1?)
9036 if test "$GCC" = yes; then
9037 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9038 else
9039 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9040 fi
9041 ;;
9042 esac
9043 link_all_deplibs=yes
9044 ;;
9045
9046 sunos4*)
9047 if test "x$host_vendor" = xsequent; then
9048 # Use $CC to link under sequent, because it throws in some extra .o
9049 # files that make .init and .fini sections work.
9050 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9051 else
9052 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9053 fi
9054 hardcode_libdir_flag_spec='-L$libdir'
9055 hardcode_direct=yes
9056 hardcode_minus_L=yes
9057 hardcode_shlibpath_var=no
9058 ;;
9059
9060 sysv4)
9061 case $host_vendor in
9062 sni)
9063 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9064 hardcode_direct=yes # is this really true???
9065 ;;
9066 siemens)
9067 ## LD is ld it makes a PLAMLIB
9068 ## CC just makes a GrossModule.
9069 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9070 reload_cmds='$CC -r -o $output$reload_objs'
9071 hardcode_direct=no
9072 ;;
9073 motorola)
9074 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9075 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9076 ;;
9077 esac
9078 runpath_var='LD_RUN_PATH'
9079 hardcode_shlibpath_var=no
9080 ;;
9081
9082 sysv4.3*)
9083 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9084 hardcode_shlibpath_var=no
9085 export_dynamic_flag_spec='-Bexport'
9086 ;;
9087
9088 sysv4*MP*)
9089 if test -d /usr/nec; then
9090 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9091 hardcode_shlibpath_var=no
9092 runpath_var=LD_RUN_PATH
9093 hardcode_runpath_var=yes
9094 ld_shlibs=yes
9095 fi
9096 ;;
9097
9098 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9099 no_undefined_flag='${wl}-z,text'
9100 archive_cmds_need_lc=no
9101 hardcode_shlibpath_var=no
9102 runpath_var='LD_RUN_PATH'
9103
9104 if test "$GCC" = yes; then
9105 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9106 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9107 else
9108 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9109 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9110 fi
9111 ;;
9112
9113 sysv5* | sco3.2v5* | sco5v6*)
9114 # Note: We can NOT use -z defs as we might desire, because we do not
9115 # link with -lc, and that would cause any symbols used from libc to
9116 # always be unresolved, which means just about no library would
9117 # ever link correctly. If we're not using GNU ld we use -z text
9118 # though, which does catch some bad symbols but isn't as heavy-handed
9119 # as -z defs.
9120 no_undefined_flag='${wl}-z,text'
9121 allow_undefined_flag='${wl}-z,nodefs'
9122 archive_cmds_need_lc=no
9123 hardcode_shlibpath_var=no
9124 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9125 hardcode_libdir_separator=':'
9126 link_all_deplibs=yes
9127 export_dynamic_flag_spec='${wl}-Bexport'
9128 runpath_var='LD_RUN_PATH'
9129
9130 if test "$GCC" = yes; then
9131 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9132 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9133 else
9134 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9135 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9136 fi
9137 ;;
9138
9139 uts4*)
9140 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9141 hardcode_libdir_flag_spec='-L$libdir'
9142 hardcode_shlibpath_var=no
9143 ;;
9144
9145 *)
9146 ld_shlibs=no
9147 ;;
9148 esac
9149
9150 if test x$host_vendor = xsni; then
9151 case $host in
9152 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9153 export_dynamic_flag_spec='${wl}-Blargedynsym'
9154 ;;
9155 esac
9156 fi
9157 fi
9158
9159 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9160 $as_echo "$ld_shlibs" >&6; }
9161 test "$ld_shlibs" = no && can_build_shared=no
9162
9163 with_gnu_ld=$with_gnu_ld
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179 #
9180 # Do we need to explicitly link libc?
9181 #
9182 case "x$archive_cmds_need_lc" in
9183 x|xyes)
9184 # Assume -lc should be added
9185 archive_cmds_need_lc=yes
9186
9187 if test "$enable_shared" = yes && test "$GCC" = yes; then
9188 case $archive_cmds in
9189 *'~'*)
9190 # FIXME: we may have to deal with multi-command sequences.
9191 ;;
9192 '$CC '*)
9193 # Test whether the compiler implicitly links with -lc since on some
9194 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9195 # to ld, don't add -lc before -lgcc.
9196 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9197 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9198 $RM conftest*
9199 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9200
9201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9202 (eval $ac_compile) 2>&5
9203 ac_status=$?
9204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 (exit $ac_status); } 2>conftest.err; then
9206 soname=conftest
9207 lib=conftest
9208 libobjs=conftest.$ac_objext
9209 deplibs=
9210 wl=$lt_prog_compiler_wl
9211 pic_flag=$lt_prog_compiler_pic
9212 compiler_flags=-v
9213 linker_flags=-v
9214 verstring=
9215 output_objdir=.
9216 libname=conftest
9217 lt_save_allow_undefined_flag=$allow_undefined_flag
9218 allow_undefined_flag=
9219 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9220 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9221 ac_status=$?
9222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223 (exit $ac_status); }
9224 then
9225 archive_cmds_need_lc=no
9226 else
9227 archive_cmds_need_lc=yes
9228 fi
9229 allow_undefined_flag=$lt_save_allow_undefined_flag
9230 else
9231 cat conftest.err 1>&5
9232 fi
9233 $RM conftest*
9234 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9235 $as_echo "$archive_cmds_need_lc" >&6; }
9236 ;;
9237 esac
9238 fi
9239 ;;
9240 esac
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
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9399 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9400
9401 if test "$GCC" = yes; then
9402 case $host_os in
9403 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9404 *) lt_awk_arg="/^libraries:/" ;;
9405 esac
9406 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9407 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9408 # if the path contains ";" then we assume it to be the separator
9409 # otherwise default to the standard path separator (i.e. ":") - it is
9410 # assumed that no part of a normal pathname contains ";" but that should
9411 # okay in the real world where ";" in dirpaths is itself problematic.
9412 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9413 else
9414 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9415 fi
9416 # Ok, now we have the path, separated by spaces, we can step through it
9417 # and add multilib dir if necessary.
9418 lt_tmp_lt_search_path_spec=
9419 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9420 for lt_sys_path in $lt_search_path_spec; do
9421 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9422 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9423 else
9424 test -d "$lt_sys_path" && \
9425 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9426 fi
9427 done
9428 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9429 BEGIN {RS=" "; FS="/|\n";} {
9430 lt_foo="";
9431 lt_count=0;
9432 for (lt_i = NF; lt_i > 0; lt_i--) {
9433 if ($lt_i != "" && $lt_i != ".") {
9434 if ($lt_i == "..") {
9435 lt_count++;
9436 } else {
9437 if (lt_count == 0) {
9438 lt_foo="/" $lt_i lt_foo;
9439 } else {
9440 lt_count--;
9441 }
9442 }
9443 }
9444 }
9445 if (lt_foo != "") { lt_freq[lt_foo]++; }
9446 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9447 }'`
9448 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9449 else
9450 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9451 fi
9452 library_names_spec=
9453 libname_spec='lib$name'
9454 soname_spec=
9455 shrext_cmds=".so"
9456 postinstall_cmds=
9457 postuninstall_cmds=
9458 finish_cmds=
9459 finish_eval=
9460 shlibpath_var=
9461 shlibpath_overrides_runpath=unknown
9462 version_type=none
9463 dynamic_linker="$host_os ld.so"
9464 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9465 need_lib_prefix=unknown
9466 hardcode_into_libs=no
9467
9468 # when you set need_version to no, make sure it does not cause -set_version
9469 # flags to be left without arguments
9470 need_version=unknown
9471
9472 case $host_os in
9473 aix3*)
9474 version_type=linux
9475 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9476 shlibpath_var=LIBPATH
9477
9478 # AIX 3 has no versioning support, so we append a major version to the name.
9479 soname_spec='${libname}${release}${shared_ext}$major'
9480 ;;
9481
9482 aix[4-9]*)
9483 version_type=linux
9484 need_lib_prefix=no
9485 need_version=no
9486 hardcode_into_libs=yes
9487 if test "$host_cpu" = ia64; then
9488 # AIX 5 supports IA64
9489 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9490 shlibpath_var=LD_LIBRARY_PATH
9491 else
9492 # With GCC up to 2.95.x, collect2 would create an import file
9493 # for dependence libraries. The import file would start with
9494 # the line `#! .'. This would cause the generated library to
9495 # depend on `.', always an invalid library. This was fixed in
9496 # development snapshots of GCC prior to 3.0.
9497 case $host_os in
9498 aix4 | aix4.[01] | aix4.[01].*)
9499 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9500 echo ' yes '
9501 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9502 :
9503 else
9504 can_build_shared=no
9505 fi
9506 ;;
9507 esac
9508 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9509 # soname into executable. Probably we can add versioning support to
9510 # collect2, so additional links can be useful in future.
9511 if test "$aix_use_runtimelinking" = yes; then
9512 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9513 # instead of lib<name>.a to let people know that these are not
9514 # typical AIX shared libraries.
9515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9516 else
9517 # We preserve .a as extension for shared libraries through AIX4.2
9518 # and later when we are not doing run time linking.
9519 library_names_spec='${libname}${release}.a $libname.a'
9520 soname_spec='${libname}${release}${shared_ext}$major'
9521 fi
9522 shlibpath_var=LIBPATH
9523 fi
9524 ;;
9525
9526 amigaos*)
9527 case $host_cpu in
9528 powerpc)
9529 # Since July 2007 AmigaOS4 officially supports .so libraries.
9530 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9532 ;;
9533 m68k)
9534 library_names_spec='$libname.ixlibrary $libname.a'
9535 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9536 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'
9537 ;;
9538 esac
9539 ;;
9540
9541 beos*)
9542 library_names_spec='${libname}${shared_ext}'
9543 dynamic_linker="$host_os ld.so"
9544 shlibpath_var=LIBRARY_PATH
9545 ;;
9546
9547 bsdi[45]*)
9548 version_type=linux
9549 need_version=no
9550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9551 soname_spec='${libname}${release}${shared_ext}$major'
9552 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9553 shlibpath_var=LD_LIBRARY_PATH
9554 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9555 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9556 # the default ld.so.conf also contains /usr/contrib/lib and
9557 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9558 # libtool to hard-code these into programs
9559 ;;
9560
9561 cygwin* | mingw* | pw32* | cegcc*)
9562 version_type=windows
9563 shrext_cmds=".dll"
9564 need_version=no
9565 need_lib_prefix=no
9566
9567 case $GCC,$host_os in
9568 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9569 library_names_spec='$libname.dll.a'
9570 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9571 postinstall_cmds='base_file=`basename \${file}`~
9572 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9573 dldir=$destdir/`dirname \$dlpath`~
9574 test -d \$dldir || mkdir -p \$dldir~
9575 $install_prog $dir/$dlname \$dldir/$dlname~
9576 chmod a+x \$dldir/$dlname~
9577 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9578 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9579 fi'
9580 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9581 dlpath=$dir/\$dldll~
9582 $RM \$dlpath'
9583 shlibpath_overrides_runpath=yes
9584
9585 case $host_os in
9586 cygwin*)
9587 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9588 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9589 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9590 ;;
9591 mingw* | cegcc*)
9592 # MinGW DLLs use traditional 'lib' prefix
9593 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9594 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9595 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9596 # It is most probably a Windows format PATH printed by
9597 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9598 # path with ; separators, and with drive letters. We can handle the
9599 # drive letters (cygwin fileutils understands them), so leave them,
9600 # especially as we might pass files found there to a mingw objdump,
9601 # which wouldn't understand a cygwinified path. Ahh.
9602 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9603 else
9604 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9605 fi
9606 ;;
9607 pw32*)
9608 # pw32 DLLs use 'pw' prefix rather than 'lib'
9609 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9610 ;;
9611 esac
9612 ;;
9613
9614 *)
9615 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9616 ;;
9617 esac
9618 dynamic_linker='Win32 ld.exe'
9619 # FIXME: first we should search . and the directory the executable is in
9620 shlibpath_var=PATH
9621 ;;
9622
9623 darwin* | rhapsody*)
9624 dynamic_linker="$host_os dyld"
9625 version_type=darwin
9626 need_lib_prefix=no
9627 need_version=no
9628 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9629 soname_spec='${libname}${release}${major}$shared_ext'
9630 shlibpath_overrides_runpath=yes
9631 shlibpath_var=DYLD_LIBRARY_PATH
9632 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9633
9634 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9635 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9636 ;;
9637
9638 dgux*)
9639 version_type=linux
9640 need_lib_prefix=no
9641 need_version=no
9642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9643 soname_spec='${libname}${release}${shared_ext}$major'
9644 shlibpath_var=LD_LIBRARY_PATH
9645 ;;
9646
9647 freebsd1*)
9648 dynamic_linker=no
9649 ;;
9650
9651 freebsd* | dragonfly*)
9652 # DragonFly does not have aout. When/if they implement a new
9653 # versioning mechanism, adjust this.
9654 if test -x /usr/bin/objformat; then
9655 objformat=`/usr/bin/objformat`
9656 else
9657 case $host_os in
9658 freebsd[123]*) objformat=aout ;;
9659 *) objformat=elf ;;
9660 esac
9661 fi
9662 version_type=freebsd-$objformat
9663 case $version_type in
9664 freebsd-elf*)
9665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9666 need_version=no
9667 need_lib_prefix=no
9668 ;;
9669 freebsd-*)
9670 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9671 need_version=yes
9672 ;;
9673 esac
9674 shlibpath_var=LD_LIBRARY_PATH
9675 case $host_os in
9676 freebsd2*)
9677 shlibpath_overrides_runpath=yes
9678 ;;
9679 freebsd3.[01]* | freebsdelf3.[01]*)
9680 shlibpath_overrides_runpath=yes
9681 hardcode_into_libs=yes
9682 ;;
9683 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9684 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9685 shlibpath_overrides_runpath=no
9686 hardcode_into_libs=yes
9687 ;;
9688 *) # from 4.6 on, and DragonFly
9689 shlibpath_overrides_runpath=yes
9690 hardcode_into_libs=yes
9691 ;;
9692 esac
9693 ;;
9694
9695 gnu*)
9696 version_type=linux
9697 need_lib_prefix=no
9698 need_version=no
9699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9700 soname_spec='${libname}${release}${shared_ext}$major'
9701 shlibpath_var=LD_LIBRARY_PATH
9702 hardcode_into_libs=yes
9703 ;;
9704
9705 hpux9* | hpux10* | hpux11*)
9706 # Give a soname corresponding to the major version so that dld.sl refuses to
9707 # link against other versions.
9708 version_type=sunos
9709 need_lib_prefix=no
9710 need_version=no
9711 case $host_cpu in
9712 ia64*)
9713 shrext_cmds='.so'
9714 hardcode_into_libs=yes
9715 dynamic_linker="$host_os dld.so"
9716 shlibpath_var=LD_LIBRARY_PATH
9717 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9719 soname_spec='${libname}${release}${shared_ext}$major'
9720 if test "X$HPUX_IA64_MODE" = X32; then
9721 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9722 else
9723 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9724 fi
9725 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9726 ;;
9727 hppa*64*)
9728 shrext_cmds='.sl'
9729 hardcode_into_libs=yes
9730 dynamic_linker="$host_os dld.sl"
9731 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9732 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9734 soname_spec='${libname}${release}${shared_ext}$major'
9735 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9736 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9737 ;;
9738 *)
9739 shrext_cmds='.sl'
9740 dynamic_linker="$host_os dld.sl"
9741 shlibpath_var=SHLIB_PATH
9742 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9744 soname_spec='${libname}${release}${shared_ext}$major'
9745 ;;
9746 esac
9747 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9748 postinstall_cmds='chmod 555 $lib'
9749 ;;
9750
9751 interix[3-9]*)
9752 version_type=linux
9753 need_lib_prefix=no
9754 need_version=no
9755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9756 soname_spec='${libname}${release}${shared_ext}$major'
9757 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9758 shlibpath_var=LD_LIBRARY_PATH
9759 shlibpath_overrides_runpath=no
9760 hardcode_into_libs=yes
9761 ;;
9762
9763 irix5* | irix6* | nonstopux*)
9764 case $host_os in
9765 nonstopux*) version_type=nonstopux ;;
9766 *)
9767 if test "$lt_cv_prog_gnu_ld" = yes; then
9768 version_type=linux
9769 else
9770 version_type=irix
9771 fi ;;
9772 esac
9773 need_lib_prefix=no
9774 need_version=no
9775 soname_spec='${libname}${release}${shared_ext}$major'
9776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9777 case $host_os in
9778 irix5* | nonstopux*)
9779 libsuff= shlibsuff=
9780 ;;
9781 *)
9782 case $LD in # libtool.m4 will add one of these switches to LD
9783 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9784 libsuff= shlibsuff= libmagic=32-bit;;
9785 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9786 libsuff=32 shlibsuff=N32 libmagic=N32;;
9787 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9788 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9789 *) libsuff= shlibsuff= libmagic=never-match;;
9790 esac
9791 ;;
9792 esac
9793 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9794 shlibpath_overrides_runpath=no
9795 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9796 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9797 hardcode_into_libs=yes
9798 ;;
9799
9800 # No shared lib support for Linux oldld, aout, or coff.
9801 linux*oldld* | linux*aout* | linux*coff*)
9802 dynamic_linker=no
9803 ;;
9804
9805 # This must be Linux ELF.
9806 linux* | k*bsd*-gnu)
9807 version_type=linux
9808 need_lib_prefix=no
9809 need_version=no
9810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9811 soname_spec='${libname}${release}${shared_ext}$major'
9812 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9813 shlibpath_var=LD_LIBRARY_PATH
9814 shlibpath_overrides_runpath=no
9815 # Some binutils ld are patched to set DT_RUNPATH
9816 save_LDFLAGS=$LDFLAGS
9817 save_libdir=$libdir
9818 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9819 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9820 cat >conftest.$ac_ext <<_ACEOF
9821 /* confdefs.h. */
9822 _ACEOF
9823 cat confdefs.h >>conftest.$ac_ext
9824 cat >>conftest.$ac_ext <<_ACEOF
9825 /* end confdefs.h. */
9826
9827 int
9828 main ()
9829 {
9830
9831 ;
9832 return 0;
9833 }
9834 _ACEOF
9835 rm -f conftest.$ac_objext conftest$ac_exeext
9836 if { (ac_try="$ac_link"
9837 case "(($ac_try" in
9838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9839 *) ac_try_echo=$ac_try;;
9840 esac
9841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9842 $as_echo "$ac_try_echo") >&5
9843 (eval "$ac_link") 2>conftest.er1
9844 ac_status=$?
9845 grep -v '^ *+' conftest.er1 >conftest.err
9846 rm -f conftest.er1
9847 cat conftest.err >&5
9848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); } && {
9850 test -z "$ac_c_werror_flag" ||
9851 test ! -s conftest.err
9852 } && test -s conftest$ac_exeext && {
9853 test "$cross_compiling" = yes ||
9854 $as_test_x conftest$ac_exeext
9855 }; then
9856 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9857 shlibpath_overrides_runpath=yes
9858 fi
9859
9860 else
9861 $as_echo "$as_me: failed program was:" >&5
9862 sed 's/^/| /' conftest.$ac_ext >&5
9863
9864
9865 fi
9866
9867 rm -rf conftest.dSYM
9868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9869 conftest$ac_exeext conftest.$ac_ext
9870 LDFLAGS=$save_LDFLAGS
9871 libdir=$save_libdir
9872
9873 # This implies no fast_install, which is unacceptable.
9874 # Some rework will be needed to allow for fast_install
9875 # before this can be enabled.
9876 hardcode_into_libs=yes
9877
9878 # Add ABI-specific directories to the system library path.
9879 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
9880
9881 # Append ld.so.conf contents to the search path
9882 if test -f /etc/ld.so.conf; then
9883 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' ' '`
9884 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9885 fi
9886
9887 # We used to test for /lib/ld.so.1 and disable shared libraries on
9888 # powerpc, because MkLinux only supported shared libraries with the
9889 # GNU dynamic linker. Since this was broken with cross compilers,
9890 # most powerpc-linux boxes support dynamic linking these days and
9891 # people can always --disable-shared, the test was removed, and we
9892 # assume the GNU/Linux dynamic linker is in use.
9893 dynamic_linker='GNU/Linux ld.so'
9894 ;;
9895
9896 netbsd*)
9897 version_type=sunos
9898 need_lib_prefix=no
9899 need_version=no
9900 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9902 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9903 dynamic_linker='NetBSD (a.out) ld.so'
9904 else
9905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9906 soname_spec='${libname}${release}${shared_ext}$major'
9907 dynamic_linker='NetBSD ld.elf_so'
9908 fi
9909 shlibpath_var=LD_LIBRARY_PATH
9910 shlibpath_overrides_runpath=yes
9911 hardcode_into_libs=yes
9912 ;;
9913
9914 newsos6)
9915 version_type=linux
9916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9917 shlibpath_var=LD_LIBRARY_PATH
9918 shlibpath_overrides_runpath=yes
9919 ;;
9920
9921 *nto* | *qnx*)
9922 version_type=qnx
9923 need_lib_prefix=no
9924 need_version=no
9925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9926 soname_spec='${libname}${release}${shared_ext}$major'
9927 shlibpath_var=LD_LIBRARY_PATH
9928 shlibpath_overrides_runpath=no
9929 hardcode_into_libs=yes
9930 dynamic_linker='ldqnx.so'
9931 ;;
9932
9933 openbsd*)
9934 version_type=sunos
9935 sys_lib_dlsearch_path_spec="/usr/lib"
9936 need_lib_prefix=no
9937 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9938 case $host_os in
9939 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9940 *) need_version=no ;;
9941 esac
9942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9943 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9944 shlibpath_var=LD_LIBRARY_PATH
9945 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9946 case $host_os in
9947 openbsd2.[89] | openbsd2.[89].*)
9948 shlibpath_overrides_runpath=no
9949 ;;
9950 *)
9951 shlibpath_overrides_runpath=yes
9952 ;;
9953 esac
9954 else
9955 shlibpath_overrides_runpath=yes
9956 fi
9957 ;;
9958
9959 os2*)
9960 libname_spec='$name'
9961 shrext_cmds=".dll"
9962 need_lib_prefix=no
9963 library_names_spec='$libname${shared_ext} $libname.a'
9964 dynamic_linker='OS/2 ld.exe'
9965 shlibpath_var=LIBPATH
9966 ;;
9967
9968 osf3* | osf4* | osf5*)
9969 version_type=osf
9970 need_lib_prefix=no
9971 need_version=no
9972 soname_spec='${libname}${release}${shared_ext}$major'
9973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9974 shlibpath_var=LD_LIBRARY_PATH
9975 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9976 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9977 ;;
9978
9979 rdos*)
9980 dynamic_linker=no
9981 ;;
9982
9983 solaris*)
9984 version_type=linux
9985 need_lib_prefix=no
9986 need_version=no
9987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9988 soname_spec='${libname}${release}${shared_ext}$major'
9989 shlibpath_var=LD_LIBRARY_PATH
9990 shlibpath_overrides_runpath=yes
9991 hardcode_into_libs=yes
9992 # ldd complains unless libraries are executable
9993 postinstall_cmds='chmod +x $lib'
9994 ;;
9995
9996 sunos4*)
9997 version_type=sunos
9998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9999 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10000 shlibpath_var=LD_LIBRARY_PATH
10001 shlibpath_overrides_runpath=yes
10002 if test "$with_gnu_ld" = yes; then
10003 need_lib_prefix=no
10004 fi
10005 need_version=yes
10006 ;;
10007
10008 sysv4 | sysv4.3*)
10009 version_type=linux
10010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10011 soname_spec='${libname}${release}${shared_ext}$major'
10012 shlibpath_var=LD_LIBRARY_PATH
10013 case $host_vendor in
10014 sni)
10015 shlibpath_overrides_runpath=no
10016 need_lib_prefix=no
10017 runpath_var=LD_RUN_PATH
10018 ;;
10019 siemens)
10020 need_lib_prefix=no
10021 ;;
10022 motorola)
10023 need_lib_prefix=no
10024 need_version=no
10025 shlibpath_overrides_runpath=no
10026 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10027 ;;
10028 esac
10029 ;;
10030
10031 sysv4*MP*)
10032 if test -d /usr/nec ;then
10033 version_type=linux
10034 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10035 soname_spec='$libname${shared_ext}.$major'
10036 shlibpath_var=LD_LIBRARY_PATH
10037 fi
10038 ;;
10039
10040 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10041 version_type=freebsd-elf
10042 need_lib_prefix=no
10043 need_version=no
10044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10045 soname_spec='${libname}${release}${shared_ext}$major'
10046 shlibpath_var=LD_LIBRARY_PATH
10047 shlibpath_overrides_runpath=yes
10048 hardcode_into_libs=yes
10049 if test "$with_gnu_ld" = yes; then
10050 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10051 else
10052 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10053 case $host_os in
10054 sco3.2v5*)
10055 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10056 ;;
10057 esac
10058 fi
10059 sys_lib_dlsearch_path_spec='/usr/lib'
10060 ;;
10061
10062 tpf*)
10063 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10064 version_type=linux
10065 need_lib_prefix=no
10066 need_version=no
10067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10068 shlibpath_var=LD_LIBRARY_PATH
10069 shlibpath_overrides_runpath=no
10070 hardcode_into_libs=yes
10071 ;;
10072
10073 uts4*)
10074 version_type=linux
10075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10076 soname_spec='${libname}${release}${shared_ext}$major'
10077 shlibpath_var=LD_LIBRARY_PATH
10078 ;;
10079
10080 *)
10081 dynamic_linker=no
10082 ;;
10083 esac
10084 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10085 $as_echo "$dynamic_linker" >&6; }
10086 test "$dynamic_linker" = no && can_build_shared=no
10087
10088 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10089 if test "$GCC" = yes; then
10090 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10091 fi
10092
10093 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10094 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10095 fi
10096 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10097 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10098 fi
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
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10187 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10188 hardcode_action=
10189 if test -n "$hardcode_libdir_flag_spec" ||
10190 test -n "$runpath_var" ||
10191 test "X$hardcode_automatic" = "Xyes" ; then
10192
10193 # We can hardcode non-existent directories.
10194 if test "$hardcode_direct" != no &&
10195 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10196 # have to relink, otherwise we might link with an installed library
10197 # when we should be linking with a yet-to-be-installed one
10198 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10199 test "$hardcode_minus_L" != no; then
10200 # Linking always hardcodes the temporary library directory.
10201 hardcode_action=relink
10202 else
10203 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10204 hardcode_action=immediate
10205 fi
10206 else
10207 # We cannot hardcode anything, or else we can only hardcode existing
10208 # directories.
10209 hardcode_action=unsupported
10210 fi
10211 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10212 $as_echo "$hardcode_action" >&6; }
10213
10214 if test "$hardcode_action" = relink ||
10215 test "$inherit_rpath" = yes; then
10216 # Fast installation is not supported
10217 enable_fast_install=no
10218 elif test "$shlibpath_overrides_runpath" = yes ||
10219 test "$enable_shared" = no; then
10220 # Fast installation is not necessary
10221 enable_fast_install=needless
10222 fi
10223
10224
10225
10226
10227
10228
10229 if test "x$enable_dlopen" != xyes; then
10230 enable_dlopen=unknown
10231 enable_dlopen_self=unknown
10232 enable_dlopen_self_static=unknown
10233 else
10234 lt_cv_dlopen=no
10235 lt_cv_dlopen_libs=
10236
10237 case $host_os in
10238 beos*)
10239 lt_cv_dlopen="load_add_on"
10240 lt_cv_dlopen_libs=
10241 lt_cv_dlopen_self=yes
10242 ;;
10243
10244 mingw* | pw32* | cegcc*)
10245 lt_cv_dlopen="LoadLibrary"
10246 lt_cv_dlopen_libs=
10247 ;;
10248
10249 cygwin*)
10250 lt_cv_dlopen="dlopen"
10251 lt_cv_dlopen_libs=
10252 ;;
10253
10254 darwin*)
10255 # if libdl is installed we need to link against it
10256 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10257 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10258 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10259 $as_echo_n "(cached) " >&6
10260 else
10261 ac_check_lib_save_LIBS=$LIBS
10262 LIBS="-ldl $LIBS"
10263 cat >conftest.$ac_ext <<_ACEOF
10264 /* confdefs.h. */
10265 _ACEOF
10266 cat confdefs.h >>conftest.$ac_ext
10267 cat >>conftest.$ac_ext <<_ACEOF
10268 /* end confdefs.h. */
10269
10270 /* Override any GCC internal prototype to avoid an error.
10271 Use char because int might match the return type of a GCC
10272 builtin and then its argument prototype would still apply. */
10273 #ifdef __cplusplus
10274 extern "C"
10275 #endif
10276 char dlopen ();
10277 int
10278 main ()
10279 {
10280 return dlopen ();
10281 ;
10282 return 0;
10283 }
10284 _ACEOF
10285 rm -f conftest.$ac_objext conftest$ac_exeext
10286 if { (ac_try="$ac_link"
10287 case "(($ac_try" in
10288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10289 *) ac_try_echo=$ac_try;;
10290 esac
10291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10292 $as_echo "$ac_try_echo") >&5
10293 (eval "$ac_link") 2>conftest.er1
10294 ac_status=$?
10295 grep -v '^ *+' conftest.er1 >conftest.err
10296 rm -f conftest.er1
10297 cat conftest.err >&5
10298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299 (exit $ac_status); } && {
10300 test -z "$ac_c_werror_flag" ||
10301 test ! -s conftest.err
10302 } && test -s conftest$ac_exeext && {
10303 test "$cross_compiling" = yes ||
10304 $as_test_x conftest$ac_exeext
10305 }; then
10306 ac_cv_lib_dl_dlopen=yes
10307 else
10308 $as_echo "$as_me: failed program was:" >&5
10309 sed 's/^/| /' conftest.$ac_ext >&5
10310
10311 ac_cv_lib_dl_dlopen=no
10312 fi
10313
10314 rm -rf conftest.dSYM
10315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10316 conftest$ac_exeext conftest.$ac_ext
10317 LIBS=$ac_check_lib_save_LIBS
10318 fi
10319 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10320 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10321 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10322 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10323 else
10324
10325 lt_cv_dlopen="dyld"
10326 lt_cv_dlopen_libs=
10327 lt_cv_dlopen_self=yes
10328
10329 fi
10330
10331 ;;
10332
10333 *)
10334 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10335 $as_echo_n "checking for shl_load... " >&6; }
10336 if test "${ac_cv_func_shl_load+set}" = set; then
10337 $as_echo_n "(cached) " >&6
10338 else
10339 cat >conftest.$ac_ext <<_ACEOF
10340 /* confdefs.h. */
10341 _ACEOF
10342 cat confdefs.h >>conftest.$ac_ext
10343 cat >>conftest.$ac_ext <<_ACEOF
10344 /* end confdefs.h. */
10345 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10347 #define shl_load innocuous_shl_load
10348
10349 /* System header to define __stub macros and hopefully few prototypes,
10350 which can conflict with char shl_load (); below.
10351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10352 <limits.h> exists even on freestanding compilers. */
10353
10354 #ifdef __STDC__
10355 # include <limits.h>
10356 #else
10357 # include <assert.h>
10358 #endif
10359
10360 #undef shl_load
10361
10362 /* Override any GCC internal prototype to avoid an error.
10363 Use char because int might match the return type of a GCC
10364 builtin and then its argument prototype would still apply. */
10365 #ifdef __cplusplus
10366 extern "C"
10367 #endif
10368 char shl_load ();
10369 /* The GNU C library defines this for functions which it implements
10370 to always fail with ENOSYS. Some functions are actually named
10371 something starting with __ and the normal name is an alias. */
10372 #if defined __stub_shl_load || defined __stub___shl_load
10373 choke me
10374 #endif
10375
10376 int
10377 main ()
10378 {
10379 return shl_load ();
10380 ;
10381 return 0;
10382 }
10383 _ACEOF
10384 rm -f conftest.$ac_objext conftest$ac_exeext
10385 if { (ac_try="$ac_link"
10386 case "(($ac_try" in
10387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10388 *) ac_try_echo=$ac_try;;
10389 esac
10390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10391 $as_echo "$ac_try_echo") >&5
10392 (eval "$ac_link") 2>conftest.er1
10393 ac_status=$?
10394 grep -v '^ *+' conftest.er1 >conftest.err
10395 rm -f conftest.er1
10396 cat conftest.err >&5
10397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); } && {
10399 test -z "$ac_c_werror_flag" ||
10400 test ! -s conftest.err
10401 } && test -s conftest$ac_exeext && {
10402 test "$cross_compiling" = yes ||
10403 $as_test_x conftest$ac_exeext
10404 }; then
10405 ac_cv_func_shl_load=yes
10406 else
10407 $as_echo "$as_me: failed program was:" >&5
10408 sed 's/^/| /' conftest.$ac_ext >&5
10409
10410 ac_cv_func_shl_load=no
10411 fi
10412
10413 rm -rf conftest.dSYM
10414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10415 conftest$ac_exeext conftest.$ac_ext
10416 fi
10417 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10418 $as_echo "$ac_cv_func_shl_load" >&6; }
10419 if test "x$ac_cv_func_shl_load" = x""yes; then
10420 lt_cv_dlopen="shl_load"
10421 else
10422 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10423 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10424 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10425 $as_echo_n "(cached) " >&6
10426 else
10427 ac_check_lib_save_LIBS=$LIBS
10428 LIBS="-ldld $LIBS"
10429 cat >conftest.$ac_ext <<_ACEOF
10430 /* confdefs.h. */
10431 _ACEOF
10432 cat confdefs.h >>conftest.$ac_ext
10433 cat >>conftest.$ac_ext <<_ACEOF
10434 /* end confdefs.h. */
10435
10436 /* Override any GCC internal prototype to avoid an error.
10437 Use char because int might match the return type of a GCC
10438 builtin and then its argument prototype would still apply. */
10439 #ifdef __cplusplus
10440 extern "C"
10441 #endif
10442 char shl_load ();
10443 int
10444 main ()
10445 {
10446 return shl_load ();
10447 ;
10448 return 0;
10449 }
10450 _ACEOF
10451 rm -f conftest.$ac_objext conftest$ac_exeext
10452 if { (ac_try="$ac_link"
10453 case "(($ac_try" in
10454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10455 *) ac_try_echo=$ac_try;;
10456 esac
10457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10458 $as_echo "$ac_try_echo") >&5
10459 (eval "$ac_link") 2>conftest.er1
10460 ac_status=$?
10461 grep -v '^ *+' conftest.er1 >conftest.err
10462 rm -f conftest.er1
10463 cat conftest.err >&5
10464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); } && {
10466 test -z "$ac_c_werror_flag" ||
10467 test ! -s conftest.err
10468 } && test -s conftest$ac_exeext && {
10469 test "$cross_compiling" = yes ||
10470 $as_test_x conftest$ac_exeext
10471 }; then
10472 ac_cv_lib_dld_shl_load=yes
10473 else
10474 $as_echo "$as_me: failed program was:" >&5
10475 sed 's/^/| /' conftest.$ac_ext >&5
10476
10477 ac_cv_lib_dld_shl_load=no
10478 fi
10479
10480 rm -rf conftest.dSYM
10481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10482 conftest$ac_exeext conftest.$ac_ext
10483 LIBS=$ac_check_lib_save_LIBS
10484 fi
10485 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10486 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10487 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10488 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10489 else
10490 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10491 $as_echo_n "checking for dlopen... " >&6; }
10492 if test "${ac_cv_func_dlopen+set}" = set; then
10493 $as_echo_n "(cached) " >&6
10494 else
10495 cat >conftest.$ac_ext <<_ACEOF
10496 /* confdefs.h. */
10497 _ACEOF
10498 cat confdefs.h >>conftest.$ac_ext
10499 cat >>conftest.$ac_ext <<_ACEOF
10500 /* end confdefs.h. */
10501 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10503 #define dlopen innocuous_dlopen
10504
10505 /* System header to define __stub macros and hopefully few prototypes,
10506 which can conflict with char dlopen (); below.
10507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10508 <limits.h> exists even on freestanding compilers. */
10509
10510 #ifdef __STDC__
10511 # include <limits.h>
10512 #else
10513 # include <assert.h>
10514 #endif
10515
10516 #undef dlopen
10517
10518 /* Override any GCC internal prototype to avoid an error.
10519 Use char because int might match the return type of a GCC
10520 builtin and then its argument prototype would still apply. */
10521 #ifdef __cplusplus
10522 extern "C"
10523 #endif
10524 char dlopen ();
10525 /* The GNU C library defines this for functions which it implements
10526 to always fail with ENOSYS. Some functions are actually named
10527 something starting with __ and the normal name is an alias. */
10528 #if defined __stub_dlopen || defined __stub___dlopen
10529 choke me
10530 #endif
10531
10532 int
10533 main ()
10534 {
10535 return dlopen ();
10536 ;
10537 return 0;
10538 }
10539 _ACEOF
10540 rm -f conftest.$ac_objext conftest$ac_exeext
10541 if { (ac_try="$ac_link"
10542 case "(($ac_try" in
10543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10544 *) ac_try_echo=$ac_try;;
10545 esac
10546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10547 $as_echo "$ac_try_echo") >&5
10548 (eval "$ac_link") 2>conftest.er1
10549 ac_status=$?
10550 grep -v '^ *+' conftest.er1 >conftest.err
10551 rm -f conftest.er1
10552 cat conftest.err >&5
10553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); } && {
10555 test -z "$ac_c_werror_flag" ||
10556 test ! -s conftest.err
10557 } && test -s conftest$ac_exeext && {
10558 test "$cross_compiling" = yes ||
10559 $as_test_x conftest$ac_exeext
10560 }; then
10561 ac_cv_func_dlopen=yes
10562 else
10563 $as_echo "$as_me: failed program was:" >&5
10564 sed 's/^/| /' conftest.$ac_ext >&5
10565
10566 ac_cv_func_dlopen=no
10567 fi
10568
10569 rm -rf conftest.dSYM
10570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10571 conftest$ac_exeext conftest.$ac_ext
10572 fi
10573 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10574 $as_echo "$ac_cv_func_dlopen" >&6; }
10575 if test "x$ac_cv_func_dlopen" = x""yes; then
10576 lt_cv_dlopen="dlopen"
10577 else
10578 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10579 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10580 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10581 $as_echo_n "(cached) " >&6
10582 else
10583 ac_check_lib_save_LIBS=$LIBS
10584 LIBS="-ldl $LIBS"
10585 cat >conftest.$ac_ext <<_ACEOF
10586 /* confdefs.h. */
10587 _ACEOF
10588 cat confdefs.h >>conftest.$ac_ext
10589 cat >>conftest.$ac_ext <<_ACEOF
10590 /* end confdefs.h. */
10591
10592 /* Override any GCC internal prototype to avoid an error.
10593 Use char because int might match the return type of a GCC
10594 builtin and then its argument prototype would still apply. */
10595 #ifdef __cplusplus
10596 extern "C"
10597 #endif
10598 char dlopen ();
10599 int
10600 main ()
10601 {
10602 return dlopen ();
10603 ;
10604 return 0;
10605 }
10606 _ACEOF
10607 rm -f conftest.$ac_objext conftest$ac_exeext
10608 if { (ac_try="$ac_link"
10609 case "(($ac_try" in
10610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10611 *) ac_try_echo=$ac_try;;
10612 esac
10613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10614 $as_echo "$ac_try_echo") >&5
10615 (eval "$ac_link") 2>conftest.er1
10616 ac_status=$?
10617 grep -v '^ *+' conftest.er1 >conftest.err
10618 rm -f conftest.er1
10619 cat conftest.err >&5
10620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); } && {
10622 test -z "$ac_c_werror_flag" ||
10623 test ! -s conftest.err
10624 } && test -s conftest$ac_exeext && {
10625 test "$cross_compiling" = yes ||
10626 $as_test_x conftest$ac_exeext
10627 }; then
10628 ac_cv_lib_dl_dlopen=yes
10629 else
10630 $as_echo "$as_me: failed program was:" >&5
10631 sed 's/^/| /' conftest.$ac_ext >&5
10632
10633 ac_cv_lib_dl_dlopen=no
10634 fi
10635
10636 rm -rf conftest.dSYM
10637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10638 conftest$ac_exeext conftest.$ac_ext
10639 LIBS=$ac_check_lib_save_LIBS
10640 fi
10641 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10642 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10643 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10644 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10645 else
10646 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10647 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10648 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10649 $as_echo_n "(cached) " >&6
10650 else
10651 ac_check_lib_save_LIBS=$LIBS
10652 LIBS="-lsvld $LIBS"
10653 cat >conftest.$ac_ext <<_ACEOF
10654 /* confdefs.h. */
10655 _ACEOF
10656 cat confdefs.h >>conftest.$ac_ext
10657 cat >>conftest.$ac_ext <<_ACEOF
10658 /* end confdefs.h. */
10659
10660 /* Override any GCC internal prototype to avoid an error.
10661 Use char because int might match the return type of a GCC
10662 builtin and then its argument prototype would still apply. */
10663 #ifdef __cplusplus
10664 extern "C"
10665 #endif
10666 char dlopen ();
10667 int
10668 main ()
10669 {
10670 return dlopen ();
10671 ;
10672 return 0;
10673 }
10674 _ACEOF
10675 rm -f conftest.$ac_objext conftest$ac_exeext
10676 if { (ac_try="$ac_link"
10677 case "(($ac_try" in
10678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10679 *) ac_try_echo=$ac_try;;
10680 esac
10681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10682 $as_echo "$ac_try_echo") >&5
10683 (eval "$ac_link") 2>conftest.er1
10684 ac_status=$?
10685 grep -v '^ *+' conftest.er1 >conftest.err
10686 rm -f conftest.er1
10687 cat conftest.err >&5
10688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); } && {
10690 test -z "$ac_c_werror_flag" ||
10691 test ! -s conftest.err
10692 } && test -s conftest$ac_exeext && {
10693 test "$cross_compiling" = yes ||
10694 $as_test_x conftest$ac_exeext
10695 }; then
10696 ac_cv_lib_svld_dlopen=yes
10697 else
10698 $as_echo "$as_me: failed program was:" >&5
10699 sed 's/^/| /' conftest.$ac_ext >&5
10700
10701 ac_cv_lib_svld_dlopen=no
10702 fi
10703
10704 rm -rf conftest.dSYM
10705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10706 conftest$ac_exeext conftest.$ac_ext
10707 LIBS=$ac_check_lib_save_LIBS
10708 fi
10709 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10710 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10711 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10712 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10713 else
10714 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10715 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10716 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10717 $as_echo_n "(cached) " >&6
10718 else
10719 ac_check_lib_save_LIBS=$LIBS
10720 LIBS="-ldld $LIBS"
10721 cat >conftest.$ac_ext <<_ACEOF
10722 /* confdefs.h. */
10723 _ACEOF
10724 cat confdefs.h >>conftest.$ac_ext
10725 cat >>conftest.$ac_ext <<_ACEOF
10726 /* end confdefs.h. */
10727
10728 /* Override any GCC internal prototype to avoid an error.
10729 Use char because int might match the return type of a GCC
10730 builtin and then its argument prototype would still apply. */
10731 #ifdef __cplusplus
10732 extern "C"
10733 #endif
10734 char dld_link ();
10735 int
10736 main ()
10737 {
10738 return dld_link ();
10739 ;
10740 return 0;
10741 }
10742 _ACEOF
10743 rm -f conftest.$ac_objext conftest$ac_exeext
10744 if { (ac_try="$ac_link"
10745 case "(($ac_try" in
10746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10747 *) ac_try_echo=$ac_try;;
10748 esac
10749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10750 $as_echo "$ac_try_echo") >&5
10751 (eval "$ac_link") 2>conftest.er1
10752 ac_status=$?
10753 grep -v '^ *+' conftest.er1 >conftest.err
10754 rm -f conftest.er1
10755 cat conftest.err >&5
10756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); } && {
10758 test -z "$ac_c_werror_flag" ||
10759 test ! -s conftest.err
10760 } && test -s conftest$ac_exeext && {
10761 test "$cross_compiling" = yes ||
10762 $as_test_x conftest$ac_exeext
10763 }; then
10764 ac_cv_lib_dld_dld_link=yes
10765 else
10766 $as_echo "$as_me: failed program was:" >&5
10767 sed 's/^/| /' conftest.$ac_ext >&5
10768
10769 ac_cv_lib_dld_dld_link=no
10770 fi
10771
10772 rm -rf conftest.dSYM
10773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10774 conftest$ac_exeext conftest.$ac_ext
10775 LIBS=$ac_check_lib_save_LIBS
10776 fi
10777 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10778 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10779 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10780 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10781 fi
10782
10783
10784 fi
10785
10786
10787 fi
10788
10789
10790 fi
10791
10792
10793 fi
10794
10795
10796 fi
10797
10798 ;;
10799 esac
10800
10801 if test "x$lt_cv_dlopen" != xno; then
10802 enable_dlopen=yes
10803 else
10804 enable_dlopen=no
10805 fi
10806
10807 case $lt_cv_dlopen in
10808 dlopen)
10809 save_CPPFLAGS="$CPPFLAGS"
10810 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10811
10812 save_LDFLAGS="$LDFLAGS"
10813 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10814
10815 save_LIBS="$LIBS"
10816 LIBS="$lt_cv_dlopen_libs $LIBS"
10817
10818 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10819 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10820 if test "${lt_cv_dlopen_self+set}" = set; then
10821 $as_echo_n "(cached) " >&6
10822 else
10823 if test "$cross_compiling" = yes; then :
10824 lt_cv_dlopen_self=cross
10825 else
10826 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10827 lt_status=$lt_dlunknown
10828 cat > conftest.$ac_ext <<_LT_EOF
10829 #line 10829 "configure"
10830 #include "confdefs.h"
10831
10832 #if HAVE_DLFCN_H
10833 #include <dlfcn.h>
10834 #endif
10835
10836 #include <stdio.h>
10837
10838 #ifdef RTLD_GLOBAL
10839 # define LT_DLGLOBAL RTLD_GLOBAL
10840 #else
10841 # ifdef DL_GLOBAL
10842 # define LT_DLGLOBAL DL_GLOBAL
10843 # else
10844 # define LT_DLGLOBAL 0
10845 # endif
10846 #endif
10847
10848 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10849 find out it does not work in some platform. */
10850 #ifndef LT_DLLAZY_OR_NOW
10851 # ifdef RTLD_LAZY
10852 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10853 # else
10854 # ifdef DL_LAZY
10855 # define LT_DLLAZY_OR_NOW DL_LAZY
10856 # else
10857 # ifdef RTLD_NOW
10858 # define LT_DLLAZY_OR_NOW RTLD_NOW
10859 # else
10860 # ifdef DL_NOW
10861 # define LT_DLLAZY_OR_NOW DL_NOW
10862 # else
10863 # define LT_DLLAZY_OR_NOW 0
10864 # endif
10865 # endif
10866 # endif
10867 # endif
10868 #endif
10869
10870 void fnord() { int i=42;}
10871 int main ()
10872 {
10873 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10874 int status = $lt_dlunknown;
10875
10876 if (self)
10877 {
10878 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10879 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10880 /* dlclose (self); */
10881 }
10882 else
10883 puts (dlerror ());
10884
10885 return status;
10886 }
10887 _LT_EOF
10888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10889 (eval $ac_link) 2>&5
10890 ac_status=$?
10891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10893 (./conftest; exit; ) >&5 2>/dev/null
10894 lt_status=$?
10895 case x$lt_status in
10896 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10897 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10898 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10899 esac
10900 else :
10901 # compilation failed
10902 lt_cv_dlopen_self=no
10903 fi
10904 fi
10905 rm -fr conftest*
10906
10907
10908 fi
10909 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10910 $as_echo "$lt_cv_dlopen_self" >&6; }
10911
10912 if test "x$lt_cv_dlopen_self" = xyes; then
10913 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10914 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10915 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10916 if test "${lt_cv_dlopen_self_static+set}" = set; then
10917 $as_echo_n "(cached) " >&6
10918 else
10919 if test "$cross_compiling" = yes; then :
10920 lt_cv_dlopen_self_static=cross
10921 else
10922 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10923 lt_status=$lt_dlunknown
10924 cat > conftest.$ac_ext <<_LT_EOF
10925 #line 10925 "configure"
10926 #include "confdefs.h"
10927
10928 #if HAVE_DLFCN_H
10929 #include <dlfcn.h>
10930 #endif
10931
10932 #include <stdio.h>
10933
10934 #ifdef RTLD_GLOBAL
10935 # define LT_DLGLOBAL RTLD_GLOBAL
10936 #else
10937 # ifdef DL_GLOBAL
10938 # define LT_DLGLOBAL DL_GLOBAL
10939 # else
10940 # define LT_DLGLOBAL 0
10941 # endif
10942 #endif
10943
10944 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10945 find out it does not work in some platform. */
10946 #ifndef LT_DLLAZY_OR_NOW
10947 # ifdef RTLD_LAZY
10948 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10949 # else
10950 # ifdef DL_LAZY
10951 # define LT_DLLAZY_OR_NOW DL_LAZY
10952 # else
10953 # ifdef RTLD_NOW
10954 # define LT_DLLAZY_OR_NOW RTLD_NOW
10955 # else
10956 # ifdef DL_NOW
10957 # define LT_DLLAZY_OR_NOW DL_NOW
10958 # else
10959 # define LT_DLLAZY_OR_NOW 0
10960 # endif
10961 # endif
10962 # endif
10963 # endif
10964 #endif
10965
10966 void fnord() { int i=42;}
10967 int main ()
10968 {
10969 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10970 int status = $lt_dlunknown;
10971
10972 if (self)
10973 {
10974 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10975 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10976 /* dlclose (self); */
10977 }
10978 else
10979 puts (dlerror ());
10980
10981 return status;
10982 }
10983 _LT_EOF
10984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10985 (eval $ac_link) 2>&5
10986 ac_status=$?
10987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10989 (./conftest; exit; ) >&5 2>/dev/null
10990 lt_status=$?
10991 case x$lt_status in
10992 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10993 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10994 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10995 esac
10996 else :
10997 # compilation failed
10998 lt_cv_dlopen_self_static=no
10999 fi
11000 fi
11001 rm -fr conftest*
11002
11003
11004 fi
11005 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11006 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11007 fi
11008
11009 CPPFLAGS="$save_CPPFLAGS"
11010 LDFLAGS="$save_LDFLAGS"
11011 LIBS="$save_LIBS"
11012 ;;
11013 esac
11014
11015 case $lt_cv_dlopen_self in
11016 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11017 *) enable_dlopen_self=unknown ;;
11018 esac
11019
11020 case $lt_cv_dlopen_self_static in
11021 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11022 *) enable_dlopen_self_static=unknown ;;
11023 esac
11024 fi
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042 striplib=
11043 old_striplib=
11044 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11045 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11046 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11047 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11048 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11049 { $as_echo "$as_me:$LINENO: result: yes" >&5
11050 $as_echo "yes" >&6; }
11051 else
11052 # FIXME - insert some real tests, host_os isn't really good enough
11053 case $host_os in
11054 darwin*)
11055 if test -n "$STRIP" ; then
11056 striplib="$STRIP -x"
11057 old_striplib="$STRIP -S"
11058 { $as_echo "$as_me:$LINENO: result: yes" >&5
11059 $as_echo "yes" >&6; }
11060 else
11061 { $as_echo "$as_me:$LINENO: result: no" >&5
11062 $as_echo "no" >&6; }
11063 fi
11064 ;;
11065 *)
11066 { $as_echo "$as_me:$LINENO: result: no" >&5
11067 $as_echo "no" >&6; }
11068 ;;
11069 esac
11070 fi
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083 # Report which library types will actually be built
11084 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11085 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11086 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11087 $as_echo "$can_build_shared" >&6; }
11088
11089 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11090 $as_echo_n "checking whether to build shared libraries... " >&6; }
11091 test "$can_build_shared" = "no" && enable_shared=no
11092
11093 # On AIX, shared libraries and static libraries use the same namespace, and
11094 # are all built from PIC.
11095 case $host_os in
11096 aix3*)
11097 test "$enable_shared" = yes && enable_static=no
11098 if test -n "$RANLIB"; then
11099 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11100 postinstall_cmds='$RANLIB $lib'
11101 fi
11102 ;;
11103
11104 aix[4-9]*)
11105 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11106 test "$enable_shared" = yes && enable_static=no
11107 fi
11108 ;;
11109 esac
11110 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11111 $as_echo "$enable_shared" >&6; }
11112
11113 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11114 $as_echo_n "checking whether to build static libraries... " >&6; }
11115 # Make sure either enable_shared or enable_static is yes.
11116 test "$enable_shared" = yes || enable_static=yes
11117 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11118 $as_echo "$enable_static" >&6; }
11119
11120
11121
11122
11123 fi
11124 ac_ext=c
11125 ac_cpp='$CPP $CPPFLAGS'
11126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11129
11130 CC="$lt_save_CC"
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144 ac_config_commands="$ac_config_commands libtool"
11145
11146
11147
11148
11149 # Only expand once:
11150
11151
11152 ac_ext=c
11153 ac_cpp='$CPP $CPPFLAGS'
11154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11157 if test -n "$ac_tool_prefix"; then
11158 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11159 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11160 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11161 $as_echo_n "checking for $ac_word... " >&6; }
11162 if test "${ac_cv_prog_CC+set}" = set; then
11163 $as_echo_n "(cached) " >&6
11164 else
11165 if test -n "$CC"; then
11166 ac_cv_prog_CC="$CC" # Let the user override the test.
11167 else
11168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11169 for as_dir in $PATH
11170 do
11171 IFS=$as_save_IFS
11172 test -z "$as_dir" && as_dir=.
11173 for ac_exec_ext in '' $ac_executable_extensions; do
11174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11175 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11176 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11177 break 2
11178 fi
11179 done
11180 done
11181 IFS=$as_save_IFS
11182
11183 fi
11184 fi
11185 CC=$ac_cv_prog_CC
11186 if test -n "$CC"; then
11187 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11188 $as_echo "$CC" >&6; }
11189 else
11190 { $as_echo "$as_me:$LINENO: result: no" >&5
11191 $as_echo "no" >&6; }
11192 fi
11193
11194
11195 fi
11196 if test -z "$ac_cv_prog_CC"; then
11197 ac_ct_CC=$CC
11198 # Extract the first word of "gcc", so it can be a program name with args.
11199 set dummy gcc; ac_word=$2
11200 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11201 $as_echo_n "checking for $ac_word... " >&6; }
11202 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11203 $as_echo_n "(cached) " >&6
11204 else
11205 if test -n "$ac_ct_CC"; then
11206 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11207 else
11208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11209 for as_dir in $PATH
11210 do
11211 IFS=$as_save_IFS
11212 test -z "$as_dir" && as_dir=.
11213 for ac_exec_ext in '' $ac_executable_extensions; do
11214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11215 ac_cv_prog_ac_ct_CC="gcc"
11216 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11217 break 2
11218 fi
11219 done
11220 done
11221 IFS=$as_save_IFS
11222
11223 fi
11224 fi
11225 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11226 if test -n "$ac_ct_CC"; then
11227 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11228 $as_echo "$ac_ct_CC" >&6; }
11229 else
11230 { $as_echo "$as_me:$LINENO: result: no" >&5
11231 $as_echo "no" >&6; }
11232 fi
11233
11234 if test "x$ac_ct_CC" = x; then
11235 CC=""
11236 else
11237 case $cross_compiling:$ac_tool_warned in
11238 yes:)
11239 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11241 ac_tool_warned=yes ;;
11242 esac
11243 CC=$ac_ct_CC
11244 fi
11245 else
11246 CC="$ac_cv_prog_CC"
11247 fi
11248
11249 if test -z "$CC"; then
11250 if test -n "$ac_tool_prefix"; then
11251 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11252 set dummy ${ac_tool_prefix}cc; ac_word=$2
11253 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11254 $as_echo_n "checking for $ac_word... " >&6; }
11255 if test "${ac_cv_prog_CC+set}" = set; then
11256 $as_echo_n "(cached) " >&6
11257 else
11258 if test -n "$CC"; then
11259 ac_cv_prog_CC="$CC" # Let the user override the test.
11260 else
11261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11262 for as_dir in $PATH
11263 do
11264 IFS=$as_save_IFS
11265 test -z "$as_dir" && as_dir=.
11266 for ac_exec_ext in '' $ac_executable_extensions; do
11267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11268 ac_cv_prog_CC="${ac_tool_prefix}cc"
11269 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11270 break 2
11271 fi
11272 done
11273 done
11274 IFS=$as_save_IFS
11275
11276 fi
11277 fi
11278 CC=$ac_cv_prog_CC
11279 if test -n "$CC"; then
11280 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11281 $as_echo "$CC" >&6; }
11282 else
11283 { $as_echo "$as_me:$LINENO: result: no" >&5
11284 $as_echo "no" >&6; }
11285 fi
11286
11287
11288 fi
11289 fi
11290 if test -z "$CC"; then
11291 # Extract the first word of "cc", so it can be a program name with args.
11292 set dummy cc; ac_word=$2
11293 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11294 $as_echo_n "checking for $ac_word... " >&6; }
11295 if test "${ac_cv_prog_CC+set}" = set; then
11296 $as_echo_n "(cached) " >&6
11297 else
11298 if test -n "$CC"; then
11299 ac_cv_prog_CC="$CC" # Let the user override the test.
11300 else
11301 ac_prog_rejected=no
11302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11303 for as_dir in $PATH
11304 do
11305 IFS=$as_save_IFS
11306 test -z "$as_dir" && as_dir=.
11307 for ac_exec_ext in '' $ac_executable_extensions; do
11308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11309 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11310 ac_prog_rejected=yes
11311 continue
11312 fi
11313 ac_cv_prog_CC="cc"
11314 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11315 break 2
11316 fi
11317 done
11318 done
11319 IFS=$as_save_IFS
11320
11321 if test $ac_prog_rejected = yes; then
11322 # We found a bogon in the path, so make sure we never use it.
11323 set dummy $ac_cv_prog_CC
11324 shift
11325 if test $# != 0; then
11326 # We chose a different compiler from the bogus one.
11327 # However, it has the same basename, so the bogon will be chosen
11328 # first if we set CC to just the basename; use the full file name.
11329 shift
11330 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11331 fi
11332 fi
11333 fi
11334 fi
11335 CC=$ac_cv_prog_CC
11336 if test -n "$CC"; then
11337 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11338 $as_echo "$CC" >&6; }
11339 else
11340 { $as_echo "$as_me:$LINENO: result: no" >&5
11341 $as_echo "no" >&6; }
11342 fi
11343
11344
11345 fi
11346 if test -z "$CC"; then
11347 if test -n "$ac_tool_prefix"; then
11348 for ac_prog in cl.exe
11349 do
11350 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11351 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11352 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11353 $as_echo_n "checking for $ac_word... " >&6; }
11354 if test "${ac_cv_prog_CC+set}" = set; then
11355 $as_echo_n "(cached) " >&6
11356 else
11357 if test -n "$CC"; then
11358 ac_cv_prog_CC="$CC" # Let the user override the test.
11359 else
11360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11361 for as_dir in $PATH
11362 do
11363 IFS=$as_save_IFS
11364 test -z "$as_dir" && as_dir=.
11365 for ac_exec_ext in '' $ac_executable_extensions; do
11366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11367 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11368 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11369 break 2
11370 fi
11371 done
11372 done
11373 IFS=$as_save_IFS
11374
11375 fi
11376 fi
11377 CC=$ac_cv_prog_CC
11378 if test -n "$CC"; then
11379 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11380 $as_echo "$CC" >&6; }
11381 else
11382 { $as_echo "$as_me:$LINENO: result: no" >&5
11383 $as_echo "no" >&6; }
11384 fi
11385
11386
11387 test -n "$CC" && break
11388 done
11389 fi
11390 if test -z "$CC"; then
11391 ac_ct_CC=$CC
11392 for ac_prog in cl.exe
11393 do
11394 # Extract the first word of "$ac_prog", so it can be a program name with args.
11395 set dummy $ac_prog; ac_word=$2
11396 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11397 $as_echo_n "checking for $ac_word... " >&6; }
11398 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11399 $as_echo_n "(cached) " >&6
11400 else
11401 if test -n "$ac_ct_CC"; then
11402 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11403 else
11404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11405 for as_dir in $PATH
11406 do
11407 IFS=$as_save_IFS
11408 test -z "$as_dir" && as_dir=.
11409 for ac_exec_ext in '' $ac_executable_extensions; do
11410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11411 ac_cv_prog_ac_ct_CC="$ac_prog"
11412 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11413 break 2
11414 fi
11415 done
11416 done
11417 IFS=$as_save_IFS
11418
11419 fi
11420 fi
11421 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11422 if test -n "$ac_ct_CC"; then
11423 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11424 $as_echo "$ac_ct_CC" >&6; }
11425 else
11426 { $as_echo "$as_me:$LINENO: result: no" >&5
11427 $as_echo "no" >&6; }
11428 fi
11429
11430
11431 test -n "$ac_ct_CC" && break
11432 done
11433
11434 if test "x$ac_ct_CC" = x; then
11435 CC=""
11436 else
11437 case $cross_compiling:$ac_tool_warned in
11438 yes:)
11439 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11441 ac_tool_warned=yes ;;
11442 esac
11443 CC=$ac_ct_CC
11444 fi
11445 fi
11446
11447 fi
11448
11449
11450 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11452 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11453 See \`config.log' for more details." >&5
11454 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
11455 See \`config.log' for more details." >&2;}
11456 { (exit 1); exit 1; }; }; }
11457
11458 # Provide some information about the compiler.
11459 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
11460 set X $ac_compile
11461 ac_compiler=$2
11462 { (ac_try="$ac_compiler --version >&5"
11463 case "(($ac_try" in
11464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11465 *) ac_try_echo=$ac_try;;
11466 esac
11467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11468 $as_echo "$ac_try_echo") >&5
11469 (eval "$ac_compiler --version >&5") 2>&5
11470 ac_status=$?
11471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); }
11473 { (ac_try="$ac_compiler -v >&5"
11474 case "(($ac_try" in
11475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11476 *) ac_try_echo=$ac_try;;
11477 esac
11478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11479 $as_echo "$ac_try_echo") >&5
11480 (eval "$ac_compiler -v >&5") 2>&5
11481 ac_status=$?
11482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); }
11484 { (ac_try="$ac_compiler -V >&5"
11485 case "(($ac_try" in
11486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11487 *) ac_try_echo=$ac_try;;
11488 esac
11489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11490 $as_echo "$ac_try_echo") >&5
11491 (eval "$ac_compiler -V >&5") 2>&5
11492 ac_status=$?
11493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494 (exit $ac_status); }
11495
11496 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11497 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11498 if test "${ac_cv_c_compiler_gnu+set}" = set; then
11499 $as_echo_n "(cached) " >&6
11500 else
11501 cat >conftest.$ac_ext <<_ACEOF
11502 /* confdefs.h. */
11503 _ACEOF
11504 cat confdefs.h >>conftest.$ac_ext
11505 cat >>conftest.$ac_ext <<_ACEOF
11506 /* end confdefs.h. */
11507
11508 int
11509 main ()
11510 {
11511 #ifndef __GNUC__
11512 choke me
11513 #endif
11514
11515 ;
11516 return 0;
11517 }
11518 _ACEOF
11519 rm -f conftest.$ac_objext
11520 if { (ac_try="$ac_compile"
11521 case "(($ac_try" in
11522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11523 *) ac_try_echo=$ac_try;;
11524 esac
11525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11526 $as_echo "$ac_try_echo") >&5
11527 (eval "$ac_compile") 2>conftest.er1
11528 ac_status=$?
11529 grep -v '^ *+' conftest.er1 >conftest.err
11530 rm -f conftest.er1
11531 cat conftest.err >&5
11532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); } && {
11534 test -z "$ac_c_werror_flag" ||
11535 test ! -s conftest.err
11536 } && test -s conftest.$ac_objext; then
11537 ac_compiler_gnu=yes
11538 else
11539 $as_echo "$as_me: failed program was:" >&5
11540 sed 's/^/| /' conftest.$ac_ext >&5
11541
11542 ac_compiler_gnu=no
11543 fi
11544
11545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11546 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11547
11548 fi
11549 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11550 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11551 if test $ac_compiler_gnu = yes; then
11552 GCC=yes
11553 else
11554 GCC=
11555 fi
11556 ac_test_CFLAGS=${CFLAGS+set}
11557 ac_save_CFLAGS=$CFLAGS
11558 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11559 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11560 if test "${ac_cv_prog_cc_g+set}" = set; then
11561 $as_echo_n "(cached) " >&6
11562 else
11563 ac_save_c_werror_flag=$ac_c_werror_flag
11564 ac_c_werror_flag=yes
11565 ac_cv_prog_cc_g=no
11566 CFLAGS="-g"
11567 cat >conftest.$ac_ext <<_ACEOF
11568 /* confdefs.h. */
11569 _ACEOF
11570 cat confdefs.h >>conftest.$ac_ext
11571 cat >>conftest.$ac_ext <<_ACEOF
11572 /* end confdefs.h. */
11573
11574 int
11575 main ()
11576 {
11577
11578 ;
11579 return 0;
11580 }
11581 _ACEOF
11582 rm -f conftest.$ac_objext
11583 if { (ac_try="$ac_compile"
11584 case "(($ac_try" in
11585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11586 *) ac_try_echo=$ac_try;;
11587 esac
11588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11589 $as_echo "$ac_try_echo") >&5
11590 (eval "$ac_compile") 2>conftest.er1
11591 ac_status=$?
11592 grep -v '^ *+' conftest.er1 >conftest.err
11593 rm -f conftest.er1
11594 cat conftest.err >&5
11595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596 (exit $ac_status); } && {
11597 test -z "$ac_c_werror_flag" ||
11598 test ! -s conftest.err
11599 } && test -s conftest.$ac_objext; then
11600 ac_cv_prog_cc_g=yes
11601 else
11602 $as_echo "$as_me: failed program was:" >&5
11603 sed 's/^/| /' conftest.$ac_ext >&5
11604
11605 CFLAGS=""
11606 cat >conftest.$ac_ext <<_ACEOF
11607 /* confdefs.h. */
11608 _ACEOF
11609 cat confdefs.h >>conftest.$ac_ext
11610 cat >>conftest.$ac_ext <<_ACEOF
11611 /* end confdefs.h. */
11612
11613 int
11614 main ()
11615 {
11616
11617 ;
11618 return 0;
11619 }
11620 _ACEOF
11621 rm -f conftest.$ac_objext
11622 if { (ac_try="$ac_compile"
11623 case "(($ac_try" in
11624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11625 *) ac_try_echo=$ac_try;;
11626 esac
11627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11628 $as_echo "$ac_try_echo") >&5
11629 (eval "$ac_compile") 2>conftest.er1
11630 ac_status=$?
11631 grep -v '^ *+' conftest.er1 >conftest.err
11632 rm -f conftest.er1
11633 cat conftest.err >&5
11634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); } && {
11636 test -z "$ac_c_werror_flag" ||
11637 test ! -s conftest.err
11638 } && test -s conftest.$ac_objext; then
11639 :
11640 else
11641 $as_echo "$as_me: failed program was:" >&5
11642 sed 's/^/| /' conftest.$ac_ext >&5
11643
11644 ac_c_werror_flag=$ac_save_c_werror_flag
11645 CFLAGS="-g"
11646 cat >conftest.$ac_ext <<_ACEOF
11647 /* confdefs.h. */
11648 _ACEOF
11649 cat confdefs.h >>conftest.$ac_ext
11650 cat >>conftest.$ac_ext <<_ACEOF
11651 /* end confdefs.h. */
11652
11653 int
11654 main ()
11655 {
11656
11657 ;
11658 return 0;
11659 }
11660 _ACEOF
11661 rm -f conftest.$ac_objext
11662 if { (ac_try="$ac_compile"
11663 case "(($ac_try" in
11664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11665 *) ac_try_echo=$ac_try;;
11666 esac
11667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11668 $as_echo "$ac_try_echo") >&5
11669 (eval "$ac_compile") 2>conftest.er1
11670 ac_status=$?
11671 grep -v '^ *+' conftest.er1 >conftest.err
11672 rm -f conftest.er1
11673 cat conftest.err >&5
11674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); } && {
11676 test -z "$ac_c_werror_flag" ||
11677 test ! -s conftest.err
11678 } && test -s conftest.$ac_objext; then
11679 ac_cv_prog_cc_g=yes
11680 else
11681 $as_echo "$as_me: failed program was:" >&5
11682 sed 's/^/| /' conftest.$ac_ext >&5
11683
11684
11685 fi
11686
11687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11688 fi
11689
11690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11691 fi
11692
11693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11694 ac_c_werror_flag=$ac_save_c_werror_flag
11695 fi
11696 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11697 $as_echo "$ac_cv_prog_cc_g" >&6; }
11698 if test "$ac_test_CFLAGS" = set; then
11699 CFLAGS=$ac_save_CFLAGS
11700 elif test $ac_cv_prog_cc_g = yes; then
11701 if test "$GCC" = yes; then
11702 CFLAGS="-g -O2"
11703 else
11704 CFLAGS="-g"
11705 fi
11706 else
11707 if test "$GCC" = yes; then
11708 CFLAGS="-O2"
11709 else
11710 CFLAGS=
11711 fi
11712 fi
11713 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
11714 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11715 if test "${ac_cv_prog_cc_c89+set}" = set; then
11716 $as_echo_n "(cached) " >&6
11717 else
11718 ac_cv_prog_cc_c89=no
11719 ac_save_CC=$CC
11720 cat >conftest.$ac_ext <<_ACEOF
11721 /* confdefs.h. */
11722 _ACEOF
11723 cat confdefs.h >>conftest.$ac_ext
11724 cat >>conftest.$ac_ext <<_ACEOF
11725 /* end confdefs.h. */
11726 #include <stdarg.h>
11727 #include <stdio.h>
11728 #include <sys/types.h>
11729 #include <sys/stat.h>
11730 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11731 struct buf { int x; };
11732 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11733 static char *e (p, i)
11734 char **p;
11735 int i;
11736 {
11737 return p[i];
11738 }
11739 static char *f (char * (*g) (char **, int), char **p, ...)
11740 {
11741 char *s;
11742 va_list v;
11743 va_start (v,p);
11744 s = g (p, va_arg (v,int));
11745 va_end (v);
11746 return s;
11747 }
11748
11749 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11750 function prototypes and stuff, but not '\xHH' hex character constants.
11751 These don't provoke an error unfortunately, instead are silently treated
11752 as 'x'. The following induces an error, until -std is added to get
11753 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11754 array size at least. It's necessary to write '\x00'==0 to get something
11755 that's true only with -std. */
11756 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11757
11758 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11759 inside strings and character constants. */
11760 #define FOO(x) 'x'
11761 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11762
11763 int test (int i, double x);
11764 struct s1 {int (*f) (int a);};
11765 struct s2 {int (*f) (double a);};
11766 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11767 int argc;
11768 char **argv;
11769 int
11770 main ()
11771 {
11772 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11773 ;
11774 return 0;
11775 }
11776 _ACEOF
11777 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11778 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11779 do
11780 CC="$ac_save_CC $ac_arg"
11781 rm -f conftest.$ac_objext
11782 if { (ac_try="$ac_compile"
11783 case "(($ac_try" in
11784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11785 *) ac_try_echo=$ac_try;;
11786 esac
11787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11788 $as_echo "$ac_try_echo") >&5
11789 (eval "$ac_compile") 2>conftest.er1
11790 ac_status=$?
11791 grep -v '^ *+' conftest.er1 >conftest.err
11792 rm -f conftest.er1
11793 cat conftest.err >&5
11794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); } && {
11796 test -z "$ac_c_werror_flag" ||
11797 test ! -s conftest.err
11798 } && test -s conftest.$ac_objext; then
11799 ac_cv_prog_cc_c89=$ac_arg
11800 else
11801 $as_echo "$as_me: failed program was:" >&5
11802 sed 's/^/| /' conftest.$ac_ext >&5
11803
11804
11805 fi
11806
11807 rm -f core conftest.err conftest.$ac_objext
11808 test "x$ac_cv_prog_cc_c89" != "xno" && break
11809 done
11810 rm -f conftest.$ac_ext
11811 CC=$ac_save_CC
11812
11813 fi
11814 # AC_CACHE_VAL
11815 case "x$ac_cv_prog_cc_c89" in
11816 x)
11817 { $as_echo "$as_me:$LINENO: result: none needed" >&5
11818 $as_echo "none needed" >&6; } ;;
11819 xno)
11820 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
11821 $as_echo "unsupported" >&6; } ;;
11822 *)
11823 CC="$CC $ac_cv_prog_cc_c89"
11824 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
11825 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11826 esac
11827
11828
11829 ac_ext=c
11830 ac_cpp='$CPP $CPPFLAGS'
11831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11834
11835 depcc="$CC" am_compiler_list=
11836
11837 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11838 $as_echo_n "checking dependency style of $depcc... " >&6; }
11839 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
11840 $as_echo_n "(cached) " >&6
11841 else
11842 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11843 # We make a subdir and do the tests there. Otherwise we can end up
11844 # making bogus files that we don't know about and never remove. For
11845 # instance it was reported that on HP-UX the gcc test will end up
11846 # making a dummy file named `D' -- because `-MD' means `put the output
11847 # in D'.
11848 mkdir conftest.dir
11849 # Copy depcomp to subdir because otherwise we won't find it if we're
11850 # using a relative directory.
11851 cp "$am_depcomp" conftest.dir
11852 cd conftest.dir
11853 # We will build objects and dependencies in a subdirectory because
11854 # it helps to detect inapplicable dependency modes. For instance
11855 # both Tru64's cc and ICC support -MD to output dependencies as a
11856 # side effect of compilation, but ICC will put the dependencies in
11857 # the current directory while Tru64 will put them in the object
11858 # directory.
11859 mkdir sub
11860
11861 am_cv_CC_dependencies_compiler_type=none
11862 if test "$am_compiler_list" = ""; then
11863 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11864 fi
11865 am__universal=false
11866 case " $depcc " in #(
11867 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11868 esac
11869
11870 for depmode in $am_compiler_list; do
11871 # Setup a source with many dependencies, because some compilers
11872 # like to wrap large dependency lists on column 80 (with \), and
11873 # we should not choose a depcomp mode which is confused by this.
11874 #
11875 # We need to recreate these files for each test, as the compiler may
11876 # overwrite some of them when testing with obscure command lines.
11877 # This happens at least with the AIX C compiler.
11878 : > sub/conftest.c
11879 for i in 1 2 3 4 5 6; do
11880 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11881 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11882 # Solaris 8's {/usr,}/bin/sh.
11883 touch sub/conftst$i.h
11884 done
11885 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11886
11887 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11888 # mode. It turns out that the SunPro C++ compiler does not properly
11889 # handle `-M -o', and we need to detect this. Also, some Intel
11890 # versions had trouble with output in subdirs
11891 am__obj=sub/conftest.${OBJEXT-o}
11892 am__minus_obj="-o $am__obj"
11893 case $depmode in
11894 gcc)
11895 # This depmode causes a compiler race in universal mode.
11896 test "$am__universal" = false || continue
11897 ;;
11898 nosideeffect)
11899 # after this tag, mechanisms are not by side-effect, so they'll
11900 # only be used when explicitly requested
11901 if test "x$enable_dependency_tracking" = xyes; then
11902 continue
11903 else
11904 break
11905 fi
11906 ;;
11907 msvisualcpp | msvcmsys)
11908 # This compiler won't grok `-c -o', but also, the minuso test has
11909 # not run yet. These depmodes are late enough in the game, and
11910 # so weak that their functioning should not be impacted.
11911 am__obj=conftest.${OBJEXT-o}
11912 am__minus_obj=
11913 ;;
11914 none) break ;;
11915 esac
11916 if depmode=$depmode \
11917 source=sub/conftest.c object=$am__obj \
11918 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11919 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11920 >/dev/null 2>conftest.err &&
11921 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11922 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11923 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11924 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11925 # icc doesn't choke on unknown options, it will just issue warnings
11926 # or remarks (even with -Werror). So we grep stderr for any message
11927 # that says an option was ignored or not supported.
11928 # When given -MP, icc 7.0 and 7.1 complain thusly:
11929 # icc: Command line warning: ignoring option '-M'; no argument required
11930 # The diagnosis changed in icc 8.0:
11931 # icc: Command line remark: option '-MP' not supported
11932 if (grep 'ignoring option' conftest.err ||
11933 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11934 am_cv_CC_dependencies_compiler_type=$depmode
11935 break
11936 fi
11937 fi
11938 done
11939
11940 cd ..
11941 rm -rf conftest.dir
11942 else
11943 am_cv_CC_dependencies_compiler_type=none
11944 fi
11945
11946 fi
11947 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
11948 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11949 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11950
11951 if
11952 test "x$enable_dependency_tracking" != xno \
11953 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11954 am__fastdepCC_TRUE=
11955 am__fastdepCC_FALSE='#'
11956 else
11957 am__fastdepCC_TRUE='#'
11958 am__fastdepCC_FALSE=
11959 fi
11960
11961
11962
11963
11964 if test "x$GCC" = xyes ; then
11965 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
11966 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
11967 -Wbad-function-cast"
11968 case `$CC -dumpversion` in
11969 3.4.* | 4.*)
11970 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
11971 ;;
11972 esac
11973 else
11974 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
11975 $as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
11976 if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
11977 $as_echo_n "(cached) " >&6
11978 else
11979 cat >conftest.$ac_ext <<_ACEOF
11980 /* confdefs.h. */
11981 _ACEOF
11982 cat confdefs.h >>conftest.$ac_ext
11983 cat >>conftest.$ac_ext <<_ACEOF
11984 /* end confdefs.h. */
11985 $ac_includes_default
11986 int
11987 main ()
11988 {
11989 #ifndef __SUNPRO_C
11990 (void) __SUNPRO_C;
11991 #endif
11992
11993 ;
11994 return 0;
11995 }
11996 _ACEOF
11997 rm -f conftest.$ac_objext
11998 if { (ac_try="$ac_compile"
11999 case "(($ac_try" in
12000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12001 *) ac_try_echo=$ac_try;;
12002 esac
12003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12004 $as_echo "$ac_try_echo") >&5
12005 (eval "$ac_compile") 2>conftest.er1
12006 ac_status=$?
12007 grep -v '^ *+' conftest.er1 >conftest.err
12008 rm -f conftest.er1
12009 cat conftest.err >&5
12010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); } && {
12012 test -z "$ac_c_werror_flag" ||
12013 test ! -s conftest.err
12014 } && test -s conftest.$ac_objext; then
12015 ac_cv_have_decl___SUNPRO_C=yes
12016 else
12017 $as_echo "$as_me: failed program was:" >&5
12018 sed 's/^/| /' conftest.$ac_ext >&5
12019
12020 ac_cv_have_decl___SUNPRO_C=no
12021 fi
12022
12023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12024 fi
12025 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
12026 $as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
12027 if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
12028 SUNCC="yes"
12029 else
12030 SUNCC="no"
12031 fi
12032
12033 if test "x$SUNCC" = "xyes"; then
12034 CWARNFLAGS="-v"
12035 fi
12036 fi
12037
12038 # Check whether --enable-silent-rules was given.
12039 if test "${enable_silent_rules+set}" = set; then
12040 enableval=$enable_silent_rules;
12041 fi
12042
12043 case $enable_silent_rules in
12044 yes) AM_DEFAULT_VERBOSITY=0;;
12045 no) AM_DEFAULT_VERBOSITY=1;;
12046 *) AM_DEFAULT_VERBOSITY=0;;
12047 esac
12048 AM_BACKSLASH='\'
12049
12050
12051
12052 # Checks for pkg-config packages
12053
12054
12055 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12056 if test -n "$ac_tool_prefix"; then
12057 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12058 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12059 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12060 $as_echo_n "checking for $ac_word... " >&6; }
12061 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12062 $as_echo_n "(cached) " >&6
12063 else
12064 case $PKG_CONFIG in
12065 [\\/]* | ?:[\\/]*)
12066 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12067 ;;
12068 *)
12069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12070 for as_dir in $PATH
12071 do
12072 IFS=$as_save_IFS
12073 test -z "$as_dir" && as_dir=.
12074 for ac_exec_ext in '' $ac_executable_extensions; do
12075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12076 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12077 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12078 break 2
12079 fi
12080 done
12081 done
12082 IFS=$as_save_IFS
12083
12084 ;;
12085 esac
12086 fi
12087 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12088 if test -n "$PKG_CONFIG"; then
12089 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12090 $as_echo "$PKG_CONFIG" >&6; }
12091 else
12092 { $as_echo "$as_me:$LINENO: result: no" >&5
12093 $as_echo "no" >&6; }
12094 fi
12095
12096
12097 fi
12098 if test -z "$ac_cv_path_PKG_CONFIG"; then
12099 ac_pt_PKG_CONFIG=$PKG_CONFIG
12100 # Extract the first word of "pkg-config", so it can be a program name with args.
12101 set dummy pkg-config; ac_word=$2
12102 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12103 $as_echo_n "checking for $ac_word... " >&6; }
12104 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
12105 $as_echo_n "(cached) " >&6
12106 else
12107 case $ac_pt_PKG_CONFIG in
12108 [\\/]* | ?:[\\/]*)
12109 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12110 ;;
12111 *)
12112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12113 for as_dir in $PATH
12114 do
12115 IFS=$as_save_IFS
12116 test -z "$as_dir" && as_dir=.
12117 for ac_exec_ext in '' $ac_executable_extensions; do
12118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12119 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12120 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12121 break 2
12122 fi
12123 done
12124 done
12125 IFS=$as_save_IFS
12126
12127 ;;
12128 esac
12129 fi
12130 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12131 if test -n "$ac_pt_PKG_CONFIG"; then
12132 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
12133 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12134 else
12135 { $as_echo "$as_me:$LINENO: result: no" >&5
12136 $as_echo "no" >&6; }
12137 fi
12138
12139 if test "x$ac_pt_PKG_CONFIG" = x; then
12140 PKG_CONFIG=""
12141 else
12142 case $cross_compiling:$ac_tool_warned in
12143 yes:)
12144 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12146 ac_tool_warned=yes ;;
12147 esac
12148 PKG_CONFIG=$ac_pt_PKG_CONFIG
12149 fi
12150 else
12151 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12152 fi
12153
12154 fi
12155 if test -n "$PKG_CONFIG"; then
12156 _pkg_min_version=0.9.0
12157 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
12158 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12159 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12160 { $as_echo "$as_me:$LINENO: result: yes" >&5
12161 $as_echo "yes" >&6; }
12162 else
12163 { $as_echo "$as_me:$LINENO: result: no" >&5
12164 $as_echo "no" >&6; }
12165 PKG_CONFIG=""
12166 fi
12167
12168 fi
12169
12170 pkg_failed=no
12171 { $as_echo "$as_me:$LINENO: checking for ICE" >&5
12172 $as_echo_n "checking for ICE... " >&6; }
12173
12174 if test -n "$ICE_CFLAGS"; then
12175 pkg_cv_ICE_CFLAGS="$ICE_CFLAGS"
12176 elif test -n "$PKG_CONFIG"; then
12177 if test -n "$PKG_CONFIG" && \
12178 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto\"") >&5
12179 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
12180 ac_status=$?
12181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); }; then
12183 pkg_cv_ICE_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null`
12184 else
12185 pkg_failed=yes
12186 fi
12187 else
12188 pkg_failed=untried
12189 fi
12190 if test -n "$ICE_LIBS"; then
12191 pkg_cv_ICE_LIBS="$ICE_LIBS"
12192 elif test -n "$PKG_CONFIG"; then
12193 if test -n "$PKG_CONFIG" && \
12194 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto\"") >&5
12195 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
12196 ac_status=$?
12197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); }; then
12199 pkg_cv_ICE_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null`
12200 else
12201 pkg_failed=yes
12202 fi
12203 else
12204 pkg_failed=untried
12205 fi
12206
12207
12208
12209 if test $pkg_failed = yes; then
12210
12211 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12212 _pkg_short_errors_supported=yes
12213 else
12214 _pkg_short_errors_supported=no
12215 fi
12216 if test $_pkg_short_errors_supported = yes; then
12217 ICE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto" 2>&1`
12218 else
12219 ICE_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto" 2>&1`
12220 fi
12221 # Put the nasty error message in config.log where it belongs
12222 echo "$ICE_PKG_ERRORS" >&5
12223
12224 { { $as_echo "$as_me:$LINENO: error: Package requirements (xproto) were not met:
12225
12226 $ICE_PKG_ERRORS
12227
12228 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12229 installed software in a non-standard prefix.
12230
12231 Alternatively, you may set the environment variables ICE_CFLAGS
12232 and ICE_LIBS to avoid the need to call pkg-config.
12233 See the pkg-config man page for more details.
12234 " >&5
12235 $as_echo "$as_me: error: Package requirements (xproto) were not met:
12236
12237 $ICE_PKG_ERRORS
12238
12239 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12240 installed software in a non-standard prefix.
12241
12242 Alternatively, you may set the environment variables ICE_CFLAGS
12243 and ICE_LIBS to avoid the need to call pkg-config.
12244 See the pkg-config man page for more details.
12245 " >&2;}
12246 { (exit 1); exit 1; }; }
12247 elif test $pkg_failed = untried; then
12248 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12250 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
12251 is in your PATH or set the PKG_CONFIG environment variable to the full
12252 path to pkg-config.
12253
12254 Alternatively, you may set the environment variables ICE_CFLAGS
12255 and ICE_LIBS to avoid the need to call pkg-config.
12256 See the pkg-config man page for more details.
12257
12258 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12259 See \`config.log' for more details." >&5
12260 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
12261 is in your PATH or set the PKG_CONFIG environment variable to the full
12262 path to pkg-config.
12263
12264 Alternatively, you may set the environment variables ICE_CFLAGS
12265 and ICE_LIBS to avoid the need to call pkg-config.
12266 See the pkg-config man page for more details.
12267
12268 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12269 See \`config.log' for more details." >&2;}
12270 { (exit 1); exit 1; }; }; }
12271 else
12272 ICE_CFLAGS=$pkg_cv_ICE_CFLAGS
12273 ICE_LIBS=$pkg_cv_ICE_LIBS
12274 { $as_echo "$as_me:$LINENO: result: yes" >&5
12275 $as_echo "yes" >&6; }
12276 :
12277 fi
12278 ICE_CFLAGS="$CWARNFLAGS $ICE_CFLAGS"
12279
12280
12281
12282
12283 pkg_failed=no
12284 { $as_echo "$as_me:$LINENO: checking for XTRANS" >&5
12285 $as_echo_n "checking for XTRANS... " >&6; }
12286
12287 if test -n "$XTRANS_CFLAGS"; then
12288 pkg_cv_XTRANS_CFLAGS="$XTRANS_CFLAGS"
12289 elif test -n "$PKG_CONFIG"; then
12290 if test -n "$PKG_CONFIG" && \
12291 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xtrans\"") >&5
12292 ($PKG_CONFIG --exists --print-errors "xtrans") 2>&5
12293 ac_status=$?
12294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); }; then
12296 pkg_cv_XTRANS_CFLAGS=`$PKG_CONFIG --cflags "xtrans" 2>/dev/null`
12297 else
12298 pkg_failed=yes
12299 fi
12300 else
12301 pkg_failed=untried
12302 fi
12303 if test -n "$XTRANS_LIBS"; then
12304 pkg_cv_XTRANS_LIBS="$XTRANS_LIBS"
12305 elif test -n "$PKG_CONFIG"; then
12306 if test -n "$PKG_CONFIG" && \
12307 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xtrans\"") >&5
12308 ($PKG_CONFIG --exists --print-errors "xtrans") 2>&5
12309 ac_status=$?
12310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); }; then
12312 pkg_cv_XTRANS_LIBS=`$PKG_CONFIG --libs "xtrans" 2>/dev/null`
12313 else
12314 pkg_failed=yes
12315 fi
12316 else
12317 pkg_failed=untried
12318 fi
12319
12320
12321
12322 if test $pkg_failed = yes; then
12323
12324 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12325 _pkg_short_errors_supported=yes
12326 else
12327 _pkg_short_errors_supported=no
12328 fi
12329 if test $_pkg_short_errors_supported = yes; then
12330 XTRANS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xtrans" 2>&1`
12331 else
12332 XTRANS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xtrans" 2>&1`
12333 fi
12334 # Put the nasty error message in config.log where it belongs
12335 echo "$XTRANS_PKG_ERRORS" >&5
12336
12337 { { $as_echo "$as_me:$LINENO: error: Package requirements (xtrans) were not met:
12338
12339 $XTRANS_PKG_ERRORS
12340
12341 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12342 installed software in a non-standard prefix.
12343
12344 Alternatively, you may set the environment variables XTRANS_CFLAGS
12345 and XTRANS_LIBS to avoid the need to call pkg-config.
12346 See the pkg-config man page for more details.
12347 " >&5
12348 $as_echo "$as_me: error: Package requirements (xtrans) were not met:
12349
12350 $XTRANS_PKG_ERRORS
12351
12352 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12353 installed software in a non-standard prefix.
12354
12355 Alternatively, you may set the environment variables XTRANS_CFLAGS
12356 and XTRANS_LIBS to avoid the need to call pkg-config.
12357 See the pkg-config man page for more details.
12358 " >&2;}
12359 { (exit 1); exit 1; }; }
12360 elif test $pkg_failed = untried; then
12361 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12362 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12363 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
12364 is in your PATH or set the PKG_CONFIG environment variable to the full
12365 path to pkg-config.
12366
12367 Alternatively, you may set the environment variables XTRANS_CFLAGS
12368 and XTRANS_LIBS to avoid the need to call pkg-config.
12369 See the pkg-config man page for more details.
12370
12371 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12372 See \`config.log' for more details." >&5
12373 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
12374 is in your PATH or set the PKG_CONFIG environment variable to the full
12375 path to pkg-config.
12376
12377 Alternatively, you may set the environment variables XTRANS_CFLAGS
12378 and XTRANS_LIBS to avoid the need to call pkg-config.
12379 See the pkg-config man page for more details.
12380
12381 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12382 See \`config.log' for more details." >&2;}
12383 { (exit 1); exit 1; }; }; }
12384 else
12385 XTRANS_CFLAGS=$pkg_cv_XTRANS_CFLAGS
12386 XTRANS_LIBS=$pkg_cv_XTRANS_LIBS
12387 { $as_echo "$as_me:$LINENO: result: yes" >&5
12388 $as_echo "yes" >&6; }
12389 :
12390 fi
12391
12392
12393
12394 # Transport selection macro from xtrans.m4
12395 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12396 $as_echo_n "checking return type of signal handlers... " >&6; }
12397 if test "${ac_cv_type_signal+set}" = set; then
12398 $as_echo_n "(cached) " >&6
12399 else
12400 cat >conftest.$ac_ext <<_ACEOF
12401 /* confdefs.h. */
12402 _ACEOF
12403 cat confdefs.h >>conftest.$ac_ext
12404 cat >>conftest.$ac_ext <<_ACEOF
12405 /* end confdefs.h. */
12406 #include <sys/types.h>
12407 #include <signal.h>
12408
12409 int
12410 main ()
12411 {
12412 return *(signal (0, 0)) (0) == 1;
12413 ;
12414 return 0;
12415 }
12416 _ACEOF
12417 rm -f conftest.$ac_objext
12418 if { (ac_try="$ac_compile"
12419 case "(($ac_try" in
12420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12421 *) ac_try_echo=$ac_try;;
12422 esac
12423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12424 $as_echo "$ac_try_echo") >&5
12425 (eval "$ac_compile") 2>conftest.er1
12426 ac_status=$?
12427 grep -v '^ *+' conftest.er1 >conftest.err
12428 rm -f conftest.er1
12429 cat conftest.err >&5
12430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); } && {
12432 test -z "$ac_c_werror_flag" ||
12433 test ! -s conftest.err
12434 } && test -s conftest.$ac_objext; then
12435 ac_cv_type_signal=int
12436 else
12437 $as_echo "$as_me: failed program was:" >&5
12438 sed 's/^/| /' conftest.$ac_ext >&5
12439
12440 ac_cv_type_signal=void
12441 fi
12442
12443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12444 fi
12445 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12446 $as_echo "$ac_cv_type_signal" >&6; }
12447
12448 cat >>confdefs.h <<_ACEOF
12449 #define RETSIGTYPE $ac_cv_type_signal
12450 _ACEOF
12451
12452
12453
12454
12455
12456 case $host_os in
12457 mingw*) unixdef="no" ;;
12458 *) unixdef="yes" ;;
12459 esac
12460 # Check whether --enable-unix-transport was given.
12461 if test "${enable_unix_transport+set}" = set; then
12462 enableval=$enable_unix_transport; UNIXCONN=$enableval
12463 else
12464 UNIXCONN=$unixdef
12465 fi
12466
12467 { $as_echo "$as_me:$LINENO: checking if Xtrans should support UNIX socket connections" >&5
12468 $as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
12469 if test "$UNIXCONN" = "yes"; then
12470
12471 cat >>confdefs.h <<\_ACEOF
12472 #define UNIXCONN 1
12473 _ACEOF
12474
12475 fi
12476 { $as_echo "$as_me:$LINENO: result: $UNIXCONN" >&5
12477 $as_echo "$UNIXCONN" >&6; }
12478 # Check whether --enable-tcp-transport was given.
12479 if test "${enable_tcp_transport+set}" = set; then
12480 enableval=$enable_tcp_transport; TCPCONN=$enableval
12481 else
12482 TCPCONN=yes
12483 fi
12484
12485 { $as_echo "$as_me:$LINENO: checking if Xtrans should support TCP socket connections" >&5
12486 $as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
12487 { $as_echo "$as_me:$LINENO: result: $TCPCONN" >&5
12488 $as_echo "$TCPCONN" >&6; }
12489 if test "$TCPCONN" = "yes"; then
12490
12491 cat >>confdefs.h <<\_ACEOF
12492 #define TCPCONN 1
12493 _ACEOF
12494
12495
12496 # SVR4 hides these in libraries other than libc
12497 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
12498 $as_echo_n "checking for library containing socket... " >&6; }
12499 if test "${ac_cv_search_socket+set}" = set; then
12500 $as_echo_n "(cached) " >&6
12501 else
12502 ac_func_search_save_LIBS=$LIBS
12503 cat >conftest.$ac_ext <<_ACEOF
12504 /* confdefs.h. */
12505 _ACEOF
12506 cat confdefs.h >>conftest.$ac_ext
12507 cat >>conftest.$ac_ext <<_ACEOF
12508 /* end confdefs.h. */
12509
12510 /* Override any GCC internal prototype to avoid an error.
12511 Use char because int might match the return type of a GCC
12512 builtin and then its argument prototype would still apply. */
12513 #ifdef __cplusplus
12514 extern "C"
12515 #endif
12516 char socket ();
12517 int
12518 main ()
12519 {
12520 return socket ();
12521 ;
12522 return 0;
12523 }
12524 _ACEOF
12525 for ac_lib in '' socket; do
12526 if test -z "$ac_lib"; then
12527 ac_res="none required"
12528 else
12529 ac_res=-l$ac_lib
12530 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12531 fi
12532 rm -f conftest.$ac_objext conftest$ac_exeext
12533 if { (ac_try="$ac_link"
12534 case "(($ac_try" in
12535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12536 *) ac_try_echo=$ac_try;;
12537 esac
12538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12539 $as_echo "$ac_try_echo") >&5
12540 (eval "$ac_link") 2>conftest.er1
12541 ac_status=$?
12542 grep -v '^ *+' conftest.er1 >conftest.err
12543 rm -f conftest.er1
12544 cat conftest.err >&5
12545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); } && {
12547 test -z "$ac_c_werror_flag" ||
12548 test ! -s conftest.err
12549 } && test -s conftest$ac_exeext && {
12550 test "$cross_compiling" = yes ||
12551 $as_test_x conftest$ac_exeext
12552 }; then
12553 ac_cv_search_socket=$ac_res
12554 else
12555 $as_echo "$as_me: failed program was:" >&5
12556 sed 's/^/| /' conftest.$ac_ext >&5
12557
12558
12559 fi
12560
12561 rm -rf conftest.dSYM
12562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12563 conftest$ac_exeext
12564 if test "${ac_cv_search_socket+set}" = set; then
12565 break
12566 fi
12567 done
12568 if test "${ac_cv_search_socket+set}" = set; then
12569 :
12570 else
12571 ac_cv_search_socket=no
12572 fi
12573 rm conftest.$ac_ext
12574 LIBS=$ac_func_search_save_LIBS
12575 fi
12576 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
12577 $as_echo "$ac_cv_search_socket" >&6; }
12578 ac_res=$ac_cv_search_socket
12579 if test "$ac_res" != no; then
12580 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12581
12582 fi
12583
12584 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
12585 $as_echo_n "checking for library containing gethostbyname... " >&6; }
12586 if test "${ac_cv_search_gethostbyname+set}" = set; then
12587 $as_echo_n "(cached) " >&6
12588 else
12589 ac_func_search_save_LIBS=$LIBS
12590 cat >conftest.$ac_ext <<_ACEOF
12591 /* confdefs.h. */
12592 _ACEOF
12593 cat confdefs.h >>conftest.$ac_ext
12594 cat >>conftest.$ac_ext <<_ACEOF
12595 /* end confdefs.h. */
12596
12597 /* Override any GCC internal prototype to avoid an error.
12598 Use char because int might match the return type of a GCC
12599 builtin and then its argument prototype would still apply. */
12600 #ifdef __cplusplus
12601 extern "C"
12602 #endif
12603 char gethostbyname ();
12604 int
12605 main ()
12606 {
12607 return gethostbyname ();
12608 ;
12609 return 0;
12610 }
12611 _ACEOF
12612 for ac_lib in '' nsl; do
12613 if test -z "$ac_lib"; then
12614 ac_res="none required"
12615 else
12616 ac_res=-l$ac_lib
12617 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12618 fi
12619 rm -f conftest.$ac_objext conftest$ac_exeext
12620 if { (ac_try="$ac_link"
12621 case "(($ac_try" in
12622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12623 *) ac_try_echo=$ac_try;;
12624 esac
12625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12626 $as_echo "$ac_try_echo") >&5
12627 (eval "$ac_link") 2>conftest.er1
12628 ac_status=$?
12629 grep -v '^ *+' conftest.er1 >conftest.err
12630 rm -f conftest.er1
12631 cat conftest.err >&5
12632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); } && {
12634 test -z "$ac_c_werror_flag" ||
12635 test ! -s conftest.err
12636 } && test -s conftest$ac_exeext && {
12637 test "$cross_compiling" = yes ||
12638 $as_test_x conftest$ac_exeext
12639 }; then
12640 ac_cv_search_gethostbyname=$ac_res
12641 else
12642 $as_echo "$as_me: failed program was:" >&5
12643 sed 's/^/| /' conftest.$ac_ext >&5
12644
12645
12646 fi
12647
12648 rm -rf conftest.dSYM
12649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12650 conftest$ac_exeext
12651 if test "${ac_cv_search_gethostbyname+set}" = set; then
12652 break
12653 fi
12654 done
12655 if test "${ac_cv_search_gethostbyname+set}" = set; then
12656 :
12657 else
12658 ac_cv_search_gethostbyname=no
12659 fi
12660 rm conftest.$ac_ext
12661 LIBS=$ac_func_search_save_LIBS
12662 fi
12663 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
12664 $as_echo "$ac_cv_search_gethostbyname" >&6; }
12665 ac_res=$ac_cv_search_gethostbyname
12666 if test "$ac_res" != no; then
12667 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12668
12669 fi
12670
12671
12672 { $as_echo "$as_me:$LINENO: checking for main in -lws2_32" >&5
12673 $as_echo_n "checking for main in -lws2_32... " >&6; }
12674 if test "${ac_cv_lib_ws2_32_main+set}" = set; then
12675 $as_echo_n "(cached) " >&6
12676 else
12677 ac_check_lib_save_LIBS=$LIBS
12678 LIBS="-lws2_32 $LIBS"
12679 cat >conftest.$ac_ext <<_ACEOF
12680 /* confdefs.h. */
12681 _ACEOF
12682 cat confdefs.h >>conftest.$ac_ext
12683 cat >>conftest.$ac_ext <<_ACEOF
12684 /* end confdefs.h. */
12685
12686
12687 int
12688 main ()
12689 {
12690 return main ();
12691 ;
12692 return 0;
12693 }
12694 _ACEOF
12695 rm -f conftest.$ac_objext conftest$ac_exeext
12696 if { (ac_try="$ac_link"
12697 case "(($ac_try" in
12698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12699 *) ac_try_echo=$ac_try;;
12700 esac
12701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12702 $as_echo "$ac_try_echo") >&5
12703 (eval "$ac_link") 2>conftest.er1
12704 ac_status=$?
12705 grep -v '^ *+' conftest.er1 >conftest.err
12706 rm -f conftest.er1
12707 cat conftest.err >&5
12708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); } && {
12710 test -z "$ac_c_werror_flag" ||
12711 test ! -s conftest.err
12712 } && test -s conftest$ac_exeext && {
12713 test "$cross_compiling" = yes ||
12714 $as_test_x conftest$ac_exeext
12715 }; then
12716 ac_cv_lib_ws2_32_main=yes
12717 else
12718 $as_echo "$as_me: failed program was:" >&5
12719 sed 's/^/| /' conftest.$ac_ext >&5
12720
12721 ac_cv_lib_ws2_32_main=no
12722 fi
12723
12724 rm -rf conftest.dSYM
12725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12726 conftest$ac_exeext conftest.$ac_ext
12727 LIBS=$ac_check_lib_save_LIBS
12728 fi
12729 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_main" >&5
12730 $as_echo "$ac_cv_lib_ws2_32_main" >&6; }
12731 if test "x$ac_cv_lib_ws2_32_main" = x""yes; then
12732 cat >>confdefs.h <<_ACEOF
12733 #define HAVE_LIBWS2_32 1
12734 _ACEOF
12735
12736 LIBS="-lws2_32 $LIBS"
12737
12738 fi
12739 ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main
12740
12741
12742 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
12743 # Check whether --enable-ipv6 was given.
12744 if test "${enable_ipv6+set}" = set; then
12745 enableval=$enable_ipv6; IPV6CONN=$enableval
12746 else
12747 { $as_echo "$as_me:$LINENO: checking for getaddrinfo" >&5
12748 $as_echo_n "checking for getaddrinfo... " >&6; }
12749 if test "${ac_cv_func_getaddrinfo+set}" = set; then
12750 $as_echo_n "(cached) " >&6
12751 else
12752 cat >conftest.$ac_ext <<_ACEOF
12753 /* confdefs.h. */
12754 _ACEOF
12755 cat confdefs.h >>conftest.$ac_ext
12756 cat >>conftest.$ac_ext <<_ACEOF
12757 /* end confdefs.h. */
12758 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
12759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12760 #define getaddrinfo innocuous_getaddrinfo
12761
12762 /* System header to define __stub macros and hopefully few prototypes,
12763 which can conflict with char getaddrinfo (); below.
12764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12765 <limits.h> exists even on freestanding compilers. */
12766
12767 #ifdef __STDC__
12768 # include <limits.h>
12769 #else
12770 # include <assert.h>
12771 #endif
12772
12773 #undef getaddrinfo
12774
12775 /* Override any GCC internal prototype to avoid an error.
12776 Use char because int might match the return type of a GCC
12777 builtin and then its argument prototype would still apply. */
12778 #ifdef __cplusplus
12779 extern "C"
12780 #endif
12781 char getaddrinfo ();
12782 /* The GNU C library defines this for functions which it implements
12783 to always fail with ENOSYS. Some functions are actually named
12784 something starting with __ and the normal name is an alias. */
12785 #if defined __stub_getaddrinfo || defined __stub___getaddrinfo
12786 choke me
12787 #endif
12788
12789 int
12790 main ()
12791 {
12792 return getaddrinfo ();
12793 ;
12794 return 0;
12795 }
12796 _ACEOF
12797 rm -f conftest.$ac_objext conftest$ac_exeext
12798 if { (ac_try="$ac_link"
12799 case "(($ac_try" in
12800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12801 *) ac_try_echo=$ac_try;;
12802 esac
12803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12804 $as_echo "$ac_try_echo") >&5
12805 (eval "$ac_link") 2>conftest.er1
12806 ac_status=$?
12807 grep -v '^ *+' conftest.er1 >conftest.err
12808 rm -f conftest.er1
12809 cat conftest.err >&5
12810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); } && {
12812 test -z "$ac_c_werror_flag" ||
12813 test ! -s conftest.err
12814 } && test -s conftest$ac_exeext && {
12815 test "$cross_compiling" = yes ||
12816 $as_test_x conftest$ac_exeext
12817 }; then
12818 ac_cv_func_getaddrinfo=yes
12819 else
12820 $as_echo "$as_me: failed program was:" >&5
12821 sed 's/^/| /' conftest.$ac_ext >&5
12822
12823 ac_cv_func_getaddrinfo=no
12824 fi
12825
12826 rm -rf conftest.dSYM
12827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12828 conftest$ac_exeext conftest.$ac_ext
12829 fi
12830 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
12831 $as_echo "$ac_cv_func_getaddrinfo" >&6; }
12832 if test "x$ac_cv_func_getaddrinfo" = x""yes; then
12833 IPV6CONN=yes
12834 else
12835 IPV6CONN=no
12836 fi
12837
12838 fi
12839
12840 { $as_echo "$as_me:$LINENO: checking if IPv6 support should be built" >&5
12841 $as_echo_n "checking if IPv6 support should be built... " >&6; }
12842 if test "$IPV6CONN" = "yes"; then
12843
12844 cat >>confdefs.h <<\_ACEOF
12845 #define IPv6 1
12846 _ACEOF
12847
12848 fi
12849 { $as_echo "$as_me:$LINENO: result: $IPV6CONN" >&5
12850 $as_echo "$IPV6CONN" >&6; }
12851
12852 # 4.3BSD-Reno added a new member to struct sockaddr_in
12853 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in.sin_len" >&5
12854 $as_echo_n "checking for struct sockaddr_in.sin_len... " >&6; }
12855 if test "${ac_cv_member_struct_sockaddr_in_sin_len+set}" = set; then
12856 $as_echo_n "(cached) " >&6
12857 else
12858 cat >conftest.$ac_ext <<_ACEOF
12859 /* confdefs.h. */
12860 _ACEOF
12861 cat confdefs.h >>conftest.$ac_ext
12862 cat >>conftest.$ac_ext <<_ACEOF
12863 /* end confdefs.h. */
12864
12865 #include <sys/types.h>
12866 #include <sys/socket.h>
12867 #include <netinet/in.h>
12868
12869
12870 int
12871 main ()
12872 {
12873 static struct sockaddr_in ac_aggr;
12874 if (ac_aggr.sin_len)
12875 return 0;
12876 ;
12877 return 0;
12878 }
12879 _ACEOF
12880 rm -f conftest.$ac_objext
12881 if { (ac_try="$ac_compile"
12882 case "(($ac_try" in
12883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12884 *) ac_try_echo=$ac_try;;
12885 esac
12886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12887 $as_echo "$ac_try_echo") >&5
12888 (eval "$ac_compile") 2>conftest.er1
12889 ac_status=$?
12890 grep -v '^ *+' conftest.er1 >conftest.err
12891 rm -f conftest.er1
12892 cat conftest.err >&5
12893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); } && {
12895 test -z "$ac_c_werror_flag" ||
12896 test ! -s conftest.err
12897 } && test -s conftest.$ac_objext; then
12898 ac_cv_member_struct_sockaddr_in_sin_len=yes
12899 else
12900 $as_echo "$as_me: failed program was:" >&5
12901 sed 's/^/| /' conftest.$ac_ext >&5
12902
12903 cat >conftest.$ac_ext <<_ACEOF
12904 /* confdefs.h. */
12905 _ACEOF
12906 cat confdefs.h >>conftest.$ac_ext
12907 cat >>conftest.$ac_ext <<_ACEOF
12908 /* end confdefs.h. */
12909
12910 #include <sys/types.h>
12911 #include <sys/socket.h>
12912 #include <netinet/in.h>
12913
12914
12915 int
12916 main ()
12917 {
12918 static struct sockaddr_in ac_aggr;
12919 if (sizeof ac_aggr.sin_len)
12920 return 0;
12921 ;
12922 return 0;
12923 }
12924 _ACEOF
12925 rm -f conftest.$ac_objext
12926 if { (ac_try="$ac_compile"
12927 case "(($ac_try" in
12928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12929 *) ac_try_echo=$ac_try;;
12930 esac
12931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12932 $as_echo "$ac_try_echo") >&5
12933 (eval "$ac_compile") 2>conftest.er1
12934 ac_status=$?
12935 grep -v '^ *+' conftest.er1 >conftest.err
12936 rm -f conftest.er1
12937 cat conftest.err >&5
12938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939 (exit $ac_status); } && {
12940 test -z "$ac_c_werror_flag" ||
12941 test ! -s conftest.err
12942 } && test -s conftest.$ac_objext; then
12943 ac_cv_member_struct_sockaddr_in_sin_len=yes
12944 else
12945 $as_echo "$as_me: failed program was:" >&5
12946 sed 's/^/| /' conftest.$ac_ext >&5
12947
12948 ac_cv_member_struct_sockaddr_in_sin_len=no
12949 fi
12950
12951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12952 fi
12953
12954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12955 fi
12956 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in_sin_len" >&5
12957 $as_echo "$ac_cv_member_struct_sockaddr_in_sin_len" >&6; }
12958 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then
12959
12960 cat >>confdefs.h <<\_ACEOF
12961 #define BSD44SOCKETS 1
12962 _ACEOF
12963
12964 fi
12965
12966
12967 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
12968 { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
12969 $as_echo_n "checking for socklen_t... " >&6; }
12970 if test "${ac_cv_type_socklen_t+set}" = set; then
12971 $as_echo_n "(cached) " >&6
12972 else
12973 ac_cv_type_socklen_t=no
12974 cat >conftest.$ac_ext <<_ACEOF
12975 /* confdefs.h. */
12976 _ACEOF
12977 cat confdefs.h >>conftest.$ac_ext
12978 cat >>conftest.$ac_ext <<_ACEOF
12979 /* end confdefs.h. */
12980
12981 $ac_includes_default
12982 #include <sys/socket.h>
12983
12984 int
12985 main ()
12986 {
12987 if (sizeof (socklen_t))
12988 return 0;
12989 ;
12990 return 0;
12991 }
12992 _ACEOF
12993 rm -f conftest.$ac_objext
12994 if { (ac_try="$ac_compile"
12995 case "(($ac_try" in
12996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12997 *) ac_try_echo=$ac_try;;
12998 esac
12999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13000 $as_echo "$ac_try_echo") >&5
13001 (eval "$ac_compile") 2>conftest.er1
13002 ac_status=$?
13003 grep -v '^ *+' conftest.er1 >conftest.err
13004 rm -f conftest.er1
13005 cat conftest.err >&5
13006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); } && {
13008 test -z "$ac_c_werror_flag" ||
13009 test ! -s conftest.err
13010 } && test -s conftest.$ac_objext; then
13011 cat >conftest.$ac_ext <<_ACEOF
13012 /* confdefs.h. */
13013 _ACEOF
13014 cat confdefs.h >>conftest.$ac_ext
13015 cat >>conftest.$ac_ext <<_ACEOF
13016 /* end confdefs.h. */
13017
13018 $ac_includes_default
13019 #include <sys/socket.h>
13020
13021 int
13022 main ()
13023 {
13024 if (sizeof ((socklen_t)))
13025 return 0;
13026 ;
13027 return 0;
13028 }
13029 _ACEOF
13030 rm -f conftest.$ac_objext
13031 if { (ac_try="$ac_compile"
13032 case "(($ac_try" in
13033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13034 *) ac_try_echo=$ac_try;;
13035 esac
13036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13037 $as_echo "$ac_try_echo") >&5
13038 (eval "$ac_compile") 2>conftest.er1
13039 ac_status=$?
13040 grep -v '^ *+' conftest.er1 >conftest.err
13041 rm -f conftest.er1
13042 cat conftest.err >&5
13043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); } && {
13045 test -z "$ac_c_werror_flag" ||
13046 test ! -s conftest.err
13047 } && test -s conftest.$ac_objext; then
13048 :
13049 else
13050 $as_echo "$as_me: failed program was:" >&5
13051 sed 's/^/| /' conftest.$ac_ext >&5
13052
13053 ac_cv_type_socklen_t=yes
13054 fi
13055
13056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13057 else
13058 $as_echo "$as_me: failed program was:" >&5
13059 sed 's/^/| /' conftest.$ac_ext >&5
13060
13061
13062 fi
13063
13064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13065 fi
13066 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
13067 $as_echo "$ac_cv_type_socklen_t" >&6; }
13068 if test "x$ac_cv_type_socklen_t" = x""yes; then
13069
13070 cat >>confdefs.h <<_ACEOF
13071 #define HAVE_SOCKLEN_T 1
13072 _ACEOF
13073
13074
13075 fi
13076
13077
13078
13079 fi
13080 case $host_os in
13081 solaris*|sco*|sysv4*) localdef="yes" ;;
13082 *) localdef="no" ;;
13083 esac
13084 # Check whether --enable-local-transport was given.
13085 if test "${enable_local_transport+set}" = set; then
13086 enableval=$enable_local_transport; LOCALCONN=$enableval
13087 else
13088 LOCALCONN=$localdef
13089 fi
13090
13091 { $as_echo "$as_me:$LINENO: checking if Xtrans should support os-specific local connections" >&5
13092 $as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
13093 { $as_echo "$as_me:$LINENO: result: $LOCALCONN" >&5
13094 $as_echo "$LOCALCONN" >&6; }
13095 if test "$LOCALCONN" = "yes"; then
13096
13097 cat >>confdefs.h <<\_ACEOF
13098 #define LOCALCONN 1
13099 _ACEOF
13100
13101 fi
13102
13103
13104
13105 cat >>confdefs.h <<\_ACEOF
13106 #define ICE_t 1
13107 _ACEOF
13108
13109
13110 # Checks for libraries.
13111
13112 # Checks for header files.
13113 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13114 $as_echo_n "checking for ANSI C header files... " >&6; }
13115 if test "${ac_cv_header_stdc+set}" = set; then
13116 $as_echo_n "(cached) " >&6
13117 else
13118 cat >conftest.$ac_ext <<_ACEOF
13119 /* confdefs.h. */
13120 _ACEOF
13121 cat confdefs.h >>conftest.$ac_ext
13122 cat >>conftest.$ac_ext <<_ACEOF
13123 /* end confdefs.h. */
13124 #include <stdlib.h>
13125 #include <stdarg.h>
13126 #include <string.h>
13127 #include <float.h>
13128
13129 int
13130 main ()
13131 {
13132
13133 ;
13134 return 0;
13135 }
13136 _ACEOF
13137 rm -f conftest.$ac_objext
13138 if { (ac_try="$ac_compile"
13139 case "(($ac_try" in
13140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13141 *) ac_try_echo=$ac_try;;
13142 esac
13143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13144 $as_echo "$ac_try_echo") >&5
13145 (eval "$ac_compile") 2>conftest.er1
13146 ac_status=$?
13147 grep -v '^ *+' conftest.er1 >conftest.err
13148 rm -f conftest.er1
13149 cat conftest.err >&5
13150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); } && {
13152 test -z "$ac_c_werror_flag" ||
13153 test ! -s conftest.err
13154 } && test -s conftest.$ac_objext; then
13155 ac_cv_header_stdc=yes
13156 else
13157 $as_echo "$as_me: failed program was:" >&5
13158 sed 's/^/| /' conftest.$ac_ext >&5
13159
13160 ac_cv_header_stdc=no
13161 fi
13162
13163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13164
13165 if test $ac_cv_header_stdc = yes; then
13166 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13167 cat >conftest.$ac_ext <<_ACEOF
13168 /* confdefs.h. */
13169 _ACEOF
13170 cat confdefs.h >>conftest.$ac_ext
13171 cat >>conftest.$ac_ext <<_ACEOF
13172 /* end confdefs.h. */
13173 #include <string.h>
13174
13175 _ACEOF
13176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13177 $EGREP "memchr" >/dev/null 2>&1; then
13178 :
13179 else
13180 ac_cv_header_stdc=no
13181 fi
13182 rm -f conftest*
13183
13184 fi
13185
13186 if test $ac_cv_header_stdc = yes; then
13187 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13188 cat >conftest.$ac_ext <<_ACEOF
13189 /* confdefs.h. */
13190 _ACEOF
13191 cat confdefs.h >>conftest.$ac_ext
13192 cat >>conftest.$ac_ext <<_ACEOF
13193 /* end confdefs.h. */
13194 #include <stdlib.h>
13195
13196 _ACEOF
13197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13198 $EGREP "free" >/dev/null 2>&1; then
13199 :
13200 else
13201 ac_cv_header_stdc=no
13202 fi
13203 rm -f conftest*
13204
13205 fi
13206
13207 if test $ac_cv_header_stdc = yes; then
13208 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13209 if test "$cross_compiling" = yes; then
13210 :
13211 else
13212 cat >conftest.$ac_ext <<_ACEOF
13213 /* confdefs.h. */
13214 _ACEOF
13215 cat confdefs.h >>conftest.$ac_ext
13216 cat >>conftest.$ac_ext <<_ACEOF
13217 /* end confdefs.h. */
13218 #include <ctype.h>
13219 #include <stdlib.h>
13220 #if ((' ' & 0x0FF) == 0x020)
13221 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13222 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13223 #else
13224 # define ISLOWER(c) \
13225 (('a' <= (c) && (c) <= 'i') \
13226 || ('j' <= (c) && (c) <= 'r') \
13227 || ('s' <= (c) && (c) <= 'z'))
13228 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13229 #endif
13230
13231 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13232 int
13233 main ()
13234 {
13235 int i;
13236 for (i = 0; i < 256; i++)
13237 if (XOR (islower (i), ISLOWER (i))
13238 || toupper (i) != TOUPPER (i))
13239 return 2;
13240 return 0;
13241 }
13242 _ACEOF
13243 rm -f conftest$ac_exeext
13244 if { (ac_try="$ac_link"
13245 case "(($ac_try" in
13246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13247 *) ac_try_echo=$ac_try;;
13248 esac
13249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13250 $as_echo "$ac_try_echo") >&5
13251 (eval "$ac_link") 2>&5
13252 ac_status=$?
13253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13255 { (case "(($ac_try" in
13256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13257 *) ac_try_echo=$ac_try;;
13258 esac
13259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13260 $as_echo "$ac_try_echo") >&5
13261 (eval "$ac_try") 2>&5
13262 ac_status=$?
13263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); }; }; then
13265 :
13266 else
13267 $as_echo "$as_me: program exited with status $ac_status" >&5
13268 $as_echo "$as_me: failed program was:" >&5
13269 sed 's/^/| /' conftest.$ac_ext >&5
13270
13271 ( exit $ac_status )
13272 ac_cv_header_stdc=no
13273 fi
13274 rm -rf conftest.dSYM
13275 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13276 fi
13277
13278
13279 fi
13280 fi
13281 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13282 $as_echo "$ac_cv_header_stdc" >&6; }
13283 if test $ac_cv_header_stdc = yes; then
13284
13285 cat >>confdefs.h <<\_ACEOF
13286 #define STDC_HEADERS 1
13287 _ACEOF
13288
13289 fi
13290
13291
13292
13293
13294 # Allow checking code with lint, sparse, etc.
13295
13296 # Check whether --with-lint was given.
13297 if test "${with_lint+set}" = set; then
13298 withval=$with_lint; use_lint=$withval
13299 else
13300 use_lint=no
13301 fi
13302
13303 if test "x$use_lint" = "xyes" ; then
13304 LINT="lint"
13305 else
13306 LINT="$use_lint"
13307 fi
13308 if test "x$LINT_FLAGS" = "x" -a "x$LINT" != "xno" ; then
13309 case $LINT in
13310 lint|*/lint)
13311 case $host_os in
13312 solaris*)
13313 LINT_FLAGS="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
13314 ;;
13315 esac
13316 ;;
13317 esac
13318 fi
13319
13320
13321
13322 if test x$LINT != xno; then
13323 LINT_TRUE=
13324 LINT_FALSE='#'
13325 else
13326 LINT_TRUE='#'
13327 LINT_FALSE=
13328 fi
13329
13330
13331
13332
13333
13334 # Build lint "library" for more indepth checks of programs calling this library
13335 # Check whether --enable-lint-library was given.
13336 if test "${enable_lint_library+set}" = set; then
13337 enableval=$enable_lint_library; make_lint_lib=$enableval
13338 else
13339 make_lint_lib=no
13340 fi
13341
13342 if test "x$make_lint_lib" != "xno" ; then
13343 if test "x$LINT" = "xno" ; then
13344 { { $as_echo "$as_me:$LINENO: error: Cannot make lint library without --with-lint" >&5
13345 $as_echo "$as_me: error: Cannot make lint library without --with-lint" >&2;}
13346 { (exit 1); exit 1; }; }
13347 fi
13348 if test "x$make_lint_lib" = "xyes" ; then
13349 LINTLIB=llib-lICE.ln
13350 else
13351 LINTLIB=$make_lint_lib
13352 fi
13353 fi
13354
13355 if test x$make_lint_lib != xno; then
13356 MAKE_LINT_LIB_TRUE=
13357 MAKE_LINT_LIB_FALSE='#'
13358 else
13359 MAKE_LINT_LIB_TRUE='#'
13360 MAKE_LINT_LIB_FALSE=
13361 fi
13362
13363
13364
13365 LINT_FLAGS="${LINT_FLAGS} ${ICE_CFLAGS} ${XTRANS_CFLAGS}"
13366
13367
13368
13369 # Check whether --with-release-version was given.
13370 if test "${with_release_version+set}" = set; then
13371 withval=$with_release_version; RELEASE_VERSION="$withval"
13372 else
13373 RELEASE_VERSION=""
13374 fi
13375
13376 if test "x$RELEASE_VERSION" != "x"; then
13377 PACKAGE="$PACKAGE-$RELEASE_VERSION"
13378 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
13379 { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
13380 $as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
13381 fi
13382
13383 cat >>confdefs.h <<_ACEOF
13384 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
13385 _ACEOF
13386
13387 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
13388 if test "x$PVM" = "x"; then
13389 PVM="0"
13390 fi
13391
13392 cat >>confdefs.h <<_ACEOF
13393 #define PACKAGE_VERSION_MINOR $PVM
13394 _ACEOF
13395
13396 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
13397 if test "x$PVP" = "x"; then
13398 PVP="0"
13399 fi
13400
13401 cat >>confdefs.h <<_ACEOF
13402 #define PACKAGE_VERSION_PATCHLEVEL $PVP
13403 _ACEOF
13404
13405
13406
13407 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
13408 mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
13409 echo 'git directory not found: installing possibly empty changelog.' >&2)"
13410
13411 distcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
13412
13413
13414
13415 ac_config_files="$ac_config_files Makefile src/Makefile ice.pc"
13416
13417 cat >confcache <<\_ACEOF
13418 # This file is a shell script that caches the results of configure
13419 # tests run on this system so they can be shared between configure
13420 # scripts and configure runs, see configure's option --config-cache.
13421 # It is not useful on other systems. If it contains results you don't
13422 # want to keep, you may remove or edit it.
13423 #
13424 # config.status only pays attention to the cache file if you give it
13425 # the --recheck option to rerun configure.
13426 #
13427 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13428 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13429 # following values.
13430
13431 _ACEOF
13432
13433 # The following way of writing the cache mishandles newlines in values,
13434 # but we know of no workaround that is simple, portable, and efficient.
13435 # So, we kill variables containing newlines.
13436 # Ultrix sh set writes to stderr and can't be redirected directly,
13437 # and sets the high bit in the cache file unless we assign to the vars.
13438 (
13439 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13440 eval ac_val=\$$ac_var
13441 case $ac_val in #(
13442 *${as_nl}*)
13443 case $ac_var in #(
13444 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
13445 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13446 esac
13447 case $ac_var in #(
13448 _ | IFS | as_nl) ;; #(
13449 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13450 *) $as_unset $ac_var ;;
13451 esac ;;
13452 esac
13453 done
13454
13455 (set) 2>&1 |
13456 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13457 *${as_nl}ac_space=\ *)
13458 # `set' does not quote correctly, so add quotes (double-quote
13459 # substitution turns \\\\ into \\, and sed turns \\ into \).
13460 sed -n \
13461 "s/'/'\\\\''/g;
13462 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13463 ;; #(
13464 *)
13465 # `set' quotes correctly as required by POSIX, so do not add quotes.
13466 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13467 ;;
13468 esac |
13469 sort
13470 ) |
13471 sed '
13472 /^ac_cv_env_/b end
13473 t clear
13474 :clear
13475 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13476 t end
13477 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13478 :end' >>confcache
13479 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13480 if test -w "$cache_file"; then
13481 test "x$cache_file" != "x/dev/null" &&
13482 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13483 $as_echo "$as_me: updating cache $cache_file" >&6;}
13484 cat confcache >$cache_file
13485 else
13486 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13487 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13488 fi
13489 fi
13490 rm -f confcache
13491
13492 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13493 # Let make expand exec_prefix.
13494 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13495
13496 DEFS=-DHAVE_CONFIG_H
13497
13498 ac_libobjs=
13499 ac_ltlibobjs=
13500 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13501 # 1. Remove the extension, and $U if already installed.
13502 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13503 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13504 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13505 # will be set to the directory where LIBOBJS objects are built.
13506 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13507 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13508 done
13509 LIBOBJS=$ac_libobjs
13510
13511 LTLIBOBJS=$ac_ltlibobjs
13512
13513
13514 if test -n "$EXEEXT"; then
13515 am__EXEEXT_TRUE=
13516 am__EXEEXT_FALSE='#'
13517 else
13518 am__EXEEXT_TRUE='#'
13519 am__EXEEXT_FALSE=
13520 fi
13521
13522 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13523 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13524 Usually this means the macro was only invoked conditionally." >&5
13525 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13526 Usually this means the macro was only invoked conditionally." >&2;}
13527 { (exit 1); exit 1; }; }
13528 fi
13529 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13530 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13531 Usually this means the macro was only invoked conditionally." >&5
13532 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
13533 Usually this means the macro was only invoked conditionally." >&2;}
13534 { (exit 1); exit 1; }; }
13535 fi
13536 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13537 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13538 Usually this means the macro was only invoked conditionally." >&5
13539 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13540 Usually this means the macro was only invoked conditionally." >&2;}
13541 { (exit 1); exit 1; }; }
13542 fi
13543 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13544 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13545 Usually this means the macro was only invoked conditionally." >&5
13546 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13547 Usually this means the macro was only invoked conditionally." >&2;}
13548 { (exit 1); exit 1; }; }
13549 fi
13550 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
13551 { { $as_echo "$as_me:$LINENO: error: conditional \"LINT\" was never defined.
13552 Usually this means the macro was only invoked conditionally." >&5
13553 $as_echo "$as_me: error: conditional \"LINT\" was never defined.
13554 Usually this means the macro was only invoked conditionally." >&2;}
13555 { (exit 1); exit 1; }; }
13556 fi
13557 if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
13558 { { $as_echo "$as_me:$LINENO: error: conditional \"MAKE_LINT_LIB\" was never defined.
13559 Usually this means the macro was only invoked conditionally." >&5
13560 $as_echo "$as_me: error: conditional \"MAKE_LINT_LIB\" was never defined.
13561 Usually this means the macro was only invoked conditionally." >&2;}
13562 { (exit 1); exit 1; }; }
13563 fi
13564
13565 : ${CONFIG_STATUS=./config.status}
13566 ac_write_fail=0
13567 ac_clean_files_save=$ac_clean_files
13568 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13569 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13570 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13571 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13572 #! $SHELL
13573 # Generated by $as_me.
13574 # Run this file to recreate the current configuration.
13575 # Compiler output produced by configure, useful for debugging
13576 # configure, is in config.log if it exists.
13577
13578 debug=false
13579 ac_cs_recheck=false
13580 ac_cs_silent=false
13581 SHELL=\${CONFIG_SHELL-$SHELL}
13582 _ACEOF
13583
13584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13585 ## --------------------- ##
13586 ## M4sh Initialization. ##
13587 ## --------------------- ##
13588
13589 # Be more Bourne compatible
13590 DUALCASE=1; export DUALCASE # for MKS sh
13591 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13592 emulate sh
13593 NULLCMD=:
13594 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13595 # is contrary to our usage. Disable this feature.
13596 alias -g '${1+"$@"}'='"$@"'
13597 setopt NO_GLOB_SUBST
13598 else
13599 case `(set -o) 2>/dev/null` in
13600 *posix*) set -o posix ;;
13601 esac
13602
13603 fi
13604
13605
13606
13607
13608 # PATH needs CR
13609 # Avoid depending upon Character Ranges.
13610 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13611 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13612 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13613 as_cr_digits='0123456789'
13614 as_cr_alnum=$as_cr_Letters$as_cr_digits
13615
13616 as_nl='
13617 '
13618 export as_nl
13619 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13620 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13621 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13622 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13623 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13624 as_echo='printf %s\n'
13625 as_echo_n='printf %s'
13626 else
13627 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13628 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13629 as_echo_n='/usr/ucb/echo -n'
13630 else
13631 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13632 as_echo_n_body='eval
13633 arg=$1;
13634 case $arg in
13635 *"$as_nl"*)
13636 expr "X$arg" : "X\\(.*\\)$as_nl";
13637 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13638 esac;
13639 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13640 '
13641 export as_echo_n_body
13642 as_echo_n='sh -c $as_echo_n_body as_echo'
13643 fi
13644 export as_echo_body
13645 as_echo='sh -c $as_echo_body as_echo'
13646 fi
13647
13648 # The user is always right.
13649 if test "${PATH_SEPARATOR+set}" != set; then
13650 PATH_SEPARATOR=:
13651 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13652 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13653 PATH_SEPARATOR=';'
13654 }
13655 fi
13656
13657 # Support unset when possible.
13658 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13659 as_unset=unset
13660 else
13661 as_unset=false
13662 fi
13663
13664
13665 # IFS
13666 # We need space, tab and new line, in precisely that order. Quoting is
13667 # there to prevent editors from complaining about space-tab.
13668 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13669 # splitting by setting IFS to empty value.)
13670 IFS=" "" $as_nl"
13671
13672 # Find who we are. Look in the path if we contain no directory separator.
13673 case $0 in
13674 *[\\/]* ) as_myself=$0 ;;
13675 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13676 for as_dir in $PATH
13677 do
13678 IFS=$as_save_IFS
13679 test -z "$as_dir" && as_dir=.
13680 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13681 done
13682 IFS=$as_save_IFS
13683
13684 ;;
13685 esac
13686 # We did not find ourselves, most probably we were run as `sh COMMAND'
13687 # in which case we are not to be found in the path.
13688 if test "x$as_myself" = x; then
13689 as_myself=$0
13690 fi
13691 if test ! -f "$as_myself"; then
13692 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13693 { (exit 1); exit 1; }
13694 fi
13695
13696 # Work around bugs in pre-3.0 UWIN ksh.
13697 for as_var in ENV MAIL MAILPATH
13698 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13699 done
13700 PS1='$ '
13701 PS2='> '
13702 PS4='+ '
13703
13704 # NLS nuisances.
13705 LC_ALL=C
13706 export LC_ALL
13707 LANGUAGE=C
13708 export LANGUAGE
13709
13710 # Required to use basename.
13711 if expr a : '\(a\)' >/dev/null 2>&1 &&
13712 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13713 as_expr=expr
13714 else
13715 as_expr=false
13716 fi
13717
13718 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13719 as_basename=basename
13720 else
13721 as_basename=false
13722 fi
13723
13724
13725 # Name of the executable.
13726 as_me=`$as_basename -- "$0" ||
13727 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13728 X"$0" : 'X\(//\)$' \| \
13729 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13730 $as_echo X/"$0" |
13731 sed '/^.*\/\([^/][^/]*\)\/*$/{
13732 s//\1/
13733 q
13734 }
13735 /^X\/\(\/\/\)$/{
13736 s//\1/
13737 q
13738 }
13739 /^X\/\(\/\).*/{
13740 s//\1/
13741 q
13742 }
13743 s/.*/./; q'`
13744
13745 # CDPATH.
13746 $as_unset CDPATH
13747
13748
13749
13750 as_lineno_1=$LINENO
13751 as_lineno_2=$LINENO
13752 test "x$as_lineno_1" != "x$as_lineno_2" &&
13753 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13754
13755 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13756 # uniformly replaced by the line number. The first 'sed' inserts a
13757 # line-number line after each line using $LINENO; the second 'sed'
13758 # does the real work. The second script uses 'N' to pair each
13759 # line-number line with the line containing $LINENO, and appends
13760 # trailing '-' during substitution so that $LINENO is not a special
13761 # case at line end.
13762 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13763 # scripts with optimization help from Paolo Bonzini. Blame Lee
13764 # E. McMahon (1931-1989) for sed's syntax. :-)
13765 sed -n '
13766 p
13767 /[$]LINENO/=
13768 ' <$as_myself |
13769 sed '
13770 s/[$]LINENO.*/&-/
13771 t lineno
13772 b
13773 :lineno
13774 N
13775 :loop
13776 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13777 t loop
13778 s/-\n.*//
13779 ' >$as_me.lineno &&
13780 chmod +x "$as_me.lineno" ||
13781 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13782 { (exit 1); exit 1; }; }
13783
13784 # Don't try to exec as it changes $[0], causing all sort of problems
13785 # (the dirname of $[0] is not the place where we might find the
13786 # original and so on. Autoconf is especially sensitive to this).
13787 . "./$as_me.lineno"
13788 # Exit status is that of the last command.
13789 exit
13790 }
13791
13792
13793 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13794 as_dirname=dirname
13795 else
13796 as_dirname=false
13797 fi
13798
13799 ECHO_C= ECHO_N= ECHO_T=
13800 case `echo -n x` in
13801 -n*)
13802 case `echo 'x\c'` in
13803 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13804 *) ECHO_C='\c';;
13805 esac;;
13806 *)
13807 ECHO_N='-n';;
13808 esac
13809 if expr a : '\(a\)' >/dev/null 2>&1 &&
13810 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13811 as_expr=expr
13812 else
13813 as_expr=false
13814 fi
13815
13816 rm -f conf$$ conf$$.exe conf$$.file
13817 if test -d conf$$.dir; then
13818 rm -f conf$$.dir/conf$$.file
13819 else
13820 rm -f conf$$.dir
13821 mkdir conf$$.dir 2>/dev/null
13822 fi
13823 if (echo >conf$$.file) 2>/dev/null; then
13824 if ln -s conf$$.file conf$$ 2>/dev/null; then
13825 as_ln_s='ln -s'
13826 # ... but there are two gotchas:
13827 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13828 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13829 # In both cases, we have to default to `cp -p'.
13830 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13831 as_ln_s='cp -p'
13832 elif ln conf$$.file conf$$ 2>/dev/null; then
13833 as_ln_s=ln
13834 else
13835 as_ln_s='cp -p'
13836 fi
13837 else
13838 as_ln_s='cp -p'
13839 fi
13840 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13841 rmdir conf$$.dir 2>/dev/null
13842
13843 if mkdir -p . 2>/dev/null; then
13844 as_mkdir_p=:
13845 else
13846 test -d ./-p && rmdir ./-p
13847 as_mkdir_p=false
13848 fi
13849
13850 if test -x / >/dev/null 2>&1; then
13851 as_test_x='test -x'
13852 else
13853 if ls -dL / >/dev/null 2>&1; then
13854 as_ls_L_option=L
13855 else
13856 as_ls_L_option=
13857 fi
13858 as_test_x='
13859 eval sh -c '\''
13860 if test -d "$1"; then
13861 test -d "$1/.";
13862 else
13863 case $1 in
13864 -*)set "./$1";;
13865 esac;
13866 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13867 ???[sx]*):;;*)false;;esac;fi
13868 '\'' sh
13869 '
13870 fi
13871 as_executable_p=$as_test_x
13872
13873 # Sed expression to map a string onto a valid CPP name.
13874 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13875
13876 # Sed expression to map a string onto a valid variable name.
13877 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13878
13879
13880 exec 6>&1
13881
13882 # Save the log message, to keep $[0] and so on meaningful, and to
13883 # report actual input values of CONFIG_FILES etc. instead of their
13884 # values after options handling.
13885 ac_log="
13886 This file was extended by libICE $as_me 1.0.6, which was
13887 generated by GNU Autoconf 2.63. Invocation command line was
13888
13889 CONFIG_FILES = $CONFIG_FILES
13890 CONFIG_HEADERS = $CONFIG_HEADERS
13891 CONFIG_LINKS = $CONFIG_LINKS
13892 CONFIG_COMMANDS = $CONFIG_COMMANDS
13893 $ $0 $@
13894
13895 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13896 "
13897
13898 _ACEOF
13899
13900 case $ac_config_files in *"
13901 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13902 esac
13903
13904 case $ac_config_headers in *"
13905 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13906 esac
13907
13908
13909 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13910 # Files that config.status was made for.
13911 config_files="$ac_config_files"
13912 config_headers="$ac_config_headers"
13913 config_commands="$ac_config_commands"
13914
13915 _ACEOF
13916
13917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13918 ac_cs_usage="\
13919 \`$as_me' instantiates files from templates according to the
13920 current configuration.
13921
13922 Usage: $0 [OPTION]... [FILE]...
13923
13924 -h, --help print this help, then exit
13925 -V, --version print version number and configuration settings, then exit
13926 -q, --quiet, --silent
13927 do not print progress messages
13928 -d, --debug don't remove temporary files
13929 --recheck update $as_me by reconfiguring in the same conditions
13930 --file=FILE[:TEMPLATE]
13931 instantiate the configuration file FILE
13932 --header=FILE[:TEMPLATE]
13933 instantiate the configuration header FILE
13934
13935 Configuration files:
13936 $config_files
13937
13938 Configuration headers:
13939 $config_headers
13940
13941 Configuration commands:
13942 $config_commands
13943
13944 Report bugs to <bug-autoconf (at] gnu.org>."
13945
13946 _ACEOF
13947 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13948 ac_cs_version="\\
13949 libICE config.status 1.0.6
13950 configured by $0, generated by GNU Autoconf 2.63,
13951 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13952
13953 Copyright (C) 2008 Free Software Foundation, Inc.
13954 This config.status script is free software; the Free Software Foundation
13955 gives unlimited permission to copy, distribute and modify it."
13956
13957 ac_pwd='$ac_pwd'
13958 srcdir='$srcdir'
13959 INSTALL='$INSTALL'
13960 MKDIR_P='$MKDIR_P'
13961 AWK='$AWK'
13962 test -n "\$AWK" || AWK=awk
13963 _ACEOF
13964
13965 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13966 # The default lists apply if the user does not specify any file.
13967 ac_need_defaults=:
13968 while test $# != 0
13969 do
13970 case $1 in
13971 --*=*)
13972 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13973 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13974 ac_shift=:
13975 ;;
13976 *)
13977 ac_option=$1
13978 ac_optarg=$2
13979 ac_shift=shift
13980 ;;
13981 esac
13982
13983 case $ac_option in
13984 # Handling of the options.
13985 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13986 ac_cs_recheck=: ;;
13987 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13988 $as_echo "$ac_cs_version"; exit ;;
13989 --debug | --debu | --deb | --de | --d | -d )
13990 debug=: ;;
13991 --file | --fil | --fi | --f )
13992 $ac_shift
13993 case $ac_optarg in
13994 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13995 esac
13996 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13997 ac_need_defaults=false;;
13998 --header | --heade | --head | --hea )
13999 $ac_shift
14000 case $ac_optarg in
14001 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14002 esac
14003 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
14004 ac_need_defaults=false;;
14005 --he | --h)
14006 # Conflict between --help and --header
14007 { $as_echo "$as_me: error: ambiguous option: $1
14008 Try \`$0 --help' for more information." >&2
14009 { (exit 1); exit 1; }; };;
14010 --help | --hel | -h )
14011 $as_echo "$ac_cs_usage"; exit ;;
14012 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14013 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14014 ac_cs_silent=: ;;
14015
14016 # This is an error.
14017 -*) { $as_echo "$as_me: error: unrecognized option: $1
14018 Try \`$0 --help' for more information." >&2
14019 { (exit 1); exit 1; }; } ;;
14020
14021 *) ac_config_targets="$ac_config_targets $1"
14022 ac_need_defaults=false ;;
14023
14024 esac
14025 shift
14026 done
14027
14028 ac_configure_extra_args=
14029
14030 if $ac_cs_silent; then
14031 exec 6>/dev/null
14032 ac_configure_extra_args="$ac_configure_extra_args --silent"
14033 fi
14034
14035 _ACEOF
14036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14037 if \$ac_cs_recheck; then
14038 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14039 shift
14040 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14041 CONFIG_SHELL='$SHELL'
14042 export CONFIG_SHELL
14043 exec "\$@"
14044 fi
14045
14046 _ACEOF
14047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14048 exec 5>>config.log
14049 {
14050 echo
14051 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14052 ## Running $as_me. ##
14053 _ASBOX
14054 $as_echo "$ac_log"
14055 } >&5
14056
14057 _ACEOF
14058 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14059 #
14060 # INIT-COMMANDS
14061 #
14062 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14063
14064
14065 # The HP-UX ksh and POSIX shell print the target directory to stdout
14066 # if CDPATH is set.
14067 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14068
14069 sed_quote_subst='$sed_quote_subst'
14070 double_quote_subst='$double_quote_subst'
14071 delay_variable_subst='$delay_variable_subst'
14072 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14073 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14074 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14075 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14076 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14077 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14078 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14079 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14080 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14081 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14082 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14083 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14084 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14085 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14086 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14087 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14088 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14089 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14090 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14091 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14092 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14093 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14094 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14095 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14096 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14097 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14098 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14099 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14100 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14101 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14102 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14103 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14104 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14105 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14106 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14107 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14108 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14109 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14110 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14111 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14112 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14113 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14114 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14115 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14116 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"`'
14117 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"`'
14118 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14119 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14120 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14121 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14122 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14123 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14124 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14125 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14126 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14127 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14128 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14129 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14130 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14131 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14132 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14133 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14134 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14135 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14136 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14137 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14138 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14139 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14140 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14141 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14142 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14143 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14144 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14145 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14146 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14147 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14148 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14149 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14150 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14151 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14152 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14153 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14154 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14155 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14156 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14157 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14158 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14159 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14160 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14161 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14162 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14163 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14164 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14165 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14166 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14167 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14168 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14169 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14170 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14171 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14172 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14173 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14174 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14175 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14176 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14177 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14178 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14179 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14180 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14181 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14182 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14183 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14184 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14185 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14186 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14187 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14188 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14189 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14190
14191 LTCC='$LTCC'
14192 LTCFLAGS='$LTCFLAGS'
14193 compiler='$compiler_DEFAULT'
14194
14195 # Quote evaled strings.
14196 for var in SED \
14197 GREP \
14198 EGREP \
14199 FGREP \
14200 LD \
14201 NM \
14202 LN_S \
14203 lt_SP2NL \
14204 lt_NL2SP \
14205 reload_flag \
14206 OBJDUMP \
14207 deplibs_check_method \
14208 file_magic_cmd \
14209 AR \
14210 AR_FLAGS \
14211 STRIP \
14212 RANLIB \
14213 CC \
14214 CFLAGS \
14215 compiler \
14216 lt_cv_sys_global_symbol_pipe \
14217 lt_cv_sys_global_symbol_to_cdecl \
14218 lt_cv_sys_global_symbol_to_c_name_address \
14219 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14220 SHELL \
14221 ECHO \
14222 lt_prog_compiler_no_builtin_flag \
14223 lt_prog_compiler_wl \
14224 lt_prog_compiler_pic \
14225 lt_prog_compiler_static \
14226 lt_cv_prog_compiler_c_o \
14227 need_locks \
14228 DSYMUTIL \
14229 NMEDIT \
14230 LIPO \
14231 OTOOL \
14232 OTOOL64 \
14233 shrext_cmds \
14234 export_dynamic_flag_spec \
14235 whole_archive_flag_spec \
14236 compiler_needs_object \
14237 with_gnu_ld \
14238 allow_undefined_flag \
14239 no_undefined_flag \
14240 hardcode_libdir_flag_spec \
14241 hardcode_libdir_flag_spec_ld \
14242 hardcode_libdir_separator \
14243 fix_srcfile_path \
14244 exclude_expsyms \
14245 include_expsyms \
14246 file_list_spec \
14247 variables_saved_for_relink \
14248 libname_spec \
14249 library_names_spec \
14250 soname_spec \
14251 finish_eval \
14252 old_striplib \
14253 striplib; do
14254 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14255 *[\\\\\\\`\\"\\\$]*)
14256 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14257 ;;
14258 *)
14259 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14260 ;;
14261 esac
14262 done
14263
14264 # Double-quote double-evaled strings.
14265 for var in reload_cmds \
14266 old_postinstall_cmds \
14267 old_postuninstall_cmds \
14268 old_archive_cmds \
14269 extract_expsyms_cmds \
14270 old_archive_from_new_cmds \
14271 old_archive_from_expsyms_cmds \
14272 archive_cmds \
14273 archive_expsym_cmds \
14274 module_cmds \
14275 module_expsym_cmds \
14276 export_symbols_cmds \
14277 prelink_cmds \
14278 postinstall_cmds \
14279 postuninstall_cmds \
14280 finish_cmds \
14281 sys_lib_search_path_spec \
14282 sys_lib_dlsearch_path_spec; do
14283 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14284 *[\\\\\\\`\\"\\\$]*)
14285 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14286 ;;
14287 *)
14288 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14289 ;;
14290 esac
14291 done
14292
14293 # Fix-up fallback echo if it was mangled by the above quoting rules.
14294 case \$lt_ECHO in
14295 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14296 ;;
14297 esac
14298
14299 ac_aux_dir='$ac_aux_dir'
14300 xsi_shell='$xsi_shell'
14301 lt_shell_append='$lt_shell_append'
14302
14303 # See if we are running on zsh, and set the options which allow our
14304 # commands through without removal of \ escapes INIT.
14305 if test -n "\${ZSH_VERSION+set}" ; then
14306 setopt NO_GLOB_SUBST
14307 fi
14308
14309
14310 PACKAGE='$PACKAGE'
14311 VERSION='$VERSION'
14312 TIMESTAMP='$TIMESTAMP'
14313 RM='$RM'
14314 ofile='$ofile'
14315
14316
14317
14318
14319 _ACEOF
14320
14321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14322
14323 # Handling of arguments.
14324 for ac_config_target in $ac_config_targets
14325 do
14326 case $ac_config_target in
14327 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14328 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14329 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14330 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14331 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14332 "ice.pc") CONFIG_FILES="$CONFIG_FILES ice.pc" ;;
14333
14334 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14335 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14336 { (exit 1); exit 1; }; };;
14337 esac
14338 done
14339
14340
14341 # If the user did not use the arguments to specify the items to instantiate,
14342 # then the envvar interface is used. Set only those that are not.
14343 # We use the long form for the default assignment because of an extremely
14344 # bizarre bug on SunOS 4.1.3.
14345 if $ac_need_defaults; then
14346 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14347 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14348 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14349 fi
14350
14351 # Have a temporary directory for convenience. Make it in the build tree
14352 # simply because there is no reason against having it here, and in addition,
14353 # creating and moving files from /tmp can sometimes cause problems.
14354 # Hook for its removal unless debugging.
14355 # Note that there is a small window in which the directory will not be cleaned:
14356 # after its creation but before its name has been assigned to `$tmp'.
14357 $debug ||
14358 {
14359 tmp=
14360 trap 'exit_status=$?
14361 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14362 ' 0
14363 trap '{ (exit 1); exit 1; }' 1 2 13 15
14364 }
14365 # Create a (secure) tmp directory for tmp files.
14366
14367 {
14368 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14369 test -n "$tmp" && test -d "$tmp"
14370 } ||
14371 {
14372 tmp=./conf$$-$RANDOM
14373 (umask 077 && mkdir "$tmp")
14374 } ||
14375 {
14376 $as_echo "$as_me: cannot create a temporary directory in ." >&2
14377 { (exit 1); exit 1; }
14378 }
14379
14380 # Set up the scripts for CONFIG_FILES section.
14381 # No need to generate them if there are no CONFIG_FILES.
14382 # This happens for instance with `./config.status config.h'.
14383 if test -n "$CONFIG_FILES"; then
14384
14385
14386 ac_cr='
'
14388 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14389 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14390 ac_cs_awk_cr='\\r'
14391 else
14392 ac_cs_awk_cr=$ac_cr
14393 fi
14394
14395 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14396 _ACEOF
14397
14398
14399 {
14400 echo "cat >conf$$subs.awk <<_ACEOF" &&
14401 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14402 echo "_ACEOF"
14403 } >conf$$subs.sh ||
14404 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14405 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14406 { (exit 1); exit 1; }; }
14407 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14408 ac_delim='%!_!# '
14409 for ac_last_try in false false false false false :; do
14410 . ./conf$$subs.sh ||
14411 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14412 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14413 { (exit 1); exit 1; }; }
14414
14415 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14416 if test $ac_delim_n = $ac_delim_num; then
14417 break
14418 elif $ac_last_try; then
14419 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14420 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14421 { (exit 1); exit 1; }; }
14422 else
14423 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14424 fi
14425 done
14426 rm -f conf$$subs.sh
14427
14428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14429 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14430 _ACEOF
14431 sed -n '
14432 h
14433 s/^/S["/; s/!.*/"]=/
14434 p
14435 g
14436 s/^[^!]*!//
14437 :repl
14438 t repl
14439 s/'"$ac_delim"'$//
14440 t delim
14441 :nl
14442 h
14443 s/\(.\{148\}\).*/\1/
14444 t more1
14445 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14446 p
14447 n
14448 b repl
14449 :more1
14450 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14451 p
14452 g
14453 s/.\{148\}//
14454 t nl
14455 :delim
14456 h
14457 s/\(.\{148\}\).*/\1/
14458 t more2
14459 s/["\\]/\\&/g; s/^/"/; s/$/"/
14460 p
14461 b
14462 :more2
14463 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14464 p
14465 g
14466 s/.\{148\}//
14467 t delim
14468 ' <conf$$subs.awk | sed '
14469 /^[^""]/{
14470 N
14471 s/\n//
14472 }
14473 ' >>$CONFIG_STATUS || ac_write_fail=1
14474 rm -f conf$$subs.awk
14475 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14476 _ACAWK
14477 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14478 for (key in S) S_is_set[key] = 1
14479 FS = ""
14480
14481 }
14482 {
14483 line = $ 0
14484 nfields = split(line, field, "@")
14485 substed = 0
14486 len = length(field[1])
14487 for (i = 2; i < nfields; i++) {
14488 key = field[i]
14489 keylen = length(key)
14490 if (S_is_set[key]) {
14491 value = S[key]
14492 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14493 len += length(value) + length(field[++i])
14494 substed = 1
14495 } else
14496 len += 1 + keylen
14497 }
14498
14499 print line
14500 }
14501
14502 _ACAWK
14503 _ACEOF
14504 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14505 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14506 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14507 else
14508 cat
14509 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14510 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14511 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
14512 { (exit 1); exit 1; }; }
14513 _ACEOF
14514
14515 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14516 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14517 # trailing colons and then remove the whole line if VPATH becomes empty
14518 # (actually we leave an empty line to preserve line numbers).
14519 if test "x$srcdir" = x.; then
14520 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14521 s/:*\$(srcdir):*/:/
14522 s/:*\${srcdir}:*/:/
14523 s/:*@srcdir@:*/:/
14524 s/^\([^=]*=[ ]*\):*/\1/
14525 s/:*$//
14526 s/^[^=]*=[ ]*$//
14527 }'
14528 fi
14529
14530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14531 fi # test -n "$CONFIG_FILES"
14532
14533 # Set up the scripts for CONFIG_HEADERS section.
14534 # No need to generate them if there are no CONFIG_HEADERS.
14535 # This happens for instance with `./config.status Makefile'.
14536 if test -n "$CONFIG_HEADERS"; then
14537 cat >"$tmp/defines.awk" <<\_ACAWK ||
14538 BEGIN {
14539 _ACEOF
14540
14541 # Transform confdefs.h into an awk script `defines.awk', embedded as
14542 # here-document in config.status, that substitutes the proper values into
14543 # config.h.in to produce config.h.
14544
14545 # Create a delimiter string that does not exist in confdefs.h, to ease
14546 # handling of long lines.
14547 ac_delim='%!_!# '
14548 for ac_last_try in false false :; do
14549 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14550 if test -z "$ac_t"; then
14551 break
14552 elif $ac_last_try; then
14553 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14554 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14555 { (exit 1); exit 1; }; }
14556 else
14557 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14558 fi
14559 done
14560
14561 # For the awk script, D is an array of macro values keyed by name,
14562 # likewise P contains macro parameters if any. Preserve backslash
14563 # newline sequences.
14564
14565 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14566 sed -n '
14567 s/.\{148\}/&'"$ac_delim"'/g
14568 t rset
14569 :rset
14570 s/^[ ]*#[ ]*define[ ][ ]*/ /
14571 t def
14572 d
14573 :def
14574 s/\\$//
14575 t bsnl
14576 s/["\\]/\\&/g
14577 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14578 D["\1"]=" \3"/p
14579 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14580 d
14581 :bsnl
14582 s/["\\]/\\&/g
14583 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14584 D["\1"]=" \3\\\\\\n"\\/p
14585 t cont
14586 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14587 t cont
14588 d
14589 :cont
14590 n
14591 s/.\{148\}/&'"$ac_delim"'/g
14592 t clear
14593 :clear
14594 s/\\$//
14595 t bsnlc
14596 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14597 d
14598 :bsnlc
14599 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14600 b cont
14601 ' <confdefs.h | sed '
14602 s/'"$ac_delim"'/"\\\
14603 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14604
14605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14606 for (key in D) D_is_set[key] = 1
14607 FS = ""
14608 }
14609 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14610 line = \$ 0
14611 split(line, arg, " ")
14612 if (arg[1] == "#") {
14613 defundef = arg[2]
14614 mac1 = arg[3]
14615 } else {
14616 defundef = substr(arg[1], 2)
14617 mac1 = arg[2]
14618 }
14619 split(mac1, mac2, "(") #)
14620 macro = mac2[1]
14621 prefix = substr(line, 1, index(line, defundef) - 1)
14622 if (D_is_set[macro]) {
14623 # Preserve the white space surrounding the "#".
14624 print prefix "define", macro P[macro] D[macro]
14625 next
14626 } else {
14627 # Replace #undef with comments. This is necessary, for example,
14628 # in the case of _POSIX_SOURCE, which is predefined and required
14629 # on some systems where configure will not decide to define it.
14630 if (defundef == "undef") {
14631 print "/*", prefix defundef, macro, "*/"
14632 next
14633 }
14634 }
14635 }
14636 { print }
14637 _ACAWK
14638 _ACEOF
14639 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14640 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14641 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14642 { (exit 1); exit 1; }; }
14643 fi # test -n "$CONFIG_HEADERS"
14644
14645
14646 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14647 shift
14648 for ac_tag
14649 do
14650 case $ac_tag in
14651 :[FHLC]) ac_mode=$ac_tag; continue;;
14652 esac
14653 case $ac_mode$ac_tag in
14654 :[FHL]*:*);;
14655 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14656 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
14657 { (exit 1); exit 1; }; };;
14658 :[FH]-) ac_tag=-:-;;
14659 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14660 esac
14661 ac_save_IFS=$IFS
14662 IFS=:
14663 set x $ac_tag
14664 IFS=$ac_save_IFS
14665 shift
14666 ac_file=$1
14667 shift
14668
14669 case $ac_mode in
14670 :L) ac_source=$1;;
14671 :[FH])
14672 ac_file_inputs=
14673 for ac_f
14674 do
14675 case $ac_f in
14676 -) ac_f="$tmp/stdin";;
14677 *) # Look for the file first in the build tree, then in the source tree
14678 # (if the path is not absolute). The absolute path cannot be DOS-style,
14679 # because $ac_f cannot contain `:'.
14680 test -f "$ac_f" ||
14681 case $ac_f in
14682 [\\/$]*) false;;
14683 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14684 esac ||
14685 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14686 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14687 { (exit 1); exit 1; }; };;
14688 esac
14689 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14690 ac_file_inputs="$ac_file_inputs '$ac_f'"
14691 done
14692
14693 # Let's still pretend it is `configure' which instantiates (i.e., don't
14694 # use $as_me), people would be surprised to read:
14695 # /* config.h. Generated by config.status. */
14696 configure_input='Generated from '`
14697 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14698 `' by configure.'
14699 if test x"$ac_file" != x-; then
14700 configure_input="$ac_file. $configure_input"
14701 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14702 $as_echo "$as_me: creating $ac_file" >&6;}
14703 fi
14704 # Neutralize special characters interpreted by sed in replacement strings.
14705 case $configure_input in #(
14706 *\&* | *\|* | *\\* )
14707 ac_sed_conf_input=`$as_echo "$configure_input" |
14708 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14709 *) ac_sed_conf_input=$configure_input;;
14710 esac
14711
14712 case $ac_tag in
14713 *:-:* | *:-) cat >"$tmp/stdin" \
14714 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14715 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14716 { (exit 1); exit 1; }; } ;;
14717 esac
14718 ;;
14719 esac
14720
14721 ac_dir=`$as_dirname -- "$ac_file" ||
14722 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14723 X"$ac_file" : 'X\(//\)[^/]' \| \
14724 X"$ac_file" : 'X\(//\)$' \| \
14725 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14726 $as_echo X"$ac_file" |
14727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14728 s//\1/
14729 q
14730 }
14731 /^X\(\/\/\)[^/].*/{
14732 s//\1/
14733 q
14734 }
14735 /^X\(\/\/\)$/{
14736 s//\1/
14737 q
14738 }
14739 /^X\(\/\).*/{
14740 s//\1/
14741 q
14742 }
14743 s/.*/./; q'`
14744 { as_dir="$ac_dir"
14745 case $as_dir in #(
14746 -*) as_dir=./$as_dir;;
14747 esac
14748 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14749 as_dirs=
14750 while :; do
14751 case $as_dir in #(
14752 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14753 *) as_qdir=$as_dir;;
14754 esac
14755 as_dirs="'$as_qdir' $as_dirs"
14756 as_dir=`$as_dirname -- "$as_dir" ||
14757 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14758 X"$as_dir" : 'X\(//\)[^/]' \| \
14759 X"$as_dir" : 'X\(//\)$' \| \
14760 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14761 $as_echo X"$as_dir" |
14762 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14763 s//\1/
14764 q
14765 }
14766 /^X\(\/\/\)[^/].*/{
14767 s//\1/
14768 q
14769 }
14770 /^X\(\/\/\)$/{
14771 s//\1/
14772 q
14773 }
14774 /^X\(\/\).*/{
14775 s//\1/
14776 q
14777 }
14778 s/.*/./; q'`
14779 test -d "$as_dir" && break
14780 done
14781 test -z "$as_dirs" || eval "mkdir $as_dirs"
14782 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14783 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14784 { (exit 1); exit 1; }; }; }
14785 ac_builddir=.
14786
14787 case "$ac_dir" in
14788 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14789 *)
14790 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14791 # A ".." for each directory in $ac_dir_suffix.
14792 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14793 case $ac_top_builddir_sub in
14794 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14795 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14796 esac ;;
14797 esac
14798 ac_abs_top_builddir=$ac_pwd
14799 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14800 # for backward compatibility:
14801 ac_top_builddir=$ac_top_build_prefix
14802
14803 case $srcdir in
14804 .) # We are building in place.
14805 ac_srcdir=.
14806 ac_top_srcdir=$ac_top_builddir_sub
14807 ac_abs_top_srcdir=$ac_pwd ;;
14808 [\\/]* | ?:[\\/]* ) # Absolute name.
14809 ac_srcdir=$srcdir$ac_dir_suffix;
14810 ac_top_srcdir=$srcdir
14811 ac_abs_top_srcdir=$srcdir ;;
14812 *) # Relative name.
14813 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14814 ac_top_srcdir=$ac_top_build_prefix$srcdir
14815 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14816 esac
14817 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14818
14819
14820 case $ac_mode in
14821 :F)
14822 #
14823 # CONFIG_FILE
14824 #
14825
14826 case $INSTALL in
14827 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14828 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14829 esac
14830 ac_MKDIR_P=$MKDIR_P
14831 case $MKDIR_P in
14832 [\\/$]* | ?:[\\/]* ) ;;
14833 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14834 esac
14835 _ACEOF
14836
14837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14838 # If the template does not know about datarootdir, expand it.
14839 # FIXME: This hack should be removed a few years after 2.60.
14840 ac_datarootdir_hack=; ac_datarootdir_seen=
14841
14842 ac_sed_dataroot='
14843 /datarootdir/ {
14844 p
14845 q
14846 }
14847 /@datadir@/p
14848 /@docdir@/p
14849 /@infodir@/p
14850 /@localedir@/p
14851 /@mandir@/p
14852 '
14853 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14854 *datarootdir*) ac_datarootdir_seen=yes;;
14855 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14856 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14857 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14858 _ACEOF
14859 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14860 ac_datarootdir_hack='
14861 s&@datadir@&$datadir&g
14862 s&@docdir@&$docdir&g
14863 s&@infodir@&$infodir&g
14864 s&@localedir@&$localedir&g
14865 s&@mandir@&$mandir&g
14866 s&\\\${datarootdir}&$datarootdir&g' ;;
14867 esac
14868 _ACEOF
14869
14870 # Neutralize VPATH when `$srcdir' = `.'.
14871 # Shell code in configure.ac might set extrasub.
14872 # FIXME: do we really want to maintain this feature?
14873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14874 ac_sed_extra="$ac_vpsub
14875 $extrasub
14876 _ACEOF
14877 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14878 :t
14879 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14880 s|@configure_input@|$ac_sed_conf_input|;t t
14881 s&@top_builddir@&$ac_top_builddir_sub&;t t
14882 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14883 s&@srcdir@&$ac_srcdir&;t t
14884 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14885 s&@top_srcdir@&$ac_top_srcdir&;t t
14886 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14887 s&@builddir@&$ac_builddir&;t t
14888 s&@abs_builddir@&$ac_abs_builddir&;t t
14889 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14890 s&@INSTALL@&$ac_INSTALL&;t t
14891 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14892 $ac_datarootdir_hack
14893 "
14894 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14895 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14896 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14897 { (exit 1); exit 1; }; }
14898
14899 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14900 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14901 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14902 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14903 which seems to be undefined. Please make sure it is defined." >&5
14904 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14905 which seems to be undefined. Please make sure it is defined." >&2;}
14906
14907 rm -f "$tmp/stdin"
14908 case $ac_file in
14909 -) cat "$tmp/out" && rm -f "$tmp/out";;
14910 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14911 esac \
14912 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14913 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14914 { (exit 1); exit 1; }; }
14915 ;;
14916 :H)
14917 #
14918 # CONFIG_HEADER
14919 #
14920 if test x"$ac_file" != x-; then
14921 {
14922 $as_echo "/* $configure_input */" \
14923 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14924 } >"$tmp/config.h" \
14925 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14926 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14927 { (exit 1); exit 1; }; }
14928 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14929 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14930 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14931 else
14932 rm -f "$ac_file"
14933 mv "$tmp/config.h" "$ac_file" \
14934 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14935 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14936 { (exit 1); exit 1; }; }
14937 fi
14938 else
14939 $as_echo "/* $configure_input */" \
14940 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14941 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14942 $as_echo "$as_me: error: could not create -" >&2;}
14943 { (exit 1); exit 1; }; }
14944 fi
14945 # Compute "$ac_file"'s index in $config_headers.
14946 _am_arg="$ac_file"
14947 _am_stamp_count=1
14948 for _am_header in $config_headers :; do
14949 case $_am_header in
14950 $_am_arg | $_am_arg:* )
14951 break ;;
14952 * )
14953 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14954 esac
14955 done
14956 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14957 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14958 X"$_am_arg" : 'X\(//\)[^/]' \| \
14959 X"$_am_arg" : 'X\(//\)$' \| \
14960 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14961 $as_echo X"$_am_arg" |
14962 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14963 s//\1/
14964 q
14965 }
14966 /^X\(\/\/\)[^/].*/{
14967 s//\1/
14968 q
14969 }
14970 /^X\(\/\/\)$/{
14971 s//\1/
14972 q
14973 }
14974 /^X\(\/\).*/{
14975 s//\1/
14976 q
14977 }
14978 s/.*/./; q'`/stamp-h$_am_stamp_count
14979 ;;
14980
14981 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14982 $as_echo "$as_me: executing $ac_file commands" >&6;}
14983 ;;
14984 esac
14985
14986
14987 case $ac_file$ac_mode in
14988 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14989 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14990 # are listed without --file. Let's play safe and only enable the eval
14991 # if we detect the quoting.
14992 case $CONFIG_FILES in
14993 *\'*) eval set x "$CONFIG_FILES" ;;
14994 *) set x $CONFIG_FILES ;;
14995 esac
14996 shift
14997 for mf
14998 do
14999 # Strip MF so we end up with the name of the file.
15000 mf=`echo "$mf" | sed -e 's/:.*$//'`
15001 # Check whether this is an Automake generated Makefile or not.
15002 # We used to match only the files named `Makefile.in', but
15003 # some people rename them; so instead we look at the file content.
15004 # Grep'ing the first line is not enough: some people post-process
15005 # each Makefile.in and add a new line on top of each file to say so.
15006 # Grep'ing the whole file is not good either: AIX grep has a line
15007 # limit of 2048, but all sed's we know have understand at least 4000.
15008 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15009 dirpart=`$as_dirname -- "$mf" ||
15010 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15011 X"$mf" : 'X\(//\)[^/]' \| \
15012 X"$mf" : 'X\(//\)$' \| \
15013 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15014 $as_echo X"$mf" |
15015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15016 s//\1/
15017 q
15018 }
15019 /^X\(\/\/\)[^/].*/{
15020 s//\1/
15021 q
15022 }
15023 /^X\(\/\/\)$/{
15024 s//\1/
15025 q
15026 }
15027 /^X\(\/\).*/{
15028 s//\1/
15029 q
15030 }
15031 s/.*/./; q'`
15032 else
15033 continue
15034 fi
15035 # Extract the definition of DEPDIR, am__include, and am__quote
15036 # from the Makefile without running `make'.
15037 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15038 test -z "$DEPDIR" && continue
15039 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15040 test -z "am__include" && continue
15041 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15042 # When using ansi2knr, U may be empty or an underscore; expand it
15043 U=`sed -n 's/^U = //p' < "$mf"`
15044 # Find all dependency output files, they are included files with
15045 # $(DEPDIR) in their names. We invoke sed twice because it is the
15046 # simplest approach to changing $(DEPDIR) to its actual value in the
15047 # expansion.
15048 for file in `sed -n "
15049 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15050 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15051 # Make sure the directory exists.
15052 test -f "$dirpart/$file" && continue
15053 fdir=`$as_dirname -- "$file" ||
15054 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15055 X"$file" : 'X\(//\)[^/]' \| \
15056 X"$file" : 'X\(//\)$' \| \
15057 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15058 $as_echo X"$file" |
15059 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15060 s//\1/
15061 q
15062 }
15063 /^X\(\/\/\)[^/].*/{
15064 s//\1/
15065 q
15066 }
15067 /^X\(\/\/\)$/{
15068 s//\1/
15069 q
15070 }
15071 /^X\(\/\).*/{
15072 s//\1/
15073 q
15074 }
15075 s/.*/./; q'`
15076 { as_dir=$dirpart/$fdir
15077 case $as_dir in #(
15078 -*) as_dir=./$as_dir;;
15079 esac
15080 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15081 as_dirs=
15082 while :; do
15083 case $as_dir in #(
15084 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15085 *) as_qdir=$as_dir;;
15086 esac
15087 as_dirs="'$as_qdir' $as_dirs"
15088 as_dir=`$as_dirname -- "$as_dir" ||
15089 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15090 X"$as_dir" : 'X\(//\)[^/]' \| \
15091 X"$as_dir" : 'X\(//\)$' \| \
15092 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15093 $as_echo X"$as_dir" |
15094 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15095 s//\1/
15096 q
15097 }
15098 /^X\(\/\/\)[^/].*/{
15099 s//\1/
15100 q
15101 }
15102 /^X\(\/\/\)$/{
15103 s//\1/
15104 q
15105 }
15106 /^X\(\/\).*/{
15107 s//\1/
15108 q
15109 }
15110 s/.*/./; q'`
15111 test -d "$as_dir" && break
15112 done
15113 test -z "$as_dirs" || eval "mkdir $as_dirs"
15114 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15115 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
15116 { (exit 1); exit 1; }; }; }
15117 # echo "creating $dirpart/$file"
15118 echo '# dummy' > "$dirpart/$file"
15119 done
15120 done
15121 }
15122 ;;
15123 "libtool":C)
15124
15125 # See if we are running on zsh, and set the options which allow our
15126 # commands through without removal of \ escapes.
15127 if test -n "${ZSH_VERSION+set}" ; then
15128 setopt NO_GLOB_SUBST
15129 fi
15130
15131 cfgfile="${ofile}T"
15132 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15133 $RM "$cfgfile"
15134
15135 cat <<_LT_EOF >> "$cfgfile"
15136 #! $SHELL
15137
15138 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15139 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15140 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15141 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15142 #
15143 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15144 # 2006, 2007, 2008 Free Software Foundation, Inc.
15145 # Written by Gordon Matzigkeit, 1996
15146 #
15147 # This file is part of GNU Libtool.
15148 #
15149 # GNU Libtool is free software; you can redistribute it and/or
15150 # modify it under the terms of the GNU General Public License as
15151 # published by the Free Software Foundation; either version 2 of
15152 # the License, or (at your option) any later version.
15153 #
15154 # As a special exception to the GNU General Public License,
15155 # if you distribute this file as part of a program or library that
15156 # is built using GNU Libtool, you may include this file under the
15157 # same distribution terms that you use for the rest of that program.
15158 #
15159 # GNU Libtool is distributed in the hope that it will be useful,
15160 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15161 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15162 # GNU General Public License for more details.
15163 #
15164 # You should have received a copy of the GNU General Public License
15165 # along with GNU Libtool; see the file COPYING. If not, a copy
15166 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15167 # obtained by writing to the Free Software Foundation, Inc.,
15168 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15169
15170
15171 # The names of the tagged configurations supported by this script.
15172 available_tags=""
15173
15174 # ### BEGIN LIBTOOL CONFIG
15175
15176 # Which release of libtool.m4 was used?
15177 macro_version=$macro_version
15178 macro_revision=$macro_revision
15179
15180 # Whether or not to build shared libraries.
15181 build_libtool_libs=$enable_shared
15182
15183 # Whether or not to build static libraries.
15184 build_old_libs=$enable_static
15185
15186 # What type of objects to build.
15187 pic_mode=$pic_mode
15188
15189 # Whether or not to optimize for fast installation.
15190 fast_install=$enable_fast_install
15191
15192 # The host system.
15193 host_alias=$host_alias
15194 host=$host
15195 host_os=$host_os
15196
15197 # The build system.
15198 build_alias=$build_alias
15199 build=$build
15200 build_os=$build_os
15201
15202 # A sed program that does not truncate output.
15203 SED=$lt_SED
15204
15205 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15206 Xsed="\$SED -e 1s/^X//"
15207
15208 # A grep program that handles long lines.
15209 GREP=$lt_GREP
15210
15211 # An ERE matcher.
15212 EGREP=$lt_EGREP
15213
15214 # A literal string matcher.
15215 FGREP=$lt_FGREP
15216
15217 # A BSD- or MS-compatible name lister.
15218 NM=$lt_NM
15219
15220 # Whether we need soft or hard links.
15221 LN_S=$lt_LN_S
15222
15223 # What is the maximum length of a command?
15224 max_cmd_len=$max_cmd_len
15225
15226 # Object file suffix (normally "o").
15227 objext=$ac_objext
15228
15229 # Executable file suffix (normally "").
15230 exeext=$exeext
15231
15232 # whether the shell understands "unset".
15233 lt_unset=$lt_unset
15234
15235 # turn spaces into newlines.
15236 SP2NL=$lt_lt_SP2NL
15237
15238 # turn newlines into spaces.
15239 NL2SP=$lt_lt_NL2SP
15240
15241 # How to create reloadable object files.
15242 reload_flag=$lt_reload_flag
15243 reload_cmds=$lt_reload_cmds
15244
15245 # An object symbol dumper.
15246 OBJDUMP=$lt_OBJDUMP
15247
15248 # Method to check whether dependent libraries are shared objects.
15249 deplibs_check_method=$lt_deplibs_check_method
15250
15251 # Command to use when deplibs_check_method == "file_magic".
15252 file_magic_cmd=$lt_file_magic_cmd
15253
15254 # The archiver.
15255 AR=$lt_AR
15256 AR_FLAGS=$lt_AR_FLAGS
15257
15258 # A symbol stripping program.
15259 STRIP=$lt_STRIP
15260
15261 # Commands used to install an old-style archive.
15262 RANLIB=$lt_RANLIB
15263 old_postinstall_cmds=$lt_old_postinstall_cmds
15264 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15265
15266 # A C compiler.
15267 LTCC=$lt_CC
15268
15269 # LTCC compiler flags.
15270 LTCFLAGS=$lt_CFLAGS
15271
15272 # Take the output of nm and produce a listing of raw symbols and C names.
15273 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15274
15275 # Transform the output of nm in a proper C declaration.
15276 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15277
15278 # Transform the output of nm in a C name address pair.
15279 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15280
15281 # Transform the output of nm in a C name address pair when lib prefix is needed.
15282 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15283
15284 # The name of the directory that contains temporary libtool files.
15285 objdir=$objdir
15286
15287 # Shell to use when invoking shell scripts.
15288 SHELL=$lt_SHELL
15289
15290 # An echo program that does not interpret backslashes.
15291 ECHO=$lt_ECHO
15292
15293 # Used to examine libraries when file_magic_cmd begins with "file".
15294 MAGIC_CMD=$MAGIC_CMD
15295
15296 # Must we lock files when doing compilation?
15297 need_locks=$lt_need_locks
15298
15299 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15300 DSYMUTIL=$lt_DSYMUTIL
15301
15302 # Tool to change global to local symbols on Mac OS X.
15303 NMEDIT=$lt_NMEDIT
15304
15305 # Tool to manipulate fat objects and archives on Mac OS X.
15306 LIPO=$lt_LIPO
15307
15308 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15309 OTOOL=$lt_OTOOL
15310
15311 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15312 OTOOL64=$lt_OTOOL64
15313
15314 # Old archive suffix (normally "a").
15315 libext=$libext
15316
15317 # Shared library suffix (normally ".so").
15318 shrext_cmds=$lt_shrext_cmds
15319
15320 # The commands to extract the exported symbol list from a shared archive.
15321 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15322
15323 # Variables whose values should be saved in libtool wrapper scripts and
15324 # restored at link time.
15325 variables_saved_for_relink=$lt_variables_saved_for_relink
15326
15327 # Do we need the "lib" prefix for modules?
15328 need_lib_prefix=$need_lib_prefix
15329
15330 # Do we need a version for libraries?
15331 need_version=$need_version
15332
15333 # Library versioning type.
15334 version_type=$version_type
15335
15336 # Shared library runtime path variable.
15337 runpath_var=$runpath_var
15338
15339 # Shared library path variable.
15340 shlibpath_var=$shlibpath_var
15341
15342 # Is shlibpath searched before the hard-coded library search path?
15343 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15344
15345 # Format of library name prefix.
15346 libname_spec=$lt_libname_spec
15347
15348 # List of archive names. First name is the real one, the rest are links.
15349 # The last name is the one that the linker finds with -lNAME
15350 library_names_spec=$lt_library_names_spec
15351
15352 # The coded name of the library, if different from the real name.
15353 soname_spec=$lt_soname_spec
15354
15355 # Command to use after installation of a shared archive.
15356 postinstall_cmds=$lt_postinstall_cmds
15357
15358 # Command to use after uninstallation of a shared archive.
15359 postuninstall_cmds=$lt_postuninstall_cmds
15360
15361 # Commands used to finish a libtool library installation in a directory.
15362 finish_cmds=$lt_finish_cmds
15363
15364 # As "finish_cmds", except a single script fragment to be evaled but
15365 # not shown.
15366 finish_eval=$lt_finish_eval
15367
15368 # Whether we should hardcode library paths into libraries.
15369 hardcode_into_libs=$hardcode_into_libs
15370
15371 # Compile-time system search path for libraries.
15372 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15373
15374 # Run-time system search path for libraries.
15375 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15376
15377 # Whether dlopen is supported.
15378 dlopen_support=$enable_dlopen
15379
15380 # Whether dlopen of programs is supported.
15381 dlopen_self=$enable_dlopen_self
15382
15383 # Whether dlopen of statically linked programs is supported.
15384 dlopen_self_static=$enable_dlopen_self_static
15385
15386 # Commands to strip libraries.
15387 old_striplib=$lt_old_striplib
15388 striplib=$lt_striplib
15389
15390
15391 # The linker used to build libraries.
15392 LD=$lt_LD
15393
15394 # Commands used to build an old-style archive.
15395 old_archive_cmds=$lt_old_archive_cmds
15396
15397 # A language specific compiler.
15398 CC=$lt_compiler
15399
15400 # Is the compiler the GNU compiler?
15401 with_gcc=$GCC
15402
15403 # Compiler flag to turn off builtin functions.
15404 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15405
15406 # How to pass a linker flag through the compiler.
15407 wl=$lt_lt_prog_compiler_wl
15408
15409 # Additional compiler flags for building library objects.
15410 pic_flag=$lt_lt_prog_compiler_pic
15411
15412 # Compiler flag to prevent dynamic linking.
15413 link_static_flag=$lt_lt_prog_compiler_static
15414
15415 # Does compiler simultaneously support -c and -o options?
15416 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15417
15418 # Whether or not to add -lc for building shared libraries.
15419 build_libtool_need_lc=$archive_cmds_need_lc
15420
15421 # Whether or not to disallow shared libs when runtime libs are static.
15422 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15423
15424 # Compiler flag to allow reflexive dlopens.
15425 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15426
15427 # Compiler flag to generate shared objects directly from archives.
15428 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15429
15430 # Whether the compiler copes with passing no objects directly.
15431 compiler_needs_object=$lt_compiler_needs_object
15432
15433 # Create an old-style archive from a shared archive.
15434 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15435
15436 # Create a temporary old-style archive to link instead of a shared archive.
15437 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15438
15439 # Commands used to build a shared archive.
15440 archive_cmds=$lt_archive_cmds
15441 archive_expsym_cmds=$lt_archive_expsym_cmds
15442
15443 # Commands used to build a loadable module if different from building
15444 # a shared archive.
15445 module_cmds=$lt_module_cmds
15446 module_expsym_cmds=$lt_module_expsym_cmds
15447
15448 # Whether we are building with GNU ld or not.
15449 with_gnu_ld=$lt_with_gnu_ld
15450
15451 # Flag that allows shared libraries with undefined symbols to be built.
15452 allow_undefined_flag=$lt_allow_undefined_flag
15453
15454 # Flag that enforces no undefined symbols.
15455 no_undefined_flag=$lt_no_undefined_flag
15456
15457 # Flag to hardcode \$libdir into a binary during linking.
15458 # This must work even if \$libdir does not exist
15459 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15460
15461 # If ld is used when linking, flag to hardcode \$libdir into a binary
15462 # during linking. This must work even if \$libdir does not exist.
15463 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15464
15465 # Whether we need a single "-rpath" flag with a separated argument.
15466 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15467
15468 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15469 # DIR into the resulting binary.
15470 hardcode_direct=$hardcode_direct
15471
15472 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15473 # DIR into the resulting binary and the resulting library dependency is
15474 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15475 # library is relocated.
15476 hardcode_direct_absolute=$hardcode_direct_absolute
15477
15478 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15479 # into the resulting binary.
15480 hardcode_minus_L=$hardcode_minus_L
15481
15482 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15483 # into the resulting binary.
15484 hardcode_shlibpath_var=$hardcode_shlibpath_var
15485
15486 # Set to "yes" if building a shared library automatically hardcodes DIR
15487 # into the library and all subsequent libraries and executables linked
15488 # against it.
15489 hardcode_automatic=$hardcode_automatic
15490
15491 # Set to yes if linker adds runtime paths of dependent libraries
15492 # to runtime path list.
15493 inherit_rpath=$inherit_rpath
15494
15495 # Whether libtool must link a program against all its dependency libraries.
15496 link_all_deplibs=$link_all_deplibs
15497
15498 # Fix the shell variable \$srcfile for the compiler.
15499 fix_srcfile_path=$lt_fix_srcfile_path
15500
15501 # Set to "yes" if exported symbols are required.
15502 always_export_symbols=$always_export_symbols
15503
15504 # The commands to list exported symbols.
15505 export_symbols_cmds=$lt_export_symbols_cmds
15506
15507 # Symbols that should not be listed in the preloaded symbols.
15508 exclude_expsyms=$lt_exclude_expsyms
15509
15510 # Symbols that must always be exported.
15511 include_expsyms=$lt_include_expsyms
15512
15513 # Commands necessary for linking programs (against libraries) with templates.
15514 prelink_cmds=$lt_prelink_cmds
15515
15516 # Specify filename containing input files.
15517 file_list_spec=$lt_file_list_spec
15518
15519 # How to hardcode a shared library path into an executable.
15520 hardcode_action=$hardcode_action
15521
15522 # ### END LIBTOOL CONFIG
15523
15524 _LT_EOF
15525
15526 case $host_os in
15527 aix3*)
15528 cat <<\_LT_EOF >> "$cfgfile"
15529 # AIX sometimes has problems with the GCC collect2 program. For some
15530 # reason, if we set the COLLECT_NAMES environment variable, the problems
15531 # vanish in a puff of smoke.
15532 if test "X${COLLECT_NAMES+set}" != Xset; then
15533 COLLECT_NAMES=
15534 export COLLECT_NAMES
15535 fi
15536 _LT_EOF
15537 ;;
15538 esac
15539
15540
15541 ltmain="$ac_aux_dir/ltmain.sh"
15542
15543
15544 # We use sed instead of cat because bash on DJGPP gets confused if
15545 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15546 # text mode, it properly converts lines to CR/LF. This bash problem
15547 # is reportedly fixed, but why not run on old versions too?
15548 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15549 || (rm -f "$cfgfile"; exit 1)
15550
15551 case $xsi_shell in
15552 yes)
15553 cat << \_LT_EOF >> "$cfgfile"
15554
15555 # func_dirname file append nondir_replacement
15556 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15557 # otherwise set result to NONDIR_REPLACEMENT.
15558 func_dirname ()
15559 {
15560 case ${1} in
15561 */*) func_dirname_result="${1%/*}${2}" ;;
15562 * ) func_dirname_result="${3}" ;;
15563 esac
15564 }
15565
15566 # func_basename file
15567 func_basename ()
15568 {
15569 func_basename_result="${1##*/}"
15570 }
15571
15572 # func_dirname_and_basename file append nondir_replacement
15573 # perform func_basename and func_dirname in a single function
15574 # call:
15575 # dirname: Compute the dirname of FILE. If nonempty,
15576 # add APPEND to the result, otherwise set result
15577 # to NONDIR_REPLACEMENT.
15578 # value returned in "$func_dirname_result"
15579 # basename: Compute filename of FILE.
15580 # value retuned in "$func_basename_result"
15581 # Implementation must be kept synchronized with func_dirname
15582 # and func_basename. For efficiency, we do not delegate to
15583 # those functions but instead duplicate the functionality here.
15584 func_dirname_and_basename ()
15585 {
15586 case ${1} in
15587 */*) func_dirname_result="${1%/*}${2}" ;;
15588 * ) func_dirname_result="${3}" ;;
15589 esac
15590 func_basename_result="${1##*/}"
15591 }
15592
15593 # func_stripname prefix suffix name
15594 # strip PREFIX and SUFFIX off of NAME.
15595 # PREFIX and SUFFIX must not contain globbing or regex special
15596 # characters, hashes, percent signs, but SUFFIX may contain a leading
15597 # dot (in which case that matches only a dot).
15598 func_stripname ()
15599 {
15600 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15601 # positional parameters, so assign one to ordinary parameter first.
15602 func_stripname_result=${3}
15603 func_stripname_result=${func_stripname_result#"${1}"}
15604 func_stripname_result=${func_stripname_result%"${2}"}
15605 }
15606
15607 # func_opt_split
15608 func_opt_split ()
15609 {
15610 func_opt_split_opt=${1%%=*}
15611 func_opt_split_arg=${1#*=}
15612 }
15613
15614 # func_lo2o object
15615 func_lo2o ()
15616 {
15617 case ${1} in
15618 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15619 *) func_lo2o_result=${1} ;;
15620 esac
15621 }
15622
15623 # func_xform libobj-or-source
15624 func_xform ()
15625 {
15626 func_xform_result=${1%.*}.lo
15627 }
15628
15629 # func_arith arithmetic-term...
15630 func_arith ()
15631 {
15632 func_arith_result=$(( $* ))
15633 }
15634
15635 # func_len string
15636 # STRING may not start with a hyphen.
15637 func_len ()
15638 {
15639 func_len_result=${#1}
15640 }
15641
15642 _LT_EOF
15643 ;;
15644 *) # Bourne compatible functions.
15645 cat << \_LT_EOF >> "$cfgfile"
15646
15647 # func_dirname file append nondir_replacement
15648 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15649 # otherwise set result to NONDIR_REPLACEMENT.
15650 func_dirname ()
15651 {
15652 # Extract subdirectory from the argument.
15653 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15654 if test "X$func_dirname_result" = "X${1}"; then
15655 func_dirname_result="${3}"
15656 else
15657 func_dirname_result="$func_dirname_result${2}"
15658 fi
15659 }
15660
15661 # func_basename file
15662 func_basename ()
15663 {
15664 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15665 }
15666
15667
15668 # func_stripname prefix suffix name
15669 # strip PREFIX and SUFFIX off of NAME.
15670 # PREFIX and SUFFIX must not contain globbing or regex special
15671 # characters, hashes, percent signs, but SUFFIX may contain a leading
15672 # dot (in which case that matches only a dot).
15673 # func_strip_suffix prefix name
15674 func_stripname ()
15675 {
15676 case ${2} in
15677 .*) func_stripname_result=`$ECHO "X${3}" \
15678 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15679 *) func_stripname_result=`$ECHO "X${3}" \
15680 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15681 esac
15682 }
15683
15684 # sed scripts:
15685 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15686 my_sed_long_arg='1s/^-[^=]*=//'
15687
15688 # func_opt_split
15689 func_opt_split ()
15690 {
15691 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15692 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15693 }
15694
15695 # func_lo2o object
15696 func_lo2o ()
15697 {
15698 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15699 }
15700
15701 # func_xform libobj-or-source
15702 func_xform ()
15703 {
15704 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15705 }
15706
15707 # func_arith arithmetic-term...
15708 func_arith ()
15709 {
15710 func_arith_result=`expr "$@"`
15711 }
15712
15713 # func_len string
15714 # STRING may not start with a hyphen.
15715 func_len ()
15716 {
15717 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15718 }
15719
15720 _LT_EOF
15721 esac
15722
15723 case $lt_shell_append in
15724 yes)
15725 cat << \_LT_EOF >> "$cfgfile"
15726
15727 # func_append var value
15728 # Append VALUE to the end of shell variable VAR.
15729 func_append ()
15730 {
15731 eval "$1+=\$2"
15732 }
15733 _LT_EOF
15734 ;;
15735 *)
15736 cat << \_LT_EOF >> "$cfgfile"
15737
15738 # func_append var value
15739 # Append VALUE to the end of shell variable VAR.
15740 func_append ()
15741 {
15742 eval "$1=\$$1\$2"
15743 }
15744
15745 _LT_EOF
15746 ;;
15747 esac
15748
15749
15750 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15751 || (rm -f "$cfgfile"; exit 1)
15752
15753 mv -f "$cfgfile" "$ofile" ||
15754 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15755 chmod +x "$ofile"
15756
15757 ;;
15758
15759 esac
15760 done # for ac_tag
15761
15762
15763 { (exit 0); exit 0; }
15764 _ACEOF
15765 chmod +x $CONFIG_STATUS
15766 ac_clean_files=$ac_clean_files_save
15767
15768 test $ac_write_fail = 0 ||
15769 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15770 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15771 { (exit 1); exit 1; }; }
15772
15773
15774 # configure is writing to config.log, and then calls config.status.
15775 # config.status does its own redirection, appending to config.log.
15776 # Unfortunately, on DOS this fails, as config.log is still kept open
15777 # by configure, so config.status won't be able to write to it; its
15778 # output is simply discarded. So we exec the FD to /dev/null,
15779 # effectively closing config.log, so it can be properly (re)opened and
15780 # appended to by config.status. When coming back to configure, we
15781 # need to make the FD available again.
15782 if test "$no_create" != yes; then
15783 ac_cs_success=:
15784 ac_config_status_args=
15785 test "$silent" = yes &&
15786 ac_config_status_args="$ac_config_status_args --quiet"
15787 exec 5>/dev/null
15788 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15789 exec 5>>config.log
15790 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15791 # would make configure fail if this is the last instruction.
15792 $ac_cs_success || { (exit 1); exit 1; }
15793 fi
15794 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15795 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15796 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15797 fi
15798
15799