Imported Upstream version 0.63.0
[hcoop/debian/courier-authlib.git] / numlib / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for numlib 0.10.
4 #
5 # Report bugs to <courier-users@lists.sourceforge.net>.
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='numlib'
747 PACKAGE_TARNAME='numlib'
748 PACKAGE_VERSION='0.10'
749 PACKAGE_STRING='numlib 0.10'
750 PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
751
752 ac_unique_file="atotimet.c"
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 CPP
794 OTOOL64
795 OTOOL
796 LIPO
797 NMEDIT
798 DSYMUTIL
799 lt_ECHO
800 RANLIB
801 AR
802 OBJDUMP
803 NM
804 ac_ct_DUMPBIN
805 DUMPBIN
806 LD
807 FGREP
808 EGREP
809 GREP
810 SED
811 host_os
812 host_vendor
813 host_cpu
814 host
815 build_os
816 build_vendor
817 build_cpu
818 build
819 LIBTOOL
820 LN_S
821 am__fastdepCC_FALSE
822 am__fastdepCC_TRUE
823 CCDEPMODE
824 AMDEPBACKSLASH
825 AMDEP_FALSE
826 AMDEP_TRUE
827 am__quote
828 am__include
829 DEPDIR
830 OBJEXT
831 EXEEXT
832 ac_ct_CC
833 CPPFLAGS
834 LDFLAGS
835 CFLAGS
836 CC
837 am__untar
838 am__tar
839 AMTAR
840 am__leading_dot
841 SET_MAKE
842 AWK
843 mkdir_p
844 MKDIR_P
845 INSTALL_STRIP_PROGRAM
846 STRIP
847 install_sh
848 MAKEINFO
849 AUTOHEADER
850 AUTOMAKE
851 AUTOCONF
852 ACLOCAL
853 VERSION
854 PACKAGE
855 CYGPATH_W
856 am__isrc
857 INSTALL_DATA
858 INSTALL_SCRIPT
859 INSTALL_PROGRAM
860 target_alias
861 host_alias
862 build_alias
863 LIBS
864 ECHO_T
865 ECHO_N
866 ECHO_C
867 DEFS
868 mandir
869 localedir
870 libdir
871 psdir
872 pdfdir
873 dvidir
874 htmldir
875 infodir
876 docdir
877 oldincludedir
878 includedir
879 localstatedir
880 sharedstatedir
881 sysconfdir
882 datadir
883 datarootdir
884 libexecdir
885 sbindir
886 bindir
887 program_transform_name
888 prefix
889 exec_prefix
890 PACKAGE_BUGREPORT
891 PACKAGE_STRING
892 PACKAGE_VERSION
893 PACKAGE_TARNAME
894 PACKAGE_NAME
895 PATH_SEPARATOR
896 SHELL'
897 ac_subst_files=''
898 ac_user_opts='
899 enable_option_checking
900 enable_dependency_tracking
901 enable_shared
902 enable_static
903 with_pic
904 enable_fast_install
905 with_gnu_ld
906 enable_libtool_lock
907 '
908 ac_precious_vars='build_alias
909 host_alias
910 target_alias
911 CC
912 CFLAGS
913 LDFLAGS
914 LIBS
915 CPPFLAGS
916 CPP'
917
918
919 # Initialize some variables set by options.
920 ac_init_help=
921 ac_init_version=false
922 ac_unrecognized_opts=
923 ac_unrecognized_sep=
924 # The variables have the same names as the options, with
925 # dashes changed to underlines.
926 cache_file=/dev/null
927 exec_prefix=NONE
928 no_create=
929 no_recursion=
930 prefix=NONE
931 program_prefix=NONE
932 program_suffix=NONE
933 program_transform_name=s,x,x,
934 silent=
935 site=
936 srcdir=
937 verbose=
938 x_includes=NONE
939 x_libraries=NONE
940
941 # Installation directory options.
942 # These are left unexpanded so users can "make install exec_prefix=/foo"
943 # and all the variables that are supposed to be based on exec_prefix
944 # by default will actually change.
945 # Use braces instead of parens because sh, perl, etc. also accept them.
946 # (The list follows the same order as the GNU Coding Standards.)
947 bindir='${exec_prefix}/bin'
948 sbindir='${exec_prefix}/sbin'
949 libexecdir='${exec_prefix}/libexec'
950 datarootdir='${prefix}/share'
951 datadir='${datarootdir}'
952 sysconfdir='${prefix}/etc'
953 sharedstatedir='${prefix}/com'
954 localstatedir='${prefix}/var'
955 includedir='${prefix}/include'
956 oldincludedir='/usr/include'
957 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
958 infodir='${datarootdir}/info'
959 htmldir='${docdir}'
960 dvidir='${docdir}'
961 pdfdir='${docdir}'
962 psdir='${docdir}'
963 libdir='${exec_prefix}/lib'
964 localedir='${datarootdir}/locale'
965 mandir='${datarootdir}/man'
966
967 ac_prev=
968 ac_dashdash=
969 for ac_option
970 do
971 # If the previous option needs an argument, assign it.
972 if test -n "$ac_prev"; then
973 eval $ac_prev=\$ac_option
974 ac_prev=
975 continue
976 fi
977
978 case $ac_option in
979 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
980 *) ac_optarg=yes ;;
981 esac
982
983 # Accept the important Cygnus configure options, so we can diagnose typos.
984
985 case $ac_dashdash$ac_option in
986 --)
987 ac_dashdash=yes ;;
988
989 -bindir | --bindir | --bindi | --bind | --bin | --bi)
990 ac_prev=bindir ;;
991 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
992 bindir=$ac_optarg ;;
993
994 -build | --build | --buil | --bui | --bu)
995 ac_prev=build_alias ;;
996 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
997 build_alias=$ac_optarg ;;
998
999 -cache-file | --cache-file | --cache-fil | --cache-fi \
1000 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1001 ac_prev=cache_file ;;
1002 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1003 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1004 cache_file=$ac_optarg ;;
1005
1006 --config-cache | -C)
1007 cache_file=config.cache ;;
1008
1009 -datadir | --datadir | --datadi | --datad)
1010 ac_prev=datadir ;;
1011 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1012 datadir=$ac_optarg ;;
1013
1014 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1015 | --dataroo | --dataro | --datar)
1016 ac_prev=datarootdir ;;
1017 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1018 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1019 datarootdir=$ac_optarg ;;
1020
1021 -disable-* | --disable-*)
1022 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1023 # Reject names that are not valid shell variable names.
1024 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1025 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1026 { (exit 1); exit 1; }; }
1027 ac_useropt_orig=$ac_useropt
1028 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1029 case $ac_user_opts in
1030 *"
1031 "enable_$ac_useropt"
1032 "*) ;;
1033 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1034 ac_unrecognized_sep=', ';;
1035 esac
1036 eval enable_$ac_useropt=no ;;
1037
1038 -docdir | --docdir | --docdi | --doc | --do)
1039 ac_prev=docdir ;;
1040 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1041 docdir=$ac_optarg ;;
1042
1043 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1044 ac_prev=dvidir ;;
1045 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1046 dvidir=$ac_optarg ;;
1047
1048 -enable-* | --enable-*)
1049 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1050 # Reject names that are not valid shell variable names.
1051 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1052 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1053 { (exit 1); exit 1; }; }
1054 ac_useropt_orig=$ac_useropt
1055 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056 case $ac_user_opts in
1057 *"
1058 "enable_$ac_useropt"
1059 "*) ;;
1060 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1061 ac_unrecognized_sep=', ';;
1062 esac
1063 eval enable_$ac_useropt=\$ac_optarg ;;
1064
1065 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1066 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1067 | --exec | --exe | --ex)
1068 ac_prev=exec_prefix ;;
1069 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1070 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1071 | --exec=* | --exe=* | --ex=*)
1072 exec_prefix=$ac_optarg ;;
1073
1074 -gas | --gas | --ga | --g)
1075 # Obsolete; use --with-gas.
1076 with_gas=yes ;;
1077
1078 -help | --help | --hel | --he | -h)
1079 ac_init_help=long ;;
1080 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1081 ac_init_help=recursive ;;
1082 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1083 ac_init_help=short ;;
1084
1085 -host | --host | --hos | --ho)
1086 ac_prev=host_alias ;;
1087 -host=* | --host=* | --hos=* | --ho=*)
1088 host_alias=$ac_optarg ;;
1089
1090 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1091 ac_prev=htmldir ;;
1092 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1093 | --ht=*)
1094 htmldir=$ac_optarg ;;
1095
1096 -includedir | --includedir | --includedi | --included | --include \
1097 | --includ | --inclu | --incl | --inc)
1098 ac_prev=includedir ;;
1099 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1100 | --includ=* | --inclu=* | --incl=* | --inc=*)
1101 includedir=$ac_optarg ;;
1102
1103 -infodir | --infodir | --infodi | --infod | --info | --inf)
1104 ac_prev=infodir ;;
1105 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1106 infodir=$ac_optarg ;;
1107
1108 -libdir | --libdir | --libdi | --libd)
1109 ac_prev=libdir ;;
1110 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1111 libdir=$ac_optarg ;;
1112
1113 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1114 | --libexe | --libex | --libe)
1115 ac_prev=libexecdir ;;
1116 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1117 | --libexe=* | --libex=* | --libe=*)
1118 libexecdir=$ac_optarg ;;
1119
1120 -localedir | --localedir | --localedi | --localed | --locale)
1121 ac_prev=localedir ;;
1122 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1123 localedir=$ac_optarg ;;
1124
1125 -localstatedir | --localstatedir | --localstatedi | --localstated \
1126 | --localstate | --localstat | --localsta | --localst | --locals)
1127 ac_prev=localstatedir ;;
1128 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1129 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1130 localstatedir=$ac_optarg ;;
1131
1132 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1133 ac_prev=mandir ;;
1134 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1135 mandir=$ac_optarg ;;
1136
1137 -nfp | --nfp | --nf)
1138 # Obsolete; use --without-fp.
1139 with_fp=no ;;
1140
1141 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1142 | --no-cr | --no-c | -n)
1143 no_create=yes ;;
1144
1145 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1146 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1147 no_recursion=yes ;;
1148
1149 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1150 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1151 | --oldin | --oldi | --old | --ol | --o)
1152 ac_prev=oldincludedir ;;
1153 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1154 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1155 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1156 oldincludedir=$ac_optarg ;;
1157
1158 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1159 ac_prev=prefix ;;
1160 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1161 prefix=$ac_optarg ;;
1162
1163 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1164 | --program-pre | --program-pr | --program-p)
1165 ac_prev=program_prefix ;;
1166 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1167 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1168 program_prefix=$ac_optarg ;;
1169
1170 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1171 | --program-suf | --program-su | --program-s)
1172 ac_prev=program_suffix ;;
1173 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1174 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1175 program_suffix=$ac_optarg ;;
1176
1177 -program-transform-name | --program-transform-name \
1178 | --program-transform-nam | --program-transform-na \
1179 | --program-transform-n | --program-transform- \
1180 | --program-transform | --program-transfor \
1181 | --program-transfo | --program-transf \
1182 | --program-trans | --program-tran \
1183 | --progr-tra | --program-tr | --program-t)
1184 ac_prev=program_transform_name ;;
1185 -program-transform-name=* | --program-transform-name=* \
1186 | --program-transform-nam=* | --program-transform-na=* \
1187 | --program-transform-n=* | --program-transform-=* \
1188 | --program-transform=* | --program-transfor=* \
1189 | --program-transfo=* | --program-transf=* \
1190 | --program-trans=* | --program-tran=* \
1191 | --progr-tra=* | --program-tr=* | --program-t=*)
1192 program_transform_name=$ac_optarg ;;
1193
1194 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1195 ac_prev=pdfdir ;;
1196 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1197 pdfdir=$ac_optarg ;;
1198
1199 -psdir | --psdir | --psdi | --psd | --ps)
1200 ac_prev=psdir ;;
1201 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1202 psdir=$ac_optarg ;;
1203
1204 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1205 | -silent | --silent | --silen | --sile | --sil)
1206 silent=yes ;;
1207
1208 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1209 ac_prev=sbindir ;;
1210 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1211 | --sbi=* | --sb=*)
1212 sbindir=$ac_optarg ;;
1213
1214 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1215 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1216 | --sharedst | --shareds | --shared | --share | --shar \
1217 | --sha | --sh)
1218 ac_prev=sharedstatedir ;;
1219 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1220 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1221 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1222 | --sha=* | --sh=*)
1223 sharedstatedir=$ac_optarg ;;
1224
1225 -site | --site | --sit)
1226 ac_prev=site ;;
1227 -site=* | --site=* | --sit=*)
1228 site=$ac_optarg ;;
1229
1230 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1231 ac_prev=srcdir ;;
1232 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1233 srcdir=$ac_optarg ;;
1234
1235 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1236 | --syscon | --sysco | --sysc | --sys | --sy)
1237 ac_prev=sysconfdir ;;
1238 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1239 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1240 sysconfdir=$ac_optarg ;;
1241
1242 -target | --target | --targe | --targ | --tar | --ta | --t)
1243 ac_prev=target_alias ;;
1244 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1245 target_alias=$ac_optarg ;;
1246
1247 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1248 verbose=yes ;;
1249
1250 -version | --version | --versio | --versi | --vers | -V)
1251 ac_init_version=: ;;
1252
1253 -with-* | --with-*)
1254 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1255 # Reject names that are not valid shell variable names.
1256 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1257 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1258 { (exit 1); exit 1; }; }
1259 ac_useropt_orig=$ac_useropt
1260 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1261 case $ac_user_opts in
1262 *"
1263 "with_$ac_useropt"
1264 "*) ;;
1265 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1266 ac_unrecognized_sep=', ';;
1267 esac
1268 eval with_$ac_useropt=\$ac_optarg ;;
1269
1270 -without-* | --without-*)
1271 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1272 # Reject names that are not valid shell variable names.
1273 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1274 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1275 { (exit 1); exit 1; }; }
1276 ac_useropt_orig=$ac_useropt
1277 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1278 case $ac_user_opts in
1279 *"
1280 "with_$ac_useropt"
1281 "*) ;;
1282 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1283 ac_unrecognized_sep=', ';;
1284 esac
1285 eval with_$ac_useropt=no ;;
1286
1287 --x)
1288 # Obsolete; use --with-x.
1289 with_x=yes ;;
1290
1291 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1292 | --x-incl | --x-inc | --x-in | --x-i)
1293 ac_prev=x_includes ;;
1294 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1295 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1296 x_includes=$ac_optarg ;;
1297
1298 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1299 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1300 ac_prev=x_libraries ;;
1301 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1302 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1303 x_libraries=$ac_optarg ;;
1304
1305 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1306 Try \`$0 --help' for more information." >&2
1307 { (exit 1); exit 1; }; }
1308 ;;
1309
1310 *=*)
1311 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1312 # Reject names that are not valid shell variable names.
1313 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1314 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1315 { (exit 1); exit 1; }; }
1316 eval $ac_envvar=\$ac_optarg
1317 export $ac_envvar ;;
1318
1319 *)
1320 # FIXME: should be removed in autoconf 3.0.
1321 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1322 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1323 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1324 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1325 ;;
1326
1327 esac
1328 done
1329
1330 if test -n "$ac_prev"; then
1331 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1332 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1333 { (exit 1); exit 1; }; }
1334 fi
1335
1336 if test -n "$ac_unrecognized_opts"; then
1337 case $enable_option_checking in
1338 no) ;;
1339 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1340 { (exit 1); exit 1; }; } ;;
1341 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1342 esac
1343 fi
1344
1345 # Check all directory arguments for consistency.
1346 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1347 datadir sysconfdir sharedstatedir localstatedir includedir \
1348 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1349 libdir localedir mandir
1350 do
1351 eval ac_val=\$$ac_var
1352 # Remove trailing slashes.
1353 case $ac_val in
1354 */ )
1355 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1356 eval $ac_var=\$ac_val;;
1357 esac
1358 # Be sure to have absolute directory names.
1359 case $ac_val in
1360 [\\/$]* | ?:[\\/]* ) continue;;
1361 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1362 esac
1363 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1364 { (exit 1); exit 1; }; }
1365 done
1366
1367 # There might be people who depend on the old broken behavior: `$host'
1368 # used to hold the argument of --host etc.
1369 # FIXME: To remove some day.
1370 build=$build_alias
1371 host=$host_alias
1372 target=$target_alias
1373
1374 # FIXME: To remove some day.
1375 if test "x$host_alias" != x; then
1376 if test "x$build_alias" = x; then
1377 cross_compiling=maybe
1378 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1379 If a cross compiler is detected then cross compile mode will be used." >&2
1380 elif test "x$build_alias" != "x$host_alias"; then
1381 cross_compiling=yes
1382 fi
1383 fi
1384
1385 ac_tool_prefix=
1386 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1387
1388 test "$silent" = yes && exec 6>/dev/null
1389
1390
1391 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1392 ac_ls_di=`ls -di .` &&
1393 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1394 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1395 { (exit 1); exit 1; }; }
1396 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1397 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1398 { (exit 1); exit 1; }; }
1399
1400
1401 # Find the source files, if location was not specified.
1402 if test -z "$srcdir"; then
1403 ac_srcdir_defaulted=yes
1404 # Try the directory containing this script, then the parent directory.
1405 ac_confdir=`$as_dirname -- "$as_myself" ||
1406 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1407 X"$as_myself" : 'X\(//\)[^/]' \| \
1408 X"$as_myself" : 'X\(//\)$' \| \
1409 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1410 $as_echo X"$as_myself" |
1411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1412 s//\1/
1413 q
1414 }
1415 /^X\(\/\/\)[^/].*/{
1416 s//\1/
1417 q
1418 }
1419 /^X\(\/\/\)$/{
1420 s//\1/
1421 q
1422 }
1423 /^X\(\/\).*/{
1424 s//\1/
1425 q
1426 }
1427 s/.*/./; q'`
1428 srcdir=$ac_confdir
1429 if test ! -r "$srcdir/$ac_unique_file"; then
1430 srcdir=..
1431 fi
1432 else
1433 ac_srcdir_defaulted=no
1434 fi
1435 if test ! -r "$srcdir/$ac_unique_file"; then
1436 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1437 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1438 { (exit 1); exit 1; }; }
1439 fi
1440 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1441 ac_abs_confdir=`(
1442 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1443 { (exit 1); exit 1; }; }
1444 pwd)`
1445 # When building in place, set srcdir=.
1446 if test "$ac_abs_confdir" = "$ac_pwd"; then
1447 srcdir=.
1448 fi
1449 # Remove unnecessary trailing slashes from srcdir.
1450 # Double slashes in file names in object file debugging info
1451 # mess up M-x gdb in Emacs.
1452 case $srcdir in
1453 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1454 esac
1455 for ac_var in $ac_precious_vars; do
1456 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1457 eval ac_env_${ac_var}_value=\$${ac_var}
1458 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1459 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1460 done
1461
1462 #
1463 # Report the --help message.
1464 #
1465 if test "$ac_init_help" = "long"; then
1466 # Omit some internal or obsolete options to make the list less imposing.
1467 # This message is too long to be a string in the A/UX 3.1 sh.
1468 cat <<_ACEOF
1469 \`configure' configures numlib 0.10 to adapt to many kinds of systems.
1470
1471 Usage: $0 [OPTION]... [VAR=VALUE]...
1472
1473 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1474 VAR=VALUE. See below for descriptions of some of the useful variables.
1475
1476 Defaults for the options are specified in brackets.
1477
1478 Configuration:
1479 -h, --help display this help and exit
1480 --help=short display options specific to this package
1481 --help=recursive display the short help of all the included packages
1482 -V, --version display version information and exit
1483 -q, --quiet, --silent do not print \`checking...' messages
1484 --cache-file=FILE cache test results in FILE [disabled]
1485 -C, --config-cache alias for \`--cache-file=config.cache'
1486 -n, --no-create do not create output files
1487 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1488
1489 Installation directories:
1490 --prefix=PREFIX install architecture-independent files in PREFIX
1491 [$ac_default_prefix]
1492 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1493 [PREFIX]
1494
1495 By default, \`make install' will install all the files in
1496 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1497 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1498 for instance \`--prefix=\$HOME'.
1499
1500 For better control, use the options below.
1501
1502 Fine tuning of the installation directories:
1503 --bindir=DIR user executables [EPREFIX/bin]
1504 --sbindir=DIR system admin executables [EPREFIX/sbin]
1505 --libexecdir=DIR program executables [EPREFIX/libexec]
1506 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1507 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1508 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1509 --libdir=DIR object code libraries [EPREFIX/lib]
1510 --includedir=DIR C header files [PREFIX/include]
1511 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1512 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1513 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1514 --infodir=DIR info documentation [DATAROOTDIR/info]
1515 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1516 --mandir=DIR man documentation [DATAROOTDIR/man]
1517 --docdir=DIR documentation root [DATAROOTDIR/doc/numlib]
1518 --htmldir=DIR html documentation [DOCDIR]
1519 --dvidir=DIR dvi documentation [DOCDIR]
1520 --pdfdir=DIR pdf documentation [DOCDIR]
1521 --psdir=DIR ps documentation [DOCDIR]
1522 _ACEOF
1523
1524 cat <<\_ACEOF
1525
1526 Program names:
1527 --program-prefix=PREFIX prepend PREFIX to installed program names
1528 --program-suffix=SUFFIX append SUFFIX to installed program names
1529 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1530
1531 System types:
1532 --build=BUILD configure for building on BUILD [guessed]
1533 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1534 _ACEOF
1535 fi
1536
1537 if test -n "$ac_init_help"; then
1538 case $ac_init_help in
1539 short | recursive ) echo "Configuration of numlib 0.10:";;
1540 esac
1541 cat <<\_ACEOF
1542
1543 Optional Features:
1544 --disable-option-checking ignore unrecognized --enable/--with options
1545 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1546 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1547 --disable-dependency-tracking speeds up one-time build
1548 --enable-dependency-tracking do not reject slow dependency extractors
1549 --enable-shared[=PKGS] build shared libraries [default=yes]
1550 --enable-static[=PKGS] build static libraries [default=yes]
1551 --enable-fast-install[=PKGS]
1552 optimize for fast installation [default=yes]
1553 --disable-libtool-lock avoid locking (might break parallel builds)
1554
1555 Optional Packages:
1556 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1557 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1558 --with-pic try to use only PIC/non-PIC objects [default=use
1559 both]
1560 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1561
1562 Some influential environment variables:
1563 CC C compiler command
1564 CFLAGS C compiler flags
1565 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1566 nonstandard directory <lib dir>
1567 LIBS libraries to pass to the linker, e.g. -l<library>
1568 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1569 you have headers in a nonstandard directory <include dir>
1570 CPP C preprocessor
1571
1572 Use these variables to override the choices made by `configure' or to help
1573 it to find libraries and programs with nonstandard names/locations.
1574
1575 Report bugs to <courier-users@lists.sourceforge.net>.
1576 _ACEOF
1577 ac_status=$?
1578 fi
1579
1580 if test "$ac_init_help" = "recursive"; then
1581 # If there are subdirs, report their specific --help.
1582 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1583 test -d "$ac_dir" ||
1584 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1585 continue
1586 ac_builddir=.
1587
1588 case "$ac_dir" in
1589 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590 *)
1591 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1592 # A ".." for each directory in $ac_dir_suffix.
1593 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1594 case $ac_top_builddir_sub in
1595 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1596 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1597 esac ;;
1598 esac
1599 ac_abs_top_builddir=$ac_pwd
1600 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1601 # for backward compatibility:
1602 ac_top_builddir=$ac_top_build_prefix
1603
1604 case $srcdir in
1605 .) # We are building in place.
1606 ac_srcdir=.
1607 ac_top_srcdir=$ac_top_builddir_sub
1608 ac_abs_top_srcdir=$ac_pwd ;;
1609 [\\/]* | ?:[\\/]* ) # Absolute name.
1610 ac_srcdir=$srcdir$ac_dir_suffix;
1611 ac_top_srcdir=$srcdir
1612 ac_abs_top_srcdir=$srcdir ;;
1613 *) # Relative name.
1614 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1615 ac_top_srcdir=$ac_top_build_prefix$srcdir
1616 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1617 esac
1618 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1619
1620 cd "$ac_dir" || { ac_status=$?; continue; }
1621 # Check for guested configure.
1622 if test -f "$ac_srcdir/configure.gnu"; then
1623 echo &&
1624 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1625 elif test -f "$ac_srcdir/configure"; then
1626 echo &&
1627 $SHELL "$ac_srcdir/configure" --help=recursive
1628 else
1629 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1630 fi || ac_status=$?
1631 cd "$ac_pwd" || { ac_status=$?; break; }
1632 done
1633 fi
1634
1635 test -n "$ac_init_help" && exit $ac_status
1636 if $ac_init_version; then
1637 cat <<\_ACEOF
1638 numlib configure 0.10
1639 generated by GNU Autoconf 2.63
1640
1641 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1642 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1643 This configure script is free software; the Free Software Foundation
1644 gives unlimited permission to copy, distribute and modify it.
1645 _ACEOF
1646 exit
1647 fi
1648 cat >config.log <<_ACEOF
1649 This file contains any messages produced by compilers while
1650 running configure, to aid debugging if configure makes a mistake.
1651
1652 It was created by numlib $as_me 0.10, which was
1653 generated by GNU Autoconf 2.63. Invocation command line was
1654
1655 $ $0 $@
1656
1657 _ACEOF
1658 exec 5>>config.log
1659 {
1660 cat <<_ASUNAME
1661 ## --------- ##
1662 ## Platform. ##
1663 ## --------- ##
1664
1665 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1666 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1667 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1668 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1669 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1670
1671 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1672 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1673
1674 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1675 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1676 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1677 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1678 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1679 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1680 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1681
1682 _ASUNAME
1683
1684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1685 for as_dir in $PATH
1686 do
1687 IFS=$as_save_IFS
1688 test -z "$as_dir" && as_dir=.
1689 $as_echo "PATH: $as_dir"
1690 done
1691 IFS=$as_save_IFS
1692
1693 } >&5
1694
1695 cat >&5 <<_ACEOF
1696
1697
1698 ## ----------- ##
1699 ## Core tests. ##
1700 ## ----------- ##
1701
1702 _ACEOF
1703
1704
1705 # Keep a trace of the command line.
1706 # Strip out --no-create and --no-recursion so they do not pile up.
1707 # Strip out --silent because we don't want to record it for future runs.
1708 # Also quote any args containing shell meta-characters.
1709 # Make two passes to allow for proper duplicate-argument suppression.
1710 ac_configure_args=
1711 ac_configure_args0=
1712 ac_configure_args1=
1713 ac_must_keep_next=false
1714 for ac_pass in 1 2
1715 do
1716 for ac_arg
1717 do
1718 case $ac_arg in
1719 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1720 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1721 | -silent | --silent | --silen | --sile | --sil)
1722 continue ;;
1723 *\'*)
1724 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1725 esac
1726 case $ac_pass in
1727 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1728 2)
1729 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1730 if test $ac_must_keep_next = true; then
1731 ac_must_keep_next=false # Got value, back to normal.
1732 else
1733 case $ac_arg in
1734 *=* | --config-cache | -C | -disable-* | --disable-* \
1735 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1736 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1737 | -with-* | --with-* | -without-* | --without-* | --x)
1738 case "$ac_configure_args0 " in
1739 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1740 esac
1741 ;;
1742 -* ) ac_must_keep_next=true ;;
1743 esac
1744 fi
1745 ac_configure_args="$ac_configure_args '$ac_arg'"
1746 ;;
1747 esac
1748 done
1749 done
1750 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1751 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1752
1753 # When interrupted or exit'd, cleanup temporary files, and complete
1754 # config.log. We remove comments because anyway the quotes in there
1755 # would cause problems or look ugly.
1756 # WARNING: Use '\'' to represent an apostrophe within the trap.
1757 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1758 trap 'exit_status=$?
1759 # Save into config.log some information that might help in debugging.
1760 {
1761 echo
1762
1763 cat <<\_ASBOX
1764 ## ---------------- ##
1765 ## Cache variables. ##
1766 ## ---------------- ##
1767 _ASBOX
1768 echo
1769 # The following way of writing the cache mishandles newlines in values,
1770 (
1771 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1772 eval ac_val=\$$ac_var
1773 case $ac_val in #(
1774 *${as_nl}*)
1775 case $ac_var in #(
1776 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1777 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1778 esac
1779 case $ac_var in #(
1780 _ | IFS | as_nl) ;; #(
1781 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1782 *) $as_unset $ac_var ;;
1783 esac ;;
1784 esac
1785 done
1786 (set) 2>&1 |
1787 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1788 *${as_nl}ac_space=\ *)
1789 sed -n \
1790 "s/'\''/'\''\\\\'\'''\''/g;
1791 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1792 ;; #(
1793 *)
1794 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1795 ;;
1796 esac |
1797 sort
1798 )
1799 echo
1800
1801 cat <<\_ASBOX
1802 ## ----------------- ##
1803 ## Output variables. ##
1804 ## ----------------- ##
1805 _ASBOX
1806 echo
1807 for ac_var in $ac_subst_vars
1808 do
1809 eval ac_val=\$$ac_var
1810 case $ac_val in
1811 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1812 esac
1813 $as_echo "$ac_var='\''$ac_val'\''"
1814 done | sort
1815 echo
1816
1817 if test -n "$ac_subst_files"; then
1818 cat <<\_ASBOX
1819 ## ------------------- ##
1820 ## File substitutions. ##
1821 ## ------------------- ##
1822 _ASBOX
1823 echo
1824 for ac_var in $ac_subst_files
1825 do
1826 eval ac_val=\$$ac_var
1827 case $ac_val in
1828 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1829 esac
1830 $as_echo "$ac_var='\''$ac_val'\''"
1831 done | sort
1832 echo
1833 fi
1834
1835 if test -s confdefs.h; then
1836 cat <<\_ASBOX
1837 ## ----------- ##
1838 ## confdefs.h. ##
1839 ## ----------- ##
1840 _ASBOX
1841 echo
1842 cat confdefs.h
1843 echo
1844 fi
1845 test "$ac_signal" != 0 &&
1846 $as_echo "$as_me: caught signal $ac_signal"
1847 $as_echo "$as_me: exit $exit_status"
1848 } >&5
1849 rm -f core *.core core.conftest.* &&
1850 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1851 exit $exit_status
1852 ' 0
1853 for ac_signal in 1 2 13 15; do
1854 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1855 done
1856 ac_signal=0
1857
1858 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1859 rm -f -r conftest* confdefs.h
1860
1861 # Predefined preprocessor variables.
1862
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE_NAME "$PACKAGE_NAME"
1865 _ACEOF
1866
1867
1868 cat >>confdefs.h <<_ACEOF
1869 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1870 _ACEOF
1871
1872
1873 cat >>confdefs.h <<_ACEOF
1874 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1875 _ACEOF
1876
1877
1878 cat >>confdefs.h <<_ACEOF
1879 #define PACKAGE_STRING "$PACKAGE_STRING"
1880 _ACEOF
1881
1882
1883 cat >>confdefs.h <<_ACEOF
1884 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1885 _ACEOF
1886
1887
1888 # Let the site file select an alternate cache file if it wants to.
1889 # Prefer an explicitly selected file to automatically selected ones.
1890 ac_site_file1=NONE
1891 ac_site_file2=NONE
1892 if test -n "$CONFIG_SITE"; then
1893 ac_site_file1=$CONFIG_SITE
1894 elif test "x$prefix" != xNONE; then
1895 ac_site_file1=$prefix/share/config.site
1896 ac_site_file2=$prefix/etc/config.site
1897 else
1898 ac_site_file1=$ac_default_prefix/share/config.site
1899 ac_site_file2=$ac_default_prefix/etc/config.site
1900 fi
1901 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1902 do
1903 test "x$ac_site_file" = xNONE && continue
1904 if test -r "$ac_site_file"; then
1905 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1906 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1907 sed 's/^/| /' "$ac_site_file" >&5
1908 . "$ac_site_file"
1909 fi
1910 done
1911
1912 if test -r "$cache_file"; then
1913 # Some versions of bash will fail to source /dev/null (special
1914 # files actually), so we avoid doing that.
1915 if test -f "$cache_file"; then
1916 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1917 $as_echo "$as_me: loading cache $cache_file" >&6;}
1918 case $cache_file in
1919 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1920 *) . "./$cache_file";;
1921 esac
1922 fi
1923 else
1924 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1925 $as_echo "$as_me: creating cache $cache_file" >&6;}
1926 >$cache_file
1927 fi
1928
1929 # Check that the precious variables saved in the cache have kept the same
1930 # value.
1931 ac_cache_corrupted=false
1932 for ac_var in $ac_precious_vars; do
1933 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1934 eval ac_new_set=\$ac_env_${ac_var}_set
1935 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1936 eval ac_new_val=\$ac_env_${ac_var}_value
1937 case $ac_old_set,$ac_new_set in
1938 set,)
1939 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1940 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1941 ac_cache_corrupted=: ;;
1942 ,set)
1943 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1944 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1945 ac_cache_corrupted=: ;;
1946 ,);;
1947 *)
1948 if test "x$ac_old_val" != "x$ac_new_val"; then
1949 # differences in whitespace do not lead to failure.
1950 ac_old_val_w=`echo x $ac_old_val`
1951 ac_new_val_w=`echo x $ac_new_val`
1952 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1953 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1954 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1955 ac_cache_corrupted=:
1956 else
1957 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1958 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1959 eval $ac_var=\$ac_old_val
1960 fi
1961 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1962 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1963 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1964 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1965 fi;;
1966 esac
1967 # Pass precious variables to config.status.
1968 if test "$ac_new_set" = set; then
1969 case $ac_new_val in
1970 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1971 *) ac_arg=$ac_var=$ac_new_val ;;
1972 esac
1973 case " $ac_configure_args " in
1974 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1975 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1976 esac
1977 fi
1978 done
1979 if $ac_cache_corrupted; then
1980 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1982 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1983 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1984 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1985 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1986 { (exit 1); exit 1; }; }
1987 fi
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013 ac_ext=c
2014 ac_cpp='$CPP $CPPFLAGS'
2015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2018
2019
2020
2021 >confdefs.h # Kill PACKAGE_ macros
2022
2023
2024 ac_config_headers="$ac_config_headers config.h"
2025
2026 am__api_version='1.11'
2027
2028 ac_aux_dir=
2029 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2030 if test -f "$ac_dir/install-sh"; then
2031 ac_aux_dir=$ac_dir
2032 ac_install_sh="$ac_aux_dir/install-sh -c"
2033 break
2034 elif test -f "$ac_dir/install.sh"; then
2035 ac_aux_dir=$ac_dir
2036 ac_install_sh="$ac_aux_dir/install.sh -c"
2037 break
2038 elif test -f "$ac_dir/shtool"; then
2039 ac_aux_dir=$ac_dir
2040 ac_install_sh="$ac_aux_dir/shtool install -c"
2041 break
2042 fi
2043 done
2044 if test -z "$ac_aux_dir"; then
2045 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2046 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2047 { (exit 1); exit 1; }; }
2048 fi
2049
2050 # These three variables are undocumented and unsupported,
2051 # and are intended to be withdrawn in a future Autoconf release.
2052 # They can cause serious problems if a builder's source tree is in a directory
2053 # whose full name contains unusual characters.
2054 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2055 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2056 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2057
2058
2059 # Find a good install program. We prefer a C program (faster),
2060 # so one script is as good as another. But avoid the broken or
2061 # incompatible versions:
2062 # SysV /etc/install, /usr/sbin/install
2063 # SunOS /usr/etc/install
2064 # IRIX /sbin/install
2065 # AIX /bin/install
2066 # AmigaOS /C/install, which installs bootblocks on floppy discs
2067 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2068 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2069 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2070 # OS/2's system install, which has a completely different semantic
2071 # ./install, which can be erroneously created by make from ./install.sh.
2072 # Reject install programs that cannot install multiple files.
2073 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2074 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2075 if test -z "$INSTALL"; then
2076 if test "${ac_cv_path_install+set}" = set; then
2077 $as_echo_n "(cached) " >&6
2078 else
2079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2080 for as_dir in $PATH
2081 do
2082 IFS=$as_save_IFS
2083 test -z "$as_dir" && as_dir=.
2084 # Account for people who put trailing slashes in PATH elements.
2085 case $as_dir/ in
2086 ./ | .// | /cC/* | \
2087 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2088 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2089 /usr/ucb/* ) ;;
2090 *)
2091 # OSF1 and SCO ODT 3.0 have their own names for install.
2092 # Don't use installbsd from OSF since it installs stuff as root
2093 # by default.
2094 for ac_prog in ginstall scoinst install; do
2095 for ac_exec_ext in '' $ac_executable_extensions; do
2096 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2097 if test $ac_prog = install &&
2098 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2099 # AIX install. It has an incompatible calling convention.
2100 :
2101 elif test $ac_prog = install &&
2102 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2103 # program-specific install script used by HP pwplus--don't use.
2104 :
2105 else
2106 rm -rf conftest.one conftest.two conftest.dir
2107 echo one > conftest.one
2108 echo two > conftest.two
2109 mkdir conftest.dir
2110 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2111 test -s conftest.one && test -s conftest.two &&
2112 test -s conftest.dir/conftest.one &&
2113 test -s conftest.dir/conftest.two
2114 then
2115 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2116 break 3
2117 fi
2118 fi
2119 fi
2120 done
2121 done
2122 ;;
2123 esac
2124
2125 done
2126 IFS=$as_save_IFS
2127
2128 rm -rf conftest.one conftest.two conftest.dir
2129
2130 fi
2131 if test "${ac_cv_path_install+set}" = set; then
2132 INSTALL=$ac_cv_path_install
2133 else
2134 # As a last resort, use the slow shell script. Don't cache a
2135 # value for INSTALL within a source directory, because that will
2136 # break other packages using the cache if that directory is
2137 # removed, or if the value is a relative name.
2138 INSTALL=$ac_install_sh
2139 fi
2140 fi
2141 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2142 $as_echo "$INSTALL" >&6; }
2143
2144 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2145 # It thinks the first close brace ends the variable substitution.
2146 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2147
2148 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2149
2150 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2151
2152 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2153 $as_echo_n "checking whether build environment is sane... " >&6; }
2154 # Just in case
2155 sleep 1
2156 echo timestamp > conftest.file
2157 # Reject unsafe characters in $srcdir or the absolute working directory
2158 # name. Accept space and tab only in the latter.
2159 am_lf='
2160 '
2161 case `pwd` in
2162 *[\\\"\#\$\&\'\`$am_lf]*)
2163 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2164 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2165 { (exit 1); exit 1; }; };;
2166 esac
2167 case $srcdir in
2168 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2169 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2170 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2171 { (exit 1); exit 1; }; };;
2172 esac
2173
2174 # Do `set' in a subshell so we don't clobber the current shell's
2175 # arguments. Must try -L first in case configure is actually a
2176 # symlink; some systems play weird games with the mod time of symlinks
2177 # (eg FreeBSD returns the mod time of the symlink's containing
2178 # directory).
2179 if (
2180 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2181 if test "$*" = "X"; then
2182 # -L didn't work.
2183 set X `ls -t "$srcdir/configure" conftest.file`
2184 fi
2185 rm -f conftest.file
2186 if test "$*" != "X $srcdir/configure conftest.file" \
2187 && test "$*" != "X conftest.file $srcdir/configure"; then
2188
2189 # If neither matched, then we have a broken ls. This can happen
2190 # if, for instance, CONFIG_SHELL is bash and it inherits a
2191 # broken ls alias from the environment. This has actually
2192 # happened. Such a system could not be considered "sane".
2193 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2194 alias in your environment" >&5
2195 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2196 alias in your environment" >&2;}
2197 { (exit 1); exit 1; }; }
2198 fi
2199
2200 test "$2" = conftest.file
2201 )
2202 then
2203 # Ok.
2204 :
2205 else
2206 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2207 Check your system clock" >&5
2208 $as_echo "$as_me: error: newly created file is older than distributed files!
2209 Check your system clock" >&2;}
2210 { (exit 1); exit 1; }; }
2211 fi
2212 { $as_echo "$as_me:$LINENO: result: yes" >&5
2213 $as_echo "yes" >&6; }
2214 test "$program_prefix" != NONE &&
2215 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2216 # Use a double $ so make ignores it.
2217 test "$program_suffix" != NONE &&
2218 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2219 # Double any \ or $.
2220 # By default was `s,x,x', remove it if useless.
2221 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2222 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2223
2224 # expand $ac_aux_dir to an absolute path
2225 am_aux_dir=`cd $ac_aux_dir && pwd`
2226
2227 if test x"${MISSING+set}" != xset; then
2228 case $am_aux_dir in
2229 *\ * | *\ *)
2230 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2231 *)
2232 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2233 esac
2234 fi
2235 # Use eval to expand $SHELL
2236 if eval "$MISSING --run true"; then
2237 am_missing_run="$MISSING --run "
2238 else
2239 am_missing_run=
2240 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2241 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2242 fi
2243
2244 if test x"${install_sh}" != xset; then
2245 case $am_aux_dir in
2246 *\ * | *\ *)
2247 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2248 *)
2249 install_sh="\${SHELL} $am_aux_dir/install-sh"
2250 esac
2251 fi
2252
2253 # Installed binaries are usually stripped using `strip' when the user
2254 # run `make install-strip'. However `strip' might not be the right
2255 # tool to use in cross-compilation environments, therefore Automake
2256 # will honor the `STRIP' environment variable to overrule this program.
2257 if test "$cross_compiling" != no; then
2258 if test -n "$ac_tool_prefix"; then
2259 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2260 set dummy ${ac_tool_prefix}strip; ac_word=$2
2261 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2262 $as_echo_n "checking for $ac_word... " >&6; }
2263 if test "${ac_cv_prog_STRIP+set}" = set; then
2264 $as_echo_n "(cached) " >&6
2265 else
2266 if test -n "$STRIP"; then
2267 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2268 else
2269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2270 for as_dir in $PATH
2271 do
2272 IFS=$as_save_IFS
2273 test -z "$as_dir" && as_dir=.
2274 for ac_exec_ext in '' $ac_executable_extensions; do
2275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2276 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2277 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2278 break 2
2279 fi
2280 done
2281 done
2282 IFS=$as_save_IFS
2283
2284 fi
2285 fi
2286 STRIP=$ac_cv_prog_STRIP
2287 if test -n "$STRIP"; then
2288 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2289 $as_echo "$STRIP" >&6; }
2290 else
2291 { $as_echo "$as_me:$LINENO: result: no" >&5
2292 $as_echo "no" >&6; }
2293 fi
2294
2295
2296 fi
2297 if test -z "$ac_cv_prog_STRIP"; then
2298 ac_ct_STRIP=$STRIP
2299 # Extract the first word of "strip", so it can be a program name with args.
2300 set dummy strip; ac_word=$2
2301 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2302 $as_echo_n "checking for $ac_word... " >&6; }
2303 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2304 $as_echo_n "(cached) " >&6
2305 else
2306 if test -n "$ac_ct_STRIP"; then
2307 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2308 else
2309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2310 for as_dir in $PATH
2311 do
2312 IFS=$as_save_IFS
2313 test -z "$as_dir" && as_dir=.
2314 for ac_exec_ext in '' $ac_executable_extensions; do
2315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2316 ac_cv_prog_ac_ct_STRIP="strip"
2317 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2318 break 2
2319 fi
2320 done
2321 done
2322 IFS=$as_save_IFS
2323
2324 fi
2325 fi
2326 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2327 if test -n "$ac_ct_STRIP"; then
2328 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2329 $as_echo "$ac_ct_STRIP" >&6; }
2330 else
2331 { $as_echo "$as_me:$LINENO: result: no" >&5
2332 $as_echo "no" >&6; }
2333 fi
2334
2335 if test "x$ac_ct_STRIP" = x; then
2336 STRIP=":"
2337 else
2338 case $cross_compiling:$ac_tool_warned in
2339 yes:)
2340 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2342 ac_tool_warned=yes ;;
2343 esac
2344 STRIP=$ac_ct_STRIP
2345 fi
2346 else
2347 STRIP="$ac_cv_prog_STRIP"
2348 fi
2349
2350 fi
2351 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2352
2353 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2354 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2355 if test -z "$MKDIR_P"; then
2356 if test "${ac_cv_path_mkdir+set}" = set; then
2357 $as_echo_n "(cached) " >&6
2358 else
2359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2361 do
2362 IFS=$as_save_IFS
2363 test -z "$as_dir" && as_dir=.
2364 for ac_prog in mkdir gmkdir; do
2365 for ac_exec_ext in '' $ac_executable_extensions; do
2366 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2367 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2368 'mkdir (GNU coreutils) '* | \
2369 'mkdir (coreutils) '* | \
2370 'mkdir (fileutils) '4.1*)
2371 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2372 break 3;;
2373 esac
2374 done
2375 done
2376 done
2377 IFS=$as_save_IFS
2378
2379 fi
2380
2381 if test "${ac_cv_path_mkdir+set}" = set; then
2382 MKDIR_P="$ac_cv_path_mkdir -p"
2383 else
2384 # As a last resort, use the slow shell script. Don't cache a
2385 # value for MKDIR_P within a source directory, because that will
2386 # break other packages using the cache if that directory is
2387 # removed, or if the value is a relative name.
2388 test -d ./--version && rmdir ./--version
2389 MKDIR_P="$ac_install_sh -d"
2390 fi
2391 fi
2392 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2393 $as_echo "$MKDIR_P" >&6; }
2394
2395 mkdir_p="$MKDIR_P"
2396 case $mkdir_p in
2397 [\\/$]* | ?:[\\/]*) ;;
2398 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2399 esac
2400
2401 for ac_prog in gawk mawk nawk awk
2402 do
2403 # Extract the first word of "$ac_prog", so it can be a program name with args.
2404 set dummy $ac_prog; ac_word=$2
2405 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2406 $as_echo_n "checking for $ac_word... " >&6; }
2407 if test "${ac_cv_prog_AWK+set}" = set; then
2408 $as_echo_n "(cached) " >&6
2409 else
2410 if test -n "$AWK"; then
2411 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2412 else
2413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414 for as_dir in $PATH
2415 do
2416 IFS=$as_save_IFS
2417 test -z "$as_dir" && as_dir=.
2418 for ac_exec_ext in '' $ac_executable_extensions; do
2419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2420 ac_cv_prog_AWK="$ac_prog"
2421 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2422 break 2
2423 fi
2424 done
2425 done
2426 IFS=$as_save_IFS
2427
2428 fi
2429 fi
2430 AWK=$ac_cv_prog_AWK
2431 if test -n "$AWK"; then
2432 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2433 $as_echo "$AWK" >&6; }
2434 else
2435 { $as_echo "$as_me:$LINENO: result: no" >&5
2436 $as_echo "no" >&6; }
2437 fi
2438
2439
2440 test -n "$AWK" && break
2441 done
2442
2443 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2444 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2445 set x ${MAKE-make}
2446 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2447 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2448 $as_echo_n "(cached) " >&6
2449 else
2450 cat >conftest.make <<\_ACEOF
2451 SHELL = /bin/sh
2452 all:
2453 @echo '@@@%%%=$(MAKE)=@@@%%%'
2454 _ACEOF
2455 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2456 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2457 *@@@%%%=?*=@@@%%%*)
2458 eval ac_cv_prog_make_${ac_make}_set=yes;;
2459 *)
2460 eval ac_cv_prog_make_${ac_make}_set=no;;
2461 esac
2462 rm -f conftest.make
2463 fi
2464 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2465 { $as_echo "$as_me:$LINENO: result: yes" >&5
2466 $as_echo "yes" >&6; }
2467 SET_MAKE=
2468 else
2469 { $as_echo "$as_me:$LINENO: result: no" >&5
2470 $as_echo "no" >&6; }
2471 SET_MAKE="MAKE=${MAKE-make}"
2472 fi
2473
2474 rm -rf .tst 2>/dev/null
2475 mkdir .tst 2>/dev/null
2476 if test -d .tst; then
2477 am__leading_dot=.
2478 else
2479 am__leading_dot=_
2480 fi
2481 rmdir .tst 2>/dev/null
2482
2483 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2484 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2485 # is not polluted with repeated "-I."
2486 am__isrc=' -I$(srcdir)'
2487 # test to see if srcdir already configured
2488 if test -f $srcdir/config.status; then
2489 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2490 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2491 { (exit 1); exit 1; }; }
2492 fi
2493 fi
2494
2495 # test whether we have cygpath
2496 if test -z "$CYGPATH_W"; then
2497 if (cygpath --version) >/dev/null 2>/dev/null; then
2498 CYGPATH_W='cygpath -w'
2499 else
2500 CYGPATH_W=echo
2501 fi
2502 fi
2503
2504
2505 # Define the identity of the package.
2506 PACKAGE='numlib'
2507 VERSION='0.10'
2508
2509
2510 # Some tools Automake needs.
2511
2512 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2513
2514
2515 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2516
2517
2518 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2519
2520
2521 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2522
2523
2524 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2525
2526 # We need awk for the "check" target. The system "awk" is bad on
2527 # some platforms.
2528 # Always define AMTAR for backward compatibility.
2529
2530 AMTAR=${AMTAR-"${am_missing_run}tar"}
2531
2532 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2533
2534
2535
2536
2537
2538
2539 for ac_prog in gawk mawk nawk awk
2540 do
2541 # Extract the first word of "$ac_prog", so it can be a program name with args.
2542 set dummy $ac_prog; ac_word=$2
2543 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2544 $as_echo_n "checking for $ac_word... " >&6; }
2545 if test "${ac_cv_prog_AWK+set}" = set; then
2546 $as_echo_n "(cached) " >&6
2547 else
2548 if test -n "$AWK"; then
2549 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2550 else
2551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2552 for as_dir in $PATH
2553 do
2554 IFS=$as_save_IFS
2555 test -z "$as_dir" && as_dir=.
2556 for ac_exec_ext in '' $ac_executable_extensions; do
2557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2558 ac_cv_prog_AWK="$ac_prog"
2559 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2560 break 2
2561 fi
2562 done
2563 done
2564 IFS=$as_save_IFS
2565
2566 fi
2567 fi
2568 AWK=$ac_cv_prog_AWK
2569 if test -n "$AWK"; then
2570 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2571 $as_echo "$AWK" >&6; }
2572 else
2573 { $as_echo "$as_me:$LINENO: result: no" >&5
2574 $as_echo "no" >&6; }
2575 fi
2576
2577
2578 test -n "$AWK" && break
2579 done
2580
2581 ac_ext=c
2582 ac_cpp='$CPP $CPPFLAGS'
2583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2586 if test -n "$ac_tool_prefix"; then
2587 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2588 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2589 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2590 $as_echo_n "checking for $ac_word... " >&6; }
2591 if test "${ac_cv_prog_CC+set}" = set; then
2592 $as_echo_n "(cached) " >&6
2593 else
2594 if test -n "$CC"; then
2595 ac_cv_prog_CC="$CC" # Let the user override the test.
2596 else
2597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 for as_dir in $PATH
2599 do
2600 IFS=$as_save_IFS
2601 test -z "$as_dir" && as_dir=.
2602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2604 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2605 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2606 break 2
2607 fi
2608 done
2609 done
2610 IFS=$as_save_IFS
2611
2612 fi
2613 fi
2614 CC=$ac_cv_prog_CC
2615 if test -n "$CC"; then
2616 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2617 $as_echo "$CC" >&6; }
2618 else
2619 { $as_echo "$as_me:$LINENO: result: no" >&5
2620 $as_echo "no" >&6; }
2621 fi
2622
2623
2624 fi
2625 if test -z "$ac_cv_prog_CC"; then
2626 ac_ct_CC=$CC
2627 # Extract the first word of "gcc", so it can be a program name with args.
2628 set dummy gcc; ac_word=$2
2629 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2630 $as_echo_n "checking for $ac_word... " >&6; }
2631 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2632 $as_echo_n "(cached) " >&6
2633 else
2634 if test -n "$ac_ct_CC"; then
2635 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2636 else
2637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638 for as_dir in $PATH
2639 do
2640 IFS=$as_save_IFS
2641 test -z "$as_dir" && as_dir=.
2642 for ac_exec_ext in '' $ac_executable_extensions; do
2643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2644 ac_cv_prog_ac_ct_CC="gcc"
2645 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2646 break 2
2647 fi
2648 done
2649 done
2650 IFS=$as_save_IFS
2651
2652 fi
2653 fi
2654 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2655 if test -n "$ac_ct_CC"; then
2656 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2657 $as_echo "$ac_ct_CC" >&6; }
2658 else
2659 { $as_echo "$as_me:$LINENO: result: no" >&5
2660 $as_echo "no" >&6; }
2661 fi
2662
2663 if test "x$ac_ct_CC" = x; then
2664 CC=""
2665 else
2666 case $cross_compiling:$ac_tool_warned in
2667 yes:)
2668 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2669 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2670 ac_tool_warned=yes ;;
2671 esac
2672 CC=$ac_ct_CC
2673 fi
2674 else
2675 CC="$ac_cv_prog_CC"
2676 fi
2677
2678 if test -z "$CC"; then
2679 if test -n "$ac_tool_prefix"; then
2680 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2681 set dummy ${ac_tool_prefix}cc; ac_word=$2
2682 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2683 $as_echo_n "checking for $ac_word... " >&6; }
2684 if test "${ac_cv_prog_CC+set}" = set; then
2685 $as_echo_n "(cached) " >&6
2686 else
2687 if test -n "$CC"; then
2688 ac_cv_prog_CC="$CC" # Let the user override the test.
2689 else
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2692 do
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2697 ac_cv_prog_CC="${ac_tool_prefix}cc"
2698 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2699 break 2
2700 fi
2701 done
2702 done
2703 IFS=$as_save_IFS
2704
2705 fi
2706 fi
2707 CC=$ac_cv_prog_CC
2708 if test -n "$CC"; then
2709 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2710 $as_echo "$CC" >&6; }
2711 else
2712 { $as_echo "$as_me:$LINENO: result: no" >&5
2713 $as_echo "no" >&6; }
2714 fi
2715
2716
2717 fi
2718 fi
2719 if test -z "$CC"; then
2720 # Extract the first word of "cc", so it can be a program name with args.
2721 set dummy cc; ac_word=$2
2722 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2723 $as_echo_n "checking for $ac_word... " >&6; }
2724 if test "${ac_cv_prog_CC+set}" = set; then
2725 $as_echo_n "(cached) " >&6
2726 else
2727 if test -n "$CC"; then
2728 ac_cv_prog_CC="$CC" # Let the user override the test.
2729 else
2730 ac_prog_rejected=no
2731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2732 for as_dir in $PATH
2733 do
2734 IFS=$as_save_IFS
2735 test -z "$as_dir" && as_dir=.
2736 for ac_exec_ext in '' $ac_executable_extensions; do
2737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2738 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2739 ac_prog_rejected=yes
2740 continue
2741 fi
2742 ac_cv_prog_CC="cc"
2743 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2744 break 2
2745 fi
2746 done
2747 done
2748 IFS=$as_save_IFS
2749
2750 if test $ac_prog_rejected = yes; then
2751 # We found a bogon in the path, so make sure we never use it.
2752 set dummy $ac_cv_prog_CC
2753 shift
2754 if test $# != 0; then
2755 # We chose a different compiler from the bogus one.
2756 # However, it has the same basename, so the bogon will be chosen
2757 # first if we set CC to just the basename; use the full file name.
2758 shift
2759 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2760 fi
2761 fi
2762 fi
2763 fi
2764 CC=$ac_cv_prog_CC
2765 if test -n "$CC"; then
2766 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2767 $as_echo "$CC" >&6; }
2768 else
2769 { $as_echo "$as_me:$LINENO: result: no" >&5
2770 $as_echo "no" >&6; }
2771 fi
2772
2773
2774 fi
2775 if test -z "$CC"; then
2776 if test -n "$ac_tool_prefix"; then
2777 for ac_prog in cl.exe
2778 do
2779 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2780 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2781 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2782 $as_echo_n "checking for $ac_word... " >&6; }
2783 if test "${ac_cv_prog_CC+set}" = set; then
2784 $as_echo_n "(cached) " >&6
2785 else
2786 if test -n "$CC"; then
2787 ac_cv_prog_CC="$CC" # Let the user override the test.
2788 else
2789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 for as_dir in $PATH
2791 do
2792 IFS=$as_save_IFS
2793 test -z "$as_dir" && as_dir=.
2794 for ac_exec_ext in '' $ac_executable_extensions; do
2795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2796 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2797 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 break 2
2799 fi
2800 done
2801 done
2802 IFS=$as_save_IFS
2803
2804 fi
2805 fi
2806 CC=$ac_cv_prog_CC
2807 if test -n "$CC"; then
2808 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2809 $as_echo "$CC" >&6; }
2810 else
2811 { $as_echo "$as_me:$LINENO: result: no" >&5
2812 $as_echo "no" >&6; }
2813 fi
2814
2815
2816 test -n "$CC" && break
2817 done
2818 fi
2819 if test -z "$CC"; then
2820 ac_ct_CC=$CC
2821 for ac_prog in cl.exe
2822 do
2823 # Extract the first word of "$ac_prog", so it can be a program name with args.
2824 set dummy $ac_prog; ac_word=$2
2825 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2826 $as_echo_n "checking for $ac_word... " >&6; }
2827 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2828 $as_echo_n "(cached) " >&6
2829 else
2830 if test -n "$ac_ct_CC"; then
2831 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2832 else
2833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2834 for as_dir in $PATH
2835 do
2836 IFS=$as_save_IFS
2837 test -z "$as_dir" && as_dir=.
2838 for ac_exec_ext in '' $ac_executable_extensions; do
2839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2840 ac_cv_prog_ac_ct_CC="$ac_prog"
2841 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2842 break 2
2843 fi
2844 done
2845 done
2846 IFS=$as_save_IFS
2847
2848 fi
2849 fi
2850 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2851 if test -n "$ac_ct_CC"; then
2852 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2853 $as_echo "$ac_ct_CC" >&6; }
2854 else
2855 { $as_echo "$as_me:$LINENO: result: no" >&5
2856 $as_echo "no" >&6; }
2857 fi
2858
2859
2860 test -n "$ac_ct_CC" && break
2861 done
2862
2863 if test "x$ac_ct_CC" = x; then
2864 CC=""
2865 else
2866 case $cross_compiling:$ac_tool_warned in
2867 yes:)
2868 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2870 ac_tool_warned=yes ;;
2871 esac
2872 CC=$ac_ct_CC
2873 fi
2874 fi
2875
2876 fi
2877
2878
2879 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2880 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2881 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2882 See \`config.log' for more details." >&5
2883 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2884 See \`config.log' for more details." >&2;}
2885 { (exit 1); exit 1; }; }; }
2886
2887 # Provide some information about the compiler.
2888 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2889 set X $ac_compile
2890 ac_compiler=$2
2891 { (ac_try="$ac_compiler --version >&5"
2892 case "(($ac_try" in
2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2895 esac
2896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2897 $as_echo "$ac_try_echo") >&5
2898 (eval "$ac_compiler --version >&5") 2>&5
2899 ac_status=$?
2900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }
2902 { (ac_try="$ac_compiler -v >&5"
2903 case "(($ac_try" in
2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905 *) ac_try_echo=$ac_try;;
2906 esac
2907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2908 $as_echo "$ac_try_echo") >&5
2909 (eval "$ac_compiler -v >&5") 2>&5
2910 ac_status=$?
2911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); }
2913 { (ac_try="$ac_compiler -V >&5"
2914 case "(($ac_try" in
2915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2916 *) ac_try_echo=$ac_try;;
2917 esac
2918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2919 $as_echo "$ac_try_echo") >&5
2920 (eval "$ac_compiler -V >&5") 2>&5
2921 ac_status=$?
2922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923 (exit $ac_status); }
2924
2925 cat >conftest.$ac_ext <<_ACEOF
2926 /* confdefs.h. */
2927 _ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h. */
2931
2932 int
2933 main ()
2934 {
2935
2936 ;
2937 return 0;
2938 }
2939 _ACEOF
2940 ac_clean_files_save=$ac_clean_files
2941 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2942 # Try to create an executable without -o first, disregard a.out.
2943 # It will help us diagnose broken compilers, and finding out an intuition
2944 # of exeext.
2945 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2946 $as_echo_n "checking for C compiler default output file name... " >&6; }
2947 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2948
2949 # The possible output files:
2950 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2951
2952 ac_rmfiles=
2953 for ac_file in $ac_files
2954 do
2955 case $ac_file in
2956 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2957 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2958 esac
2959 done
2960 rm -f $ac_rmfiles
2961
2962 if { (ac_try="$ac_link_default"
2963 case "(($ac_try" in
2964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965 *) ac_try_echo=$ac_try;;
2966 esac
2967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2968 $as_echo "$ac_try_echo") >&5
2969 (eval "$ac_link_default") 2>&5
2970 ac_status=$?
2971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); }; then
2973 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2974 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2975 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2976 # so that the user can short-circuit this test for compilers unknown to
2977 # Autoconf.
2978 for ac_file in $ac_files ''
2979 do
2980 test -f "$ac_file" || continue
2981 case $ac_file in
2982 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2983 ;;
2984 [ab].out )
2985 # We found the default executable, but exeext='' is most
2986 # certainly right.
2987 break;;
2988 *.* )
2989 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2990 then :; else
2991 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2992 fi
2993 # We set ac_cv_exeext here because the later test for it is not
2994 # safe: cross compilers may not add the suffix if given an `-o'
2995 # argument, so we may need to know it at that point already.
2996 # Even if this section looks crufty: it has the advantage of
2997 # actually working.
2998 break;;
2999 * )
3000 break;;
3001 esac
3002 done
3003 test "$ac_cv_exeext" = no && ac_cv_exeext=
3004
3005 else
3006 ac_file=''
3007 fi
3008
3009 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3010 $as_echo "$ac_file" >&6; }
3011 if test -z "$ac_file"; then
3012 $as_echo "$as_me: failed program was:" >&5
3013 sed 's/^/| /' conftest.$ac_ext >&5
3014
3015 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3016 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3017 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3018 See \`config.log' for more details." >&5
3019 $as_echo "$as_me: error: C compiler cannot create executables
3020 See \`config.log' for more details." >&2;}
3021 { (exit 77); exit 77; }; }; }
3022 fi
3023
3024 ac_exeext=$ac_cv_exeext
3025
3026 # Check that the compiler produces executables we can run. If not, either
3027 # the compiler is broken, or we cross compile.
3028 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3029 $as_echo_n "checking whether the C compiler works... " >&6; }
3030 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3031 # If not cross compiling, check that we can run a simple program.
3032 if test "$cross_compiling" != yes; then
3033 if { ac_try='./$ac_file'
3034 { (case "(($ac_try" in
3035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036 *) ac_try_echo=$ac_try;;
3037 esac
3038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3039 $as_echo "$ac_try_echo") >&5
3040 (eval "$ac_try") 2>&5
3041 ac_status=$?
3042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }; }; then
3044 cross_compiling=no
3045 else
3046 if test "$cross_compiling" = maybe; then
3047 cross_compiling=yes
3048 else
3049 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3051 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3052 If you meant to cross compile, use \`--host'.
3053 See \`config.log' for more details." >&5
3054 $as_echo "$as_me: error: cannot run C compiled programs.
3055 If you meant to cross compile, use \`--host'.
3056 See \`config.log' for more details." >&2;}
3057 { (exit 1); exit 1; }; }; }
3058 fi
3059 fi
3060 fi
3061 { $as_echo "$as_me:$LINENO: result: yes" >&5
3062 $as_echo "yes" >&6; }
3063
3064 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3065 ac_clean_files=$ac_clean_files_save
3066 # Check that the compiler produces executables we can run. If not, either
3067 # the compiler is broken, or we cross compile.
3068 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3069 $as_echo_n "checking whether we are cross compiling... " >&6; }
3070 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3071 $as_echo "$cross_compiling" >&6; }
3072
3073 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3074 $as_echo_n "checking for suffix of executables... " >&6; }
3075 if { (ac_try="$ac_link"
3076 case "(($ac_try" in
3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078 *) ac_try_echo=$ac_try;;
3079 esac
3080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3081 $as_echo "$ac_try_echo") >&5
3082 (eval "$ac_link") 2>&5
3083 ac_status=$?
3084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); }; then
3086 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3087 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3088 # work properly (i.e., refer to `conftest.exe'), while it won't with
3089 # `rm'.
3090 for ac_file in conftest.exe conftest conftest.*; do
3091 test -f "$ac_file" || continue
3092 case $ac_file in
3093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3094 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3095 break;;
3096 * ) break;;
3097 esac
3098 done
3099 else
3100 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3102 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3103 See \`config.log' for more details." >&5
3104 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3105 See \`config.log' for more details." >&2;}
3106 { (exit 1); exit 1; }; }; }
3107 fi
3108
3109 rm -f conftest$ac_cv_exeext
3110 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3111 $as_echo "$ac_cv_exeext" >&6; }
3112
3113 rm -f conftest.$ac_ext
3114 EXEEXT=$ac_cv_exeext
3115 ac_exeext=$EXEEXT
3116 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3117 $as_echo_n "checking for suffix of object files... " >&6; }
3118 if test "${ac_cv_objext+set}" = set; then
3119 $as_echo_n "(cached) " >&6
3120 else
3121 cat >conftest.$ac_ext <<_ACEOF
3122 /* confdefs.h. */
3123 _ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h. */
3127
3128 int
3129 main ()
3130 {
3131
3132 ;
3133 return 0;
3134 }
3135 _ACEOF
3136 rm -f conftest.o conftest.obj
3137 if { (ac_try="$ac_compile"
3138 case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141 esac
3142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3143 $as_echo "$ac_try_echo") >&5
3144 (eval "$ac_compile") 2>&5
3145 ac_status=$?
3146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }; then
3148 for ac_file in conftest.o conftest.obj conftest.*; do
3149 test -f "$ac_file" || continue;
3150 case $ac_file in
3151 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3152 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3153 break;;
3154 esac
3155 done
3156 else
3157 $as_echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3159
3160 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3162 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3163 See \`config.log' for more details." >&5
3164 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3165 See \`config.log' for more details." >&2;}
3166 { (exit 1); exit 1; }; }; }
3167 fi
3168
3169 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3170 fi
3171 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3172 $as_echo "$ac_cv_objext" >&6; }
3173 OBJEXT=$ac_cv_objext
3174 ac_objext=$OBJEXT
3175 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3176 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3177 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3178 $as_echo_n "(cached) " >&6
3179 else
3180 cat >conftest.$ac_ext <<_ACEOF
3181 /* confdefs.h. */
3182 _ACEOF
3183 cat confdefs.h >>conftest.$ac_ext
3184 cat >>conftest.$ac_ext <<_ACEOF
3185 /* end confdefs.h. */
3186
3187 int
3188 main ()
3189 {
3190 #ifndef __GNUC__
3191 choke me
3192 #endif
3193
3194 ;
3195 return 0;
3196 }
3197 _ACEOF
3198 rm -f conftest.$ac_objext
3199 if { (ac_try="$ac_compile"
3200 case "(($ac_try" in
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3203 esac
3204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3205 $as_echo "$ac_try_echo") >&5
3206 (eval "$ac_compile") 2>conftest.er1
3207 ac_status=$?
3208 grep -v '^ *+' conftest.er1 >conftest.err
3209 rm -f conftest.er1
3210 cat conftest.err >&5
3211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); } && {
3213 test -z "$ac_c_werror_flag" ||
3214 test ! -s conftest.err
3215 } && test -s conftest.$ac_objext; then
3216 ac_compiler_gnu=yes
3217 else
3218 $as_echo "$as_me: failed program was:" >&5
3219 sed 's/^/| /' conftest.$ac_ext >&5
3220
3221 ac_compiler_gnu=no
3222 fi
3223
3224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3225 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3226
3227 fi
3228 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3229 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3230 if test $ac_compiler_gnu = yes; then
3231 GCC=yes
3232 else
3233 GCC=
3234 fi
3235 ac_test_CFLAGS=${CFLAGS+set}
3236 ac_save_CFLAGS=$CFLAGS
3237 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3238 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3239 if test "${ac_cv_prog_cc_g+set}" = set; then
3240 $as_echo_n "(cached) " >&6
3241 else
3242 ac_save_c_werror_flag=$ac_c_werror_flag
3243 ac_c_werror_flag=yes
3244 ac_cv_prog_cc_g=no
3245 CFLAGS="-g"
3246 cat >conftest.$ac_ext <<_ACEOF
3247 /* confdefs.h. */
3248 _ACEOF
3249 cat confdefs.h >>conftest.$ac_ext
3250 cat >>conftest.$ac_ext <<_ACEOF
3251 /* end confdefs.h. */
3252
3253 int
3254 main ()
3255 {
3256
3257 ;
3258 return 0;
3259 }
3260 _ACEOF
3261 rm -f conftest.$ac_objext
3262 if { (ac_try="$ac_compile"
3263 case "(($ac_try" in
3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
3266 esac
3267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3268 $as_echo "$ac_try_echo") >&5
3269 (eval "$ac_compile") 2>conftest.er1
3270 ac_status=$?
3271 grep -v '^ *+' conftest.er1 >conftest.err
3272 rm -f conftest.er1
3273 cat conftest.err >&5
3274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); } && {
3276 test -z "$ac_c_werror_flag" ||
3277 test ! -s conftest.err
3278 } && test -s conftest.$ac_objext; then
3279 ac_cv_prog_cc_g=yes
3280 else
3281 $as_echo "$as_me: failed program was:" >&5
3282 sed 's/^/| /' conftest.$ac_ext >&5
3283
3284 CFLAGS=""
3285 cat >conftest.$ac_ext <<_ACEOF
3286 /* confdefs.h. */
3287 _ACEOF
3288 cat confdefs.h >>conftest.$ac_ext
3289 cat >>conftest.$ac_ext <<_ACEOF
3290 /* end confdefs.h. */
3291
3292 int
3293 main ()
3294 {
3295
3296 ;
3297 return 0;
3298 }
3299 _ACEOF
3300 rm -f conftest.$ac_objext
3301 if { (ac_try="$ac_compile"
3302 case "(($ac_try" in
3303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304 *) ac_try_echo=$ac_try;;
3305 esac
3306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3307 $as_echo "$ac_try_echo") >&5
3308 (eval "$ac_compile") 2>conftest.er1
3309 ac_status=$?
3310 grep -v '^ *+' conftest.er1 >conftest.err
3311 rm -f conftest.er1
3312 cat conftest.err >&5
3313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); } && {
3315 test -z "$ac_c_werror_flag" ||
3316 test ! -s conftest.err
3317 } && test -s conftest.$ac_objext; then
3318 :
3319 else
3320 $as_echo "$as_me: failed program was:" >&5
3321 sed 's/^/| /' conftest.$ac_ext >&5
3322
3323 ac_c_werror_flag=$ac_save_c_werror_flag
3324 CFLAGS="-g"
3325 cat >conftest.$ac_ext <<_ACEOF
3326 /* confdefs.h. */
3327 _ACEOF
3328 cat confdefs.h >>conftest.$ac_ext
3329 cat >>conftest.$ac_ext <<_ACEOF
3330 /* end confdefs.h. */
3331
3332 int
3333 main ()
3334 {
3335
3336 ;
3337 return 0;
3338 }
3339 _ACEOF
3340 rm -f conftest.$ac_objext
3341 if { (ac_try="$ac_compile"
3342 case "(($ac_try" in
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3345 esac
3346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3347 $as_echo "$ac_try_echo") >&5
3348 (eval "$ac_compile") 2>conftest.er1
3349 ac_status=$?
3350 grep -v '^ *+' conftest.er1 >conftest.err
3351 rm -f conftest.er1
3352 cat conftest.err >&5
3353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); } && {
3355 test -z "$ac_c_werror_flag" ||
3356 test ! -s conftest.err
3357 } && test -s conftest.$ac_objext; then
3358 ac_cv_prog_cc_g=yes
3359 else
3360 $as_echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3362
3363
3364 fi
3365
3366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3367 fi
3368
3369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3370 fi
3371
3372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3373 ac_c_werror_flag=$ac_save_c_werror_flag
3374 fi
3375 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3376 $as_echo "$ac_cv_prog_cc_g" >&6; }
3377 if test "$ac_test_CFLAGS" = set; then
3378 CFLAGS=$ac_save_CFLAGS
3379 elif test $ac_cv_prog_cc_g = yes; then
3380 if test "$GCC" = yes; then
3381 CFLAGS="-g -O2"
3382 else
3383 CFLAGS="-g"
3384 fi
3385 else
3386 if test "$GCC" = yes; then
3387 CFLAGS="-O2"
3388 else
3389 CFLAGS=
3390 fi
3391 fi
3392 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3393 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3394 if test "${ac_cv_prog_cc_c89+set}" = set; then
3395 $as_echo_n "(cached) " >&6
3396 else
3397 ac_cv_prog_cc_c89=no
3398 ac_save_CC=$CC
3399 cat >conftest.$ac_ext <<_ACEOF
3400 /* confdefs.h. */
3401 _ACEOF
3402 cat confdefs.h >>conftest.$ac_ext
3403 cat >>conftest.$ac_ext <<_ACEOF
3404 /* end confdefs.h. */
3405 #include <stdarg.h>
3406 #include <stdio.h>
3407 #include <sys/types.h>
3408 #include <sys/stat.h>
3409 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3410 struct buf { int x; };
3411 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3412 static char *e (p, i)
3413 char **p;
3414 int i;
3415 {
3416 return p[i];
3417 }
3418 static char *f (char * (*g) (char **, int), char **p, ...)
3419 {
3420 char *s;
3421 va_list v;
3422 va_start (v,p);
3423 s = g (p, va_arg (v,int));
3424 va_end (v);
3425 return s;
3426 }
3427
3428 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3429 function prototypes and stuff, but not '\xHH' hex character constants.
3430 These don't provoke an error unfortunately, instead are silently treated
3431 as 'x'. The following induces an error, until -std is added to get
3432 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3433 array size at least. It's necessary to write '\x00'==0 to get something
3434 that's true only with -std. */
3435 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3436
3437 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3438 inside strings and character constants. */
3439 #define FOO(x) 'x'
3440 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3441
3442 int test (int i, double x);
3443 struct s1 {int (*f) (int a);};
3444 struct s2 {int (*f) (double a);};
3445 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3446 int argc;
3447 char **argv;
3448 int
3449 main ()
3450 {
3451 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3452 ;
3453 return 0;
3454 }
3455 _ACEOF
3456 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3457 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3458 do
3459 CC="$ac_save_CC $ac_arg"
3460 rm -f conftest.$ac_objext
3461 if { (ac_try="$ac_compile"
3462 case "(($ac_try" in
3463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464 *) ac_try_echo=$ac_try;;
3465 esac
3466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3467 $as_echo "$ac_try_echo") >&5
3468 (eval "$ac_compile") 2>conftest.er1
3469 ac_status=$?
3470 grep -v '^ *+' conftest.er1 >conftest.err
3471 rm -f conftest.er1
3472 cat conftest.err >&5
3473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); } && {
3475 test -z "$ac_c_werror_flag" ||
3476 test ! -s conftest.err
3477 } && test -s conftest.$ac_objext; then
3478 ac_cv_prog_cc_c89=$ac_arg
3479 else
3480 $as_echo "$as_me: failed program was:" >&5
3481 sed 's/^/| /' conftest.$ac_ext >&5
3482
3483
3484 fi
3485
3486 rm -f core conftest.err conftest.$ac_objext
3487 test "x$ac_cv_prog_cc_c89" != "xno" && break
3488 done
3489 rm -f conftest.$ac_ext
3490 CC=$ac_save_CC
3491
3492 fi
3493 # AC_CACHE_VAL
3494 case "x$ac_cv_prog_cc_c89" in
3495 x)
3496 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3497 $as_echo "none needed" >&6; } ;;
3498 xno)
3499 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3500 $as_echo "unsupported" >&6; } ;;
3501 *)
3502 CC="$CC $ac_cv_prog_cc_c89"
3503 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3504 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3505 esac
3506
3507
3508 ac_ext=c
3509 ac_cpp='$CPP $CPPFLAGS'
3510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3513 DEPDIR="${am__leading_dot}deps"
3514
3515 ac_config_commands="$ac_config_commands depfiles"
3516
3517
3518 am_make=${MAKE-make}
3519 cat > confinc << 'END'
3520 am__doit:
3521 @echo this is the am__doit target
3522 .PHONY: am__doit
3523 END
3524 # If we don't find an include directive, just comment out the code.
3525 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3526 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3527 am__include="#"
3528 am__quote=
3529 _am_result=none
3530 # First try GNU make style include.
3531 echo "include confinc" > confmf
3532 # Ignore all kinds of additional output from `make'.
3533 case `$am_make -s -f confmf 2> /dev/null` in #(
3534 *the\ am__doit\ target*)
3535 am__include=include
3536 am__quote=
3537 _am_result=GNU
3538 ;;
3539 esac
3540 # Now try BSD make style include.
3541 if test "$am__include" = "#"; then
3542 echo '.include "confinc"' > confmf
3543 case `$am_make -s -f confmf 2> /dev/null` in #(
3544 *the\ am__doit\ target*)
3545 am__include=.include
3546 am__quote="\""
3547 _am_result=BSD
3548 ;;
3549 esac
3550 fi
3551
3552
3553 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3554 $as_echo "$_am_result" >&6; }
3555 rm -f confinc confmf
3556
3557 # Check whether --enable-dependency-tracking was given.
3558 if test "${enable_dependency_tracking+set}" = set; then
3559 enableval=$enable_dependency_tracking;
3560 fi
3561
3562 if test "x$enable_dependency_tracking" != xno; then
3563 am_depcomp="$ac_aux_dir/depcomp"
3564 AMDEPBACKSLASH='\'
3565 fi
3566 if test "x$enable_dependency_tracking" != xno; then
3567 AMDEP_TRUE=
3568 AMDEP_FALSE='#'
3569 else
3570 AMDEP_TRUE='#'
3571 AMDEP_FALSE=
3572 fi
3573
3574
3575
3576 depcc="$CC" am_compiler_list=
3577
3578 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3579 $as_echo_n "checking dependency style of $depcc... " >&6; }
3580 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3581 $as_echo_n "(cached) " >&6
3582 else
3583 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3584 # We make a subdir and do the tests there. Otherwise we can end up
3585 # making bogus files that we don't know about and never remove. For
3586 # instance it was reported that on HP-UX the gcc test will end up
3587 # making a dummy file named `D' -- because `-MD' means `put the output
3588 # in D'.
3589 mkdir conftest.dir
3590 # Copy depcomp to subdir because otherwise we won't find it if we're
3591 # using a relative directory.
3592 cp "$am_depcomp" conftest.dir
3593 cd conftest.dir
3594 # We will build objects and dependencies in a subdirectory because
3595 # it helps to detect inapplicable dependency modes. For instance
3596 # both Tru64's cc and ICC support -MD to output dependencies as a
3597 # side effect of compilation, but ICC will put the dependencies in
3598 # the current directory while Tru64 will put them in the object
3599 # directory.
3600 mkdir sub
3601
3602 am_cv_CC_dependencies_compiler_type=none
3603 if test "$am_compiler_list" = ""; then
3604 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3605 fi
3606 am__universal=false
3607 case " $depcc " in #(
3608 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3609 esac
3610
3611 for depmode in $am_compiler_list; do
3612 # Setup a source with many dependencies, because some compilers
3613 # like to wrap large dependency lists on column 80 (with \), and
3614 # we should not choose a depcomp mode which is confused by this.
3615 #
3616 # We need to recreate these files for each test, as the compiler may
3617 # overwrite some of them when testing with obscure command lines.
3618 # This happens at least with the AIX C compiler.
3619 : > sub/conftest.c
3620 for i in 1 2 3 4 5 6; do
3621 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3622 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3623 # Solaris 8's {/usr,}/bin/sh.
3624 touch sub/conftst$i.h
3625 done
3626 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3627
3628 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3629 # mode. It turns out that the SunPro C++ compiler does not properly
3630 # handle `-M -o', and we need to detect this. Also, some Intel
3631 # versions had trouble with output in subdirs
3632 am__obj=sub/conftest.${OBJEXT-o}
3633 am__minus_obj="-o $am__obj"
3634 case $depmode in
3635 gcc)
3636 # This depmode causes a compiler race in universal mode.
3637 test "$am__universal" = false || continue
3638 ;;
3639 nosideeffect)
3640 # after this tag, mechanisms are not by side-effect, so they'll
3641 # only be used when explicitly requested
3642 if test "x$enable_dependency_tracking" = xyes; then
3643 continue
3644 else
3645 break
3646 fi
3647 ;;
3648 msvisualcpp | msvcmsys)
3649 # This compiler won't grok `-c -o', but also, the minuso test has
3650 # not run yet. These depmodes are late enough in the game, and
3651 # so weak that their functioning should not be impacted.
3652 am__obj=conftest.${OBJEXT-o}
3653 am__minus_obj=
3654 ;;
3655 none) break ;;
3656 esac
3657 if depmode=$depmode \
3658 source=sub/conftest.c object=$am__obj \
3659 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3660 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3661 >/dev/null 2>conftest.err &&
3662 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3663 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3664 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3665 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3666 # icc doesn't choke on unknown options, it will just issue warnings
3667 # or remarks (even with -Werror). So we grep stderr for any message
3668 # that says an option was ignored or not supported.
3669 # When given -MP, icc 7.0 and 7.1 complain thusly:
3670 # icc: Command line warning: ignoring option '-M'; no argument required
3671 # The diagnosis changed in icc 8.0:
3672 # icc: Command line remark: option '-MP' not supported
3673 if (grep 'ignoring option' conftest.err ||
3674 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3675 am_cv_CC_dependencies_compiler_type=$depmode
3676 break
3677 fi
3678 fi
3679 done
3680
3681 cd ..
3682 rm -rf conftest.dir
3683 else
3684 am_cv_CC_dependencies_compiler_type=none
3685 fi
3686
3687 fi
3688 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3689 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3690 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3691
3692 if
3693 test "x$enable_dependency_tracking" != xno \
3694 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3695 am__fastdepCC_TRUE=
3696 am__fastdepCC_FALSE='#'
3697 else
3698 am__fastdepCC_TRUE='#'
3699 am__fastdepCC_FALSE=
3700 fi
3701
3702
3703 # Find a good install program. We prefer a C program (faster),
3704 # so one script is as good as another. But avoid the broken or
3705 # incompatible versions:
3706 # SysV /etc/install, /usr/sbin/install
3707 # SunOS /usr/etc/install
3708 # IRIX /sbin/install
3709 # AIX /bin/install
3710 # AmigaOS /C/install, which installs bootblocks on floppy discs
3711 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3712 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3713 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3714 # OS/2's system install, which has a completely different semantic
3715 # ./install, which can be erroneously created by make from ./install.sh.
3716 # Reject install programs that cannot install multiple files.
3717 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3718 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3719 if test -z "$INSTALL"; then
3720 if test "${ac_cv_path_install+set}" = set; then
3721 $as_echo_n "(cached) " >&6
3722 else
3723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724 for as_dir in $PATH
3725 do
3726 IFS=$as_save_IFS
3727 test -z "$as_dir" && as_dir=.
3728 # Account for people who put trailing slashes in PATH elements.
3729 case $as_dir/ in
3730 ./ | .// | /cC/* | \
3731 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3732 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3733 /usr/ucb/* ) ;;
3734 *)
3735 # OSF1 and SCO ODT 3.0 have their own names for install.
3736 # Don't use installbsd from OSF since it installs stuff as root
3737 # by default.
3738 for ac_prog in ginstall scoinst install; do
3739 for ac_exec_ext in '' $ac_executable_extensions; do
3740 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3741 if test $ac_prog = install &&
3742 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3743 # AIX install. It has an incompatible calling convention.
3744 :
3745 elif test $ac_prog = install &&
3746 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3747 # program-specific install script used by HP pwplus--don't use.
3748 :
3749 else
3750 rm -rf conftest.one conftest.two conftest.dir
3751 echo one > conftest.one
3752 echo two > conftest.two
3753 mkdir conftest.dir
3754 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3755 test -s conftest.one && test -s conftest.two &&
3756 test -s conftest.dir/conftest.one &&
3757 test -s conftest.dir/conftest.two
3758 then
3759 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3760 break 3
3761 fi
3762 fi
3763 fi
3764 done
3765 done
3766 ;;
3767 esac
3768
3769 done
3770 IFS=$as_save_IFS
3771
3772 rm -rf conftest.one conftest.two conftest.dir
3773
3774 fi
3775 if test "${ac_cv_path_install+set}" = set; then
3776 INSTALL=$ac_cv_path_install
3777 else
3778 # As a last resort, use the slow shell script. Don't cache a
3779 # value for INSTALL within a source directory, because that will
3780 # break other packages using the cache if that directory is
3781 # removed, or if the value is a relative name.
3782 INSTALL=$ac_install_sh
3783 fi
3784 fi
3785 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3786 $as_echo "$INSTALL" >&6; }
3787
3788 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3789 # It thinks the first close brace ends the variable substitution.
3790 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3791
3792 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3793
3794 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3795
3796 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3797 $as_echo_n "checking whether ln -s works... " >&6; }
3798 LN_S=$as_ln_s
3799 if test "$LN_S" = "ln -s"; then
3800 { $as_echo "$as_me:$LINENO: result: yes" >&5
3801 $as_echo "yes" >&6; }
3802 else
3803 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3804 $as_echo "no, using $LN_S" >&6; }
3805 fi
3806
3807 case `pwd` in
3808 *\ * | *\ *)
3809 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3810 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3811 esac
3812
3813
3814
3815 macro_version='2.2.6'
3816 macro_revision='1.3012'
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830 ltmain="$ac_aux_dir/ltmain.sh"
3831
3832 # Make sure we can run config.sub.
3833 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3834 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3835 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3836 { (exit 1); exit 1; }; }
3837
3838 { $as_echo "$as_me:$LINENO: checking build system type" >&5
3839 $as_echo_n "checking build system type... " >&6; }
3840 if test "${ac_cv_build+set}" = set; then
3841 $as_echo_n "(cached) " >&6
3842 else
3843 ac_build_alias=$build_alias
3844 test "x$ac_build_alias" = x &&
3845 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3846 test "x$ac_build_alias" = x &&
3847 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3848 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3849 { (exit 1); exit 1; }; }
3850 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3851 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3852 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3853 { (exit 1); exit 1; }; }
3854
3855 fi
3856 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3857 $as_echo "$ac_cv_build" >&6; }
3858 case $ac_cv_build in
3859 *-*-*) ;;
3860 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3861 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
3862 { (exit 1); exit 1; }; };;
3863 esac
3864 build=$ac_cv_build
3865 ac_save_IFS=$IFS; IFS='-'
3866 set x $ac_cv_build
3867 shift
3868 build_cpu=$1
3869 build_vendor=$2
3870 shift; shift
3871 # Remember, the first character of IFS is used to create $*,
3872 # except with old shells:
3873 build_os=$*
3874 IFS=$ac_save_IFS
3875 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3876
3877
3878 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3879 $as_echo_n "checking host system type... " >&6; }
3880 if test "${ac_cv_host+set}" = set; then
3881 $as_echo_n "(cached) " >&6
3882 else
3883 if test "x$host_alias" = x; then
3884 ac_cv_host=$ac_cv_build
3885 else
3886 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3887 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3888 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3889 { (exit 1); exit 1; }; }
3890 fi
3891
3892 fi
3893 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3894 $as_echo "$ac_cv_host" >&6; }
3895 case $ac_cv_host in
3896 *-*-*) ;;
3897 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3898 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3899 { (exit 1); exit 1; }; };;
3900 esac
3901 host=$ac_cv_host
3902 ac_save_IFS=$IFS; IFS='-'
3903 set x $ac_cv_host
3904 shift
3905 host_cpu=$1
3906 host_vendor=$2
3907 shift; shift
3908 # Remember, the first character of IFS is used to create $*,
3909 # except with old shells:
3910 host_os=$*
3911 IFS=$ac_save_IFS
3912 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3913
3914
3915 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3916 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3917 if test "${ac_cv_path_SED+set}" = set; then
3918 $as_echo_n "(cached) " >&6
3919 else
3920 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3921 for ac_i in 1 2 3 4 5 6 7; do
3922 ac_script="$ac_script$as_nl$ac_script"
3923 done
3924 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3925 $as_unset ac_script || ac_script=
3926 if test -z "$SED"; then
3927 ac_path_SED_found=false
3928 # Loop through the user's path and test for each of PROGNAME-LIST
3929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930 for as_dir in $PATH
3931 do
3932 IFS=$as_save_IFS
3933 test -z "$as_dir" && as_dir=.
3934 for ac_prog in sed gsed; do
3935 for ac_exec_ext in '' $ac_executable_extensions; do
3936 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3937 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3938 # Check for GNU ac_path_SED and select it if it is found.
3939 # Check for GNU $ac_path_SED
3940 case `"$ac_path_SED" --version 2>&1` in
3941 *GNU*)
3942 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3943 *)
3944 ac_count=0
3945 $as_echo_n 0123456789 >"conftest.in"
3946 while :
3947 do
3948 cat "conftest.in" "conftest.in" >"conftest.tmp"
3949 mv "conftest.tmp" "conftest.in"
3950 cp "conftest.in" "conftest.nl"
3951 $as_echo '' >> "conftest.nl"
3952 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3953 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3954 ac_count=`expr $ac_count + 1`
3955 if test $ac_count -gt ${ac_path_SED_max-0}; then
3956 # Best one so far, save it but keep looking for a better one
3957 ac_cv_path_SED="$ac_path_SED"
3958 ac_path_SED_max=$ac_count
3959 fi
3960 # 10*(2^10) chars as input seems more than enough
3961 test $ac_count -gt 10 && break
3962 done
3963 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3964 esac
3965
3966 $ac_path_SED_found && break 3
3967 done
3968 done
3969 done
3970 IFS=$as_save_IFS
3971 if test -z "$ac_cv_path_SED"; then
3972 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3973 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3974 { (exit 1); exit 1; }; }
3975 fi
3976 else
3977 ac_cv_path_SED=$SED
3978 fi
3979
3980 fi
3981 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3982 $as_echo "$ac_cv_path_SED" >&6; }
3983 SED="$ac_cv_path_SED"
3984 rm -f conftest.sed
3985
3986 test -z "$SED" && SED=sed
3987 Xsed="$SED -e 1s/^X//"
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4000 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4001 if test "${ac_cv_path_GREP+set}" = set; then
4002 $as_echo_n "(cached) " >&6
4003 else
4004 if test -z "$GREP"; then
4005 ac_path_GREP_found=false
4006 # Loop through the user's path and test for each of PROGNAME-LIST
4007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4009 do
4010 IFS=$as_save_IFS
4011 test -z "$as_dir" && as_dir=.
4012 for ac_prog in grep ggrep; do
4013 for ac_exec_ext in '' $ac_executable_extensions; do
4014 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4015 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4016 # Check for GNU ac_path_GREP and select it if it is found.
4017 # Check for GNU $ac_path_GREP
4018 case `"$ac_path_GREP" --version 2>&1` in
4019 *GNU*)
4020 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4021 *)
4022 ac_count=0
4023 $as_echo_n 0123456789 >"conftest.in"
4024 while :
4025 do
4026 cat "conftest.in" "conftest.in" >"conftest.tmp"
4027 mv "conftest.tmp" "conftest.in"
4028 cp "conftest.in" "conftest.nl"
4029 $as_echo 'GREP' >> "conftest.nl"
4030 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4031 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4032 ac_count=`expr $ac_count + 1`
4033 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4034 # Best one so far, save it but keep looking for a better one
4035 ac_cv_path_GREP="$ac_path_GREP"
4036 ac_path_GREP_max=$ac_count
4037 fi
4038 # 10*(2^10) chars as input seems more than enough
4039 test $ac_count -gt 10 && break
4040 done
4041 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4042 esac
4043
4044 $ac_path_GREP_found && break 3
4045 done
4046 done
4047 done
4048 IFS=$as_save_IFS
4049 if test -z "$ac_cv_path_GREP"; then
4050 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4051 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4052 { (exit 1); exit 1; }; }
4053 fi
4054 else
4055 ac_cv_path_GREP=$GREP
4056 fi
4057
4058 fi
4059 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4060 $as_echo "$ac_cv_path_GREP" >&6; }
4061 GREP="$ac_cv_path_GREP"
4062
4063
4064 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4065 $as_echo_n "checking for egrep... " >&6; }
4066 if test "${ac_cv_path_EGREP+set}" = set; then
4067 $as_echo_n "(cached) " >&6
4068 else
4069 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4070 then ac_cv_path_EGREP="$GREP -E"
4071 else
4072 if test -z "$EGREP"; then
4073 ac_path_EGREP_found=false
4074 # Loop through the user's path and test for each of PROGNAME-LIST
4075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4077 do
4078 IFS=$as_save_IFS
4079 test -z "$as_dir" && as_dir=.
4080 for ac_prog in egrep; do
4081 for ac_exec_ext in '' $ac_executable_extensions; do
4082 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4083 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4084 # Check for GNU ac_path_EGREP and select it if it is found.
4085 # Check for GNU $ac_path_EGREP
4086 case `"$ac_path_EGREP" --version 2>&1` in
4087 *GNU*)
4088 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4089 *)
4090 ac_count=0
4091 $as_echo_n 0123456789 >"conftest.in"
4092 while :
4093 do
4094 cat "conftest.in" "conftest.in" >"conftest.tmp"
4095 mv "conftest.tmp" "conftest.in"
4096 cp "conftest.in" "conftest.nl"
4097 $as_echo 'EGREP' >> "conftest.nl"
4098 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4099 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4100 ac_count=`expr $ac_count + 1`
4101 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4102 # Best one so far, save it but keep looking for a better one
4103 ac_cv_path_EGREP="$ac_path_EGREP"
4104 ac_path_EGREP_max=$ac_count
4105 fi
4106 # 10*(2^10) chars as input seems more than enough
4107 test $ac_count -gt 10 && break
4108 done
4109 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4110 esac
4111
4112 $ac_path_EGREP_found && break 3
4113 done
4114 done
4115 done
4116 IFS=$as_save_IFS
4117 if test -z "$ac_cv_path_EGREP"; then
4118 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4119 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4120 { (exit 1); exit 1; }; }
4121 fi
4122 else
4123 ac_cv_path_EGREP=$EGREP
4124 fi
4125
4126 fi
4127 fi
4128 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4129 $as_echo "$ac_cv_path_EGREP" >&6; }
4130 EGREP="$ac_cv_path_EGREP"
4131
4132
4133 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4134 $as_echo_n "checking for fgrep... " >&6; }
4135 if test "${ac_cv_path_FGREP+set}" = set; then
4136 $as_echo_n "(cached) " >&6
4137 else
4138 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4139 then ac_cv_path_FGREP="$GREP -F"
4140 else
4141 if test -z "$FGREP"; then
4142 ac_path_FGREP_found=false
4143 # Loop through the user's path and test for each of PROGNAME-LIST
4144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4145 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4146 do
4147 IFS=$as_save_IFS
4148 test -z "$as_dir" && as_dir=.
4149 for ac_prog in fgrep; do
4150 for ac_exec_ext in '' $ac_executable_extensions; do
4151 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4152 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4153 # Check for GNU ac_path_FGREP and select it if it is found.
4154 # Check for GNU $ac_path_FGREP
4155 case `"$ac_path_FGREP" --version 2>&1` in
4156 *GNU*)
4157 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4158 *)
4159 ac_count=0
4160 $as_echo_n 0123456789 >"conftest.in"
4161 while :
4162 do
4163 cat "conftest.in" "conftest.in" >"conftest.tmp"
4164 mv "conftest.tmp" "conftest.in"
4165 cp "conftest.in" "conftest.nl"
4166 $as_echo 'FGREP' >> "conftest.nl"
4167 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4168 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4169 ac_count=`expr $ac_count + 1`
4170 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4171 # Best one so far, save it but keep looking for a better one
4172 ac_cv_path_FGREP="$ac_path_FGREP"
4173 ac_path_FGREP_max=$ac_count
4174 fi
4175 # 10*(2^10) chars as input seems more than enough
4176 test $ac_count -gt 10 && break
4177 done
4178 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4179 esac
4180
4181 $ac_path_FGREP_found && break 3
4182 done
4183 done
4184 done
4185 IFS=$as_save_IFS
4186 if test -z "$ac_cv_path_FGREP"; then
4187 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4188 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4189 { (exit 1); exit 1; }; }
4190 fi
4191 else
4192 ac_cv_path_FGREP=$FGREP
4193 fi
4194
4195 fi
4196 fi
4197 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4198 $as_echo "$ac_cv_path_FGREP" >&6; }
4199 FGREP="$ac_cv_path_FGREP"
4200
4201
4202 test -z "$GREP" && GREP=grep
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222 # Check whether --with-gnu-ld was given.
4223 if test "${with_gnu_ld+set}" = set; then
4224 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4225 else
4226 with_gnu_ld=no
4227 fi
4228
4229 ac_prog=ld
4230 if test "$GCC" = yes; then
4231 # Check if gcc -print-prog-name=ld gives a path.
4232 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4233 $as_echo_n "checking for ld used by $CC... " >&6; }
4234 case $host in
4235 *-*-mingw*)
4236 # gcc leaves a trailing carriage return which upsets mingw
4237 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4238 *)
4239 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4240 esac
4241 case $ac_prog in
4242 # Accept absolute paths.
4243 [\\/]* | ?:[\\/]*)
4244 re_direlt='/[^/][^/]*/\.\./'
4245 # Canonicalize the pathname of ld
4246 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4247 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4248 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4249 done
4250 test -z "$LD" && LD="$ac_prog"
4251 ;;
4252 "")
4253 # If it fails, then pretend we aren't using GCC.
4254 ac_prog=ld
4255 ;;
4256 *)
4257 # If it is relative, then search for the first ld in PATH.
4258 with_gnu_ld=unknown
4259 ;;
4260 esac
4261 elif test "$with_gnu_ld" = yes; then
4262 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4263 $as_echo_n "checking for GNU ld... " >&6; }
4264 else
4265 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4266 $as_echo_n "checking for non-GNU ld... " >&6; }
4267 fi
4268 if test "${lt_cv_path_LD+set}" = set; then
4269 $as_echo_n "(cached) " >&6
4270 else
4271 if test -z "$LD"; then
4272 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4273 for ac_dir in $PATH; do
4274 IFS="$lt_save_ifs"
4275 test -z "$ac_dir" && ac_dir=.
4276 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4277 lt_cv_path_LD="$ac_dir/$ac_prog"
4278 # Check to see if the program is GNU ld. I'd rather use --version,
4279 # but apparently some variants of GNU ld only accept -v.
4280 # Break only if it was the GNU/non-GNU ld that we prefer.
4281 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4282 *GNU* | *'with BFD'*)
4283 test "$with_gnu_ld" != no && break
4284 ;;
4285 *)
4286 test "$with_gnu_ld" != yes && break
4287 ;;
4288 esac
4289 fi
4290 done
4291 IFS="$lt_save_ifs"
4292 else
4293 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4294 fi
4295 fi
4296
4297 LD="$lt_cv_path_LD"
4298 if test -n "$LD"; then
4299 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4300 $as_echo "$LD" >&6; }
4301 else
4302 { $as_echo "$as_me:$LINENO: result: no" >&5
4303 $as_echo "no" >&6; }
4304 fi
4305 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4306 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4307 { (exit 1); exit 1; }; }
4308 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4309 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4310 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4311 $as_echo_n "(cached) " >&6
4312 else
4313 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4314 case `$LD -v 2>&1 </dev/null` in
4315 *GNU* | *'with BFD'*)
4316 lt_cv_prog_gnu_ld=yes
4317 ;;
4318 *)
4319 lt_cv_prog_gnu_ld=no
4320 ;;
4321 esac
4322 fi
4323 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4324 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4325 with_gnu_ld=$lt_cv_prog_gnu_ld
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4336 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4337 if test "${lt_cv_path_NM+set}" = set; then
4338 $as_echo_n "(cached) " >&6
4339 else
4340 if test -n "$NM"; then
4341 # Let the user override the test.
4342 lt_cv_path_NM="$NM"
4343 else
4344 lt_nm_to_check="${ac_tool_prefix}nm"
4345 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4346 lt_nm_to_check="$lt_nm_to_check nm"
4347 fi
4348 for lt_tmp_nm in $lt_nm_to_check; do
4349 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4350 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4351 IFS="$lt_save_ifs"
4352 test -z "$ac_dir" && ac_dir=.
4353 tmp_nm="$ac_dir/$lt_tmp_nm"
4354 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4355 # Check to see if the nm accepts a BSD-compat flag.
4356 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4357 # nm: unknown option "B" ignored
4358 # Tru64's nm complains that /dev/null is an invalid object file
4359 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4360 */dev/null* | *'Invalid file or object type'*)
4361 lt_cv_path_NM="$tmp_nm -B"
4362 break
4363 ;;
4364 *)
4365 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4366 */dev/null*)
4367 lt_cv_path_NM="$tmp_nm -p"
4368 break
4369 ;;
4370 *)
4371 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4372 continue # so that we can try to find one that supports BSD flags
4373 ;;
4374 esac
4375 ;;
4376 esac
4377 fi
4378 done
4379 IFS="$lt_save_ifs"
4380 done
4381 : ${lt_cv_path_NM=no}
4382 fi
4383 fi
4384 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4385 $as_echo "$lt_cv_path_NM" >&6; }
4386 if test "$lt_cv_path_NM" != "no"; then
4387 NM="$lt_cv_path_NM"
4388 else
4389 # Didn't find any BSD compatible name lister, look for dumpbin.
4390 if test -n "$ac_tool_prefix"; then
4391 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4392 do
4393 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4394 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4395 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4396 $as_echo_n "checking for $ac_word... " >&6; }
4397 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4398 $as_echo_n "(cached) " >&6
4399 else
4400 if test -n "$DUMPBIN"; then
4401 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4402 else
4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 for as_dir in $PATH
4405 do
4406 IFS=$as_save_IFS
4407 test -z "$as_dir" && as_dir=.
4408 for ac_exec_ext in '' $ac_executable_extensions; do
4409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4410 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4411 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4412 break 2
4413 fi
4414 done
4415 done
4416 IFS=$as_save_IFS
4417
4418 fi
4419 fi
4420 DUMPBIN=$ac_cv_prog_DUMPBIN
4421 if test -n "$DUMPBIN"; then
4422 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4423 $as_echo "$DUMPBIN" >&6; }
4424 else
4425 { $as_echo "$as_me:$LINENO: result: no" >&5
4426 $as_echo "no" >&6; }
4427 fi
4428
4429
4430 test -n "$DUMPBIN" && break
4431 done
4432 fi
4433 if test -z "$DUMPBIN"; then
4434 ac_ct_DUMPBIN=$DUMPBIN
4435 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4436 do
4437 # Extract the first word of "$ac_prog", so it can be a program name with args.
4438 set dummy $ac_prog; ac_word=$2
4439 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4440 $as_echo_n "checking for $ac_word... " >&6; }
4441 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4442 $as_echo_n "(cached) " >&6
4443 else
4444 if test -n "$ac_ct_DUMPBIN"; then
4445 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4446 else
4447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448 for as_dir in $PATH
4449 do
4450 IFS=$as_save_IFS
4451 test -z "$as_dir" && as_dir=.
4452 for ac_exec_ext in '' $ac_executable_extensions; do
4453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4454 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4455 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4456 break 2
4457 fi
4458 done
4459 done
4460 IFS=$as_save_IFS
4461
4462 fi
4463 fi
4464 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4465 if test -n "$ac_ct_DUMPBIN"; then
4466 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4467 $as_echo "$ac_ct_DUMPBIN" >&6; }
4468 else
4469 { $as_echo "$as_me:$LINENO: result: no" >&5
4470 $as_echo "no" >&6; }
4471 fi
4472
4473
4474 test -n "$ac_ct_DUMPBIN" && break
4475 done
4476
4477 if test "x$ac_ct_DUMPBIN" = x; then
4478 DUMPBIN=":"
4479 else
4480 case $cross_compiling:$ac_tool_warned in
4481 yes:)
4482 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4484 ac_tool_warned=yes ;;
4485 esac
4486 DUMPBIN=$ac_ct_DUMPBIN
4487 fi
4488 fi
4489
4490
4491 if test "$DUMPBIN" != ":"; then
4492 NM="$DUMPBIN"
4493 fi
4494 fi
4495 test -z "$NM" && NM=nm
4496
4497
4498
4499
4500
4501
4502 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4503 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4504 if test "${lt_cv_nm_interface+set}" = set; then
4505 $as_echo_n "(cached) " >&6
4506 else
4507 lt_cv_nm_interface="BSD nm"
4508 echo "int some_variable = 0;" > conftest.$ac_ext
4509 (eval echo "\"\$as_me:4509: $ac_compile\"" >&5)
4510 (eval "$ac_compile" 2>conftest.err)
4511 cat conftest.err >&5
4512 (eval echo "\"\$as_me:4512: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4513 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4514 cat conftest.err >&5
4515 (eval echo "\"\$as_me:4515: output\"" >&5)
4516 cat conftest.out >&5
4517 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4518 lt_cv_nm_interface="MS dumpbin"
4519 fi
4520 rm -f conftest*
4521 fi
4522 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4523 $as_echo "$lt_cv_nm_interface" >&6; }
4524
4525 # find the maximum length of command line arguments
4526 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4527 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4528 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4529 $as_echo_n "(cached) " >&6
4530 else
4531 i=0
4532 teststring="ABCD"
4533
4534 case $build_os in
4535 msdosdjgpp*)
4536 # On DJGPP, this test can blow up pretty badly due to problems in libc
4537 # (any single argument exceeding 2000 bytes causes a buffer overrun
4538 # during glob expansion). Even if it were fixed, the result of this
4539 # check would be larger than it should be.
4540 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4541 ;;
4542
4543 gnu*)
4544 # Under GNU Hurd, this test is not required because there is
4545 # no limit to the length of command line arguments.
4546 # Libtool will interpret -1 as no limit whatsoever
4547 lt_cv_sys_max_cmd_len=-1;
4548 ;;
4549
4550 cygwin* | mingw* | cegcc*)
4551 # On Win9x/ME, this test blows up -- it succeeds, but takes
4552 # about 5 minutes as the teststring grows exponentially.
4553 # Worse, since 9x/ME are not pre-emptively multitasking,
4554 # you end up with a "frozen" computer, even though with patience
4555 # the test eventually succeeds (with a max line length of 256k).
4556 # Instead, let's just punt: use the minimum linelength reported by
4557 # all of the supported platforms: 8192 (on NT/2K/XP).
4558 lt_cv_sys_max_cmd_len=8192;
4559 ;;
4560
4561 amigaos*)
4562 # On AmigaOS with pdksh, this test takes hours, literally.
4563 # So we just punt and use a minimum line length of 8192.
4564 lt_cv_sys_max_cmd_len=8192;
4565 ;;
4566
4567 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4568 # This has been around since 386BSD, at least. Likely further.
4569 if test -x /sbin/sysctl; then
4570 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4571 elif test -x /usr/sbin/sysctl; then
4572 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4573 else
4574 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4575 fi
4576 # And add a safety zone
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 ;;
4580
4581 interix*)
4582 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4583 lt_cv_sys_max_cmd_len=196608
4584 ;;
4585
4586 osf*)
4587 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4588 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4589 # nice to cause kernel panics so lets avoid the loop below.
4590 # First set a reasonable default.
4591 lt_cv_sys_max_cmd_len=16384
4592 #
4593 if test -x /sbin/sysconfig; then
4594 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4595 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4596 esac
4597 fi
4598 ;;
4599 sco3.2v5*)
4600 lt_cv_sys_max_cmd_len=102400
4601 ;;
4602 sysv5* | sco5v6* | sysv4.2uw2*)
4603 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4604 if test -n "$kargmax"; then
4605 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4606 else
4607 lt_cv_sys_max_cmd_len=32768
4608 fi
4609 ;;
4610 *)
4611 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4612 if test -n "$lt_cv_sys_max_cmd_len"; then
4613 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4614 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4615 else
4616 # Make teststring a little bigger before we do anything with it.
4617 # a 1K string should be a reasonable start.
4618 for i in 1 2 3 4 5 6 7 8 ; do
4619 teststring=$teststring$teststring
4620 done
4621 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4622 # If test is not a shell built-in, we'll probably end up computing a
4623 # maximum length that is only half of the actual maximum length, but
4624 # we can't tell.
4625 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4626 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4627 test $i != 17 # 1/2 MB should be enough
4628 do
4629 i=`expr $i + 1`
4630 teststring=$teststring$teststring
4631 done
4632 # Only check the string length outside the loop.
4633 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4634 teststring=
4635 # Add a significant safety factor because C++ compilers can tack on
4636 # massive amounts of additional arguments before passing them to the
4637 # linker. It appears as though 1/2 is a usable value.
4638 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4639 fi
4640 ;;
4641 esac
4642
4643 fi
4644
4645 if test -n $lt_cv_sys_max_cmd_len ; then
4646 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4647 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4648 else
4649 { $as_echo "$as_me:$LINENO: result: none" >&5
4650 $as_echo "none" >&6; }
4651 fi
4652 max_cmd_len=$lt_cv_sys_max_cmd_len
4653
4654
4655
4656
4657
4658
4659 : ${CP="cp -f"}
4660 : ${MV="mv -f"}
4661 : ${RM="rm -f"}
4662
4663 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4664 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4665 # Try some XSI features
4666 xsi_shell=no
4667 ( _lt_dummy="a/b/c"
4668 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4669 = c,a/b,, \
4670 && eval 'test $(( 1 + 1 )) -eq 2 \
4671 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4672 && xsi_shell=yes
4673 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4674 $as_echo "$xsi_shell" >&6; }
4675
4676
4677 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4678 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4679 lt_shell_append=no
4680 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4681 >/dev/null 2>&1 \
4682 && lt_shell_append=yes
4683 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4684 $as_echo "$lt_shell_append" >&6; }
4685
4686
4687 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4688 lt_unset=unset
4689 else
4690 lt_unset=false
4691 fi
4692
4693
4694
4695
4696
4697 # test EBCDIC or ASCII
4698 case `echo X|tr X '\101'` in
4699 A) # ASCII based system
4700 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4701 lt_SP2NL='tr \040 \012'
4702 lt_NL2SP='tr \015\012 \040\040'
4703 ;;
4704 *) # EBCDIC based system
4705 lt_SP2NL='tr \100 \n'
4706 lt_NL2SP='tr \r\n \100\100'
4707 ;;
4708 esac
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4719 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4720 if test "${lt_cv_ld_reload_flag+set}" = set; then
4721 $as_echo_n "(cached) " >&6
4722 else
4723 lt_cv_ld_reload_flag='-r'
4724 fi
4725 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4726 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4727 reload_flag=$lt_cv_ld_reload_flag
4728 case $reload_flag in
4729 "" | " "*) ;;
4730 *) reload_flag=" $reload_flag" ;;
4731 esac
4732 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4733 case $host_os in
4734 darwin*)
4735 if test "$GCC" = yes; then
4736 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4737 else
4738 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4739 fi
4740 ;;
4741 esac
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751 if test -n "$ac_tool_prefix"; then
4752 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4753 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4754 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4755 $as_echo_n "checking for $ac_word... " >&6; }
4756 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4757 $as_echo_n "(cached) " >&6
4758 else
4759 if test -n "$OBJDUMP"; then
4760 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4761 else
4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763 for as_dir in $PATH
4764 do
4765 IFS=$as_save_IFS
4766 test -z "$as_dir" && as_dir=.
4767 for ac_exec_ext in '' $ac_executable_extensions; do
4768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4769 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4770 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4771 break 2
4772 fi
4773 done
4774 done
4775 IFS=$as_save_IFS
4776
4777 fi
4778 fi
4779 OBJDUMP=$ac_cv_prog_OBJDUMP
4780 if test -n "$OBJDUMP"; then
4781 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4782 $as_echo "$OBJDUMP" >&6; }
4783 else
4784 { $as_echo "$as_me:$LINENO: result: no" >&5
4785 $as_echo "no" >&6; }
4786 fi
4787
4788
4789 fi
4790 if test -z "$ac_cv_prog_OBJDUMP"; then
4791 ac_ct_OBJDUMP=$OBJDUMP
4792 # Extract the first word of "objdump", so it can be a program name with args.
4793 set dummy objdump; ac_word=$2
4794 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4795 $as_echo_n "checking for $ac_word... " >&6; }
4796 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4797 $as_echo_n "(cached) " >&6
4798 else
4799 if test -n "$ac_ct_OBJDUMP"; then
4800 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4801 else
4802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4803 for as_dir in $PATH
4804 do
4805 IFS=$as_save_IFS
4806 test -z "$as_dir" && as_dir=.
4807 for ac_exec_ext in '' $ac_executable_extensions; do
4808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4809 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4810 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4811 break 2
4812 fi
4813 done
4814 done
4815 IFS=$as_save_IFS
4816
4817 fi
4818 fi
4819 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4820 if test -n "$ac_ct_OBJDUMP"; then
4821 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4822 $as_echo "$ac_ct_OBJDUMP" >&6; }
4823 else
4824 { $as_echo "$as_me:$LINENO: result: no" >&5
4825 $as_echo "no" >&6; }
4826 fi
4827
4828 if test "x$ac_ct_OBJDUMP" = x; then
4829 OBJDUMP="false"
4830 else
4831 case $cross_compiling:$ac_tool_warned in
4832 yes:)
4833 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4835 ac_tool_warned=yes ;;
4836 esac
4837 OBJDUMP=$ac_ct_OBJDUMP
4838 fi
4839 else
4840 OBJDUMP="$ac_cv_prog_OBJDUMP"
4841 fi
4842
4843 test -z "$OBJDUMP" && OBJDUMP=objdump
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4854 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4855 if test "${lt_cv_deplibs_check_method+set}" = set; then
4856 $as_echo_n "(cached) " >&6
4857 else
4858 lt_cv_file_magic_cmd='$MAGIC_CMD'
4859 lt_cv_file_magic_test_file=
4860 lt_cv_deplibs_check_method='unknown'
4861 # Need to set the preceding variable on all platforms that support
4862 # interlibrary dependencies.
4863 # 'none' -- dependencies not supported.
4864 # `unknown' -- same as none, but documents that we really don't know.
4865 # 'pass_all' -- all dependencies passed with no checks.
4866 # 'test_compile' -- check by making test program.
4867 # 'file_magic [[regex]]' -- check by looking for files in library path
4868 # which responds to the $file_magic_cmd with a given extended regex.
4869 # If you have `file' or equivalent on your system and you're not sure
4870 # whether `pass_all' will *always* work, you probably want this one.
4871
4872 case $host_os in
4873 aix[4-9]*)
4874 lt_cv_deplibs_check_method=pass_all
4875 ;;
4876
4877 beos*)
4878 lt_cv_deplibs_check_method=pass_all
4879 ;;
4880
4881 bsdi[45]*)
4882 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4883 lt_cv_file_magic_cmd='/usr/bin/file -L'
4884 lt_cv_file_magic_test_file=/shlib/libc.so
4885 ;;
4886
4887 cygwin*)
4888 # func_win32_libid is a shell function defined in ltmain.sh
4889 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4890 lt_cv_file_magic_cmd='func_win32_libid'
4891 ;;
4892
4893 mingw* | pw32*)
4894 # Base MSYS/MinGW do not provide the 'file' command needed by
4895 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4896 # unless we find 'file', for example because we are cross-compiling.
4897 if ( file / ) >/dev/null 2>&1; then
4898 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4899 lt_cv_file_magic_cmd='func_win32_libid'
4900 else
4901 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4902 lt_cv_file_magic_cmd='$OBJDUMP -f'
4903 fi
4904 ;;
4905
4906 cegcc)
4907 # use the weaker test based on 'objdump'. See mingw*.
4908 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4909 lt_cv_file_magic_cmd='$OBJDUMP -f'
4910 ;;
4911
4912 darwin* | rhapsody*)
4913 lt_cv_deplibs_check_method=pass_all
4914 ;;
4915
4916 freebsd* | dragonfly*)
4917 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4918 case $host_cpu in
4919 i*86 )
4920 # Not sure whether the presence of OpenBSD here was a mistake.
4921 # Let's accept both of them until this is cleared up.
4922 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4923 lt_cv_file_magic_cmd=/usr/bin/file
4924 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4925 ;;
4926 esac
4927 else
4928 lt_cv_deplibs_check_method=pass_all
4929 fi
4930 ;;
4931
4932 gnu*)
4933 lt_cv_deplibs_check_method=pass_all
4934 ;;
4935
4936 hpux10.20* | hpux11*)
4937 lt_cv_file_magic_cmd=/usr/bin/file
4938 case $host_cpu in
4939 ia64*)
4940 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4941 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4942 ;;
4943 hppa*64*)
4944 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]'
4945 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4946 ;;
4947 *)
4948 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4949 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4950 ;;
4951 esac
4952 ;;
4953
4954 interix[3-9]*)
4955 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4956 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4957 ;;
4958
4959 irix5* | irix6* | nonstopux*)
4960 case $LD in
4961 *-32|*"-32 ") libmagic=32-bit;;
4962 *-n32|*"-n32 ") libmagic=N32;;
4963 *-64|*"-64 ") libmagic=64-bit;;
4964 *) libmagic=never-match;;
4965 esac
4966 lt_cv_deplibs_check_method=pass_all
4967 ;;
4968
4969 # This must be Linux ELF.
4970 linux* | k*bsd*-gnu)
4971 lt_cv_deplibs_check_method=pass_all
4972 ;;
4973
4974 netbsd*)
4975 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4976 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4977 else
4978 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4979 fi
4980 ;;
4981
4982 newos6*)
4983 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4984 lt_cv_file_magic_cmd=/usr/bin/file
4985 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4986 ;;
4987
4988 *nto* | *qnx*)
4989 lt_cv_deplibs_check_method=pass_all
4990 ;;
4991
4992 openbsd*)
4993 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4994 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4995 else
4996 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4997 fi
4998 ;;
4999
5000 osf3* | osf4* | osf5*)
5001 lt_cv_deplibs_check_method=pass_all
5002 ;;
5003
5004 rdos*)
5005 lt_cv_deplibs_check_method=pass_all
5006 ;;
5007
5008 solaris*)
5009 lt_cv_deplibs_check_method=pass_all
5010 ;;
5011
5012 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5013 lt_cv_deplibs_check_method=pass_all
5014 ;;
5015
5016 sysv4 | sysv4.3*)
5017 case $host_vendor in
5018 motorola)
5019 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]'
5020 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5021 ;;
5022 ncr)
5023 lt_cv_deplibs_check_method=pass_all
5024 ;;
5025 sequent)
5026 lt_cv_file_magic_cmd='/bin/file'
5027 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5028 ;;
5029 sni)
5030 lt_cv_file_magic_cmd='/bin/file'
5031 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5032 lt_cv_file_magic_test_file=/lib/libc.so
5033 ;;
5034 siemens)
5035 lt_cv_deplibs_check_method=pass_all
5036 ;;
5037 pc)
5038 lt_cv_deplibs_check_method=pass_all
5039 ;;
5040 esac
5041 ;;
5042
5043 tpf*)
5044 lt_cv_deplibs_check_method=pass_all
5045 ;;
5046 esac
5047
5048 fi
5049 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5050 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5051 file_magic_cmd=$lt_cv_file_magic_cmd
5052 deplibs_check_method=$lt_cv_deplibs_check_method
5053 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066 if test -n "$ac_tool_prefix"; then
5067 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5068 set dummy ${ac_tool_prefix}ar; ac_word=$2
5069 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5070 $as_echo_n "checking for $ac_word... " >&6; }
5071 if test "${ac_cv_prog_AR+set}" = set; then
5072 $as_echo_n "(cached) " >&6
5073 else
5074 if test -n "$AR"; then
5075 ac_cv_prog_AR="$AR" # Let the user override the test.
5076 else
5077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078 for as_dir in $PATH
5079 do
5080 IFS=$as_save_IFS
5081 test -z "$as_dir" && as_dir=.
5082 for ac_exec_ext in '' $ac_executable_extensions; do
5083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5084 ac_cv_prog_AR="${ac_tool_prefix}ar"
5085 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5086 break 2
5087 fi
5088 done
5089 done
5090 IFS=$as_save_IFS
5091
5092 fi
5093 fi
5094 AR=$ac_cv_prog_AR
5095 if test -n "$AR"; then
5096 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5097 $as_echo "$AR" >&6; }
5098 else
5099 { $as_echo "$as_me:$LINENO: result: no" >&5
5100 $as_echo "no" >&6; }
5101 fi
5102
5103
5104 fi
5105 if test -z "$ac_cv_prog_AR"; then
5106 ac_ct_AR=$AR
5107 # Extract the first word of "ar", so it can be a program name with args.
5108 set dummy ar; ac_word=$2
5109 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5110 $as_echo_n "checking for $ac_word... " >&6; }
5111 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5112 $as_echo_n "(cached) " >&6
5113 else
5114 if test -n "$ac_ct_AR"; then
5115 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5116 else
5117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5118 for as_dir in $PATH
5119 do
5120 IFS=$as_save_IFS
5121 test -z "$as_dir" && as_dir=.
5122 for ac_exec_ext in '' $ac_executable_extensions; do
5123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5124 ac_cv_prog_ac_ct_AR="ar"
5125 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5126 break 2
5127 fi
5128 done
5129 done
5130 IFS=$as_save_IFS
5131
5132 fi
5133 fi
5134 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5135 if test -n "$ac_ct_AR"; then
5136 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5137 $as_echo "$ac_ct_AR" >&6; }
5138 else
5139 { $as_echo "$as_me:$LINENO: result: no" >&5
5140 $as_echo "no" >&6; }
5141 fi
5142
5143 if test "x$ac_ct_AR" = x; then
5144 AR="false"
5145 else
5146 case $cross_compiling:$ac_tool_warned in
5147 yes:)
5148 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5150 ac_tool_warned=yes ;;
5151 esac
5152 AR=$ac_ct_AR
5153 fi
5154 else
5155 AR="$ac_cv_prog_AR"
5156 fi
5157
5158 test -z "$AR" && AR=ar
5159 test -z "$AR_FLAGS" && AR_FLAGS=cru
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171 if test -n "$ac_tool_prefix"; then
5172 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5173 set dummy ${ac_tool_prefix}strip; ac_word=$2
5174 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5175 $as_echo_n "checking for $ac_word... " >&6; }
5176 if test "${ac_cv_prog_STRIP+set}" = set; then
5177 $as_echo_n "(cached) " >&6
5178 else
5179 if test -n "$STRIP"; then
5180 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5181 else
5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 for as_dir in $PATH
5184 do
5185 IFS=$as_save_IFS
5186 test -z "$as_dir" && as_dir=.
5187 for ac_exec_ext in '' $ac_executable_extensions; do
5188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5189 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5190 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5191 break 2
5192 fi
5193 done
5194 done
5195 IFS=$as_save_IFS
5196
5197 fi
5198 fi
5199 STRIP=$ac_cv_prog_STRIP
5200 if test -n "$STRIP"; then
5201 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5202 $as_echo "$STRIP" >&6; }
5203 else
5204 { $as_echo "$as_me:$LINENO: result: no" >&5
5205 $as_echo "no" >&6; }
5206 fi
5207
5208
5209 fi
5210 if test -z "$ac_cv_prog_STRIP"; then
5211 ac_ct_STRIP=$STRIP
5212 # Extract the first word of "strip", so it can be a program name with args.
5213 set dummy strip; ac_word=$2
5214 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5215 $as_echo_n "checking for $ac_word... " >&6; }
5216 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5217 $as_echo_n "(cached) " >&6
5218 else
5219 if test -n "$ac_ct_STRIP"; then
5220 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5221 else
5222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5223 for as_dir in $PATH
5224 do
5225 IFS=$as_save_IFS
5226 test -z "$as_dir" && as_dir=.
5227 for ac_exec_ext in '' $ac_executable_extensions; do
5228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5229 ac_cv_prog_ac_ct_STRIP="strip"
5230 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5231 break 2
5232 fi
5233 done
5234 done
5235 IFS=$as_save_IFS
5236
5237 fi
5238 fi
5239 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5240 if test -n "$ac_ct_STRIP"; then
5241 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5242 $as_echo "$ac_ct_STRIP" >&6; }
5243 else
5244 { $as_echo "$as_me:$LINENO: result: no" >&5
5245 $as_echo "no" >&6; }
5246 fi
5247
5248 if test "x$ac_ct_STRIP" = x; then
5249 STRIP=":"
5250 else
5251 case $cross_compiling:$ac_tool_warned in
5252 yes:)
5253 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5255 ac_tool_warned=yes ;;
5256 esac
5257 STRIP=$ac_ct_STRIP
5258 fi
5259 else
5260 STRIP="$ac_cv_prog_STRIP"
5261 fi
5262
5263 test -z "$STRIP" && STRIP=:
5264
5265
5266
5267
5268
5269
5270 if test -n "$ac_tool_prefix"; then
5271 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5272 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5273 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5274 $as_echo_n "checking for $ac_word... " >&6; }
5275 if test "${ac_cv_prog_RANLIB+set}" = set; then
5276 $as_echo_n "(cached) " >&6
5277 else
5278 if test -n "$RANLIB"; then
5279 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5280 else
5281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282 for as_dir in $PATH
5283 do
5284 IFS=$as_save_IFS
5285 test -z "$as_dir" && as_dir=.
5286 for ac_exec_ext in '' $ac_executable_extensions; do
5287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5288 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5289 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5290 break 2
5291 fi
5292 done
5293 done
5294 IFS=$as_save_IFS
5295
5296 fi
5297 fi
5298 RANLIB=$ac_cv_prog_RANLIB
5299 if test -n "$RANLIB"; then
5300 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5301 $as_echo "$RANLIB" >&6; }
5302 else
5303 { $as_echo "$as_me:$LINENO: result: no" >&5
5304 $as_echo "no" >&6; }
5305 fi
5306
5307
5308 fi
5309 if test -z "$ac_cv_prog_RANLIB"; then
5310 ac_ct_RANLIB=$RANLIB
5311 # Extract the first word of "ranlib", so it can be a program name with args.
5312 set dummy ranlib; ac_word=$2
5313 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5314 $as_echo_n "checking for $ac_word... " >&6; }
5315 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5316 $as_echo_n "(cached) " >&6
5317 else
5318 if test -n "$ac_ct_RANLIB"; then
5319 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5320 else
5321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322 for as_dir in $PATH
5323 do
5324 IFS=$as_save_IFS
5325 test -z "$as_dir" && as_dir=.
5326 for ac_exec_ext in '' $ac_executable_extensions; do
5327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5328 ac_cv_prog_ac_ct_RANLIB="ranlib"
5329 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5330 break 2
5331 fi
5332 done
5333 done
5334 IFS=$as_save_IFS
5335
5336 fi
5337 fi
5338 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5339 if test -n "$ac_ct_RANLIB"; then
5340 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5341 $as_echo "$ac_ct_RANLIB" >&6; }
5342 else
5343 { $as_echo "$as_me:$LINENO: result: no" >&5
5344 $as_echo "no" >&6; }
5345 fi
5346
5347 if test "x$ac_ct_RANLIB" = x; then
5348 RANLIB=":"
5349 else
5350 case $cross_compiling:$ac_tool_warned in
5351 yes:)
5352 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5354 ac_tool_warned=yes ;;
5355 esac
5356 RANLIB=$ac_ct_RANLIB
5357 fi
5358 else
5359 RANLIB="$ac_cv_prog_RANLIB"
5360 fi
5361
5362 test -z "$RANLIB" && RANLIB=:
5363
5364
5365
5366
5367
5368
5369 # Determine commands to create old-style static archives.
5370 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5371 old_postinstall_cmds='chmod 644 $oldlib'
5372 old_postuninstall_cmds=
5373
5374 if test -n "$RANLIB"; then
5375 case $host_os in
5376 openbsd*)
5377 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5378 ;;
5379 *)
5380 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5381 ;;
5382 esac
5383 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5384 fi
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419 # If no C compiler was specified, use CC.
5420 LTCC=${LTCC-"$CC"}
5421
5422 # If no C compiler flags were specified, use CFLAGS.
5423 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5424
5425 # Allow CC to be a program name with arguments.
5426 compiler=$CC
5427
5428
5429 # Check for command to grab the raw symbol name followed by C symbol from nm.
5430 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5431 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5432 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5433 $as_echo_n "(cached) " >&6
5434 else
5435
5436 # These are sane defaults that work on at least a few old systems.
5437 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5438
5439 # Character class describing NM global symbol codes.
5440 symcode='[BCDEGRST]'
5441
5442 # Regexp to match symbols that can be accessed directly from C.
5443 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5444
5445 # Define system-specific variables.
5446 case $host_os in
5447 aix*)
5448 symcode='[BCDT]'
5449 ;;
5450 cygwin* | mingw* | pw32* | cegcc*)
5451 symcode='[ABCDGISTW]'
5452 ;;
5453 hpux*)
5454 if test "$host_cpu" = ia64; then
5455 symcode='[ABCDEGRST]'
5456 fi
5457 ;;
5458 irix* | nonstopux*)
5459 symcode='[BCDEGRST]'
5460 ;;
5461 osf*)
5462 symcode='[BCDEGQRST]'
5463 ;;
5464 solaris*)
5465 symcode='[BDRT]'
5466 ;;
5467 sco3.2v5*)
5468 symcode='[DT]'
5469 ;;
5470 sysv4.2uw2*)
5471 symcode='[DT]'
5472 ;;
5473 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5474 symcode='[ABDT]'
5475 ;;
5476 sysv4)
5477 symcode='[DFNSTU]'
5478 ;;
5479 esac
5480
5481 # If we're using GNU nm, then use its standard symbol codes.
5482 case `$NM -V 2>&1` in
5483 *GNU* | *'with BFD'*)
5484 symcode='[ABCDGIRSTW]' ;;
5485 esac
5486
5487 # Transform an extracted symbol line into a proper C declaration.
5488 # Some systems (esp. on ia64) link data and code symbols differently,
5489 # so use this general approach.
5490 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5491
5492 # Transform an extracted symbol line into symbol name and symbol address
5493 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5494 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'"
5495
5496 # Handle CRLF in mingw tool chain
5497 opt_cr=
5498 case $build_os in
5499 mingw*)
5500 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5501 ;;
5502 esac
5503
5504 # Try without a prefix underscore, then with it.
5505 for ac_symprfx in "" "_"; do
5506
5507 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5508 symxfrm="\\1 $ac_symprfx\\2 \\2"
5509
5510 # Write the raw and C identifiers.
5511 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5512 # Fake it for dumpbin and say T for any non-static function
5513 # and D for any global variable.
5514 # Also find C++ and __fastcall symbols from MSVC++,
5515 # which start with @ or ?.
5516 lt_cv_sys_global_symbol_pipe="$AWK '"\
5517 " {last_section=section; section=\$ 3};"\
5518 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5519 " \$ 0!~/External *\|/{next};"\
5520 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5521 " {if(hide[section]) next};"\
5522 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5523 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5524 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5525 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5526 " ' prfx=^$ac_symprfx"
5527 else
5528 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5529 fi
5530
5531 # Check to see that the pipe works correctly.
5532 pipe_works=no
5533
5534 rm -f conftest*
5535 cat > conftest.$ac_ext <<_LT_EOF
5536 #ifdef __cplusplus
5537 extern "C" {
5538 #endif
5539 char nm_test_var;
5540 void nm_test_func(void);
5541 void nm_test_func(void){}
5542 #ifdef __cplusplus
5543 }
5544 #endif
5545 int main(){nm_test_var='a';nm_test_func();return(0);}
5546 _LT_EOF
5547
5548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5549 (eval $ac_compile) 2>&5
5550 ac_status=$?
5551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); }; then
5553 # Now try to grab the symbols.
5554 nlist=conftest.nm
5555 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5556 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5557 ac_status=$?
5558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 (exit $ac_status); } && test -s "$nlist"; then
5560 # Try sorting and uniquifying the output.
5561 if sort "$nlist" | uniq > "$nlist"T; then
5562 mv -f "$nlist"T "$nlist"
5563 else
5564 rm -f "$nlist"T
5565 fi
5566
5567 # Make sure that we snagged all the symbols we need.
5568 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5569 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5570 cat <<_LT_EOF > conftest.$ac_ext
5571 #ifdef __cplusplus
5572 extern "C" {
5573 #endif
5574
5575 _LT_EOF
5576 # Now generate the symbol file.
5577 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5578
5579 cat <<_LT_EOF >> conftest.$ac_ext
5580
5581 /* The mapping between symbol names and symbols. */
5582 const struct {
5583 const char *name;
5584 void *address;
5585 }
5586 lt__PROGRAM__LTX_preloaded_symbols[] =
5587 {
5588 { "@PROGRAM@", (void *) 0 },
5589 _LT_EOF
5590 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5591 cat <<\_LT_EOF >> conftest.$ac_ext
5592 {0, (void *) 0}
5593 };
5594
5595 /* This works around a problem in FreeBSD linker */
5596 #ifdef FREEBSD_WORKAROUND
5597 static const void *lt_preloaded_setup() {
5598 return lt__PROGRAM__LTX_preloaded_symbols;
5599 }
5600 #endif
5601
5602 #ifdef __cplusplus
5603 }
5604 #endif
5605 _LT_EOF
5606 # Now try linking the two files.
5607 mv conftest.$ac_objext conftstm.$ac_objext
5608 lt_save_LIBS="$LIBS"
5609 lt_save_CFLAGS="$CFLAGS"
5610 LIBS="conftstm.$ac_objext"
5611 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5613 (eval $ac_link) 2>&5
5614 ac_status=$?
5615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5617 pipe_works=yes
5618 fi
5619 LIBS="$lt_save_LIBS"
5620 CFLAGS="$lt_save_CFLAGS"
5621 else
5622 echo "cannot find nm_test_func in $nlist" >&5
5623 fi
5624 else
5625 echo "cannot find nm_test_var in $nlist" >&5
5626 fi
5627 else
5628 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5629 fi
5630 else
5631 echo "$progname: failed program was:" >&5
5632 cat conftest.$ac_ext >&5
5633 fi
5634 rm -rf conftest* conftst*
5635
5636 # Do not use the global_symbol_pipe unless it works.
5637 if test "$pipe_works" = yes; then
5638 break
5639 else
5640 lt_cv_sys_global_symbol_pipe=
5641 fi
5642 done
5643
5644 fi
5645
5646 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5647 lt_cv_sys_global_symbol_to_cdecl=
5648 fi
5649 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5650 { $as_echo "$as_me:$LINENO: result: failed" >&5
5651 $as_echo "failed" >&6; }
5652 else
5653 { $as_echo "$as_me:$LINENO: result: ok" >&5
5654 $as_echo "ok" >&6; }
5655 fi
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679 # Check whether --enable-libtool-lock was given.
5680 if test "${enable_libtool_lock+set}" = set; then
5681 enableval=$enable_libtool_lock;
5682 fi
5683
5684 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5685
5686 # Some flags need to be propagated to the compiler or linker for good
5687 # libtool support.
5688 case $host in
5689 ia64-*-hpux*)
5690 # Find out which ABI we are using.
5691 echo 'int i;' > conftest.$ac_ext
5692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5693 (eval $ac_compile) 2>&5
5694 ac_status=$?
5695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); }; then
5697 case `/usr/bin/file conftest.$ac_objext` in
5698 *ELF-32*)
5699 HPUX_IA64_MODE="32"
5700 ;;
5701 *ELF-64*)
5702 HPUX_IA64_MODE="64"
5703 ;;
5704 esac
5705 fi
5706 rm -rf conftest*
5707 ;;
5708 *-*-irix6*)
5709 # Find out which ABI we are using.
5710 echo '#line 5710 "configure"' > conftest.$ac_ext
5711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5712 (eval $ac_compile) 2>&5
5713 ac_status=$?
5714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715 (exit $ac_status); }; then
5716 if test "$lt_cv_prog_gnu_ld" = yes; then
5717 case `/usr/bin/file conftest.$ac_objext` in
5718 *32-bit*)
5719 LD="${LD-ld} -melf32bsmip"
5720 ;;
5721 *N32*)
5722 LD="${LD-ld} -melf32bmipn32"
5723 ;;
5724 *64-bit*)
5725 LD="${LD-ld} -melf64bmip"
5726 ;;
5727 esac
5728 else
5729 case `/usr/bin/file conftest.$ac_objext` in
5730 *32-bit*)
5731 LD="${LD-ld} -32"
5732 ;;
5733 *N32*)
5734 LD="${LD-ld} -n32"
5735 ;;
5736 *64-bit*)
5737 LD="${LD-ld} -64"
5738 ;;
5739 esac
5740 fi
5741 fi
5742 rm -rf conftest*
5743 ;;
5744
5745 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5746 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5747 # Find out which ABI we are using.
5748 echo 'int i;' > conftest.$ac_ext
5749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5750 (eval $ac_compile) 2>&5
5751 ac_status=$?
5752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); }; then
5754 case `/usr/bin/file conftest.o` in
5755 *32-bit*)
5756 case $host in
5757 x86_64-*kfreebsd*-gnu)
5758 LD="${LD-ld} -m elf_i386_fbsd"
5759 ;;
5760 x86_64-*linux*)
5761 LD="${LD-ld} -m elf_i386"
5762 ;;
5763 ppc64-*linux*|powerpc64-*linux*)
5764 LD="${LD-ld} -m elf32ppclinux"
5765 ;;
5766 s390x-*linux*)
5767 LD="${LD-ld} -m elf_s390"
5768 ;;
5769 sparc64-*linux*)
5770 LD="${LD-ld} -m elf32_sparc"
5771 ;;
5772 esac
5773 ;;
5774 *64-bit*)
5775 case $host in
5776 x86_64-*kfreebsd*-gnu)
5777 LD="${LD-ld} -m elf_x86_64_fbsd"
5778 ;;
5779 x86_64-*linux*)
5780 LD="${LD-ld} -m elf_x86_64"
5781 ;;
5782 ppc*-*linux*|powerpc*-*linux*)
5783 LD="${LD-ld} -m elf64ppc"
5784 ;;
5785 s390*-*linux*|s390*-*tpf*)
5786 LD="${LD-ld} -m elf64_s390"
5787 ;;
5788 sparc*-*linux*)
5789 LD="${LD-ld} -m elf64_sparc"
5790 ;;
5791 esac
5792 ;;
5793 esac
5794 fi
5795 rm -rf conftest*
5796 ;;
5797
5798 *-*-sco3.2v5*)
5799 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5800 SAVE_CFLAGS="$CFLAGS"
5801 CFLAGS="$CFLAGS -belf"
5802 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5803 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5804 if test "${lt_cv_cc_needs_belf+set}" = set; then
5805 $as_echo_n "(cached) " >&6
5806 else
5807 ac_ext=c
5808 ac_cpp='$CPP $CPPFLAGS'
5809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5812
5813 cat >conftest.$ac_ext <<_ACEOF
5814 /* confdefs.h. */
5815 _ACEOF
5816 cat confdefs.h >>conftest.$ac_ext
5817 cat >>conftest.$ac_ext <<_ACEOF
5818 /* end confdefs.h. */
5819
5820 int
5821 main ()
5822 {
5823
5824 ;
5825 return 0;
5826 }
5827 _ACEOF
5828 rm -f conftest.$ac_objext conftest$ac_exeext
5829 if { (ac_try="$ac_link"
5830 case "(($ac_try" in
5831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5832 *) ac_try_echo=$ac_try;;
5833 esac
5834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5835 $as_echo "$ac_try_echo") >&5
5836 (eval "$ac_link") 2>conftest.er1
5837 ac_status=$?
5838 grep -v '^ *+' conftest.er1 >conftest.err
5839 rm -f conftest.er1
5840 cat conftest.err >&5
5841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); } && {
5843 test -z "$ac_c_werror_flag" ||
5844 test ! -s conftest.err
5845 } && test -s conftest$ac_exeext && {
5846 test "$cross_compiling" = yes ||
5847 $as_test_x conftest$ac_exeext
5848 }; then
5849 lt_cv_cc_needs_belf=yes
5850 else
5851 $as_echo "$as_me: failed program was:" >&5
5852 sed 's/^/| /' conftest.$ac_ext >&5
5853
5854 lt_cv_cc_needs_belf=no
5855 fi
5856
5857 rm -rf conftest.dSYM
5858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5859 conftest$ac_exeext conftest.$ac_ext
5860 ac_ext=c
5861 ac_cpp='$CPP $CPPFLAGS'
5862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5865
5866 fi
5867 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5868 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5869 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5870 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5871 CFLAGS="$SAVE_CFLAGS"
5872 fi
5873 ;;
5874 sparc*-*solaris*)
5875 # Find out which ABI we are using.
5876 echo 'int i;' > conftest.$ac_ext
5877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5878 (eval $ac_compile) 2>&5
5879 ac_status=$?
5880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; then
5882 case `/usr/bin/file conftest.o` in
5883 *64-bit*)
5884 case $lt_cv_prog_gnu_ld in
5885 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5886 *)
5887 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5888 LD="${LD-ld} -64"
5889 fi
5890 ;;
5891 esac
5892 ;;
5893 esac
5894 fi
5895 rm -rf conftest*
5896 ;;
5897 esac
5898
5899 need_locks="$enable_libtool_lock"
5900
5901
5902 case $host_os in
5903 rhapsody* | darwin*)
5904 if test -n "$ac_tool_prefix"; then
5905 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5906 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5907 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5908 $as_echo_n "checking for $ac_word... " >&6; }
5909 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5910 $as_echo_n "(cached) " >&6
5911 else
5912 if test -n "$DSYMUTIL"; then
5913 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5914 else
5915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916 for as_dir in $PATH
5917 do
5918 IFS=$as_save_IFS
5919 test -z "$as_dir" && as_dir=.
5920 for ac_exec_ext in '' $ac_executable_extensions; do
5921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5922 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5923 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5924 break 2
5925 fi
5926 done
5927 done
5928 IFS=$as_save_IFS
5929
5930 fi
5931 fi
5932 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5933 if test -n "$DSYMUTIL"; then
5934 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5935 $as_echo "$DSYMUTIL" >&6; }
5936 else
5937 { $as_echo "$as_me:$LINENO: result: no" >&5
5938 $as_echo "no" >&6; }
5939 fi
5940
5941
5942 fi
5943 if test -z "$ac_cv_prog_DSYMUTIL"; then
5944 ac_ct_DSYMUTIL=$DSYMUTIL
5945 # Extract the first word of "dsymutil", so it can be a program name with args.
5946 set dummy dsymutil; ac_word=$2
5947 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5948 $as_echo_n "checking for $ac_word... " >&6; }
5949 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5950 $as_echo_n "(cached) " >&6
5951 else
5952 if test -n "$ac_ct_DSYMUTIL"; then
5953 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5954 else
5955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956 for as_dir in $PATH
5957 do
5958 IFS=$as_save_IFS
5959 test -z "$as_dir" && as_dir=.
5960 for ac_exec_ext in '' $ac_executable_extensions; do
5961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5962 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5963 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5964 break 2
5965 fi
5966 done
5967 done
5968 IFS=$as_save_IFS
5969
5970 fi
5971 fi
5972 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5973 if test -n "$ac_ct_DSYMUTIL"; then
5974 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5975 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5976 else
5977 { $as_echo "$as_me:$LINENO: result: no" >&5
5978 $as_echo "no" >&6; }
5979 fi
5980
5981 if test "x$ac_ct_DSYMUTIL" = x; then
5982 DSYMUTIL=":"
5983 else
5984 case $cross_compiling:$ac_tool_warned in
5985 yes:)
5986 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5987 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5988 ac_tool_warned=yes ;;
5989 esac
5990 DSYMUTIL=$ac_ct_DSYMUTIL
5991 fi
5992 else
5993 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5994 fi
5995
5996 if test -n "$ac_tool_prefix"; then
5997 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5998 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5999 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6000 $as_echo_n "checking for $ac_word... " >&6; }
6001 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6002 $as_echo_n "(cached) " >&6
6003 else
6004 if test -n "$NMEDIT"; then
6005 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6006 else
6007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6008 for as_dir in $PATH
6009 do
6010 IFS=$as_save_IFS
6011 test -z "$as_dir" && as_dir=.
6012 for ac_exec_ext in '' $ac_executable_extensions; do
6013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6014 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6015 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6016 break 2
6017 fi
6018 done
6019 done
6020 IFS=$as_save_IFS
6021
6022 fi
6023 fi
6024 NMEDIT=$ac_cv_prog_NMEDIT
6025 if test -n "$NMEDIT"; then
6026 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6027 $as_echo "$NMEDIT" >&6; }
6028 else
6029 { $as_echo "$as_me:$LINENO: result: no" >&5
6030 $as_echo "no" >&6; }
6031 fi
6032
6033
6034 fi
6035 if test -z "$ac_cv_prog_NMEDIT"; then
6036 ac_ct_NMEDIT=$NMEDIT
6037 # Extract the first word of "nmedit", so it can be a program name with args.
6038 set dummy nmedit; ac_word=$2
6039 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6040 $as_echo_n "checking for $ac_word... " >&6; }
6041 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6042 $as_echo_n "(cached) " >&6
6043 else
6044 if test -n "$ac_ct_NMEDIT"; then
6045 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6046 else
6047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6048 for as_dir in $PATH
6049 do
6050 IFS=$as_save_IFS
6051 test -z "$as_dir" && as_dir=.
6052 for ac_exec_ext in '' $ac_executable_extensions; do
6053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6054 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6055 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6056 break 2
6057 fi
6058 done
6059 done
6060 IFS=$as_save_IFS
6061
6062 fi
6063 fi
6064 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6065 if test -n "$ac_ct_NMEDIT"; then
6066 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6067 $as_echo "$ac_ct_NMEDIT" >&6; }
6068 else
6069 { $as_echo "$as_me:$LINENO: result: no" >&5
6070 $as_echo "no" >&6; }
6071 fi
6072
6073 if test "x$ac_ct_NMEDIT" = x; then
6074 NMEDIT=":"
6075 else
6076 case $cross_compiling:$ac_tool_warned in
6077 yes:)
6078 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6079 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6080 ac_tool_warned=yes ;;
6081 esac
6082 NMEDIT=$ac_ct_NMEDIT
6083 fi
6084 else
6085 NMEDIT="$ac_cv_prog_NMEDIT"
6086 fi
6087
6088 if test -n "$ac_tool_prefix"; then
6089 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6090 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6091 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6092 $as_echo_n "checking for $ac_word... " >&6; }
6093 if test "${ac_cv_prog_LIPO+set}" = set; then
6094 $as_echo_n "(cached) " >&6
6095 else
6096 if test -n "$LIPO"; then
6097 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6098 else
6099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100 for as_dir in $PATH
6101 do
6102 IFS=$as_save_IFS
6103 test -z "$as_dir" && as_dir=.
6104 for ac_exec_ext in '' $ac_executable_extensions; do
6105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6106 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6107 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6108 break 2
6109 fi
6110 done
6111 done
6112 IFS=$as_save_IFS
6113
6114 fi
6115 fi
6116 LIPO=$ac_cv_prog_LIPO
6117 if test -n "$LIPO"; then
6118 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6119 $as_echo "$LIPO" >&6; }
6120 else
6121 { $as_echo "$as_me:$LINENO: result: no" >&5
6122 $as_echo "no" >&6; }
6123 fi
6124
6125
6126 fi
6127 if test -z "$ac_cv_prog_LIPO"; then
6128 ac_ct_LIPO=$LIPO
6129 # Extract the first word of "lipo", so it can be a program name with args.
6130 set dummy lipo; ac_word=$2
6131 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6132 $as_echo_n "checking for $ac_word... " >&6; }
6133 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6134 $as_echo_n "(cached) " >&6
6135 else
6136 if test -n "$ac_ct_LIPO"; then
6137 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6138 else
6139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6140 for as_dir in $PATH
6141 do
6142 IFS=$as_save_IFS
6143 test -z "$as_dir" && as_dir=.
6144 for ac_exec_ext in '' $ac_executable_extensions; do
6145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6146 ac_cv_prog_ac_ct_LIPO="lipo"
6147 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6148 break 2
6149 fi
6150 done
6151 done
6152 IFS=$as_save_IFS
6153
6154 fi
6155 fi
6156 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6157 if test -n "$ac_ct_LIPO"; then
6158 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6159 $as_echo "$ac_ct_LIPO" >&6; }
6160 else
6161 { $as_echo "$as_me:$LINENO: result: no" >&5
6162 $as_echo "no" >&6; }
6163 fi
6164
6165 if test "x$ac_ct_LIPO" = x; then
6166 LIPO=":"
6167 else
6168 case $cross_compiling:$ac_tool_warned in
6169 yes:)
6170 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6172 ac_tool_warned=yes ;;
6173 esac
6174 LIPO=$ac_ct_LIPO
6175 fi
6176 else
6177 LIPO="$ac_cv_prog_LIPO"
6178 fi
6179
6180 if test -n "$ac_tool_prefix"; then
6181 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6182 set dummy ${ac_tool_prefix}otool; ac_word=$2
6183 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6184 $as_echo_n "checking for $ac_word... " >&6; }
6185 if test "${ac_cv_prog_OTOOL+set}" = set; then
6186 $as_echo_n "(cached) " >&6
6187 else
6188 if test -n "$OTOOL"; then
6189 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6190 else
6191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192 for as_dir in $PATH
6193 do
6194 IFS=$as_save_IFS
6195 test -z "$as_dir" && as_dir=.
6196 for ac_exec_ext in '' $ac_executable_extensions; do
6197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6198 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6199 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6200 break 2
6201 fi
6202 done
6203 done
6204 IFS=$as_save_IFS
6205
6206 fi
6207 fi
6208 OTOOL=$ac_cv_prog_OTOOL
6209 if test -n "$OTOOL"; then
6210 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6211 $as_echo "$OTOOL" >&6; }
6212 else
6213 { $as_echo "$as_me:$LINENO: result: no" >&5
6214 $as_echo "no" >&6; }
6215 fi
6216
6217
6218 fi
6219 if test -z "$ac_cv_prog_OTOOL"; then
6220 ac_ct_OTOOL=$OTOOL
6221 # Extract the first word of "otool", so it can be a program name with args.
6222 set dummy otool; ac_word=$2
6223 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6224 $as_echo_n "checking for $ac_word... " >&6; }
6225 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6226 $as_echo_n "(cached) " >&6
6227 else
6228 if test -n "$ac_ct_OTOOL"; then
6229 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6230 else
6231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232 for as_dir in $PATH
6233 do
6234 IFS=$as_save_IFS
6235 test -z "$as_dir" && as_dir=.
6236 for ac_exec_ext in '' $ac_executable_extensions; do
6237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6238 ac_cv_prog_ac_ct_OTOOL="otool"
6239 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6240 break 2
6241 fi
6242 done
6243 done
6244 IFS=$as_save_IFS
6245
6246 fi
6247 fi
6248 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6249 if test -n "$ac_ct_OTOOL"; then
6250 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6251 $as_echo "$ac_ct_OTOOL" >&6; }
6252 else
6253 { $as_echo "$as_me:$LINENO: result: no" >&5
6254 $as_echo "no" >&6; }
6255 fi
6256
6257 if test "x$ac_ct_OTOOL" = x; then
6258 OTOOL=":"
6259 else
6260 case $cross_compiling:$ac_tool_warned in
6261 yes:)
6262 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6264 ac_tool_warned=yes ;;
6265 esac
6266 OTOOL=$ac_ct_OTOOL
6267 fi
6268 else
6269 OTOOL="$ac_cv_prog_OTOOL"
6270 fi
6271
6272 if test -n "$ac_tool_prefix"; then
6273 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6274 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6275 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6276 $as_echo_n "checking for $ac_word... " >&6; }
6277 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6278 $as_echo_n "(cached) " >&6
6279 else
6280 if test -n "$OTOOL64"; then
6281 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6282 else
6283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284 for as_dir in $PATH
6285 do
6286 IFS=$as_save_IFS
6287 test -z "$as_dir" && as_dir=.
6288 for ac_exec_ext in '' $ac_executable_extensions; do
6289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6290 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6291 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6292 break 2
6293 fi
6294 done
6295 done
6296 IFS=$as_save_IFS
6297
6298 fi
6299 fi
6300 OTOOL64=$ac_cv_prog_OTOOL64
6301 if test -n "$OTOOL64"; then
6302 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6303 $as_echo "$OTOOL64" >&6; }
6304 else
6305 { $as_echo "$as_me:$LINENO: result: no" >&5
6306 $as_echo "no" >&6; }
6307 fi
6308
6309
6310 fi
6311 if test -z "$ac_cv_prog_OTOOL64"; then
6312 ac_ct_OTOOL64=$OTOOL64
6313 # Extract the first word of "otool64", so it can be a program name with args.
6314 set dummy otool64; ac_word=$2
6315 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6316 $as_echo_n "checking for $ac_word... " >&6; }
6317 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6318 $as_echo_n "(cached) " >&6
6319 else
6320 if test -n "$ac_ct_OTOOL64"; then
6321 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6322 else
6323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324 for as_dir in $PATH
6325 do
6326 IFS=$as_save_IFS
6327 test -z "$as_dir" && as_dir=.
6328 for ac_exec_ext in '' $ac_executable_extensions; do
6329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6330 ac_cv_prog_ac_ct_OTOOL64="otool64"
6331 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6332 break 2
6333 fi
6334 done
6335 done
6336 IFS=$as_save_IFS
6337
6338 fi
6339 fi
6340 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6341 if test -n "$ac_ct_OTOOL64"; then
6342 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6343 $as_echo "$ac_ct_OTOOL64" >&6; }
6344 else
6345 { $as_echo "$as_me:$LINENO: result: no" >&5
6346 $as_echo "no" >&6; }
6347 fi
6348
6349 if test "x$ac_ct_OTOOL64" = x; then
6350 OTOOL64=":"
6351 else
6352 case $cross_compiling:$ac_tool_warned in
6353 yes:)
6354 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6355 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6356 ac_tool_warned=yes ;;
6357 esac
6358 OTOOL64=$ac_ct_OTOOL64
6359 fi
6360 else
6361 OTOOL64="$ac_cv_prog_OTOOL64"
6362 fi
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6391 $as_echo_n "checking for -single_module linker flag... " >&6; }
6392 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6393 $as_echo_n "(cached) " >&6
6394 else
6395 lt_cv_apple_cc_single_mod=no
6396 if test -z "${LT_MULTI_MODULE}"; then
6397 # By default we will add the -single_module flag. You can override
6398 # by either setting the environment variable LT_MULTI_MODULE
6399 # non-empty at configure time, or by adding -multi_module to the
6400 # link flags.
6401 rm -rf libconftest.dylib*
6402 echo "int foo(void){return 1;}" > conftest.c
6403 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6404 -dynamiclib -Wl,-single_module conftest.c" >&5
6405 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6406 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6407 _lt_result=$?
6408 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6409 lt_cv_apple_cc_single_mod=yes
6410 else
6411 cat conftest.err >&5
6412 fi
6413 rm -rf libconftest.dylib*
6414 rm -f conftest.*
6415 fi
6416 fi
6417 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6418 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6419 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6420 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6421 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6422 $as_echo_n "(cached) " >&6
6423 else
6424 lt_cv_ld_exported_symbols_list=no
6425 save_LDFLAGS=$LDFLAGS
6426 echo "_main" > conftest.sym
6427 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6428 cat >conftest.$ac_ext <<_ACEOF
6429 /* confdefs.h. */
6430 _ACEOF
6431 cat confdefs.h >>conftest.$ac_ext
6432 cat >>conftest.$ac_ext <<_ACEOF
6433 /* end confdefs.h. */
6434
6435 int
6436 main ()
6437 {
6438
6439 ;
6440 return 0;
6441 }
6442 _ACEOF
6443 rm -f conftest.$ac_objext conftest$ac_exeext
6444 if { (ac_try="$ac_link"
6445 case "(($ac_try" in
6446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6447 *) ac_try_echo=$ac_try;;
6448 esac
6449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6450 $as_echo "$ac_try_echo") >&5
6451 (eval "$ac_link") 2>conftest.er1
6452 ac_status=$?
6453 grep -v '^ *+' conftest.er1 >conftest.err
6454 rm -f conftest.er1
6455 cat conftest.err >&5
6456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); } && {
6458 test -z "$ac_c_werror_flag" ||
6459 test ! -s conftest.err
6460 } && test -s conftest$ac_exeext && {
6461 test "$cross_compiling" = yes ||
6462 $as_test_x conftest$ac_exeext
6463 }; then
6464 lt_cv_ld_exported_symbols_list=yes
6465 else
6466 $as_echo "$as_me: failed program was:" >&5
6467 sed 's/^/| /' conftest.$ac_ext >&5
6468
6469 lt_cv_ld_exported_symbols_list=no
6470 fi
6471
6472 rm -rf conftest.dSYM
6473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6474 conftest$ac_exeext conftest.$ac_ext
6475 LDFLAGS="$save_LDFLAGS"
6476
6477 fi
6478 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6479 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6480 case $host_os in
6481 rhapsody* | darwin1.[012])
6482 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6483 darwin1.*)
6484 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6485 darwin*) # darwin 5.x on
6486 # if running on 10.5 or later, the deployment target defaults
6487 # to the OS version, if on x86, and 10.4, the deployment
6488 # target defaults to 10.4. Don't you love it?
6489 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6490 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6491 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6492 10.[012]*)
6493 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6494 10.*)
6495 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6496 esac
6497 ;;
6498 esac
6499 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6500 _lt_dar_single_mod='$single_module'
6501 fi
6502 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6503 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6504 else
6505 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6506 fi
6507 if test "$DSYMUTIL" != ":"; then
6508 _lt_dsymutil='~$DSYMUTIL $lib || :'
6509 else
6510 _lt_dsymutil=
6511 fi
6512 ;;
6513 esac
6514
6515 ac_ext=c
6516 ac_cpp='$CPP $CPPFLAGS'
6517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6520 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6521 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6522 # On Suns, sometimes $CPP names a directory.
6523 if test -n "$CPP" && test -d "$CPP"; then
6524 CPP=
6525 fi
6526 if test -z "$CPP"; then
6527 if test "${ac_cv_prog_CPP+set}" = set; then
6528 $as_echo_n "(cached) " >&6
6529 else
6530 # Double quotes because CPP needs to be expanded
6531 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6532 do
6533 ac_preproc_ok=false
6534 for ac_c_preproc_warn_flag in '' yes
6535 do
6536 # Use a header file that comes with gcc, so configuring glibc
6537 # with a fresh cross-compiler works.
6538 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6539 # <limits.h> exists even on freestanding compilers.
6540 # On the NeXT, cc -E runs the code through the compiler's parser,
6541 # not just through cpp. "Syntax error" is here to catch this case.
6542 cat >conftest.$ac_ext <<_ACEOF
6543 /* confdefs.h. */
6544 _ACEOF
6545 cat confdefs.h >>conftest.$ac_ext
6546 cat >>conftest.$ac_ext <<_ACEOF
6547 /* end confdefs.h. */
6548 #ifdef __STDC__
6549 # include <limits.h>
6550 #else
6551 # include <assert.h>
6552 #endif
6553 Syntax error
6554 _ACEOF
6555 if { (ac_try="$ac_cpp conftest.$ac_ext"
6556 case "(($ac_try" in
6557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6558 *) ac_try_echo=$ac_try;;
6559 esac
6560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6561 $as_echo "$ac_try_echo") >&5
6562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6563 ac_status=$?
6564 grep -v '^ *+' conftest.er1 >conftest.err
6565 rm -f conftest.er1
6566 cat conftest.err >&5
6567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); } >/dev/null && {
6569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6570 test ! -s conftest.err
6571 }; then
6572 :
6573 else
6574 $as_echo "$as_me: failed program was:" >&5
6575 sed 's/^/| /' conftest.$ac_ext >&5
6576
6577 # Broken: fails on valid input.
6578 continue
6579 fi
6580
6581 rm -f conftest.err conftest.$ac_ext
6582
6583 # OK, works on sane cases. Now check whether nonexistent headers
6584 # can be detected and how.
6585 cat >conftest.$ac_ext <<_ACEOF
6586 /* confdefs.h. */
6587 _ACEOF
6588 cat confdefs.h >>conftest.$ac_ext
6589 cat >>conftest.$ac_ext <<_ACEOF
6590 /* end confdefs.h. */
6591 #include <ac_nonexistent.h>
6592 _ACEOF
6593 if { (ac_try="$ac_cpp conftest.$ac_ext"
6594 case "(($ac_try" in
6595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6596 *) ac_try_echo=$ac_try;;
6597 esac
6598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6599 $as_echo "$ac_try_echo") >&5
6600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6601 ac_status=$?
6602 grep -v '^ *+' conftest.er1 >conftest.err
6603 rm -f conftest.er1
6604 cat conftest.err >&5
6605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); } >/dev/null && {
6607 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6608 test ! -s conftest.err
6609 }; then
6610 # Broken: success on invalid input.
6611 continue
6612 else
6613 $as_echo "$as_me: failed program was:" >&5
6614 sed 's/^/| /' conftest.$ac_ext >&5
6615
6616 # Passes both tests.
6617 ac_preproc_ok=:
6618 break
6619 fi
6620
6621 rm -f conftest.err conftest.$ac_ext
6622
6623 done
6624 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6625 rm -f conftest.err conftest.$ac_ext
6626 if $ac_preproc_ok; then
6627 break
6628 fi
6629
6630 done
6631 ac_cv_prog_CPP=$CPP
6632
6633 fi
6634 CPP=$ac_cv_prog_CPP
6635 else
6636 ac_cv_prog_CPP=$CPP
6637 fi
6638 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6639 $as_echo "$CPP" >&6; }
6640 ac_preproc_ok=false
6641 for ac_c_preproc_warn_flag in '' yes
6642 do
6643 # Use a header file that comes with gcc, so configuring glibc
6644 # with a fresh cross-compiler works.
6645 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6646 # <limits.h> exists even on freestanding compilers.
6647 # On the NeXT, cc -E runs the code through the compiler's parser,
6648 # not just through cpp. "Syntax error" is here to catch this case.
6649 cat >conftest.$ac_ext <<_ACEOF
6650 /* confdefs.h. */
6651 _ACEOF
6652 cat confdefs.h >>conftest.$ac_ext
6653 cat >>conftest.$ac_ext <<_ACEOF
6654 /* end confdefs.h. */
6655 #ifdef __STDC__
6656 # include <limits.h>
6657 #else
6658 # include <assert.h>
6659 #endif
6660 Syntax error
6661 _ACEOF
6662 if { (ac_try="$ac_cpp conftest.$ac_ext"
6663 case "(($ac_try" in
6664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6665 *) ac_try_echo=$ac_try;;
6666 esac
6667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6668 $as_echo "$ac_try_echo") >&5
6669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6670 ac_status=$?
6671 grep -v '^ *+' conftest.er1 >conftest.err
6672 rm -f conftest.er1
6673 cat conftest.err >&5
6674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); } >/dev/null && {
6676 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6677 test ! -s conftest.err
6678 }; then
6679 :
6680 else
6681 $as_echo "$as_me: failed program was:" >&5
6682 sed 's/^/| /' conftest.$ac_ext >&5
6683
6684 # Broken: fails on valid input.
6685 continue
6686 fi
6687
6688 rm -f conftest.err conftest.$ac_ext
6689
6690 # OK, works on sane cases. Now check whether nonexistent headers
6691 # can be detected and how.
6692 cat >conftest.$ac_ext <<_ACEOF
6693 /* confdefs.h. */
6694 _ACEOF
6695 cat confdefs.h >>conftest.$ac_ext
6696 cat >>conftest.$ac_ext <<_ACEOF
6697 /* end confdefs.h. */
6698 #include <ac_nonexistent.h>
6699 _ACEOF
6700 if { (ac_try="$ac_cpp conftest.$ac_ext"
6701 case "(($ac_try" in
6702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6703 *) ac_try_echo=$ac_try;;
6704 esac
6705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6706 $as_echo "$ac_try_echo") >&5
6707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6708 ac_status=$?
6709 grep -v '^ *+' conftest.er1 >conftest.err
6710 rm -f conftest.er1
6711 cat conftest.err >&5
6712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713 (exit $ac_status); } >/dev/null && {
6714 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6715 test ! -s conftest.err
6716 }; then
6717 # Broken: success on invalid input.
6718 continue
6719 else
6720 $as_echo "$as_me: failed program was:" >&5
6721 sed 's/^/| /' conftest.$ac_ext >&5
6722
6723 # Passes both tests.
6724 ac_preproc_ok=:
6725 break
6726 fi
6727
6728 rm -f conftest.err conftest.$ac_ext
6729
6730 done
6731 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6732 rm -f conftest.err conftest.$ac_ext
6733 if $ac_preproc_ok; then
6734 :
6735 else
6736 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6737 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6738 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6739 See \`config.log' for more details." >&5
6740 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6741 See \`config.log' for more details." >&2;}
6742 { (exit 1); exit 1; }; }; }
6743 fi
6744
6745 ac_ext=c
6746 ac_cpp='$CPP $CPPFLAGS'
6747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6750
6751
6752 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6753 $as_echo_n "checking for ANSI C header files... " >&6; }
6754 if test "${ac_cv_header_stdc+set}" = set; then
6755 $as_echo_n "(cached) " >&6
6756 else
6757 cat >conftest.$ac_ext <<_ACEOF
6758 /* confdefs.h. */
6759 _ACEOF
6760 cat confdefs.h >>conftest.$ac_ext
6761 cat >>conftest.$ac_ext <<_ACEOF
6762 /* end confdefs.h. */
6763 #include <stdlib.h>
6764 #include <stdarg.h>
6765 #include <string.h>
6766 #include <float.h>
6767
6768 int
6769 main ()
6770 {
6771
6772 ;
6773 return 0;
6774 }
6775 _ACEOF
6776 rm -f conftest.$ac_objext
6777 if { (ac_try="$ac_compile"
6778 case "(($ac_try" in
6779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6780 *) ac_try_echo=$ac_try;;
6781 esac
6782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6783 $as_echo "$ac_try_echo") >&5
6784 (eval "$ac_compile") 2>conftest.er1
6785 ac_status=$?
6786 grep -v '^ *+' conftest.er1 >conftest.err
6787 rm -f conftest.er1
6788 cat conftest.err >&5
6789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); } && {
6791 test -z "$ac_c_werror_flag" ||
6792 test ! -s conftest.err
6793 } && test -s conftest.$ac_objext; then
6794 ac_cv_header_stdc=yes
6795 else
6796 $as_echo "$as_me: failed program was:" >&5
6797 sed 's/^/| /' conftest.$ac_ext >&5
6798
6799 ac_cv_header_stdc=no
6800 fi
6801
6802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6803
6804 if test $ac_cv_header_stdc = yes; then
6805 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6806 cat >conftest.$ac_ext <<_ACEOF
6807 /* confdefs.h. */
6808 _ACEOF
6809 cat confdefs.h >>conftest.$ac_ext
6810 cat >>conftest.$ac_ext <<_ACEOF
6811 /* end confdefs.h. */
6812 #include <string.h>
6813
6814 _ACEOF
6815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6816 $EGREP "memchr" >/dev/null 2>&1; then
6817 :
6818 else
6819 ac_cv_header_stdc=no
6820 fi
6821 rm -f conftest*
6822
6823 fi
6824
6825 if test $ac_cv_header_stdc = yes; then
6826 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6827 cat >conftest.$ac_ext <<_ACEOF
6828 /* confdefs.h. */
6829 _ACEOF
6830 cat confdefs.h >>conftest.$ac_ext
6831 cat >>conftest.$ac_ext <<_ACEOF
6832 /* end confdefs.h. */
6833 #include <stdlib.h>
6834
6835 _ACEOF
6836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6837 $EGREP "free" >/dev/null 2>&1; then
6838 :
6839 else
6840 ac_cv_header_stdc=no
6841 fi
6842 rm -f conftest*
6843
6844 fi
6845
6846 if test $ac_cv_header_stdc = yes; then
6847 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6848 if test "$cross_compiling" = yes; then
6849 :
6850 else
6851 cat >conftest.$ac_ext <<_ACEOF
6852 /* confdefs.h. */
6853 _ACEOF
6854 cat confdefs.h >>conftest.$ac_ext
6855 cat >>conftest.$ac_ext <<_ACEOF
6856 /* end confdefs.h. */
6857 #include <ctype.h>
6858 #include <stdlib.h>
6859 #if ((' ' & 0x0FF) == 0x020)
6860 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6861 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6862 #else
6863 # define ISLOWER(c) \
6864 (('a' <= (c) && (c) <= 'i') \
6865 || ('j' <= (c) && (c) <= 'r') \
6866 || ('s' <= (c) && (c) <= 'z'))
6867 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6868 #endif
6869
6870 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6871 int
6872 main ()
6873 {
6874 int i;
6875 for (i = 0; i < 256; i++)
6876 if (XOR (islower (i), ISLOWER (i))
6877 || toupper (i) != TOUPPER (i))
6878 return 2;
6879 return 0;
6880 }
6881 _ACEOF
6882 rm -f conftest$ac_exeext
6883 if { (ac_try="$ac_link"
6884 case "(($ac_try" in
6885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6886 *) ac_try_echo=$ac_try;;
6887 esac
6888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6889 $as_echo "$ac_try_echo") >&5
6890 (eval "$ac_link") 2>&5
6891 ac_status=$?
6892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6894 { (case "(($ac_try" in
6895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6896 *) ac_try_echo=$ac_try;;
6897 esac
6898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6899 $as_echo "$ac_try_echo") >&5
6900 (eval "$ac_try") 2>&5
6901 ac_status=$?
6902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); }; }; then
6904 :
6905 else
6906 $as_echo "$as_me: program exited with status $ac_status" >&5
6907 $as_echo "$as_me: failed program was:" >&5
6908 sed 's/^/| /' conftest.$ac_ext >&5
6909
6910 ( exit $ac_status )
6911 ac_cv_header_stdc=no
6912 fi
6913 rm -rf conftest.dSYM
6914 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6915 fi
6916
6917
6918 fi
6919 fi
6920 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6921 $as_echo "$ac_cv_header_stdc" >&6; }
6922 if test $ac_cv_header_stdc = yes; then
6923
6924 cat >>confdefs.h <<\_ACEOF
6925 #define STDC_HEADERS 1
6926 _ACEOF
6927
6928 fi
6929
6930 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6941 inttypes.h stdint.h unistd.h
6942 do
6943 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6944 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6945 $as_echo_n "checking for $ac_header... " >&6; }
6946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6947 $as_echo_n "(cached) " >&6
6948 else
6949 cat >conftest.$ac_ext <<_ACEOF
6950 /* confdefs.h. */
6951 _ACEOF
6952 cat confdefs.h >>conftest.$ac_ext
6953 cat >>conftest.$ac_ext <<_ACEOF
6954 /* end confdefs.h. */
6955 $ac_includes_default
6956
6957 #include <$ac_header>
6958 _ACEOF
6959 rm -f conftest.$ac_objext
6960 if { (ac_try="$ac_compile"
6961 case "(($ac_try" in
6962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6963 *) ac_try_echo=$ac_try;;
6964 esac
6965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6966 $as_echo "$ac_try_echo") >&5
6967 (eval "$ac_compile") 2>conftest.er1
6968 ac_status=$?
6969 grep -v '^ *+' conftest.er1 >conftest.err
6970 rm -f conftest.er1
6971 cat conftest.err >&5
6972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); } && {
6974 test -z "$ac_c_werror_flag" ||
6975 test ! -s conftest.err
6976 } && test -s conftest.$ac_objext; then
6977 eval "$as_ac_Header=yes"
6978 else
6979 $as_echo "$as_me: failed program was:" >&5
6980 sed 's/^/| /' conftest.$ac_ext >&5
6981
6982 eval "$as_ac_Header=no"
6983 fi
6984
6985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6986 fi
6987 ac_res=`eval 'as_val=${'$as_ac_Header'}
6988 $as_echo "$as_val"'`
6989 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6990 $as_echo "$ac_res" >&6; }
6991 as_val=`eval 'as_val=${'$as_ac_Header'}
6992 $as_echo "$as_val"'`
6993 if test "x$as_val" = x""yes; then
6994 cat >>confdefs.h <<_ACEOF
6995 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6996 _ACEOF
6997
6998 fi
6999
7000 done
7001
7002
7003
7004 for ac_header in dlfcn.h
7005 do
7006 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7007 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7008 $as_echo_n "checking for $ac_header... " >&6; }
7009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7010 $as_echo_n "(cached) " >&6
7011 else
7012 cat >conftest.$ac_ext <<_ACEOF
7013 /* confdefs.h. */
7014 _ACEOF
7015 cat confdefs.h >>conftest.$ac_ext
7016 cat >>conftest.$ac_ext <<_ACEOF
7017 /* end confdefs.h. */
7018 $ac_includes_default
7019
7020 #include <$ac_header>
7021 _ACEOF
7022 rm -f conftest.$ac_objext
7023 if { (ac_try="$ac_compile"
7024 case "(($ac_try" in
7025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7026 *) ac_try_echo=$ac_try;;
7027 esac
7028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7029 $as_echo "$ac_try_echo") >&5
7030 (eval "$ac_compile") 2>conftest.er1
7031 ac_status=$?
7032 grep -v '^ *+' conftest.er1 >conftest.err
7033 rm -f conftest.er1
7034 cat conftest.err >&5
7035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036 (exit $ac_status); } && {
7037 test -z "$ac_c_werror_flag" ||
7038 test ! -s conftest.err
7039 } && test -s conftest.$ac_objext; then
7040 eval "$as_ac_Header=yes"
7041 else
7042 $as_echo "$as_me: failed program was:" >&5
7043 sed 's/^/| /' conftest.$ac_ext >&5
7044
7045 eval "$as_ac_Header=no"
7046 fi
7047
7048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7049 fi
7050 ac_res=`eval 'as_val=${'$as_ac_Header'}
7051 $as_echo "$as_val"'`
7052 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7053 $as_echo "$ac_res" >&6; }
7054 as_val=`eval 'as_val=${'$as_ac_Header'}
7055 $as_echo "$as_val"'`
7056 if test "x$as_val" = x""yes; then
7057 cat >>confdefs.h <<_ACEOF
7058 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7059 _ACEOF
7060
7061 fi
7062
7063 done
7064
7065
7066
7067 # Set options
7068
7069
7070
7071 enable_dlopen=no
7072
7073
7074 enable_win32_dll=no
7075
7076
7077 # Check whether --enable-shared was given.
7078 if test "${enable_shared+set}" = set; then
7079 enableval=$enable_shared; p=${PACKAGE-default}
7080 case $enableval in
7081 yes) enable_shared=yes ;;
7082 no) enable_shared=no ;;
7083 *)
7084 enable_shared=no
7085 # Look at the argument we got. We use all the common list separators.
7086 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7087 for pkg in $enableval; do
7088 IFS="$lt_save_ifs"
7089 if test "X$pkg" = "X$p"; then
7090 enable_shared=yes
7091 fi
7092 done
7093 IFS="$lt_save_ifs"
7094 ;;
7095 esac
7096 else
7097 enable_shared=yes
7098 fi
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108 # Check whether --enable-static was given.
7109 if test "${enable_static+set}" = set; then
7110 enableval=$enable_static; p=${PACKAGE-default}
7111 case $enableval in
7112 yes) enable_static=yes ;;
7113 no) enable_static=no ;;
7114 *)
7115 enable_static=no
7116 # Look at the argument we got. We use all the common list separators.
7117 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7118 for pkg in $enableval; do
7119 IFS="$lt_save_ifs"
7120 if test "X$pkg" = "X$p"; then
7121 enable_static=yes
7122 fi
7123 done
7124 IFS="$lt_save_ifs"
7125 ;;
7126 esac
7127 else
7128 enable_static=yes
7129 fi
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140 # Check whether --with-pic was given.
7141 if test "${with_pic+set}" = set; then
7142 withval=$with_pic; pic_mode="$withval"
7143 else
7144 pic_mode=default
7145 fi
7146
7147
7148 test -z "$pic_mode" && pic_mode=default
7149
7150
7151
7152
7153
7154
7155
7156 # Check whether --enable-fast-install was given.
7157 if test "${enable_fast_install+set}" = set; then
7158 enableval=$enable_fast_install; p=${PACKAGE-default}
7159 case $enableval in
7160 yes) enable_fast_install=yes ;;
7161 no) enable_fast_install=no ;;
7162 *)
7163 enable_fast_install=no
7164 # Look at the argument we got. We use all the common list separators.
7165 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7166 for pkg in $enableval; do
7167 IFS="$lt_save_ifs"
7168 if test "X$pkg" = "X$p"; then
7169 enable_fast_install=yes
7170 fi
7171 done
7172 IFS="$lt_save_ifs"
7173 ;;
7174 esac
7175 else
7176 enable_fast_install=yes
7177 fi
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189 # This can be used to rebuild libtool when needed
7190 LIBTOOL_DEPS="$ltmain"
7191
7192 # Always use our own libtool.
7193 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219 test -z "$LN_S" && LN_S="ln -s"
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234 if test -n "${ZSH_VERSION+set}" ; then
7235 setopt NO_GLOB_SUBST
7236 fi
7237
7238 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7239 $as_echo_n "checking for objdir... " >&6; }
7240 if test "${lt_cv_objdir+set}" = set; then
7241 $as_echo_n "(cached) " >&6
7242 else
7243 rm -f .libs 2>/dev/null
7244 mkdir .libs 2>/dev/null
7245 if test -d .libs; then
7246 lt_cv_objdir=.libs
7247 else
7248 # MS-DOS does not allow filenames that begin with a dot.
7249 lt_cv_objdir=_libs
7250 fi
7251 rmdir .libs 2>/dev/null
7252 fi
7253 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7254 $as_echo "$lt_cv_objdir" >&6; }
7255 objdir=$lt_cv_objdir
7256
7257
7258
7259
7260
7261 cat >>confdefs.h <<_ACEOF
7262 #define LT_OBJDIR "$lt_cv_objdir/"
7263 _ACEOF
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281 case $host_os in
7282 aix3*)
7283 # AIX sometimes has problems with the GCC collect2 program. For some
7284 # reason, if we set the COLLECT_NAMES environment variable, the problems
7285 # vanish in a puff of smoke.
7286 if test "X${COLLECT_NAMES+set}" != Xset; then
7287 COLLECT_NAMES=
7288 export COLLECT_NAMES
7289 fi
7290 ;;
7291 esac
7292
7293 # Sed substitution that helps us do robust quoting. It backslashifies
7294 # metacharacters that are still active within double-quoted strings.
7295 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7296
7297 # Same as above, but do not quote variable references.
7298 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7299
7300 # Sed substitution to delay expansion of an escaped shell variable in a
7301 # double_quote_subst'ed string.
7302 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7303
7304 # Sed substitution to delay expansion of an escaped single quote.
7305 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7306
7307 # Sed substitution to avoid accidental globbing in evaled expressions
7308 no_glob_subst='s/\*/\\\*/g'
7309
7310 # Global variables:
7311 ofile=libtool
7312 can_build_shared=yes
7313
7314 # All known linkers require a `.a' archive for static linking (except MSVC,
7315 # which needs '.lib').
7316 libext=a
7317
7318 with_gnu_ld="$lt_cv_prog_gnu_ld"
7319
7320 old_CC="$CC"
7321 old_CFLAGS="$CFLAGS"
7322
7323 # Set sane defaults for various variables
7324 test -z "$CC" && CC=cc
7325 test -z "$LTCC" && LTCC=$CC
7326 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7327 test -z "$LD" && LD=ld
7328 test -z "$ac_objext" && ac_objext=o
7329
7330 for cc_temp in $compiler""; do
7331 case $cc_temp in
7332 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7333 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7334 \-*) ;;
7335 *) break;;
7336 esac
7337 done
7338 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7339
7340
7341 # Only perform the check for file, if the check method requires it
7342 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7343 case $deplibs_check_method in
7344 file_magic*)
7345 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7346 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7347 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7348 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7349 $as_echo_n "(cached) " >&6
7350 else
7351 case $MAGIC_CMD in
7352 [\\/*] | ?:[\\/]*)
7353 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7354 ;;
7355 *)
7356 lt_save_MAGIC_CMD="$MAGIC_CMD"
7357 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7358 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7359 for ac_dir in $ac_dummy; do
7360 IFS="$lt_save_ifs"
7361 test -z "$ac_dir" && ac_dir=.
7362 if test -f $ac_dir/${ac_tool_prefix}file; then
7363 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7364 if test -n "$file_magic_test_file"; then
7365 case $deplibs_check_method in
7366 "file_magic "*)
7367 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7368 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7369 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7370 $EGREP "$file_magic_regex" > /dev/null; then
7371 :
7372 else
7373 cat <<_LT_EOF 1>&2
7374
7375 *** Warning: the command libtool uses to detect shared libraries,
7376 *** $file_magic_cmd, produces output that libtool cannot recognize.
7377 *** The result is that libtool may fail to recognize shared libraries
7378 *** as such. This will affect the creation of libtool libraries that
7379 *** depend on shared libraries, but programs linked with such libtool
7380 *** libraries will work regardless of this problem. Nevertheless, you
7381 *** may want to report the problem to your system manager and/or to
7382 *** bug-libtool@gnu.org
7383
7384 _LT_EOF
7385 fi ;;
7386 esac
7387 fi
7388 break
7389 fi
7390 done
7391 IFS="$lt_save_ifs"
7392 MAGIC_CMD="$lt_save_MAGIC_CMD"
7393 ;;
7394 esac
7395 fi
7396
7397 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7398 if test -n "$MAGIC_CMD"; then
7399 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7400 $as_echo "$MAGIC_CMD" >&6; }
7401 else
7402 { $as_echo "$as_me:$LINENO: result: no" >&5
7403 $as_echo "no" >&6; }
7404 fi
7405
7406
7407
7408
7409
7410 if test -z "$lt_cv_path_MAGIC_CMD"; then
7411 if test -n "$ac_tool_prefix"; then
7412 { $as_echo "$as_me:$LINENO: checking for file" >&5
7413 $as_echo_n "checking for file... " >&6; }
7414 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7415 $as_echo_n "(cached) " >&6
7416 else
7417 case $MAGIC_CMD in
7418 [\\/*] | ?:[\\/]*)
7419 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7420 ;;
7421 *)
7422 lt_save_MAGIC_CMD="$MAGIC_CMD"
7423 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7424 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7425 for ac_dir in $ac_dummy; do
7426 IFS="$lt_save_ifs"
7427 test -z "$ac_dir" && ac_dir=.
7428 if test -f $ac_dir/file; then
7429 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7430 if test -n "$file_magic_test_file"; then
7431 case $deplibs_check_method in
7432 "file_magic "*)
7433 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7434 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7435 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7436 $EGREP "$file_magic_regex" > /dev/null; then
7437 :
7438 else
7439 cat <<_LT_EOF 1>&2
7440
7441 *** Warning: the command libtool uses to detect shared libraries,
7442 *** $file_magic_cmd, produces output that libtool cannot recognize.
7443 *** The result is that libtool may fail to recognize shared libraries
7444 *** as such. This will affect the creation of libtool libraries that
7445 *** depend on shared libraries, but programs linked with such libtool
7446 *** libraries will work regardless of this problem. Nevertheless, you
7447 *** may want to report the problem to your system manager and/or to
7448 *** bug-libtool@gnu.org
7449
7450 _LT_EOF
7451 fi ;;
7452 esac
7453 fi
7454 break
7455 fi
7456 done
7457 IFS="$lt_save_ifs"
7458 MAGIC_CMD="$lt_save_MAGIC_CMD"
7459 ;;
7460 esac
7461 fi
7462
7463 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7464 if test -n "$MAGIC_CMD"; then
7465 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7466 $as_echo "$MAGIC_CMD" >&6; }
7467 else
7468 { $as_echo "$as_me:$LINENO: result: no" >&5
7469 $as_echo "no" >&6; }
7470 fi
7471
7472
7473 else
7474 MAGIC_CMD=:
7475 fi
7476 fi
7477
7478 fi
7479 ;;
7480 esac
7481
7482 # Use C for the default configuration in the libtool script
7483
7484 lt_save_CC="$CC"
7485 ac_ext=c
7486 ac_cpp='$CPP $CPPFLAGS'
7487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7490
7491
7492 # Source file extension for C test sources.
7493 ac_ext=c
7494
7495 # Object file extension for compiled C test sources.
7496 objext=o
7497 objext=$objext
7498
7499 # Code to be used in simple compile tests
7500 lt_simple_compile_test_code="int some_variable = 0;"
7501
7502 # Code to be used in simple link tests
7503 lt_simple_link_test_code='int main(){return(0);}'
7504
7505
7506
7507
7508
7509
7510
7511 # If no C compiler was specified, use CC.
7512 LTCC=${LTCC-"$CC"}
7513
7514 # If no C compiler flags were specified, use CFLAGS.
7515 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7516
7517 # Allow CC to be a program name with arguments.
7518 compiler=$CC
7519
7520 # Save the default compiler, since it gets overwritten when the other
7521 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7522 compiler_DEFAULT=$CC
7523
7524 # save warnings/boilerplate of simple test code
7525 ac_outfile=conftest.$ac_objext
7526 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7527 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7528 _lt_compiler_boilerplate=`cat conftest.err`
7529 $RM conftest*
7530
7531 ac_outfile=conftest.$ac_objext
7532 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7533 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7534 _lt_linker_boilerplate=`cat conftest.err`
7535 $RM -r conftest*
7536
7537
7538 if test -n "$compiler"; then
7539
7540 lt_prog_compiler_no_builtin_flag=
7541
7542 if test "$GCC" = yes; then
7543 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7544
7545 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7546 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7547 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7548 $as_echo_n "(cached) " >&6
7549 else
7550 lt_cv_prog_compiler_rtti_exceptions=no
7551 ac_outfile=conftest.$ac_objext
7552 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7553 lt_compiler_flag="-fno-rtti -fno-exceptions"
7554 # Insert the option either (1) after the last *FLAGS variable, or
7555 # (2) before a word containing "conftest.", or (3) at the end.
7556 # Note that $ac_compile itself does not contain backslashes and begins
7557 # with a dollar sign (not a hyphen), so the echo should work correctly.
7558 # The option is referenced via a variable to avoid confusing sed.
7559 lt_compile=`echo "$ac_compile" | $SED \
7560 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7561 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7562 -e 's:$: $lt_compiler_flag:'`
7563 (eval echo "\"\$as_me:7563: $lt_compile\"" >&5)
7564 (eval "$lt_compile" 2>conftest.err)
7565 ac_status=$?
7566 cat conftest.err >&5
7567 echo "$as_me:7567: \$? = $ac_status" >&5
7568 if (exit $ac_status) && test -s "$ac_outfile"; then
7569 # The compiler can only warn and ignore the option if not recognized
7570 # So say no if there are warnings other than the usual output.
7571 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7572 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7573 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7574 lt_cv_prog_compiler_rtti_exceptions=yes
7575 fi
7576 fi
7577 $RM conftest*
7578
7579 fi
7580 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7581 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7582
7583 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7584 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7585 else
7586 :
7587 fi
7588
7589 fi
7590
7591
7592
7593
7594
7595
7596 lt_prog_compiler_wl=
7597 lt_prog_compiler_pic=
7598 lt_prog_compiler_static=
7599
7600 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7601 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7602
7603 if test "$GCC" = yes; then
7604 lt_prog_compiler_wl='-Wl,'
7605 lt_prog_compiler_static='-static'
7606
7607 case $host_os in
7608 aix*)
7609 # All AIX code is PIC.
7610 if test "$host_cpu" = ia64; then
7611 # AIX 5 now supports IA64 processor
7612 lt_prog_compiler_static='-Bstatic'
7613 fi
7614 ;;
7615
7616 amigaos*)
7617 case $host_cpu in
7618 powerpc)
7619 # see comment about AmigaOS4 .so support
7620 lt_prog_compiler_pic='-fPIC'
7621 ;;
7622 m68k)
7623 # FIXME: we need at least 68020 code to build shared libraries, but
7624 # adding the `-m68020' flag to GCC prevents building anything better,
7625 # like `-m68040'.
7626 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7627 ;;
7628 esac
7629 ;;
7630
7631 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7632 # PIC is the default for these OSes.
7633 ;;
7634
7635 mingw* | cygwin* | pw32* | os2* | cegcc*)
7636 # This hack is so that the source file can tell whether it is being
7637 # built for inclusion in a dll (and should export symbols for example).
7638 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7639 # (--disable-auto-import) libraries
7640 lt_prog_compiler_pic='-DDLL_EXPORT'
7641 ;;
7642
7643 darwin* | rhapsody*)
7644 # PIC is the default on this platform
7645 # Common symbols not allowed in MH_DYLIB files
7646 lt_prog_compiler_pic='-fno-common'
7647 ;;
7648
7649 hpux*)
7650 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7651 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7652 # sets the default TLS model and affects inlining.
7653 case $host_cpu in
7654 hppa*64*)
7655 # +Z the default
7656 ;;
7657 *)
7658 lt_prog_compiler_pic='-fPIC'
7659 ;;
7660 esac
7661 ;;
7662
7663 interix[3-9]*)
7664 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7665 # Instead, we relocate shared libraries at runtime.
7666 ;;
7667
7668 msdosdjgpp*)
7669 # Just because we use GCC doesn't mean we suddenly get shared libraries
7670 # on systems that don't support them.
7671 lt_prog_compiler_can_build_shared=no
7672 enable_shared=no
7673 ;;
7674
7675 *nto* | *qnx*)
7676 # QNX uses GNU C++, but need to define -shared option too, otherwise
7677 # it will coredump.
7678 lt_prog_compiler_pic='-fPIC -shared'
7679 ;;
7680
7681 sysv4*MP*)
7682 if test -d /usr/nec; then
7683 lt_prog_compiler_pic=-Kconform_pic
7684 fi
7685 ;;
7686
7687 *)
7688 lt_prog_compiler_pic='-fPIC'
7689 ;;
7690 esac
7691 else
7692 # PORTME Check for flag to pass linker flags through the system compiler.
7693 case $host_os in
7694 aix*)
7695 lt_prog_compiler_wl='-Wl,'
7696 if test "$host_cpu" = ia64; then
7697 # AIX 5 now supports IA64 processor
7698 lt_prog_compiler_static='-Bstatic'
7699 else
7700 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7701 fi
7702 ;;
7703
7704 mingw* | cygwin* | pw32* | os2* | cegcc*)
7705 # This hack is so that the source file can tell whether it is being
7706 # built for inclusion in a dll (and should export symbols for example).
7707 lt_prog_compiler_pic='-DDLL_EXPORT'
7708 ;;
7709
7710 hpux9* | hpux10* | hpux11*)
7711 lt_prog_compiler_wl='-Wl,'
7712 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7713 # not for PA HP-UX.
7714 case $host_cpu in
7715 hppa*64*|ia64*)
7716 # +Z the default
7717 ;;
7718 *)
7719 lt_prog_compiler_pic='+Z'
7720 ;;
7721 esac
7722 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7723 lt_prog_compiler_static='${wl}-a ${wl}archive'
7724 ;;
7725
7726 irix5* | irix6* | nonstopux*)
7727 lt_prog_compiler_wl='-Wl,'
7728 # PIC (with -KPIC) is the default.
7729 lt_prog_compiler_static='-non_shared'
7730 ;;
7731
7732 linux* | k*bsd*-gnu)
7733 case $cc_basename in
7734 # old Intel for x86_64 which still supported -KPIC.
7735 ecc*)
7736 lt_prog_compiler_wl='-Wl,'
7737 lt_prog_compiler_pic='-KPIC'
7738 lt_prog_compiler_static='-static'
7739 ;;
7740 # icc used to be incompatible with GCC.
7741 # ICC 10 doesn't accept -KPIC any more.
7742 icc* | ifort*)
7743 lt_prog_compiler_wl='-Wl,'
7744 lt_prog_compiler_pic='-fPIC'
7745 lt_prog_compiler_static='-static'
7746 ;;
7747 # Lahey Fortran 8.1.
7748 lf95*)
7749 lt_prog_compiler_wl='-Wl,'
7750 lt_prog_compiler_pic='--shared'
7751 lt_prog_compiler_static='--static'
7752 ;;
7753 pgcc* | pgf77* | pgf90* | pgf95*)
7754 # Portland Group compilers (*not* the Pentium gcc compiler,
7755 # which looks to be a dead project)
7756 lt_prog_compiler_wl='-Wl,'
7757 lt_prog_compiler_pic='-fpic'
7758 lt_prog_compiler_static='-Bstatic'
7759 ;;
7760 ccc*)
7761 lt_prog_compiler_wl='-Wl,'
7762 # All Alpha code is PIC.
7763 lt_prog_compiler_static='-non_shared'
7764 ;;
7765 xl*)
7766 # IBM XL C 8.0/Fortran 10.1 on PPC
7767 lt_prog_compiler_wl='-Wl,'
7768 lt_prog_compiler_pic='-qpic'
7769 lt_prog_compiler_static='-qstaticlink'
7770 ;;
7771 *)
7772 case `$CC -V 2>&1 | sed 5q` in
7773 *Sun\ C*)
7774 # Sun C 5.9
7775 lt_prog_compiler_pic='-KPIC'
7776 lt_prog_compiler_static='-Bstatic'
7777 lt_prog_compiler_wl='-Wl,'
7778 ;;
7779 *Sun\ F*)
7780 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7781 lt_prog_compiler_pic='-KPIC'
7782 lt_prog_compiler_static='-Bstatic'
7783 lt_prog_compiler_wl=''
7784 ;;
7785 esac
7786 ;;
7787 esac
7788 ;;
7789
7790 newsos6)
7791 lt_prog_compiler_pic='-KPIC'
7792 lt_prog_compiler_static='-Bstatic'
7793 ;;
7794
7795 *nto* | *qnx*)
7796 # QNX uses GNU C++, but need to define -shared option too, otherwise
7797 # it will coredump.
7798 lt_prog_compiler_pic='-fPIC -shared'
7799 ;;
7800
7801 osf3* | osf4* | osf5*)
7802 lt_prog_compiler_wl='-Wl,'
7803 # All OSF/1 code is PIC.
7804 lt_prog_compiler_static='-non_shared'
7805 ;;
7806
7807 rdos*)
7808 lt_prog_compiler_static='-non_shared'
7809 ;;
7810
7811 solaris*)
7812 lt_prog_compiler_pic='-KPIC'
7813 lt_prog_compiler_static='-Bstatic'
7814 case $cc_basename in
7815 f77* | f90* | f95*)
7816 lt_prog_compiler_wl='-Qoption ld ';;
7817 *)
7818 lt_prog_compiler_wl='-Wl,';;
7819 esac
7820 ;;
7821
7822 sunos4*)
7823 lt_prog_compiler_wl='-Qoption ld '
7824 lt_prog_compiler_pic='-PIC'
7825 lt_prog_compiler_static='-Bstatic'
7826 ;;
7827
7828 sysv4 | sysv4.2uw2* | sysv4.3*)
7829 lt_prog_compiler_wl='-Wl,'
7830 lt_prog_compiler_pic='-KPIC'
7831 lt_prog_compiler_static='-Bstatic'
7832 ;;
7833
7834 sysv4*MP*)
7835 if test -d /usr/nec ;then
7836 lt_prog_compiler_pic='-Kconform_pic'
7837 lt_prog_compiler_static='-Bstatic'
7838 fi
7839 ;;
7840
7841 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7842 lt_prog_compiler_wl='-Wl,'
7843 lt_prog_compiler_pic='-KPIC'
7844 lt_prog_compiler_static='-Bstatic'
7845 ;;
7846
7847 unicos*)
7848 lt_prog_compiler_wl='-Wl,'
7849 lt_prog_compiler_can_build_shared=no
7850 ;;
7851
7852 uts4*)
7853 lt_prog_compiler_pic='-pic'
7854 lt_prog_compiler_static='-Bstatic'
7855 ;;
7856
7857 *)
7858 lt_prog_compiler_can_build_shared=no
7859 ;;
7860 esac
7861 fi
7862
7863 case $host_os in
7864 # For platforms which do not support PIC, -DPIC is meaningless:
7865 *djgpp*)
7866 lt_prog_compiler_pic=
7867 ;;
7868 *)
7869 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7870 ;;
7871 esac
7872 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7873 $as_echo "$lt_prog_compiler_pic" >&6; }
7874
7875
7876
7877
7878
7879
7880 #
7881 # Check to make sure the PIC flag actually works.
7882 #
7883 if test -n "$lt_prog_compiler_pic"; then
7884 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7885 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7886 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7887 $as_echo_n "(cached) " >&6
7888 else
7889 lt_cv_prog_compiler_pic_works=no
7890 ac_outfile=conftest.$ac_objext
7891 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7892 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7893 # Insert the option either (1) after the last *FLAGS variable, or
7894 # (2) before a word containing "conftest.", or (3) at the end.
7895 # Note that $ac_compile itself does not contain backslashes and begins
7896 # with a dollar sign (not a hyphen), so the echo should work correctly.
7897 # The option is referenced via a variable to avoid confusing sed.
7898 lt_compile=`echo "$ac_compile" | $SED \
7899 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7900 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7901 -e 's:$: $lt_compiler_flag:'`
7902 (eval echo "\"\$as_me:7902: $lt_compile\"" >&5)
7903 (eval "$lt_compile" 2>conftest.err)
7904 ac_status=$?
7905 cat conftest.err >&5
7906 echo "$as_me:7906: \$? = $ac_status" >&5
7907 if (exit $ac_status) && test -s "$ac_outfile"; then
7908 # The compiler can only warn and ignore the option if not recognized
7909 # So say no if there are warnings other than the usual output.
7910 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7911 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7912 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7913 lt_cv_prog_compiler_pic_works=yes
7914 fi
7915 fi
7916 $RM conftest*
7917
7918 fi
7919 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7920 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7921
7922 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7923 case $lt_prog_compiler_pic in
7924 "" | " "*) ;;
7925 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7926 esac
7927 else
7928 lt_prog_compiler_pic=
7929 lt_prog_compiler_can_build_shared=no
7930 fi
7931
7932 fi
7933
7934
7935
7936
7937
7938
7939 #
7940 # Check to make sure the static flag actually works.
7941 #
7942 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7943 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7944 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7945 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7946 $as_echo_n "(cached) " >&6
7947 else
7948 lt_cv_prog_compiler_static_works=no
7949 save_LDFLAGS="$LDFLAGS"
7950 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7951 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7952 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7953 # The linker can only warn and ignore the option if not recognized
7954 # So say no if there are warnings
7955 if test -s conftest.err; then
7956 # Append any errors to the config.log.
7957 cat conftest.err 1>&5
7958 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7959 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7960 if diff conftest.exp conftest.er2 >/dev/null; then
7961 lt_cv_prog_compiler_static_works=yes
7962 fi
7963 else
7964 lt_cv_prog_compiler_static_works=yes
7965 fi
7966 fi
7967 $RM -r conftest*
7968 LDFLAGS="$save_LDFLAGS"
7969
7970 fi
7971 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7972 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7973
7974 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7975 :
7976 else
7977 lt_prog_compiler_static=
7978 fi
7979
7980
7981
7982
7983
7984
7985
7986 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7987 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7988 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7989 $as_echo_n "(cached) " >&6
7990 else
7991 lt_cv_prog_compiler_c_o=no
7992 $RM -r conftest 2>/dev/null
7993 mkdir conftest
7994 cd conftest
7995 mkdir out
7996 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7997
7998 lt_compiler_flag="-o out/conftest2.$ac_objext"
7999 # Insert the option either (1) after the last *FLAGS variable, or
8000 # (2) before a word containing "conftest.", or (3) at the end.
8001 # Note that $ac_compile itself does not contain backslashes and begins
8002 # with a dollar sign (not a hyphen), so the echo should work correctly.
8003 lt_compile=`echo "$ac_compile" | $SED \
8004 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8005 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8006 -e 's:$: $lt_compiler_flag:'`
8007 (eval echo "\"\$as_me:8007: $lt_compile\"" >&5)
8008 (eval "$lt_compile" 2>out/conftest.err)
8009 ac_status=$?
8010 cat out/conftest.err >&5
8011 echo "$as_me:8011: \$? = $ac_status" >&5
8012 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8013 then
8014 # The compiler can only warn and ignore the option if not recognized
8015 # So say no if there are warnings
8016 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8017 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8018 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8019 lt_cv_prog_compiler_c_o=yes
8020 fi
8021 fi
8022 chmod u+w . 2>&5
8023 $RM conftest*
8024 # SGI C++ compiler will create directory out/ii_files/ for
8025 # template instantiation
8026 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8027 $RM out/* && rmdir out
8028 cd ..
8029 $RM -r conftest
8030 $RM conftest*
8031
8032 fi
8033 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8034 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8035
8036
8037
8038
8039
8040
8041 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8042 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8043 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8044 $as_echo_n "(cached) " >&6
8045 else
8046 lt_cv_prog_compiler_c_o=no
8047 $RM -r conftest 2>/dev/null
8048 mkdir conftest
8049 cd conftest
8050 mkdir out
8051 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8052
8053 lt_compiler_flag="-o out/conftest2.$ac_objext"
8054 # Insert the option either (1) after the last *FLAGS variable, or
8055 # (2) before a word containing "conftest.", or (3) at the end.
8056 # Note that $ac_compile itself does not contain backslashes and begins
8057 # with a dollar sign (not a hyphen), so the echo should work correctly.
8058 lt_compile=`echo "$ac_compile" | $SED \
8059 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8060 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8061 -e 's:$: $lt_compiler_flag:'`
8062 (eval echo "\"\$as_me:8062: $lt_compile\"" >&5)
8063 (eval "$lt_compile" 2>out/conftest.err)
8064 ac_status=$?
8065 cat out/conftest.err >&5
8066 echo "$as_me:8066: \$? = $ac_status" >&5
8067 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8068 then
8069 # The compiler can only warn and ignore the option if not recognized
8070 # So say no if there are warnings
8071 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8072 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8073 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8074 lt_cv_prog_compiler_c_o=yes
8075 fi
8076 fi
8077 chmod u+w . 2>&5
8078 $RM conftest*
8079 # SGI C++ compiler will create directory out/ii_files/ for
8080 # template instantiation
8081 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8082 $RM out/* && rmdir out
8083 cd ..
8084 $RM -r conftest
8085 $RM conftest*
8086
8087 fi
8088 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8089 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8090
8091
8092
8093
8094 hard_links="nottested"
8095 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8096 # do not overwrite the value of need_locks provided by the user
8097 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8098 $as_echo_n "checking if we can lock with hard links... " >&6; }
8099 hard_links=yes
8100 $RM conftest*
8101 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8102 touch conftest.a
8103 ln conftest.a conftest.b 2>&5 || hard_links=no
8104 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8105 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8106 $as_echo "$hard_links" >&6; }
8107 if test "$hard_links" = no; then
8108 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8109 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8110 need_locks=warn
8111 fi
8112 else
8113 need_locks=no
8114 fi
8115
8116
8117
8118
8119
8120
8121 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8122 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8123
8124 runpath_var=
8125 allow_undefined_flag=
8126 always_export_symbols=no
8127 archive_cmds=
8128 archive_expsym_cmds=
8129 compiler_needs_object=no
8130 enable_shared_with_static_runtimes=no
8131 export_dynamic_flag_spec=
8132 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8133 hardcode_automatic=no
8134 hardcode_direct=no
8135 hardcode_direct_absolute=no
8136 hardcode_libdir_flag_spec=
8137 hardcode_libdir_flag_spec_ld=
8138 hardcode_libdir_separator=
8139 hardcode_minus_L=no
8140 hardcode_shlibpath_var=unsupported
8141 inherit_rpath=no
8142 link_all_deplibs=unknown
8143 module_cmds=
8144 module_expsym_cmds=
8145 old_archive_from_new_cmds=
8146 old_archive_from_expsyms_cmds=
8147 thread_safe_flag_spec=
8148 whole_archive_flag_spec=
8149 # include_expsyms should be a list of space-separated symbols to be *always*
8150 # included in the symbol list
8151 include_expsyms=
8152 # exclude_expsyms can be an extended regexp of symbols to exclude
8153 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8154 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8155 # as well as any symbol that contains `d'.
8156 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8157 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8158 # platforms (ab)use it in PIC code, but their linkers get confused if
8159 # the symbol is explicitly referenced. Since portable code cannot
8160 # rely on this symbol name, it's probably fine to never include it in
8161 # preloaded symbol tables.
8162 # Exclude shared library initialization/finalization symbols.
8163 extract_expsyms_cmds=
8164
8165 case $host_os in
8166 cygwin* | mingw* | pw32* | cegcc*)
8167 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8168 # When not using gcc, we currently assume that we are using
8169 # Microsoft Visual C++.
8170 if test "$GCC" != yes; then
8171 with_gnu_ld=no
8172 fi
8173 ;;
8174 interix*)
8175 # we just hope/assume this is gcc and not c89 (= MSVC++)
8176 with_gnu_ld=yes
8177 ;;
8178 openbsd*)
8179 with_gnu_ld=no
8180 ;;
8181 esac
8182
8183 ld_shlibs=yes
8184 if test "$with_gnu_ld" = yes; then
8185 # If archive_cmds runs LD, not CC, wlarc should be empty
8186 wlarc='${wl}'
8187
8188 # Set some defaults for GNU ld with shared library support. These
8189 # are reset later if shared libraries are not supported. Putting them
8190 # here allows them to be overridden if necessary.
8191 runpath_var=LD_RUN_PATH
8192 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8193 export_dynamic_flag_spec='${wl}--export-dynamic'
8194 # ancient GNU ld didn't support --whole-archive et. al.
8195 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8196 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8197 else
8198 whole_archive_flag_spec=
8199 fi
8200 supports_anon_versioning=no
8201 case `$LD -v 2>&1` in
8202 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8203 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8204 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8205 *\ 2.11.*) ;; # other 2.11 versions
8206 *) supports_anon_versioning=yes ;;
8207 esac
8208
8209 # See if GNU ld supports shared libraries.
8210 case $host_os in
8211 aix[3-9]*)
8212 # On AIX/PPC, the GNU linker is very broken
8213 if test "$host_cpu" != ia64; then
8214 ld_shlibs=no
8215 cat <<_LT_EOF 1>&2
8216
8217 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8218 *** to be unable to reliably create shared libraries on AIX.
8219 *** Therefore, libtool is disabling shared libraries support. If you
8220 *** really care for shared libraries, you may want to modify your PATH
8221 *** so that a non-GNU linker is found, and then restart.
8222
8223 _LT_EOF
8224 fi
8225 ;;
8226
8227 amigaos*)
8228 case $host_cpu in
8229 powerpc)
8230 # see comment about AmigaOS4 .so support
8231 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8232 archive_expsym_cmds=''
8233 ;;
8234 m68k)
8235 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)'
8236 hardcode_libdir_flag_spec='-L$libdir'
8237 hardcode_minus_L=yes
8238 ;;
8239 esac
8240 ;;
8241
8242 beos*)
8243 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8244 allow_undefined_flag=unsupported
8245 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8246 # support --undefined. This deserves some investigation. FIXME
8247 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8248 else
8249 ld_shlibs=no
8250 fi
8251 ;;
8252
8253 cygwin* | mingw* | pw32* | cegcc*)
8254 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8255 # as there is no search path for DLLs.
8256 hardcode_libdir_flag_spec='-L$libdir'
8257 allow_undefined_flag=unsupported
8258 always_export_symbols=no
8259 enable_shared_with_static_runtimes=yes
8260 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8261
8262 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8263 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8264 # If the export-symbols file already is a .def file (1st line
8265 # is EXPORTS), use it as is; otherwise, prepend...
8266 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8267 cp $export_symbols $output_objdir/$soname.def;
8268 else
8269 echo EXPORTS > $output_objdir/$soname.def;
8270 cat $export_symbols >> $output_objdir/$soname.def;
8271 fi~
8272 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8273 else
8274 ld_shlibs=no
8275 fi
8276 ;;
8277
8278 interix[3-9]*)
8279 hardcode_direct=no
8280 hardcode_shlibpath_var=no
8281 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8282 export_dynamic_flag_spec='${wl}-E'
8283 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8284 # Instead, shared libraries are loaded at an image base (0x10000000 by
8285 # default) and relocated if they conflict, which is a slow very memory
8286 # consuming and fragmenting process. To avoid this, we pick a random,
8287 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8288 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8289 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8290 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'
8291 ;;
8292
8293 gnu* | linux* | tpf* | k*bsd*-gnu)
8294 tmp_diet=no
8295 if test "$host_os" = linux-dietlibc; then
8296 case $cc_basename in
8297 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8298 esac
8299 fi
8300 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8301 && test "$tmp_diet" = no
8302 then
8303 tmp_addflag=
8304 tmp_sharedflag='-shared'
8305 case $cc_basename,$host_cpu in
8306 pgcc*) # Portland Group C compiler
8307 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'
8308 tmp_addflag=' $pic_flag'
8309 ;;
8310 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8311 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'
8312 tmp_addflag=' $pic_flag -Mnomain' ;;
8313 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8314 tmp_addflag=' -i_dynamic' ;;
8315 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8316 tmp_addflag=' -i_dynamic -nofor_main' ;;
8317 ifc* | ifort*) # Intel Fortran compiler
8318 tmp_addflag=' -nofor_main' ;;
8319 lf95*) # Lahey Fortran 8.1
8320 whole_archive_flag_spec=
8321 tmp_sharedflag='--shared' ;;
8322 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8323 tmp_sharedflag='-qmkshrobj'
8324 tmp_addflag= ;;
8325 esac
8326 case `$CC -V 2>&1 | sed 5q` in
8327 *Sun\ C*) # Sun C 5.9
8328 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'
8329 compiler_needs_object=yes
8330 tmp_sharedflag='-G' ;;
8331 *Sun\ F*) # Sun Fortran 8.3
8332 tmp_sharedflag='-G' ;;
8333 esac
8334 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8335
8336 if test "x$supports_anon_versioning" = xyes; then
8337 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8338 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8339 echo "local: *; };" >> $output_objdir/$libname.ver~
8340 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8341 fi
8342
8343 case $cc_basename in
8344 xlf*)
8345 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8346 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8347 hardcode_libdir_flag_spec=
8348 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8349 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8350 if test "x$supports_anon_versioning" = xyes; then
8351 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8352 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8353 echo "local: *; };" >> $output_objdir/$libname.ver~
8354 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8355 fi
8356 ;;
8357 esac
8358 else
8359 ld_shlibs=no
8360 fi
8361 ;;
8362
8363 netbsd*)
8364 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8365 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8366 wlarc=
8367 else
8368 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8369 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8370 fi
8371 ;;
8372
8373 solaris*)
8374 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8375 ld_shlibs=no
8376 cat <<_LT_EOF 1>&2
8377
8378 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8379 *** create shared libraries on Solaris systems. Therefore, libtool
8380 *** is disabling shared libraries support. We urge you to upgrade GNU
8381 *** binutils to release 2.9.1 or newer. Another option is to modify
8382 *** your PATH or compiler configuration so that the native linker is
8383 *** used, and then restart.
8384
8385 _LT_EOF
8386 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8387 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8388 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8389 else
8390 ld_shlibs=no
8391 fi
8392 ;;
8393
8394 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8395 case `$LD -v 2>&1` in
8396 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8397 ld_shlibs=no
8398 cat <<_LT_EOF 1>&2
8399
8400 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8401 *** reliably create shared libraries on SCO systems. Therefore, libtool
8402 *** is disabling shared libraries support. We urge you to upgrade GNU
8403 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8404 *** your PATH or compiler configuration so that the native linker is
8405 *** used, and then restart.
8406
8407 _LT_EOF
8408 ;;
8409 *)
8410 # For security reasons, it is highly recommended that you always
8411 # use absolute paths for naming shared libraries, and exclude the
8412 # DT_RUNPATH tag from executables and libraries. But doing so
8413 # requires that you compile everything twice, which is a pain.
8414 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8415 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8416 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8417 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8418 else
8419 ld_shlibs=no
8420 fi
8421 ;;
8422 esac
8423 ;;
8424
8425 sunos4*)
8426 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8427 wlarc=
8428 hardcode_direct=yes
8429 hardcode_shlibpath_var=no
8430 ;;
8431
8432 *)
8433 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8434 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8435 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8436 else
8437 ld_shlibs=no
8438 fi
8439 ;;
8440 esac
8441
8442 if test "$ld_shlibs" = no; then
8443 runpath_var=
8444 hardcode_libdir_flag_spec=
8445 export_dynamic_flag_spec=
8446 whole_archive_flag_spec=
8447 fi
8448 else
8449 # PORTME fill in a description of your system's linker (not GNU ld)
8450 case $host_os in
8451 aix3*)
8452 allow_undefined_flag=unsupported
8453 always_export_symbols=yes
8454 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'
8455 # Note: this linker hardcodes the directories in LIBPATH if there
8456 # are no directories specified by -L.
8457 hardcode_minus_L=yes
8458 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8459 # Neither direct hardcoding nor static linking is supported with a
8460 # broken collect2.
8461 hardcode_direct=unsupported
8462 fi
8463 ;;
8464
8465 aix[4-9]*)
8466 if test "$host_cpu" = ia64; then
8467 # On IA64, the linker does run time linking by default, so we don't
8468 # have to do anything special.
8469 aix_use_runtimelinking=no
8470 exp_sym_flag='-Bexport'
8471 no_entry_flag=""
8472 else
8473 # If we're using GNU nm, then we don't want the "-C" option.
8474 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8475 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8476 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'
8477 else
8478 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'
8479 fi
8480 aix_use_runtimelinking=no
8481
8482 # Test if we are trying to use run time linking or normal
8483 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8484 # need to do runtime linking.
8485 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8486 for ld_flag in $LDFLAGS; do
8487 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8488 aix_use_runtimelinking=yes
8489 break
8490 fi
8491 done
8492 ;;
8493 esac
8494
8495 exp_sym_flag='-bexport'
8496 no_entry_flag='-bnoentry'
8497 fi
8498
8499 # When large executables or shared objects are built, AIX ld can
8500 # have problems creating the table of contents. If linking a library
8501 # or program results in "error TOC overflow" add -mminimal-toc to
8502 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8503 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8504
8505 archive_cmds=''
8506 hardcode_direct=yes
8507 hardcode_direct_absolute=yes
8508 hardcode_libdir_separator=':'
8509 link_all_deplibs=yes
8510 file_list_spec='${wl}-f,'
8511
8512 if test "$GCC" = yes; then
8513 case $host_os in aix4.[012]|aix4.[012].*)
8514 # We only want to do this on AIX 4.2 and lower, the check
8515 # below for broken collect2 doesn't work under 4.3+
8516 collect2name=`${CC} -print-prog-name=collect2`
8517 if test -f "$collect2name" &&
8518 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8519 then
8520 # We have reworked collect2
8521 :
8522 else
8523 # We have old collect2
8524 hardcode_direct=unsupported
8525 # It fails to find uninstalled libraries when the uninstalled
8526 # path is not listed in the libpath. Setting hardcode_minus_L
8527 # to unsupported forces relinking
8528 hardcode_minus_L=yes
8529 hardcode_libdir_flag_spec='-L$libdir'
8530 hardcode_libdir_separator=
8531 fi
8532 ;;
8533 esac
8534 shared_flag='-shared'
8535 if test "$aix_use_runtimelinking" = yes; then
8536 shared_flag="$shared_flag "'${wl}-G'
8537 fi
8538 else
8539 # not using gcc
8540 if test "$host_cpu" = ia64; then
8541 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8542 # chokes on -Wl,-G. The following line is correct:
8543 shared_flag='-G'
8544 else
8545 if test "$aix_use_runtimelinking" = yes; then
8546 shared_flag='${wl}-G'
8547 else
8548 shared_flag='${wl}-bM:SRE'
8549 fi
8550 fi
8551 fi
8552
8553 export_dynamic_flag_spec='${wl}-bexpall'
8554 # It seems that -bexpall does not export symbols beginning with
8555 # underscore (_), so it is better to generate a list of symbols to export.
8556 always_export_symbols=yes
8557 if test "$aix_use_runtimelinking" = yes; then
8558 # Warning - without using the other runtime loading flags (-brtl),
8559 # -berok will link without error, but may produce a broken library.
8560 allow_undefined_flag='-berok'
8561 # Determine the default libpath from the value encoded in an
8562 # empty executable.
8563 cat >conftest.$ac_ext <<_ACEOF
8564 /* confdefs.h. */
8565 _ACEOF
8566 cat confdefs.h >>conftest.$ac_ext
8567 cat >>conftest.$ac_ext <<_ACEOF
8568 /* end confdefs.h. */
8569
8570 int
8571 main ()
8572 {
8573
8574 ;
8575 return 0;
8576 }
8577 _ACEOF
8578 rm -f conftest.$ac_objext conftest$ac_exeext
8579 if { (ac_try="$ac_link"
8580 case "(($ac_try" in
8581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8582 *) ac_try_echo=$ac_try;;
8583 esac
8584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8585 $as_echo "$ac_try_echo") >&5
8586 (eval "$ac_link") 2>conftest.er1
8587 ac_status=$?
8588 grep -v '^ *+' conftest.er1 >conftest.err
8589 rm -f conftest.er1
8590 cat conftest.err >&5
8591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); } && {
8593 test -z "$ac_c_werror_flag" ||
8594 test ! -s conftest.err
8595 } && test -s conftest$ac_exeext && {
8596 test "$cross_compiling" = yes ||
8597 $as_test_x conftest$ac_exeext
8598 }; then
8599
8600 lt_aix_libpath_sed='
8601 /Import File Strings/,/^$/ {
8602 /^0/ {
8603 s/^0 *\(.*\)$/\1/
8604 p
8605 }
8606 }'
8607 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8608 # Check for a 64-bit object if we didn't find anything.
8609 if test -z "$aix_libpath"; then
8610 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8611 fi
8612 else
8613 $as_echo "$as_me: failed program was:" >&5
8614 sed 's/^/| /' conftest.$ac_ext >&5
8615
8616
8617 fi
8618
8619 rm -rf conftest.dSYM
8620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8621 conftest$ac_exeext conftest.$ac_ext
8622 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8623
8624 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8625 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"
8626 else
8627 if test "$host_cpu" = ia64; then
8628 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8629 allow_undefined_flag="-z nodefs"
8630 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"
8631 else
8632 # Determine the default libpath from the value encoded in an
8633 # empty executable.
8634 cat >conftest.$ac_ext <<_ACEOF
8635 /* confdefs.h. */
8636 _ACEOF
8637 cat confdefs.h >>conftest.$ac_ext
8638 cat >>conftest.$ac_ext <<_ACEOF
8639 /* end confdefs.h. */
8640
8641 int
8642 main ()
8643 {
8644
8645 ;
8646 return 0;
8647 }
8648 _ACEOF
8649 rm -f conftest.$ac_objext conftest$ac_exeext
8650 if { (ac_try="$ac_link"
8651 case "(($ac_try" in
8652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8653 *) ac_try_echo=$ac_try;;
8654 esac
8655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8656 $as_echo "$ac_try_echo") >&5
8657 (eval "$ac_link") 2>conftest.er1
8658 ac_status=$?
8659 grep -v '^ *+' conftest.er1 >conftest.err
8660 rm -f conftest.er1
8661 cat conftest.err >&5
8662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); } && {
8664 test -z "$ac_c_werror_flag" ||
8665 test ! -s conftest.err
8666 } && test -s conftest$ac_exeext && {
8667 test "$cross_compiling" = yes ||
8668 $as_test_x conftest$ac_exeext
8669 }; then
8670
8671 lt_aix_libpath_sed='
8672 /Import File Strings/,/^$/ {
8673 /^0/ {
8674 s/^0 *\(.*\)$/\1/
8675 p
8676 }
8677 }'
8678 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8679 # Check for a 64-bit object if we didn't find anything.
8680 if test -z "$aix_libpath"; then
8681 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8682 fi
8683 else
8684 $as_echo "$as_me: failed program was:" >&5
8685 sed 's/^/| /' conftest.$ac_ext >&5
8686
8687
8688 fi
8689
8690 rm -rf conftest.dSYM
8691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8692 conftest$ac_exeext conftest.$ac_ext
8693 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8694
8695 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8696 # Warning - without using the other run time loading flags,
8697 # -berok will link without error, but may produce a broken library.
8698 no_undefined_flag=' ${wl}-bernotok'
8699 allow_undefined_flag=' ${wl}-berok'
8700 # Exported symbols can be pulled into shared objects from archives
8701 whole_archive_flag_spec='$convenience'
8702 archive_cmds_need_lc=yes
8703 # This is similar to how AIX traditionally builds its shared libraries.
8704 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'
8705 fi
8706 fi
8707 ;;
8708
8709 amigaos*)
8710 case $host_cpu in
8711 powerpc)
8712 # see comment about AmigaOS4 .so support
8713 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8714 archive_expsym_cmds=''
8715 ;;
8716 m68k)
8717 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)'
8718 hardcode_libdir_flag_spec='-L$libdir'
8719 hardcode_minus_L=yes
8720 ;;
8721 esac
8722 ;;
8723
8724 bsdi[45]*)
8725 export_dynamic_flag_spec=-rdynamic
8726 ;;
8727
8728 cygwin* | mingw* | pw32* | cegcc*)
8729 # When not using gcc, we currently assume that we are using
8730 # Microsoft Visual C++.
8731 # hardcode_libdir_flag_spec is actually meaningless, as there is
8732 # no search path for DLLs.
8733 hardcode_libdir_flag_spec=' '
8734 allow_undefined_flag=unsupported
8735 # Tell ltmain to make .lib files, not .a files.
8736 libext=lib
8737 # Tell ltmain to make .dll files, not .so files.
8738 shrext_cmds=".dll"
8739 # FIXME: Setting linknames here is a bad hack.
8740 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8741 # The linker will automatically build a .lib file if we build a DLL.
8742 old_archive_from_new_cmds='true'
8743 # FIXME: Should let the user specify the lib program.
8744 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8745 fix_srcfile_path='`cygpath -w "$srcfile"`'
8746 enable_shared_with_static_runtimes=yes
8747 ;;
8748
8749 darwin* | rhapsody*)
8750
8751
8752 archive_cmds_need_lc=no
8753 hardcode_direct=no
8754 hardcode_automatic=yes
8755 hardcode_shlibpath_var=unsupported
8756 whole_archive_flag_spec=''
8757 link_all_deplibs=yes
8758 allow_undefined_flag="$_lt_dar_allow_undefined"
8759 case $cc_basename in
8760 ifort*) _lt_dar_can_shared=yes ;;
8761 *) _lt_dar_can_shared=$GCC ;;
8762 esac
8763 if test "$_lt_dar_can_shared" = "yes"; then
8764 output_verbose_link_cmd=echo
8765 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8766 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8767 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}"
8768 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}"
8769
8770 else
8771 ld_shlibs=no
8772 fi
8773
8774 ;;
8775
8776 dgux*)
8777 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8778 hardcode_libdir_flag_spec='-L$libdir'
8779 hardcode_shlibpath_var=no
8780 ;;
8781
8782 freebsd1*)
8783 ld_shlibs=no
8784 ;;
8785
8786 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8787 # support. Future versions do this automatically, but an explicit c++rt0.o
8788 # does not break anything, and helps significantly (at the cost of a little
8789 # extra space).
8790 freebsd2.2*)
8791 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8792 hardcode_libdir_flag_spec='-R$libdir'
8793 hardcode_direct=yes
8794 hardcode_shlibpath_var=no
8795 ;;
8796
8797 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8798 freebsd2*)
8799 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8800 hardcode_direct=yes
8801 hardcode_minus_L=yes
8802 hardcode_shlibpath_var=no
8803 ;;
8804
8805 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8806 freebsd* | dragonfly*)
8807 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8808 hardcode_libdir_flag_spec='-R$libdir'
8809 hardcode_direct=yes
8810 hardcode_shlibpath_var=no
8811 ;;
8812
8813 hpux9*)
8814 if test "$GCC" = yes; then
8815 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'
8816 else
8817 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'
8818 fi
8819 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8820 hardcode_libdir_separator=:
8821 hardcode_direct=yes
8822
8823 # hardcode_minus_L: Not really in the search PATH,
8824 # but as the default location of the library.
8825 hardcode_minus_L=yes
8826 export_dynamic_flag_spec='${wl}-E'
8827 ;;
8828
8829 hpux10*)
8830 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8831 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8832 else
8833 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8834 fi
8835 if test "$with_gnu_ld" = no; then
8836 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8837 hardcode_libdir_flag_spec_ld='+b $libdir'
8838 hardcode_libdir_separator=:
8839 hardcode_direct=yes
8840 hardcode_direct_absolute=yes
8841 export_dynamic_flag_spec='${wl}-E'
8842 # hardcode_minus_L: Not really in the search PATH,
8843 # but as the default location of the library.
8844 hardcode_minus_L=yes
8845 fi
8846 ;;
8847
8848 hpux11*)
8849 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8850 case $host_cpu in
8851 hppa*64*)
8852 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8853 ;;
8854 ia64*)
8855 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8856 ;;
8857 *)
8858 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8859 ;;
8860 esac
8861 else
8862 case $host_cpu in
8863 hppa*64*)
8864 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8865 ;;
8866 ia64*)
8867 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8868 ;;
8869 *)
8870 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8871 ;;
8872 esac
8873 fi
8874 if test "$with_gnu_ld" = no; then
8875 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8876 hardcode_libdir_separator=:
8877
8878 case $host_cpu in
8879 hppa*64*|ia64*)
8880 hardcode_direct=no
8881 hardcode_shlibpath_var=no
8882 ;;
8883 *)
8884 hardcode_direct=yes
8885 hardcode_direct_absolute=yes
8886 export_dynamic_flag_spec='${wl}-E'
8887
8888 # hardcode_minus_L: Not really in the search PATH,
8889 # but as the default location of the library.
8890 hardcode_minus_L=yes
8891 ;;
8892 esac
8893 fi
8894 ;;
8895
8896 irix5* | irix6* | nonstopux*)
8897 if test "$GCC" = yes; then
8898 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'
8899 # Try to use the -exported_symbol ld option, if it does not
8900 # work, assume that -exports_file does not work either and
8901 # implicitly export all symbols.
8902 save_LDFLAGS="$LDFLAGS"
8903 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8904 cat >conftest.$ac_ext <<_ACEOF
8905 int foo(void) {}
8906 _ACEOF
8907 rm -f conftest.$ac_objext conftest$ac_exeext
8908 if { (ac_try="$ac_link"
8909 case "(($ac_try" in
8910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8911 *) ac_try_echo=$ac_try;;
8912 esac
8913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8914 $as_echo "$ac_try_echo") >&5
8915 (eval "$ac_link") 2>conftest.er1
8916 ac_status=$?
8917 grep -v '^ *+' conftest.er1 >conftest.err
8918 rm -f conftest.er1
8919 cat conftest.err >&5
8920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 (exit $ac_status); } && {
8922 test -z "$ac_c_werror_flag" ||
8923 test ! -s conftest.err
8924 } && test -s conftest$ac_exeext && {
8925 test "$cross_compiling" = yes ||
8926 $as_test_x conftest$ac_exeext
8927 }; then
8928 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'
8929
8930 else
8931 $as_echo "$as_me: failed program was:" >&5
8932 sed 's/^/| /' conftest.$ac_ext >&5
8933
8934
8935 fi
8936
8937 rm -rf conftest.dSYM
8938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8939 conftest$ac_exeext conftest.$ac_ext
8940 LDFLAGS="$save_LDFLAGS"
8941 else
8942 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'
8943 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'
8944 fi
8945 archive_cmds_need_lc='no'
8946 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8947 hardcode_libdir_separator=:
8948 inherit_rpath=yes
8949 link_all_deplibs=yes
8950 ;;
8951
8952 netbsd*)
8953 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8954 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8955 else
8956 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8957 fi
8958 hardcode_libdir_flag_spec='-R$libdir'
8959 hardcode_direct=yes
8960 hardcode_shlibpath_var=no
8961 ;;
8962
8963 newsos6)
8964 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8965 hardcode_direct=yes
8966 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8967 hardcode_libdir_separator=:
8968 hardcode_shlibpath_var=no
8969 ;;
8970
8971 *nto* | *qnx*)
8972 ;;
8973
8974 openbsd*)
8975 if test -f /usr/libexec/ld.so; then
8976 hardcode_direct=yes
8977 hardcode_shlibpath_var=no
8978 hardcode_direct_absolute=yes
8979 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8980 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8981 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8982 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8983 export_dynamic_flag_spec='${wl}-E'
8984 else
8985 case $host_os in
8986 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8987 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8988 hardcode_libdir_flag_spec='-R$libdir'
8989 ;;
8990 *)
8991 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8992 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8993 ;;
8994 esac
8995 fi
8996 else
8997 ld_shlibs=no
8998 fi
8999 ;;
9000
9001 os2*)
9002 hardcode_libdir_flag_spec='-L$libdir'
9003 hardcode_minus_L=yes
9004 allow_undefined_flag=unsupported
9005 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'
9006 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9007 ;;
9008
9009 osf3*)
9010 if test "$GCC" = yes; then
9011 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9012 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'
9013 else
9014 allow_undefined_flag=' -expect_unresolved \*'
9015 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'
9016 fi
9017 archive_cmds_need_lc='no'
9018 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9019 hardcode_libdir_separator=:
9020 ;;
9021
9022 osf4* | osf5*) # as osf3* with the addition of -msym flag
9023 if test "$GCC" = yes; then
9024 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9025 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'
9026 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9027 else
9028 allow_undefined_flag=' -expect_unresolved \*'
9029 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'
9030 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~
9031 $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'
9032
9033 # Both c and cxx compiler support -rpath directly
9034 hardcode_libdir_flag_spec='-rpath $libdir'
9035 fi
9036 archive_cmds_need_lc='no'
9037 hardcode_libdir_separator=:
9038 ;;
9039
9040 solaris*)
9041 no_undefined_flag=' -z defs'
9042 if test "$GCC" = yes; then
9043 wlarc='${wl}'
9044 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9045 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9046 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9047 else
9048 case `$CC -V 2>&1` in
9049 *"Compilers 5.0"*)
9050 wlarc=''
9051 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9052 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9053 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9054 ;;
9055 *)
9056 wlarc='${wl}'
9057 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9058 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9059 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9060 ;;
9061 esac
9062 fi
9063 hardcode_libdir_flag_spec='-R$libdir'
9064 hardcode_shlibpath_var=no
9065 case $host_os in
9066 solaris2.[0-5] | solaris2.[0-5].*) ;;
9067 *)
9068 # The compiler driver will combine and reorder linker options,
9069 # but understands `-z linker_flag'. GCC discards it without `$wl',
9070 # but is careful enough not to reorder.
9071 # Supported since Solaris 2.6 (maybe 2.5.1?)
9072 if test "$GCC" = yes; then
9073 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9074 else
9075 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9076 fi
9077 ;;
9078 esac
9079 link_all_deplibs=yes
9080 ;;
9081
9082 sunos4*)
9083 if test "x$host_vendor" = xsequent; then
9084 # Use $CC to link under sequent, because it throws in some extra .o
9085 # files that make .init and .fini sections work.
9086 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9087 else
9088 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9089 fi
9090 hardcode_libdir_flag_spec='-L$libdir'
9091 hardcode_direct=yes
9092 hardcode_minus_L=yes
9093 hardcode_shlibpath_var=no
9094 ;;
9095
9096 sysv4)
9097 case $host_vendor in
9098 sni)
9099 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9100 hardcode_direct=yes # is this really true???
9101 ;;
9102 siemens)
9103 ## LD is ld it makes a PLAMLIB
9104 ## CC just makes a GrossModule.
9105 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9106 reload_cmds='$CC -r -o $output$reload_objs'
9107 hardcode_direct=no
9108 ;;
9109 motorola)
9110 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9111 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9112 ;;
9113 esac
9114 runpath_var='LD_RUN_PATH'
9115 hardcode_shlibpath_var=no
9116 ;;
9117
9118 sysv4.3*)
9119 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9120 hardcode_shlibpath_var=no
9121 export_dynamic_flag_spec='-Bexport'
9122 ;;
9123
9124 sysv4*MP*)
9125 if test -d /usr/nec; then
9126 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9127 hardcode_shlibpath_var=no
9128 runpath_var=LD_RUN_PATH
9129 hardcode_runpath_var=yes
9130 ld_shlibs=yes
9131 fi
9132 ;;
9133
9134 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9135 no_undefined_flag='${wl}-z,text'
9136 archive_cmds_need_lc=no
9137 hardcode_shlibpath_var=no
9138 runpath_var='LD_RUN_PATH'
9139
9140 if test "$GCC" = yes; then
9141 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9142 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9143 else
9144 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9145 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9146 fi
9147 ;;
9148
9149 sysv5* | sco3.2v5* | sco5v6*)
9150 # Note: We can NOT use -z defs as we might desire, because we do not
9151 # link with -lc, and that would cause any symbols used from libc to
9152 # always be unresolved, which means just about no library would
9153 # ever link correctly. If we're not using GNU ld we use -z text
9154 # though, which does catch some bad symbols but isn't as heavy-handed
9155 # as -z defs.
9156 no_undefined_flag='${wl}-z,text'
9157 allow_undefined_flag='${wl}-z,nodefs'
9158 archive_cmds_need_lc=no
9159 hardcode_shlibpath_var=no
9160 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9161 hardcode_libdir_separator=':'
9162 link_all_deplibs=yes
9163 export_dynamic_flag_spec='${wl}-Bexport'
9164 runpath_var='LD_RUN_PATH'
9165
9166 if test "$GCC" = yes; then
9167 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9168 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9169 else
9170 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9171 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9172 fi
9173 ;;
9174
9175 uts4*)
9176 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9177 hardcode_libdir_flag_spec='-L$libdir'
9178 hardcode_shlibpath_var=no
9179 ;;
9180
9181 *)
9182 ld_shlibs=no
9183 ;;
9184 esac
9185
9186 if test x$host_vendor = xsni; then
9187 case $host in
9188 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9189 export_dynamic_flag_spec='${wl}-Blargedynsym'
9190 ;;
9191 esac
9192 fi
9193 fi
9194
9195 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9196 $as_echo "$ld_shlibs" >&6; }
9197 test "$ld_shlibs" = no && can_build_shared=no
9198
9199 with_gnu_ld=$with_gnu_ld
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215 #
9216 # Do we need to explicitly link libc?
9217 #
9218 case "x$archive_cmds_need_lc" in
9219 x|xyes)
9220 # Assume -lc should be added
9221 archive_cmds_need_lc=yes
9222
9223 if test "$enable_shared" = yes && test "$GCC" = yes; then
9224 case $archive_cmds in
9225 *'~'*)
9226 # FIXME: we may have to deal with multi-command sequences.
9227 ;;
9228 '$CC '*)
9229 # Test whether the compiler implicitly links with -lc since on some
9230 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9231 # to ld, don't add -lc before -lgcc.
9232 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9233 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9234 $RM conftest*
9235 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9236
9237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9238 (eval $ac_compile) 2>&5
9239 ac_status=$?
9240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); } 2>conftest.err; then
9242 soname=conftest
9243 lib=conftest
9244 libobjs=conftest.$ac_objext
9245 deplibs=
9246 wl=$lt_prog_compiler_wl
9247 pic_flag=$lt_prog_compiler_pic
9248 compiler_flags=-v
9249 linker_flags=-v
9250 verstring=
9251 output_objdir=.
9252 libname=conftest
9253 lt_save_allow_undefined_flag=$allow_undefined_flag
9254 allow_undefined_flag=
9255 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9256 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9257 ac_status=$?
9258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); }
9260 then
9261 archive_cmds_need_lc=no
9262 else
9263 archive_cmds_need_lc=yes
9264 fi
9265 allow_undefined_flag=$lt_save_allow_undefined_flag
9266 else
9267 cat conftest.err 1>&5
9268 fi
9269 $RM conftest*
9270 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9271 $as_echo "$archive_cmds_need_lc" >&6; }
9272 ;;
9273 esac
9274 fi
9275 ;;
9276 esac
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
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9435 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9436
9437 if test "$GCC" = yes; then
9438 case $host_os in
9439 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9440 *) lt_awk_arg="/^libraries:/" ;;
9441 esac
9442 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9443 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9444 # if the path contains ";" then we assume it to be the separator
9445 # otherwise default to the standard path separator (i.e. ":") - it is
9446 # assumed that no part of a normal pathname contains ";" but that should
9447 # okay in the real world where ";" in dirpaths is itself problematic.
9448 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9449 else
9450 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9451 fi
9452 # Ok, now we have the path, separated by spaces, we can step through it
9453 # and add multilib dir if necessary.
9454 lt_tmp_lt_search_path_spec=
9455 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9456 for lt_sys_path in $lt_search_path_spec; do
9457 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9458 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9459 else
9460 test -d "$lt_sys_path" && \
9461 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9462 fi
9463 done
9464 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9465 BEGIN {RS=" "; FS="/|\n";} {
9466 lt_foo="";
9467 lt_count=0;
9468 for (lt_i = NF; lt_i > 0; lt_i--) {
9469 if ($lt_i != "" && $lt_i != ".") {
9470 if ($lt_i == "..") {
9471 lt_count++;
9472 } else {
9473 if (lt_count == 0) {
9474 lt_foo="/" $lt_i lt_foo;
9475 } else {
9476 lt_count--;
9477 }
9478 }
9479 }
9480 }
9481 if (lt_foo != "") { lt_freq[lt_foo]++; }
9482 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9483 }'`
9484 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9485 else
9486 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9487 fi
9488 library_names_spec=
9489 libname_spec='lib$name'
9490 soname_spec=
9491 shrext_cmds=".so"
9492 postinstall_cmds=
9493 postuninstall_cmds=
9494 finish_cmds=
9495 finish_eval=
9496 shlibpath_var=
9497 shlibpath_overrides_runpath=unknown
9498 version_type=none
9499 dynamic_linker="$host_os ld.so"
9500 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9501 need_lib_prefix=unknown
9502 hardcode_into_libs=no
9503
9504 # when you set need_version to no, make sure it does not cause -set_version
9505 # flags to be left without arguments
9506 need_version=unknown
9507
9508 case $host_os in
9509 aix3*)
9510 version_type=linux
9511 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9512 shlibpath_var=LIBPATH
9513
9514 # AIX 3 has no versioning support, so we append a major version to the name.
9515 soname_spec='${libname}${release}${shared_ext}$major'
9516 ;;
9517
9518 aix[4-9]*)
9519 version_type=linux
9520 need_lib_prefix=no
9521 need_version=no
9522 hardcode_into_libs=yes
9523 if test "$host_cpu" = ia64; then
9524 # AIX 5 supports IA64
9525 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9526 shlibpath_var=LD_LIBRARY_PATH
9527 else
9528 # With GCC up to 2.95.x, collect2 would create an import file
9529 # for dependence libraries. The import file would start with
9530 # the line `#! .'. This would cause the generated library to
9531 # depend on `.', always an invalid library. This was fixed in
9532 # development snapshots of GCC prior to 3.0.
9533 case $host_os in
9534 aix4 | aix4.[01] | aix4.[01].*)
9535 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9536 echo ' yes '
9537 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9538 :
9539 else
9540 can_build_shared=no
9541 fi
9542 ;;
9543 esac
9544 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9545 # soname into executable. Probably we can add versioning support to
9546 # collect2, so additional links can be useful in future.
9547 if test "$aix_use_runtimelinking" = yes; then
9548 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9549 # instead of lib<name>.a to let people know that these are not
9550 # typical AIX shared libraries.
9551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9552 else
9553 # We preserve .a as extension for shared libraries through AIX4.2
9554 # and later when we are not doing run time linking.
9555 library_names_spec='${libname}${release}.a $libname.a'
9556 soname_spec='${libname}${release}${shared_ext}$major'
9557 fi
9558 shlibpath_var=LIBPATH
9559 fi
9560 ;;
9561
9562 amigaos*)
9563 case $host_cpu in
9564 powerpc)
9565 # Since July 2007 AmigaOS4 officially supports .so libraries.
9566 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9568 ;;
9569 m68k)
9570 library_names_spec='$libname.ixlibrary $libname.a'
9571 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9572 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'
9573 ;;
9574 esac
9575 ;;
9576
9577 beos*)
9578 library_names_spec='${libname}${shared_ext}'
9579 dynamic_linker="$host_os ld.so"
9580 shlibpath_var=LIBRARY_PATH
9581 ;;
9582
9583 bsdi[45]*)
9584 version_type=linux
9585 need_version=no
9586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9587 soname_spec='${libname}${release}${shared_ext}$major'
9588 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9589 shlibpath_var=LD_LIBRARY_PATH
9590 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9591 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9592 # the default ld.so.conf also contains /usr/contrib/lib and
9593 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9594 # libtool to hard-code these into programs
9595 ;;
9596
9597 cygwin* | mingw* | pw32* | cegcc*)
9598 version_type=windows
9599 shrext_cmds=".dll"
9600 need_version=no
9601 need_lib_prefix=no
9602
9603 case $GCC,$host_os in
9604 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9605 library_names_spec='$libname.dll.a'
9606 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9607 postinstall_cmds='base_file=`basename \${file}`~
9608 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9609 dldir=$destdir/`dirname \$dlpath`~
9610 test -d \$dldir || mkdir -p \$dldir~
9611 $install_prog $dir/$dlname \$dldir/$dlname~
9612 chmod a+x \$dldir/$dlname~
9613 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9614 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9615 fi'
9616 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9617 dlpath=$dir/\$dldll~
9618 $RM \$dlpath'
9619 shlibpath_overrides_runpath=yes
9620
9621 case $host_os in
9622 cygwin*)
9623 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9624 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9625 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9626 ;;
9627 mingw* | cegcc*)
9628 # MinGW DLLs use traditional 'lib' prefix
9629 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9630 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9631 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9632 # It is most probably a Windows format PATH printed by
9633 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9634 # path with ; separators, and with drive letters. We can handle the
9635 # drive letters (cygwin fileutils understands them), so leave them,
9636 # especially as we might pass files found there to a mingw objdump,
9637 # which wouldn't understand a cygwinified path. Ahh.
9638 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9639 else
9640 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9641 fi
9642 ;;
9643 pw32*)
9644 # pw32 DLLs use 'pw' prefix rather than 'lib'
9645 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9646 ;;
9647 esac
9648 ;;
9649
9650 *)
9651 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9652 ;;
9653 esac
9654 dynamic_linker='Win32 ld.exe'
9655 # FIXME: first we should search . and the directory the executable is in
9656 shlibpath_var=PATH
9657 ;;
9658
9659 darwin* | rhapsody*)
9660 dynamic_linker="$host_os dyld"
9661 version_type=darwin
9662 need_lib_prefix=no
9663 need_version=no
9664 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9665 soname_spec='${libname}${release}${major}$shared_ext'
9666 shlibpath_overrides_runpath=yes
9667 shlibpath_var=DYLD_LIBRARY_PATH
9668 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9669
9670 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9671 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9672 ;;
9673
9674 dgux*)
9675 version_type=linux
9676 need_lib_prefix=no
9677 need_version=no
9678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9679 soname_spec='${libname}${release}${shared_ext}$major'
9680 shlibpath_var=LD_LIBRARY_PATH
9681 ;;
9682
9683 freebsd1*)
9684 dynamic_linker=no
9685 ;;
9686
9687 freebsd* | dragonfly*)
9688 # DragonFly does not have aout. When/if they implement a new
9689 # versioning mechanism, adjust this.
9690 if test -x /usr/bin/objformat; then
9691 objformat=`/usr/bin/objformat`
9692 else
9693 case $host_os in
9694 freebsd[123]*) objformat=aout ;;
9695 *) objformat=elf ;;
9696 esac
9697 fi
9698 version_type=freebsd-$objformat
9699 case $version_type in
9700 freebsd-elf*)
9701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9702 need_version=no
9703 need_lib_prefix=no
9704 ;;
9705 freebsd-*)
9706 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9707 need_version=yes
9708 ;;
9709 esac
9710 shlibpath_var=LD_LIBRARY_PATH
9711 case $host_os in
9712 freebsd2*)
9713 shlibpath_overrides_runpath=yes
9714 ;;
9715 freebsd3.[01]* | freebsdelf3.[01]*)
9716 shlibpath_overrides_runpath=yes
9717 hardcode_into_libs=yes
9718 ;;
9719 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9720 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9721 shlibpath_overrides_runpath=no
9722 hardcode_into_libs=yes
9723 ;;
9724 *) # from 4.6 on, and DragonFly
9725 shlibpath_overrides_runpath=yes
9726 hardcode_into_libs=yes
9727 ;;
9728 esac
9729 ;;
9730
9731 gnu*)
9732 version_type=linux
9733 need_lib_prefix=no
9734 need_version=no
9735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9736 soname_spec='${libname}${release}${shared_ext}$major'
9737 shlibpath_var=LD_LIBRARY_PATH
9738 hardcode_into_libs=yes
9739 ;;
9740
9741 hpux9* | hpux10* | hpux11*)
9742 # Give a soname corresponding to the major version so that dld.sl refuses to
9743 # link against other versions.
9744 version_type=sunos
9745 need_lib_prefix=no
9746 need_version=no
9747 case $host_cpu in
9748 ia64*)
9749 shrext_cmds='.so'
9750 hardcode_into_libs=yes
9751 dynamic_linker="$host_os dld.so"
9752 shlibpath_var=LD_LIBRARY_PATH
9753 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9755 soname_spec='${libname}${release}${shared_ext}$major'
9756 if test "X$HPUX_IA64_MODE" = X32; then
9757 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9758 else
9759 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9760 fi
9761 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9762 ;;
9763 hppa*64*)
9764 shrext_cmds='.sl'
9765 hardcode_into_libs=yes
9766 dynamic_linker="$host_os dld.sl"
9767 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9768 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9770 soname_spec='${libname}${release}${shared_ext}$major'
9771 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9772 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9773 ;;
9774 *)
9775 shrext_cmds='.sl'
9776 dynamic_linker="$host_os dld.sl"
9777 shlibpath_var=SHLIB_PATH
9778 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9780 soname_spec='${libname}${release}${shared_ext}$major'
9781 ;;
9782 esac
9783 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9784 postinstall_cmds='chmod 555 $lib'
9785 ;;
9786
9787 interix[3-9]*)
9788 version_type=linux
9789 need_lib_prefix=no
9790 need_version=no
9791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9792 soname_spec='${libname}${release}${shared_ext}$major'
9793 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9794 shlibpath_var=LD_LIBRARY_PATH
9795 shlibpath_overrides_runpath=no
9796 hardcode_into_libs=yes
9797 ;;
9798
9799 irix5* | irix6* | nonstopux*)
9800 case $host_os in
9801 nonstopux*) version_type=nonstopux ;;
9802 *)
9803 if test "$lt_cv_prog_gnu_ld" = yes; then
9804 version_type=linux
9805 else
9806 version_type=irix
9807 fi ;;
9808 esac
9809 need_lib_prefix=no
9810 need_version=no
9811 soname_spec='${libname}${release}${shared_ext}$major'
9812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9813 case $host_os in
9814 irix5* | nonstopux*)
9815 libsuff= shlibsuff=
9816 ;;
9817 *)
9818 case $LD in # libtool.m4 will add one of these switches to LD
9819 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9820 libsuff= shlibsuff= libmagic=32-bit;;
9821 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9822 libsuff=32 shlibsuff=N32 libmagic=N32;;
9823 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9824 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9825 *) libsuff= shlibsuff= libmagic=never-match;;
9826 esac
9827 ;;
9828 esac
9829 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9830 shlibpath_overrides_runpath=no
9831 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9832 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9833 hardcode_into_libs=yes
9834 ;;
9835
9836 # No shared lib support for Linux oldld, aout, or coff.
9837 linux*oldld* | linux*aout* | linux*coff*)
9838 dynamic_linker=no
9839 ;;
9840
9841 # This must be Linux ELF.
9842 linux* | k*bsd*-gnu)
9843 version_type=linux
9844 need_lib_prefix=no
9845 need_version=no
9846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9847 soname_spec='${libname}${release}${shared_ext}$major'
9848 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9849 shlibpath_var=LD_LIBRARY_PATH
9850 shlibpath_overrides_runpath=no
9851 # Some binutils ld are patched to set DT_RUNPATH
9852 save_LDFLAGS=$LDFLAGS
9853 save_libdir=$libdir
9854 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9855 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9856 cat >conftest.$ac_ext <<_ACEOF
9857 /* confdefs.h. */
9858 _ACEOF
9859 cat confdefs.h >>conftest.$ac_ext
9860 cat >>conftest.$ac_ext <<_ACEOF
9861 /* end confdefs.h. */
9862
9863 int
9864 main ()
9865 {
9866
9867 ;
9868 return 0;
9869 }
9870 _ACEOF
9871 rm -f conftest.$ac_objext conftest$ac_exeext
9872 if { (ac_try="$ac_link"
9873 case "(($ac_try" in
9874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9875 *) ac_try_echo=$ac_try;;
9876 esac
9877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9878 $as_echo "$ac_try_echo") >&5
9879 (eval "$ac_link") 2>conftest.er1
9880 ac_status=$?
9881 grep -v '^ *+' conftest.er1 >conftest.err
9882 rm -f conftest.er1
9883 cat conftest.err >&5
9884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); } && {
9886 test -z "$ac_c_werror_flag" ||
9887 test ! -s conftest.err
9888 } && test -s conftest$ac_exeext && {
9889 test "$cross_compiling" = yes ||
9890 $as_test_x conftest$ac_exeext
9891 }; then
9892 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9893 shlibpath_overrides_runpath=yes
9894 fi
9895
9896 else
9897 $as_echo "$as_me: failed program was:" >&5
9898 sed 's/^/| /' conftest.$ac_ext >&5
9899
9900
9901 fi
9902
9903 rm -rf conftest.dSYM
9904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9905 conftest$ac_exeext conftest.$ac_ext
9906 LDFLAGS=$save_LDFLAGS
9907 libdir=$save_libdir
9908
9909 # This implies no fast_install, which is unacceptable.
9910 # Some rework will be needed to allow for fast_install
9911 # before this can be enabled.
9912 hardcode_into_libs=yes
9913
9914 # Add ABI-specific directories to the system library path.
9915 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
9916
9917 # Append ld.so.conf contents to the search path
9918 if test -f /etc/ld.so.conf; then
9919 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' ' '`
9920 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9921 fi
9922
9923 # We used to test for /lib/ld.so.1 and disable shared libraries on
9924 # powerpc, because MkLinux only supported shared libraries with the
9925 # GNU dynamic linker. Since this was broken with cross compilers,
9926 # most powerpc-linux boxes support dynamic linking these days and
9927 # people can always --disable-shared, the test was removed, and we
9928 # assume the GNU/Linux dynamic linker is in use.
9929 dynamic_linker='GNU/Linux ld.so'
9930 ;;
9931
9932 netbsd*)
9933 version_type=sunos
9934 need_lib_prefix=no
9935 need_version=no
9936 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9938 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9939 dynamic_linker='NetBSD (a.out) ld.so'
9940 else
9941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9942 soname_spec='${libname}${release}${shared_ext}$major'
9943 dynamic_linker='NetBSD ld.elf_so'
9944 fi
9945 shlibpath_var=LD_LIBRARY_PATH
9946 shlibpath_overrides_runpath=yes
9947 hardcode_into_libs=yes
9948 ;;
9949
9950 newsos6)
9951 version_type=linux
9952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9953 shlibpath_var=LD_LIBRARY_PATH
9954 shlibpath_overrides_runpath=yes
9955 ;;
9956
9957 *nto* | *qnx*)
9958 version_type=qnx
9959 need_lib_prefix=no
9960 need_version=no
9961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9962 soname_spec='${libname}${release}${shared_ext}$major'
9963 shlibpath_var=LD_LIBRARY_PATH
9964 shlibpath_overrides_runpath=no
9965 hardcode_into_libs=yes
9966 dynamic_linker='ldqnx.so'
9967 ;;
9968
9969 openbsd*)
9970 version_type=sunos
9971 sys_lib_dlsearch_path_spec="/usr/lib"
9972 need_lib_prefix=no
9973 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9974 case $host_os in
9975 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9976 *) need_version=no ;;
9977 esac
9978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9979 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9980 shlibpath_var=LD_LIBRARY_PATH
9981 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9982 case $host_os in
9983 openbsd2.[89] | openbsd2.[89].*)
9984 shlibpath_overrides_runpath=no
9985 ;;
9986 *)
9987 shlibpath_overrides_runpath=yes
9988 ;;
9989 esac
9990 else
9991 shlibpath_overrides_runpath=yes
9992 fi
9993 ;;
9994
9995 os2*)
9996 libname_spec='$name'
9997 shrext_cmds=".dll"
9998 need_lib_prefix=no
9999 library_names_spec='$libname${shared_ext} $libname.a'
10000 dynamic_linker='OS/2 ld.exe'
10001 shlibpath_var=LIBPATH
10002 ;;
10003
10004 osf3* | osf4* | osf5*)
10005 version_type=osf
10006 need_lib_prefix=no
10007 need_version=no
10008 soname_spec='${libname}${release}${shared_ext}$major'
10009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10010 shlibpath_var=LD_LIBRARY_PATH
10011 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10012 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10013 ;;
10014
10015 rdos*)
10016 dynamic_linker=no
10017 ;;
10018
10019 solaris*)
10020 version_type=linux
10021 need_lib_prefix=no
10022 need_version=no
10023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10024 soname_spec='${libname}${release}${shared_ext}$major'
10025 shlibpath_var=LD_LIBRARY_PATH
10026 shlibpath_overrides_runpath=yes
10027 hardcode_into_libs=yes
10028 # ldd complains unless libraries are executable
10029 postinstall_cmds='chmod +x $lib'
10030 ;;
10031
10032 sunos4*)
10033 version_type=sunos
10034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10035 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10036 shlibpath_var=LD_LIBRARY_PATH
10037 shlibpath_overrides_runpath=yes
10038 if test "$with_gnu_ld" = yes; then
10039 need_lib_prefix=no
10040 fi
10041 need_version=yes
10042 ;;
10043
10044 sysv4 | sysv4.3*)
10045 version_type=linux
10046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10047 soname_spec='${libname}${release}${shared_ext}$major'
10048 shlibpath_var=LD_LIBRARY_PATH
10049 case $host_vendor in
10050 sni)
10051 shlibpath_overrides_runpath=no
10052 need_lib_prefix=no
10053 runpath_var=LD_RUN_PATH
10054 ;;
10055 siemens)
10056 need_lib_prefix=no
10057 ;;
10058 motorola)
10059 need_lib_prefix=no
10060 need_version=no
10061 shlibpath_overrides_runpath=no
10062 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10063 ;;
10064 esac
10065 ;;
10066
10067 sysv4*MP*)
10068 if test -d /usr/nec ;then
10069 version_type=linux
10070 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10071 soname_spec='$libname${shared_ext}.$major'
10072 shlibpath_var=LD_LIBRARY_PATH
10073 fi
10074 ;;
10075
10076 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10077 version_type=freebsd-elf
10078 need_lib_prefix=no
10079 need_version=no
10080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10081 soname_spec='${libname}${release}${shared_ext}$major'
10082 shlibpath_var=LD_LIBRARY_PATH
10083 shlibpath_overrides_runpath=yes
10084 hardcode_into_libs=yes
10085 if test "$with_gnu_ld" = yes; then
10086 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10087 else
10088 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10089 case $host_os in
10090 sco3.2v5*)
10091 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10092 ;;
10093 esac
10094 fi
10095 sys_lib_dlsearch_path_spec='/usr/lib'
10096 ;;
10097
10098 tpf*)
10099 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10100 version_type=linux
10101 need_lib_prefix=no
10102 need_version=no
10103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10104 shlibpath_var=LD_LIBRARY_PATH
10105 shlibpath_overrides_runpath=no
10106 hardcode_into_libs=yes
10107 ;;
10108
10109 uts4*)
10110 version_type=linux
10111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10112 soname_spec='${libname}${release}${shared_ext}$major'
10113 shlibpath_var=LD_LIBRARY_PATH
10114 ;;
10115
10116 *)
10117 dynamic_linker=no
10118 ;;
10119 esac
10120 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10121 $as_echo "$dynamic_linker" >&6; }
10122 test "$dynamic_linker" = no && can_build_shared=no
10123
10124 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10125 if test "$GCC" = yes; then
10126 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10127 fi
10128
10129 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10130 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10131 fi
10132 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10133 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10134 fi
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
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10223 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10224 hardcode_action=
10225 if test -n "$hardcode_libdir_flag_spec" ||
10226 test -n "$runpath_var" ||
10227 test "X$hardcode_automatic" = "Xyes" ; then
10228
10229 # We can hardcode non-existent directories.
10230 if test "$hardcode_direct" != no &&
10231 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10232 # have to relink, otherwise we might link with an installed library
10233 # when we should be linking with a yet-to-be-installed one
10234 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10235 test "$hardcode_minus_L" != no; then
10236 # Linking always hardcodes the temporary library directory.
10237 hardcode_action=relink
10238 else
10239 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10240 hardcode_action=immediate
10241 fi
10242 else
10243 # We cannot hardcode anything, or else we can only hardcode existing
10244 # directories.
10245 hardcode_action=unsupported
10246 fi
10247 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10248 $as_echo "$hardcode_action" >&6; }
10249
10250 if test "$hardcode_action" = relink ||
10251 test "$inherit_rpath" = yes; then
10252 # Fast installation is not supported
10253 enable_fast_install=no
10254 elif test "$shlibpath_overrides_runpath" = yes ||
10255 test "$enable_shared" = no; then
10256 # Fast installation is not necessary
10257 enable_fast_install=needless
10258 fi
10259
10260
10261
10262
10263
10264
10265 if test "x$enable_dlopen" != xyes; then
10266 enable_dlopen=unknown
10267 enable_dlopen_self=unknown
10268 enable_dlopen_self_static=unknown
10269 else
10270 lt_cv_dlopen=no
10271 lt_cv_dlopen_libs=
10272
10273 case $host_os in
10274 beos*)
10275 lt_cv_dlopen="load_add_on"
10276 lt_cv_dlopen_libs=
10277 lt_cv_dlopen_self=yes
10278 ;;
10279
10280 mingw* | pw32* | cegcc*)
10281 lt_cv_dlopen="LoadLibrary"
10282 lt_cv_dlopen_libs=
10283 ;;
10284
10285 cygwin*)
10286 lt_cv_dlopen="dlopen"
10287 lt_cv_dlopen_libs=
10288 ;;
10289
10290 darwin*)
10291 # if libdl is installed we need to link against it
10292 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10293 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10294 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10295 $as_echo_n "(cached) " >&6
10296 else
10297 ac_check_lib_save_LIBS=$LIBS
10298 LIBS="-ldl $LIBS"
10299 cat >conftest.$ac_ext <<_ACEOF
10300 /* confdefs.h. */
10301 _ACEOF
10302 cat confdefs.h >>conftest.$ac_ext
10303 cat >>conftest.$ac_ext <<_ACEOF
10304 /* end confdefs.h. */
10305
10306 /* Override any GCC internal prototype to avoid an error.
10307 Use char because int might match the return type of a GCC
10308 builtin and then its argument prototype would still apply. */
10309 #ifdef __cplusplus
10310 extern "C"
10311 #endif
10312 char dlopen ();
10313 int
10314 main ()
10315 {
10316 return dlopen ();
10317 ;
10318 return 0;
10319 }
10320 _ACEOF
10321 rm -f conftest.$ac_objext conftest$ac_exeext
10322 if { (ac_try="$ac_link"
10323 case "(($ac_try" in
10324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10325 *) ac_try_echo=$ac_try;;
10326 esac
10327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10328 $as_echo "$ac_try_echo") >&5
10329 (eval "$ac_link") 2>conftest.er1
10330 ac_status=$?
10331 grep -v '^ *+' conftest.er1 >conftest.err
10332 rm -f conftest.er1
10333 cat conftest.err >&5
10334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 (exit $ac_status); } && {
10336 test -z "$ac_c_werror_flag" ||
10337 test ! -s conftest.err
10338 } && test -s conftest$ac_exeext && {
10339 test "$cross_compiling" = yes ||
10340 $as_test_x conftest$ac_exeext
10341 }; then
10342 ac_cv_lib_dl_dlopen=yes
10343 else
10344 $as_echo "$as_me: failed program was:" >&5
10345 sed 's/^/| /' conftest.$ac_ext >&5
10346
10347 ac_cv_lib_dl_dlopen=no
10348 fi
10349
10350 rm -rf conftest.dSYM
10351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10352 conftest$ac_exeext conftest.$ac_ext
10353 LIBS=$ac_check_lib_save_LIBS
10354 fi
10355 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10356 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10357 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10358 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10359 else
10360
10361 lt_cv_dlopen="dyld"
10362 lt_cv_dlopen_libs=
10363 lt_cv_dlopen_self=yes
10364
10365 fi
10366
10367 ;;
10368
10369 *)
10370 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10371 $as_echo_n "checking for shl_load... " >&6; }
10372 if test "${ac_cv_func_shl_load+set}" = set; then
10373 $as_echo_n "(cached) " >&6
10374 else
10375 cat >conftest.$ac_ext <<_ACEOF
10376 /* confdefs.h. */
10377 _ACEOF
10378 cat confdefs.h >>conftest.$ac_ext
10379 cat >>conftest.$ac_ext <<_ACEOF
10380 /* end confdefs.h. */
10381 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10383 #define shl_load innocuous_shl_load
10384
10385 /* System header to define __stub macros and hopefully few prototypes,
10386 which can conflict with char shl_load (); below.
10387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10388 <limits.h> exists even on freestanding compilers. */
10389
10390 #ifdef __STDC__
10391 # include <limits.h>
10392 #else
10393 # include <assert.h>
10394 #endif
10395
10396 #undef shl_load
10397
10398 /* Override any GCC internal prototype to avoid an error.
10399 Use char because int might match the return type of a GCC
10400 builtin and then its argument prototype would still apply. */
10401 #ifdef __cplusplus
10402 extern "C"
10403 #endif
10404 char shl_load ();
10405 /* The GNU C library defines this for functions which it implements
10406 to always fail with ENOSYS. Some functions are actually named
10407 something starting with __ and the normal name is an alias. */
10408 #if defined __stub_shl_load || defined __stub___shl_load
10409 choke me
10410 #endif
10411
10412 int
10413 main ()
10414 {
10415 return shl_load ();
10416 ;
10417 return 0;
10418 }
10419 _ACEOF
10420 rm -f conftest.$ac_objext conftest$ac_exeext
10421 if { (ac_try="$ac_link"
10422 case "(($ac_try" in
10423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10424 *) ac_try_echo=$ac_try;;
10425 esac
10426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10427 $as_echo "$ac_try_echo") >&5
10428 (eval "$ac_link") 2>conftest.er1
10429 ac_status=$?
10430 grep -v '^ *+' conftest.er1 >conftest.err
10431 rm -f conftest.er1
10432 cat conftest.err >&5
10433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); } && {
10435 test -z "$ac_c_werror_flag" ||
10436 test ! -s conftest.err
10437 } && test -s conftest$ac_exeext && {
10438 test "$cross_compiling" = yes ||
10439 $as_test_x conftest$ac_exeext
10440 }; then
10441 ac_cv_func_shl_load=yes
10442 else
10443 $as_echo "$as_me: failed program was:" >&5
10444 sed 's/^/| /' conftest.$ac_ext >&5
10445
10446 ac_cv_func_shl_load=no
10447 fi
10448
10449 rm -rf conftest.dSYM
10450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10451 conftest$ac_exeext conftest.$ac_ext
10452 fi
10453 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10454 $as_echo "$ac_cv_func_shl_load" >&6; }
10455 if test "x$ac_cv_func_shl_load" = x""yes; then
10456 lt_cv_dlopen="shl_load"
10457 else
10458 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10459 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10460 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10461 $as_echo_n "(cached) " >&6
10462 else
10463 ac_check_lib_save_LIBS=$LIBS
10464 LIBS="-ldld $LIBS"
10465 cat >conftest.$ac_ext <<_ACEOF
10466 /* confdefs.h. */
10467 _ACEOF
10468 cat confdefs.h >>conftest.$ac_ext
10469 cat >>conftest.$ac_ext <<_ACEOF
10470 /* end confdefs.h. */
10471
10472 /* Override any GCC internal prototype to avoid an error.
10473 Use char because int might match the return type of a GCC
10474 builtin and then its argument prototype would still apply. */
10475 #ifdef __cplusplus
10476 extern "C"
10477 #endif
10478 char shl_load ();
10479 int
10480 main ()
10481 {
10482 return shl_load ();
10483 ;
10484 return 0;
10485 }
10486 _ACEOF
10487 rm -f conftest.$ac_objext conftest$ac_exeext
10488 if { (ac_try="$ac_link"
10489 case "(($ac_try" in
10490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10491 *) ac_try_echo=$ac_try;;
10492 esac
10493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10494 $as_echo "$ac_try_echo") >&5
10495 (eval "$ac_link") 2>conftest.er1
10496 ac_status=$?
10497 grep -v '^ *+' conftest.er1 >conftest.err
10498 rm -f conftest.er1
10499 cat conftest.err >&5
10500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501 (exit $ac_status); } && {
10502 test -z "$ac_c_werror_flag" ||
10503 test ! -s conftest.err
10504 } && test -s conftest$ac_exeext && {
10505 test "$cross_compiling" = yes ||
10506 $as_test_x conftest$ac_exeext
10507 }; then
10508 ac_cv_lib_dld_shl_load=yes
10509 else
10510 $as_echo "$as_me: failed program was:" >&5
10511 sed 's/^/| /' conftest.$ac_ext >&5
10512
10513 ac_cv_lib_dld_shl_load=no
10514 fi
10515
10516 rm -rf conftest.dSYM
10517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10518 conftest$ac_exeext conftest.$ac_ext
10519 LIBS=$ac_check_lib_save_LIBS
10520 fi
10521 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10522 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10523 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10524 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10525 else
10526 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10527 $as_echo_n "checking for dlopen... " >&6; }
10528 if test "${ac_cv_func_dlopen+set}" = set; then
10529 $as_echo_n "(cached) " >&6
10530 else
10531 cat >conftest.$ac_ext <<_ACEOF
10532 /* confdefs.h. */
10533 _ACEOF
10534 cat confdefs.h >>conftest.$ac_ext
10535 cat >>conftest.$ac_ext <<_ACEOF
10536 /* end confdefs.h. */
10537 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10538 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10539 #define dlopen innocuous_dlopen
10540
10541 /* System header to define __stub macros and hopefully few prototypes,
10542 which can conflict with char dlopen (); below.
10543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10544 <limits.h> exists even on freestanding compilers. */
10545
10546 #ifdef __STDC__
10547 # include <limits.h>
10548 #else
10549 # include <assert.h>
10550 #endif
10551
10552 #undef dlopen
10553
10554 /* Override any GCC internal prototype to avoid an error.
10555 Use char because int might match the return type of a GCC
10556 builtin and then its argument prototype would still apply. */
10557 #ifdef __cplusplus
10558 extern "C"
10559 #endif
10560 char dlopen ();
10561 /* The GNU C library defines this for functions which it implements
10562 to always fail with ENOSYS. Some functions are actually named
10563 something starting with __ and the normal name is an alias. */
10564 #if defined __stub_dlopen || defined __stub___dlopen
10565 choke me
10566 #endif
10567
10568 int
10569 main ()
10570 {
10571 return dlopen ();
10572 ;
10573 return 0;
10574 }
10575 _ACEOF
10576 rm -f conftest.$ac_objext conftest$ac_exeext
10577 if { (ac_try="$ac_link"
10578 case "(($ac_try" in
10579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10580 *) ac_try_echo=$ac_try;;
10581 esac
10582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10583 $as_echo "$ac_try_echo") >&5
10584 (eval "$ac_link") 2>conftest.er1
10585 ac_status=$?
10586 grep -v '^ *+' conftest.er1 >conftest.err
10587 rm -f conftest.er1
10588 cat conftest.err >&5
10589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); } && {
10591 test -z "$ac_c_werror_flag" ||
10592 test ! -s conftest.err
10593 } && test -s conftest$ac_exeext && {
10594 test "$cross_compiling" = yes ||
10595 $as_test_x conftest$ac_exeext
10596 }; then
10597 ac_cv_func_dlopen=yes
10598 else
10599 $as_echo "$as_me: failed program was:" >&5
10600 sed 's/^/| /' conftest.$ac_ext >&5
10601
10602 ac_cv_func_dlopen=no
10603 fi
10604
10605 rm -rf conftest.dSYM
10606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10607 conftest$ac_exeext conftest.$ac_ext
10608 fi
10609 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10610 $as_echo "$ac_cv_func_dlopen" >&6; }
10611 if test "x$ac_cv_func_dlopen" = x""yes; then
10612 lt_cv_dlopen="dlopen"
10613 else
10614 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10615 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10616 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10617 $as_echo_n "(cached) " >&6
10618 else
10619 ac_check_lib_save_LIBS=$LIBS
10620 LIBS="-ldl $LIBS"
10621 cat >conftest.$ac_ext <<_ACEOF
10622 /* confdefs.h. */
10623 _ACEOF
10624 cat confdefs.h >>conftest.$ac_ext
10625 cat >>conftest.$ac_ext <<_ACEOF
10626 /* end confdefs.h. */
10627
10628 /* Override any GCC internal prototype to avoid an error.
10629 Use char because int might match the return type of a GCC
10630 builtin and then its argument prototype would still apply. */
10631 #ifdef __cplusplus
10632 extern "C"
10633 #endif
10634 char dlopen ();
10635 int
10636 main ()
10637 {
10638 return dlopen ();
10639 ;
10640 return 0;
10641 }
10642 _ACEOF
10643 rm -f conftest.$ac_objext conftest$ac_exeext
10644 if { (ac_try="$ac_link"
10645 case "(($ac_try" in
10646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10647 *) ac_try_echo=$ac_try;;
10648 esac
10649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10650 $as_echo "$ac_try_echo") >&5
10651 (eval "$ac_link") 2>conftest.er1
10652 ac_status=$?
10653 grep -v '^ *+' conftest.er1 >conftest.err
10654 rm -f conftest.er1
10655 cat conftest.err >&5
10656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); } && {
10658 test -z "$ac_c_werror_flag" ||
10659 test ! -s conftest.err
10660 } && test -s conftest$ac_exeext && {
10661 test "$cross_compiling" = yes ||
10662 $as_test_x conftest$ac_exeext
10663 }; then
10664 ac_cv_lib_dl_dlopen=yes
10665 else
10666 $as_echo "$as_me: failed program was:" >&5
10667 sed 's/^/| /' conftest.$ac_ext >&5
10668
10669 ac_cv_lib_dl_dlopen=no
10670 fi
10671
10672 rm -rf conftest.dSYM
10673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10674 conftest$ac_exeext conftest.$ac_ext
10675 LIBS=$ac_check_lib_save_LIBS
10676 fi
10677 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10678 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10679 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10680 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10681 else
10682 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10683 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10684 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10685 $as_echo_n "(cached) " >&6
10686 else
10687 ac_check_lib_save_LIBS=$LIBS
10688 LIBS="-lsvld $LIBS"
10689 cat >conftest.$ac_ext <<_ACEOF
10690 /* confdefs.h. */
10691 _ACEOF
10692 cat confdefs.h >>conftest.$ac_ext
10693 cat >>conftest.$ac_ext <<_ACEOF
10694 /* end confdefs.h. */
10695
10696 /* Override any GCC internal prototype to avoid an error.
10697 Use char because int might match the return type of a GCC
10698 builtin and then its argument prototype would still apply. */
10699 #ifdef __cplusplus
10700 extern "C"
10701 #endif
10702 char dlopen ();
10703 int
10704 main ()
10705 {
10706 return dlopen ();
10707 ;
10708 return 0;
10709 }
10710 _ACEOF
10711 rm -f conftest.$ac_objext conftest$ac_exeext
10712 if { (ac_try="$ac_link"
10713 case "(($ac_try" in
10714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10715 *) ac_try_echo=$ac_try;;
10716 esac
10717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10718 $as_echo "$ac_try_echo") >&5
10719 (eval "$ac_link") 2>conftest.er1
10720 ac_status=$?
10721 grep -v '^ *+' conftest.er1 >conftest.err
10722 rm -f conftest.er1
10723 cat conftest.err >&5
10724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); } && {
10726 test -z "$ac_c_werror_flag" ||
10727 test ! -s conftest.err
10728 } && test -s conftest$ac_exeext && {
10729 test "$cross_compiling" = yes ||
10730 $as_test_x conftest$ac_exeext
10731 }; then
10732 ac_cv_lib_svld_dlopen=yes
10733 else
10734 $as_echo "$as_me: failed program was:" >&5
10735 sed 's/^/| /' conftest.$ac_ext >&5
10736
10737 ac_cv_lib_svld_dlopen=no
10738 fi
10739
10740 rm -rf conftest.dSYM
10741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10742 conftest$ac_exeext conftest.$ac_ext
10743 LIBS=$ac_check_lib_save_LIBS
10744 fi
10745 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10746 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10747 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10748 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10749 else
10750 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10751 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10752 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10753 $as_echo_n "(cached) " >&6
10754 else
10755 ac_check_lib_save_LIBS=$LIBS
10756 LIBS="-ldld $LIBS"
10757 cat >conftest.$ac_ext <<_ACEOF
10758 /* confdefs.h. */
10759 _ACEOF
10760 cat confdefs.h >>conftest.$ac_ext
10761 cat >>conftest.$ac_ext <<_ACEOF
10762 /* end confdefs.h. */
10763
10764 /* Override any GCC internal prototype to avoid an error.
10765 Use char because int might match the return type of a GCC
10766 builtin and then its argument prototype would still apply. */
10767 #ifdef __cplusplus
10768 extern "C"
10769 #endif
10770 char dld_link ();
10771 int
10772 main ()
10773 {
10774 return dld_link ();
10775 ;
10776 return 0;
10777 }
10778 _ACEOF
10779 rm -f conftest.$ac_objext conftest$ac_exeext
10780 if { (ac_try="$ac_link"
10781 case "(($ac_try" in
10782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10783 *) ac_try_echo=$ac_try;;
10784 esac
10785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10786 $as_echo "$ac_try_echo") >&5
10787 (eval "$ac_link") 2>conftest.er1
10788 ac_status=$?
10789 grep -v '^ *+' conftest.er1 >conftest.err
10790 rm -f conftest.er1
10791 cat conftest.err >&5
10792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); } && {
10794 test -z "$ac_c_werror_flag" ||
10795 test ! -s conftest.err
10796 } && test -s conftest$ac_exeext && {
10797 test "$cross_compiling" = yes ||
10798 $as_test_x conftest$ac_exeext
10799 }; then
10800 ac_cv_lib_dld_dld_link=yes
10801 else
10802 $as_echo "$as_me: failed program was:" >&5
10803 sed 's/^/| /' conftest.$ac_ext >&5
10804
10805 ac_cv_lib_dld_dld_link=no
10806 fi
10807
10808 rm -rf conftest.dSYM
10809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10810 conftest$ac_exeext conftest.$ac_ext
10811 LIBS=$ac_check_lib_save_LIBS
10812 fi
10813 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10814 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10815 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10816 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10817 fi
10818
10819
10820 fi
10821
10822
10823 fi
10824
10825
10826 fi
10827
10828
10829 fi
10830
10831
10832 fi
10833
10834 ;;
10835 esac
10836
10837 if test "x$lt_cv_dlopen" != xno; then
10838 enable_dlopen=yes
10839 else
10840 enable_dlopen=no
10841 fi
10842
10843 case $lt_cv_dlopen in
10844 dlopen)
10845 save_CPPFLAGS="$CPPFLAGS"
10846 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10847
10848 save_LDFLAGS="$LDFLAGS"
10849 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10850
10851 save_LIBS="$LIBS"
10852 LIBS="$lt_cv_dlopen_libs $LIBS"
10853
10854 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10855 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10856 if test "${lt_cv_dlopen_self+set}" = set; then
10857 $as_echo_n "(cached) " >&6
10858 else
10859 if test "$cross_compiling" = yes; then :
10860 lt_cv_dlopen_self=cross
10861 else
10862 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10863 lt_status=$lt_dlunknown
10864 cat > conftest.$ac_ext <<_LT_EOF
10865 #line 10865 "configure"
10866 #include "confdefs.h"
10867
10868 #if HAVE_DLFCN_H
10869 #include <dlfcn.h>
10870 #endif
10871
10872 #include <stdio.h>
10873
10874 #ifdef RTLD_GLOBAL
10875 # define LT_DLGLOBAL RTLD_GLOBAL
10876 #else
10877 # ifdef DL_GLOBAL
10878 # define LT_DLGLOBAL DL_GLOBAL
10879 # else
10880 # define LT_DLGLOBAL 0
10881 # endif
10882 #endif
10883
10884 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10885 find out it does not work in some platform. */
10886 #ifndef LT_DLLAZY_OR_NOW
10887 # ifdef RTLD_LAZY
10888 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10889 # else
10890 # ifdef DL_LAZY
10891 # define LT_DLLAZY_OR_NOW DL_LAZY
10892 # else
10893 # ifdef RTLD_NOW
10894 # define LT_DLLAZY_OR_NOW RTLD_NOW
10895 # else
10896 # ifdef DL_NOW
10897 # define LT_DLLAZY_OR_NOW DL_NOW
10898 # else
10899 # define LT_DLLAZY_OR_NOW 0
10900 # endif
10901 # endif
10902 # endif
10903 # endif
10904 #endif
10905
10906 void fnord() { int i=42;}
10907 int main ()
10908 {
10909 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10910 int status = $lt_dlunknown;
10911
10912 if (self)
10913 {
10914 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10915 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10916 /* dlclose (self); */
10917 }
10918 else
10919 puts (dlerror ());
10920
10921 return status;
10922 }
10923 _LT_EOF
10924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10925 (eval $ac_link) 2>&5
10926 ac_status=$?
10927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10929 (./conftest; exit; ) >&5 2>/dev/null
10930 lt_status=$?
10931 case x$lt_status in
10932 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10933 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10934 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10935 esac
10936 else :
10937 # compilation failed
10938 lt_cv_dlopen_self=no
10939 fi
10940 fi
10941 rm -fr conftest*
10942
10943
10944 fi
10945 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10946 $as_echo "$lt_cv_dlopen_self" >&6; }
10947
10948 if test "x$lt_cv_dlopen_self" = xyes; then
10949 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10950 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10951 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10952 if test "${lt_cv_dlopen_self_static+set}" = set; then
10953 $as_echo_n "(cached) " >&6
10954 else
10955 if test "$cross_compiling" = yes; then :
10956 lt_cv_dlopen_self_static=cross
10957 else
10958 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10959 lt_status=$lt_dlunknown
10960 cat > conftest.$ac_ext <<_LT_EOF
10961 #line 10961 "configure"
10962 #include "confdefs.h"
10963
10964 #if HAVE_DLFCN_H
10965 #include <dlfcn.h>
10966 #endif
10967
10968 #include <stdio.h>
10969
10970 #ifdef RTLD_GLOBAL
10971 # define LT_DLGLOBAL RTLD_GLOBAL
10972 #else
10973 # ifdef DL_GLOBAL
10974 # define LT_DLGLOBAL DL_GLOBAL
10975 # else
10976 # define LT_DLGLOBAL 0
10977 # endif
10978 #endif
10979
10980 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10981 find out it does not work in some platform. */
10982 #ifndef LT_DLLAZY_OR_NOW
10983 # ifdef RTLD_LAZY
10984 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10985 # else
10986 # ifdef DL_LAZY
10987 # define LT_DLLAZY_OR_NOW DL_LAZY
10988 # else
10989 # ifdef RTLD_NOW
10990 # define LT_DLLAZY_OR_NOW RTLD_NOW
10991 # else
10992 # ifdef DL_NOW
10993 # define LT_DLLAZY_OR_NOW DL_NOW
10994 # else
10995 # define LT_DLLAZY_OR_NOW 0
10996 # endif
10997 # endif
10998 # endif
10999 # endif
11000 #endif
11001
11002 void fnord() { int i=42;}
11003 int main ()
11004 {
11005 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11006 int status = $lt_dlunknown;
11007
11008 if (self)
11009 {
11010 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11011 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11012 /* dlclose (self); */
11013 }
11014 else
11015 puts (dlerror ());
11016
11017 return status;
11018 }
11019 _LT_EOF
11020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11021 (eval $ac_link) 2>&5
11022 ac_status=$?
11023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11025 (./conftest; exit; ) >&5 2>/dev/null
11026 lt_status=$?
11027 case x$lt_status in
11028 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11029 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11030 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11031 esac
11032 else :
11033 # compilation failed
11034 lt_cv_dlopen_self_static=no
11035 fi
11036 fi
11037 rm -fr conftest*
11038
11039
11040 fi
11041 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11042 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11043 fi
11044
11045 CPPFLAGS="$save_CPPFLAGS"
11046 LDFLAGS="$save_LDFLAGS"
11047 LIBS="$save_LIBS"
11048 ;;
11049 esac
11050
11051 case $lt_cv_dlopen_self in
11052 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11053 *) enable_dlopen_self=unknown ;;
11054 esac
11055
11056 case $lt_cv_dlopen_self_static in
11057 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11058 *) enable_dlopen_self_static=unknown ;;
11059 esac
11060 fi
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078 striplib=
11079 old_striplib=
11080 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11081 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11082 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11083 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11084 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11085 { $as_echo "$as_me:$LINENO: result: yes" >&5
11086 $as_echo "yes" >&6; }
11087 else
11088 # FIXME - insert some real tests, host_os isn't really good enough
11089 case $host_os in
11090 darwin*)
11091 if test -n "$STRIP" ; then
11092 striplib="$STRIP -x"
11093 old_striplib="$STRIP -S"
11094 { $as_echo "$as_me:$LINENO: result: yes" >&5
11095 $as_echo "yes" >&6; }
11096 else
11097 { $as_echo "$as_me:$LINENO: result: no" >&5
11098 $as_echo "no" >&6; }
11099 fi
11100 ;;
11101 *)
11102 { $as_echo "$as_me:$LINENO: result: no" >&5
11103 $as_echo "no" >&6; }
11104 ;;
11105 esac
11106 fi
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119 # Report which library types will actually be built
11120 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11121 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11122 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11123 $as_echo "$can_build_shared" >&6; }
11124
11125 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11126 $as_echo_n "checking whether to build shared libraries... " >&6; }
11127 test "$can_build_shared" = "no" && enable_shared=no
11128
11129 # On AIX, shared libraries and static libraries use the same namespace, and
11130 # are all built from PIC.
11131 case $host_os in
11132 aix3*)
11133 test "$enable_shared" = yes && enable_static=no
11134 if test -n "$RANLIB"; then
11135 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11136 postinstall_cmds='$RANLIB $lib'
11137 fi
11138 ;;
11139
11140 aix[4-9]*)
11141 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11142 test "$enable_shared" = yes && enable_static=no
11143 fi
11144 ;;
11145 esac
11146 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11147 $as_echo "$enable_shared" >&6; }
11148
11149 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11150 $as_echo_n "checking whether to build static libraries... " >&6; }
11151 # Make sure either enable_shared or enable_static is yes.
11152 test "$enable_shared" = yes || enable_static=yes
11153 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11154 $as_echo "$enable_static" >&6; }
11155
11156
11157
11158
11159 fi
11160 ac_ext=c
11161 ac_cpp='$CPP $CPPFLAGS'
11162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11165
11166 CC="$lt_save_CC"
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180 ac_config_commands="$ac_config_commands libtool"
11181
11182
11183
11184
11185 # Only expand once:
11186
11187
11188
11189 if test "$GCC" = "yes"
11190 then
11191 CFLAGS="$CFLAGS -Wall"
11192 fi
11193
11194
11195
11196
11197 for ac_header in unistd.h
11198 do
11199 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11201 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11202 $as_echo_n "checking for $ac_header... " >&6; }
11203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11204 $as_echo_n "(cached) " >&6
11205 fi
11206 ac_res=`eval 'as_val=${'$as_ac_Header'}
11207 $as_echo "$as_val"'`
11208 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11209 $as_echo "$ac_res" >&6; }
11210 else
11211 # Is the header compilable?
11212 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11213 $as_echo_n "checking $ac_header usability... " >&6; }
11214 cat >conftest.$ac_ext <<_ACEOF
11215 /* confdefs.h. */
11216 _ACEOF
11217 cat confdefs.h >>conftest.$ac_ext
11218 cat >>conftest.$ac_ext <<_ACEOF
11219 /* end confdefs.h. */
11220 $ac_includes_default
11221 #include <$ac_header>
11222 _ACEOF
11223 rm -f conftest.$ac_objext
11224 if { (ac_try="$ac_compile"
11225 case "(($ac_try" in
11226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11227 *) ac_try_echo=$ac_try;;
11228 esac
11229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11230 $as_echo "$ac_try_echo") >&5
11231 (eval "$ac_compile") 2>conftest.er1
11232 ac_status=$?
11233 grep -v '^ *+' conftest.er1 >conftest.err
11234 rm -f conftest.er1
11235 cat conftest.err >&5
11236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); } && {
11238 test -z "$ac_c_werror_flag" ||
11239 test ! -s conftest.err
11240 } && test -s conftest.$ac_objext; then
11241 ac_header_compiler=yes
11242 else
11243 $as_echo "$as_me: failed program was:" >&5
11244 sed 's/^/| /' conftest.$ac_ext >&5
11245
11246 ac_header_compiler=no
11247 fi
11248
11249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11250 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11251 $as_echo "$ac_header_compiler" >&6; }
11252
11253 # Is the header present?
11254 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11255 $as_echo_n "checking $ac_header presence... " >&6; }
11256 cat >conftest.$ac_ext <<_ACEOF
11257 /* confdefs.h. */
11258 _ACEOF
11259 cat confdefs.h >>conftest.$ac_ext
11260 cat >>conftest.$ac_ext <<_ACEOF
11261 /* end confdefs.h. */
11262 #include <$ac_header>
11263 _ACEOF
11264 if { (ac_try="$ac_cpp conftest.$ac_ext"
11265 case "(($ac_try" in
11266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11267 *) ac_try_echo=$ac_try;;
11268 esac
11269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11270 $as_echo "$ac_try_echo") >&5
11271 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11272 ac_status=$?
11273 grep -v '^ *+' conftest.er1 >conftest.err
11274 rm -f conftest.er1
11275 cat conftest.err >&5
11276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); } >/dev/null && {
11278 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11279 test ! -s conftest.err
11280 }; then
11281 ac_header_preproc=yes
11282 else
11283 $as_echo "$as_me: failed program was:" >&5
11284 sed 's/^/| /' conftest.$ac_ext >&5
11285
11286 ac_header_preproc=no
11287 fi
11288
11289 rm -f conftest.err conftest.$ac_ext
11290 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11291 $as_echo "$ac_header_preproc" >&6; }
11292
11293 # So? What about this header?
11294 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11295 yes:no: )
11296 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11297 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11299 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11300 ac_header_preproc=yes
11301 ;;
11302 no:yes:* )
11303 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11304 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11305 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11306 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11307 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11308 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11309 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11310 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11311 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11312 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11313 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11314 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11315 ( cat <<\_ASBOX
11316 ## -------------------------------------------------- ##
11317 ## Report this to courier-users@lists.sourceforge.net ##
11318 ## -------------------------------------------------- ##
11319 _ASBOX
11320 ) | sed "s/^/$as_me: WARNING: /" >&2
11321 ;;
11322 esac
11323 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11324 $as_echo_n "checking for $ac_header... " >&6; }
11325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11326 $as_echo_n "(cached) " >&6
11327 else
11328 eval "$as_ac_Header=\$ac_header_preproc"
11329 fi
11330 ac_res=`eval 'as_val=${'$as_ac_Header'}
11331 $as_echo "$as_val"'`
11332 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11333 $as_echo "$ac_res" >&6; }
11334
11335 fi
11336 as_val=`eval 'as_val=${'$as_ac_Header'}
11337 $as_echo "$as_val"'`
11338 if test "x$as_val" = x""yes; then
11339 cat >>confdefs.h <<_ACEOF
11340 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11341 _ACEOF
11342
11343 fi
11344
11345 done
11346
11347
11348 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11349 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11350 if test "${ac_cv_type_uid_t+set}" = set; then
11351 $as_echo_n "(cached) " >&6
11352 else
11353 cat >conftest.$ac_ext <<_ACEOF
11354 /* confdefs.h. */
11355 _ACEOF
11356 cat confdefs.h >>conftest.$ac_ext
11357 cat >>conftest.$ac_ext <<_ACEOF
11358 /* end confdefs.h. */
11359 #include <sys/types.h>
11360
11361 _ACEOF
11362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11363 $EGREP "uid_t" >/dev/null 2>&1; then
11364 ac_cv_type_uid_t=yes
11365 else
11366 ac_cv_type_uid_t=no
11367 fi
11368 rm -f conftest*
11369
11370 fi
11371 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11372 $as_echo "$ac_cv_type_uid_t" >&6; }
11373 if test $ac_cv_type_uid_t = no; then
11374
11375 cat >>confdefs.h <<\_ACEOF
11376 #define uid_t int
11377 _ACEOF
11378
11379
11380 cat >>confdefs.h <<\_ACEOF
11381 #define gid_t int
11382 _ACEOF
11383
11384 fi
11385
11386 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
11387 $as_echo_n "checking for pid_t... " >&6; }
11388 if test "${ac_cv_type_pid_t+set}" = set; then
11389 $as_echo_n "(cached) " >&6
11390 else
11391 ac_cv_type_pid_t=no
11392 cat >conftest.$ac_ext <<_ACEOF
11393 /* confdefs.h. */
11394 _ACEOF
11395 cat confdefs.h >>conftest.$ac_ext
11396 cat >>conftest.$ac_ext <<_ACEOF
11397 /* end confdefs.h. */
11398 $ac_includes_default
11399 int
11400 main ()
11401 {
11402 if (sizeof (pid_t))
11403 return 0;
11404 ;
11405 return 0;
11406 }
11407 _ACEOF
11408 rm -f conftest.$ac_objext
11409 if { (ac_try="$ac_compile"
11410 case "(($ac_try" in
11411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11412 *) ac_try_echo=$ac_try;;
11413 esac
11414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11415 $as_echo "$ac_try_echo") >&5
11416 (eval "$ac_compile") 2>conftest.er1
11417 ac_status=$?
11418 grep -v '^ *+' conftest.er1 >conftest.err
11419 rm -f conftest.er1
11420 cat conftest.err >&5
11421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); } && {
11423 test -z "$ac_c_werror_flag" ||
11424 test ! -s conftest.err
11425 } && test -s conftest.$ac_objext; then
11426 cat >conftest.$ac_ext <<_ACEOF
11427 /* confdefs.h. */
11428 _ACEOF
11429 cat confdefs.h >>conftest.$ac_ext
11430 cat >>conftest.$ac_ext <<_ACEOF
11431 /* end confdefs.h. */
11432 $ac_includes_default
11433 int
11434 main ()
11435 {
11436 if (sizeof ((pid_t)))
11437 return 0;
11438 ;
11439 return 0;
11440 }
11441 _ACEOF
11442 rm -f conftest.$ac_objext
11443 if { (ac_try="$ac_compile"
11444 case "(($ac_try" in
11445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11446 *) ac_try_echo=$ac_try;;
11447 esac
11448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11449 $as_echo "$ac_try_echo") >&5
11450 (eval "$ac_compile") 2>conftest.er1
11451 ac_status=$?
11452 grep -v '^ *+' conftest.er1 >conftest.err
11453 rm -f conftest.er1
11454 cat conftest.err >&5
11455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); } && {
11457 test -z "$ac_c_werror_flag" ||
11458 test ! -s conftest.err
11459 } && test -s conftest.$ac_objext; then
11460 :
11461 else
11462 $as_echo "$as_me: failed program was:" >&5
11463 sed 's/^/| /' conftest.$ac_ext >&5
11464
11465 ac_cv_type_pid_t=yes
11466 fi
11467
11468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11469 else
11470 $as_echo "$as_me: failed program was:" >&5
11471 sed 's/^/| /' conftest.$ac_ext >&5
11472
11473
11474 fi
11475
11476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11477 fi
11478 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11479 $as_echo "$ac_cv_type_pid_t" >&6; }
11480 if test "x$ac_cv_type_pid_t" = x""yes; then
11481 :
11482 else
11483
11484 cat >>confdefs.h <<_ACEOF
11485 #define pid_t int
11486 _ACEOF
11487
11488 fi
11489
11490
11491
11492
11493
11494 for ac_func in setgroups initgroups
11495 do
11496 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11497 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11498 $as_echo_n "checking for $ac_func... " >&6; }
11499 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11500 $as_echo_n "(cached) " >&6
11501 else
11502 cat >conftest.$ac_ext <<_ACEOF
11503 /* confdefs.h. */
11504 _ACEOF
11505 cat confdefs.h >>conftest.$ac_ext
11506 cat >>conftest.$ac_ext <<_ACEOF
11507 /* end confdefs.h. */
11508 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11510 #define $ac_func innocuous_$ac_func
11511
11512 /* System header to define __stub macros and hopefully few prototypes,
11513 which can conflict with char $ac_func (); below.
11514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11515 <limits.h> exists even on freestanding compilers. */
11516
11517 #ifdef __STDC__
11518 # include <limits.h>
11519 #else
11520 # include <assert.h>
11521 #endif
11522
11523 #undef $ac_func
11524
11525 /* Override any GCC internal prototype to avoid an error.
11526 Use char because int might match the return type of a GCC
11527 builtin and then its argument prototype would still apply. */
11528 #ifdef __cplusplus
11529 extern "C"
11530 #endif
11531 char $ac_func ();
11532 /* The GNU C library defines this for functions which it implements
11533 to always fail with ENOSYS. Some functions are actually named
11534 something starting with __ and the normal name is an alias. */
11535 #if defined __stub_$ac_func || defined __stub___$ac_func
11536 choke me
11537 #endif
11538
11539 int
11540 main ()
11541 {
11542 return $ac_func ();
11543 ;
11544 return 0;
11545 }
11546 _ACEOF
11547 rm -f conftest.$ac_objext conftest$ac_exeext
11548 if { (ac_try="$ac_link"
11549 case "(($ac_try" in
11550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11551 *) ac_try_echo=$ac_try;;
11552 esac
11553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11554 $as_echo "$ac_try_echo") >&5
11555 (eval "$ac_link") 2>conftest.er1
11556 ac_status=$?
11557 grep -v '^ *+' conftest.er1 >conftest.err
11558 rm -f conftest.er1
11559 cat conftest.err >&5
11560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); } && {
11562 test -z "$ac_c_werror_flag" ||
11563 test ! -s conftest.err
11564 } && test -s conftest$ac_exeext && {
11565 test "$cross_compiling" = yes ||
11566 $as_test_x conftest$ac_exeext
11567 }; then
11568 eval "$as_ac_var=yes"
11569 else
11570 $as_echo "$as_me: failed program was:" >&5
11571 sed 's/^/| /' conftest.$ac_ext >&5
11572
11573 eval "$as_ac_var=no"
11574 fi
11575
11576 rm -rf conftest.dSYM
11577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11578 conftest$ac_exeext conftest.$ac_ext
11579 fi
11580 ac_res=`eval 'as_val=${'$as_ac_var'}
11581 $as_echo "$as_val"'`
11582 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11583 $as_echo "$ac_res" >&6; }
11584 as_val=`eval 'as_val=${'$as_ac_var'}
11585 $as_echo "$as_val"'`
11586 if test "x$as_val" = x""yes; then
11587 cat >>confdefs.h <<_ACEOF
11588 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11589 _ACEOF
11590
11591 fi
11592 done
11593
11594 ac_config_files="$ac_config_files Makefile"
11595
11596 cat >confcache <<\_ACEOF
11597 # This file is a shell script that caches the results of configure
11598 # tests run on this system so they can be shared between configure
11599 # scripts and configure runs, see configure's option --config-cache.
11600 # It is not useful on other systems. If it contains results you don't
11601 # want to keep, you may remove or edit it.
11602 #
11603 # config.status only pays attention to the cache file if you give it
11604 # the --recheck option to rerun configure.
11605 #
11606 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11607 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11608 # following values.
11609
11610 _ACEOF
11611
11612 # The following way of writing the cache mishandles newlines in values,
11613 # but we know of no workaround that is simple, portable, and efficient.
11614 # So, we kill variables containing newlines.
11615 # Ultrix sh set writes to stderr and can't be redirected directly,
11616 # and sets the high bit in the cache file unless we assign to the vars.
11617 (
11618 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11619 eval ac_val=\$$ac_var
11620 case $ac_val in #(
11621 *${as_nl}*)
11622 case $ac_var in #(
11623 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
11624 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11625 esac
11626 case $ac_var in #(
11627 _ | IFS | as_nl) ;; #(
11628 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11629 *) $as_unset $ac_var ;;
11630 esac ;;
11631 esac
11632 done
11633
11634 (set) 2>&1 |
11635 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11636 *${as_nl}ac_space=\ *)
11637 # `set' does not quote correctly, so add quotes (double-quote
11638 # substitution turns \\\\ into \\, and sed turns \\ into \).
11639 sed -n \
11640 "s/'/'\\\\''/g;
11641 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11642 ;; #(
11643 *)
11644 # `set' quotes correctly as required by POSIX, so do not add quotes.
11645 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11646 ;;
11647 esac |
11648 sort
11649 ) |
11650 sed '
11651 /^ac_cv_env_/b end
11652 t clear
11653 :clear
11654 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11655 t end
11656 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11657 :end' >>confcache
11658 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11659 if test -w "$cache_file"; then
11660 test "x$cache_file" != "x/dev/null" &&
11661 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
11662 $as_echo "$as_me: updating cache $cache_file" >&6;}
11663 cat confcache >$cache_file
11664 else
11665 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11666 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11667 fi
11668 fi
11669 rm -f confcache
11670
11671 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11672 # Let make expand exec_prefix.
11673 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11674
11675 DEFS=-DHAVE_CONFIG_H
11676
11677 ac_libobjs=
11678 ac_ltlibobjs=
11679 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11680 # 1. Remove the extension, and $U if already installed.
11681 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11682 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11683 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11684 # will be set to the directory where LIBOBJS objects are built.
11685 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11686 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11687 done
11688 LIBOBJS=$ac_libobjs
11689
11690 LTLIBOBJS=$ac_ltlibobjs
11691
11692
11693 if test -n "$EXEEXT"; then
11694 am__EXEEXT_TRUE=
11695 am__EXEEXT_FALSE='#'
11696 else
11697 am__EXEEXT_TRUE='#'
11698 am__EXEEXT_FALSE=
11699 fi
11700
11701 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11702 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11703 Usually this means the macro was only invoked conditionally." >&5
11704 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
11705 Usually this means the macro was only invoked conditionally." >&2;}
11706 { (exit 1); exit 1; }; }
11707 fi
11708 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11709 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11710 Usually this means the macro was only invoked conditionally." >&5
11711 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11712 Usually this means the macro was only invoked conditionally." >&2;}
11713 { (exit 1); exit 1; }; }
11714 fi
11715
11716 : ${CONFIG_STATUS=./config.status}
11717 ac_write_fail=0
11718 ac_clean_files_save=$ac_clean_files
11719 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11720 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11721 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11722 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11723 #! $SHELL
11724 # Generated by $as_me.
11725 # Run this file to recreate the current configuration.
11726 # Compiler output produced by configure, useful for debugging
11727 # configure, is in config.log if it exists.
11728
11729 debug=false
11730 ac_cs_recheck=false
11731 ac_cs_silent=false
11732 SHELL=\${CONFIG_SHELL-$SHELL}
11733 _ACEOF
11734
11735 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11736 ## --------------------- ##
11737 ## M4sh Initialization. ##
11738 ## --------------------- ##
11739
11740 # Be more Bourne compatible
11741 DUALCASE=1; export DUALCASE # for MKS sh
11742 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11743 emulate sh
11744 NULLCMD=:
11745 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11746 # is contrary to our usage. Disable this feature.
11747 alias -g '${1+"$@"}'='"$@"'
11748 setopt NO_GLOB_SUBST
11749 else
11750 case `(set -o) 2>/dev/null` in
11751 *posix*) set -o posix ;;
11752 esac
11753
11754 fi
11755
11756
11757
11758
11759 # PATH needs CR
11760 # Avoid depending upon Character Ranges.
11761 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11762 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11763 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11764 as_cr_digits='0123456789'
11765 as_cr_alnum=$as_cr_Letters$as_cr_digits
11766
11767 as_nl='
11768 '
11769 export as_nl
11770 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11771 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11772 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11773 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11774 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11775 as_echo='printf %s\n'
11776 as_echo_n='printf %s'
11777 else
11778 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11779 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11780 as_echo_n='/usr/ucb/echo -n'
11781 else
11782 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11783 as_echo_n_body='eval
11784 arg=$1;
11785 case $arg in
11786 *"$as_nl"*)
11787 expr "X$arg" : "X\\(.*\\)$as_nl";
11788 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11789 esac;
11790 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11791 '
11792 export as_echo_n_body
11793 as_echo_n='sh -c $as_echo_n_body as_echo'
11794 fi
11795 export as_echo_body
11796 as_echo='sh -c $as_echo_body as_echo'
11797 fi
11798
11799 # The user is always right.
11800 if test "${PATH_SEPARATOR+set}" != set; then
11801 PATH_SEPARATOR=:
11802 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11803 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11804 PATH_SEPARATOR=';'
11805 }
11806 fi
11807
11808 # Support unset when possible.
11809 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11810 as_unset=unset
11811 else
11812 as_unset=false
11813 fi
11814
11815
11816 # IFS
11817 # We need space, tab and new line, in precisely that order. Quoting is
11818 # there to prevent editors from complaining about space-tab.
11819 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11820 # splitting by setting IFS to empty value.)
11821 IFS=" "" $as_nl"
11822
11823 # Find who we are. Look in the path if we contain no directory separator.
11824 case $0 in
11825 *[\\/]* ) as_myself=$0 ;;
11826 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11827 for as_dir in $PATH
11828 do
11829 IFS=$as_save_IFS
11830 test -z "$as_dir" && as_dir=.
11831 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11832 done
11833 IFS=$as_save_IFS
11834
11835 ;;
11836 esac
11837 # We did not find ourselves, most probably we were run as `sh COMMAND'
11838 # in which case we are not to be found in the path.
11839 if test "x$as_myself" = x; then
11840 as_myself=$0
11841 fi
11842 if test ! -f "$as_myself"; then
11843 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11844 { (exit 1); exit 1; }
11845 fi
11846
11847 # Work around bugs in pre-3.0 UWIN ksh.
11848 for as_var in ENV MAIL MAILPATH
11849 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11850 done
11851 PS1='$ '
11852 PS2='> '
11853 PS4='+ '
11854
11855 # NLS nuisances.
11856 LC_ALL=C
11857 export LC_ALL
11858 LANGUAGE=C
11859 export LANGUAGE
11860
11861 # Required to use basename.
11862 if expr a : '\(a\)' >/dev/null 2>&1 &&
11863 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11864 as_expr=expr
11865 else
11866 as_expr=false
11867 fi
11868
11869 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11870 as_basename=basename
11871 else
11872 as_basename=false
11873 fi
11874
11875
11876 # Name of the executable.
11877 as_me=`$as_basename -- "$0" ||
11878 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11879 X"$0" : 'X\(//\)$' \| \
11880 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11881 $as_echo X/"$0" |
11882 sed '/^.*\/\([^/][^/]*\)\/*$/{
11883 s//\1/
11884 q
11885 }
11886 /^X\/\(\/\/\)$/{
11887 s//\1/
11888 q
11889 }
11890 /^X\/\(\/\).*/{
11891 s//\1/
11892 q
11893 }
11894 s/.*/./; q'`
11895
11896 # CDPATH.
11897 $as_unset CDPATH
11898
11899
11900
11901 as_lineno_1=$LINENO
11902 as_lineno_2=$LINENO
11903 test "x$as_lineno_1" != "x$as_lineno_2" &&
11904 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11905
11906 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11907 # uniformly replaced by the line number. The first 'sed' inserts a
11908 # line-number line after each line using $LINENO; the second 'sed'
11909 # does the real work. The second script uses 'N' to pair each
11910 # line-number line with the line containing $LINENO, and appends
11911 # trailing '-' during substitution so that $LINENO is not a special
11912 # case at line end.
11913 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11914 # scripts with optimization help from Paolo Bonzini. Blame Lee
11915 # E. McMahon (1931-1989) for sed's syntax. :-)
11916 sed -n '
11917 p
11918 /[$]LINENO/=
11919 ' <$as_myself |
11920 sed '
11921 s/[$]LINENO.*/&-/
11922 t lineno
11923 b
11924 :lineno
11925 N
11926 :loop
11927 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11928 t loop
11929 s/-\n.*//
11930 ' >$as_me.lineno &&
11931 chmod +x "$as_me.lineno" ||
11932 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11933 { (exit 1); exit 1; }; }
11934
11935 # Don't try to exec as it changes $[0], causing all sort of problems
11936 # (the dirname of $[0] is not the place where we might find the
11937 # original and so on. Autoconf is especially sensitive to this).
11938 . "./$as_me.lineno"
11939 # Exit status is that of the last command.
11940 exit
11941 }
11942
11943
11944 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11945 as_dirname=dirname
11946 else
11947 as_dirname=false
11948 fi
11949
11950 ECHO_C= ECHO_N= ECHO_T=
11951 case `echo -n x` in
11952 -n*)
11953 case `echo 'x\c'` in
11954 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11955 *) ECHO_C='\c';;
11956 esac;;
11957 *)
11958 ECHO_N='-n';;
11959 esac
11960 if expr a : '\(a\)' >/dev/null 2>&1 &&
11961 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11962 as_expr=expr
11963 else
11964 as_expr=false
11965 fi
11966
11967 rm -f conf$$ conf$$.exe conf$$.file
11968 if test -d conf$$.dir; then
11969 rm -f conf$$.dir/conf$$.file
11970 else
11971 rm -f conf$$.dir
11972 mkdir conf$$.dir 2>/dev/null
11973 fi
11974 if (echo >conf$$.file) 2>/dev/null; then
11975 if ln -s conf$$.file conf$$ 2>/dev/null; then
11976 as_ln_s='ln -s'
11977 # ... but there are two gotchas:
11978 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11979 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11980 # In both cases, we have to default to `cp -p'.
11981 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11982 as_ln_s='cp -p'
11983 elif ln conf$$.file conf$$ 2>/dev/null; then
11984 as_ln_s=ln
11985 else
11986 as_ln_s='cp -p'
11987 fi
11988 else
11989 as_ln_s='cp -p'
11990 fi
11991 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11992 rmdir conf$$.dir 2>/dev/null
11993
11994 if mkdir -p . 2>/dev/null; then
11995 as_mkdir_p=:
11996 else
11997 test -d ./-p && rmdir ./-p
11998 as_mkdir_p=false
11999 fi
12000
12001 if test -x / >/dev/null 2>&1; then
12002 as_test_x='test -x'
12003 else
12004 if ls -dL / >/dev/null 2>&1; then
12005 as_ls_L_option=L
12006 else
12007 as_ls_L_option=
12008 fi
12009 as_test_x='
12010 eval sh -c '\''
12011 if test -d "$1"; then
12012 test -d "$1/.";
12013 else
12014 case $1 in
12015 -*)set "./$1";;
12016 esac;
12017 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12018 ???[sx]*):;;*)false;;esac;fi
12019 '\'' sh
12020 '
12021 fi
12022 as_executable_p=$as_test_x
12023
12024 # Sed expression to map a string onto a valid CPP name.
12025 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12026
12027 # Sed expression to map a string onto a valid variable name.
12028 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12029
12030
12031 exec 6>&1
12032
12033 # Save the log message, to keep $[0] and so on meaningful, and to
12034 # report actual input values of CONFIG_FILES etc. instead of their
12035 # values after options handling.
12036 ac_log="
12037 This file was extended by numlib $as_me 0.10, which was
12038 generated by GNU Autoconf 2.63. Invocation command line was
12039
12040 CONFIG_FILES = $CONFIG_FILES
12041 CONFIG_HEADERS = $CONFIG_HEADERS
12042 CONFIG_LINKS = $CONFIG_LINKS
12043 CONFIG_COMMANDS = $CONFIG_COMMANDS
12044 $ $0 $@
12045
12046 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12047 "
12048
12049 _ACEOF
12050
12051 case $ac_config_files in *"
12052 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12053 esac
12054
12055 case $ac_config_headers in *"
12056 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12057 esac
12058
12059
12060 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12061 # Files that config.status was made for.
12062 config_files="$ac_config_files"
12063 config_headers="$ac_config_headers"
12064 config_commands="$ac_config_commands"
12065
12066 _ACEOF
12067
12068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12069 ac_cs_usage="\
12070 \`$as_me' instantiates files from templates according to the
12071 current configuration.
12072
12073 Usage: $0 [OPTION]... [FILE]...
12074
12075 -h, --help print this help, then exit
12076 -V, --version print version number and configuration settings, then exit
12077 -q, --quiet, --silent
12078 do not print progress messages
12079 -d, --debug don't remove temporary files
12080 --recheck update $as_me by reconfiguring in the same conditions
12081 --file=FILE[:TEMPLATE]
12082 instantiate the configuration file FILE
12083 --header=FILE[:TEMPLATE]
12084 instantiate the configuration header FILE
12085
12086 Configuration files:
12087 $config_files
12088
12089 Configuration headers:
12090 $config_headers
12091
12092 Configuration commands:
12093 $config_commands
12094
12095 Report bugs to <bug-autoconf@gnu.org>."
12096
12097 _ACEOF
12098 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12099 ac_cs_version="\\
12100 numlib config.status 0.10
12101 configured by $0, generated by GNU Autoconf 2.63,
12102 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12103
12104 Copyright (C) 2008 Free Software Foundation, Inc.
12105 This config.status script is free software; the Free Software Foundation
12106 gives unlimited permission to copy, distribute and modify it."
12107
12108 ac_pwd='$ac_pwd'
12109 srcdir='$srcdir'
12110 INSTALL='$INSTALL'
12111 MKDIR_P='$MKDIR_P'
12112 AWK='$AWK'
12113 test -n "\$AWK" || AWK=awk
12114 _ACEOF
12115
12116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12117 # The default lists apply if the user does not specify any file.
12118 ac_need_defaults=:
12119 while test $# != 0
12120 do
12121 case $1 in
12122 --*=*)
12123 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12124 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12125 ac_shift=:
12126 ;;
12127 *)
12128 ac_option=$1
12129 ac_optarg=$2
12130 ac_shift=shift
12131 ;;
12132 esac
12133
12134 case $ac_option in
12135 # Handling of the options.
12136 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12137 ac_cs_recheck=: ;;
12138 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12139 $as_echo "$ac_cs_version"; exit ;;
12140 --debug | --debu | --deb | --de | --d | -d )
12141 debug=: ;;
12142 --file | --fil | --fi | --f )
12143 $ac_shift
12144 case $ac_optarg in
12145 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12146 esac
12147 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
12148 ac_need_defaults=false;;
12149 --header | --heade | --head | --hea )
12150 $ac_shift
12151 case $ac_optarg in
12152 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12153 esac
12154 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
12155 ac_need_defaults=false;;
12156 --he | --h)
12157 # Conflict between --help and --header
12158 { $as_echo "$as_me: error: ambiguous option: $1
12159 Try \`$0 --help' for more information." >&2
12160 { (exit 1); exit 1; }; };;
12161 --help | --hel | -h )
12162 $as_echo "$ac_cs_usage"; exit ;;
12163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12164 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12165 ac_cs_silent=: ;;
12166
12167 # This is an error.
12168 -*) { $as_echo "$as_me: error: unrecognized option: $1
12169 Try \`$0 --help' for more information." >&2
12170 { (exit 1); exit 1; }; } ;;
12171
12172 *) ac_config_targets="$ac_config_targets $1"
12173 ac_need_defaults=false ;;
12174
12175 esac
12176 shift
12177 done
12178
12179 ac_configure_extra_args=
12180
12181 if $ac_cs_silent; then
12182 exec 6>/dev/null
12183 ac_configure_extra_args="$ac_configure_extra_args --silent"
12184 fi
12185
12186 _ACEOF
12187 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12188 if \$ac_cs_recheck; then
12189 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12190 shift
12191 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12192 CONFIG_SHELL='$SHELL'
12193 export CONFIG_SHELL
12194 exec "\$@"
12195 fi
12196
12197 _ACEOF
12198 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12199 exec 5>>config.log
12200 {
12201 echo
12202 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12203 ## Running $as_me. ##
12204 _ASBOX
12205 $as_echo "$ac_log"
12206 } >&5
12207
12208 _ACEOF
12209 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12210 #
12211 # INIT-COMMANDS
12212 #
12213 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12214
12215
12216 # The HP-UX ksh and POSIX shell print the target directory to stdout
12217 # if CDPATH is set.
12218 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12219
12220 sed_quote_subst='$sed_quote_subst'
12221 double_quote_subst='$double_quote_subst'
12222 delay_variable_subst='$delay_variable_subst'
12223 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12224 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12225 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12226 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12227 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12228 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12229 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12230 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12231 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12232 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12233 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12234 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12235 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12236 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12237 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12238 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12239 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12240 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12241 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12242 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12243 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12244 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12245 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12246 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12247 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12248 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12249 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12250 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12251 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12252 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12253 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12254 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12255 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12256 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12257 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12258 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12259 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12260 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12261 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12262 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12263 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12264 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12265 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12266 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12267 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"`'
12268 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"`'
12269 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12270 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12271 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12272 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12273 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12274 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12275 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12276 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12277 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12278 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12279 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12280 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12281 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12282 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12283 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12284 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12285 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12286 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12287 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12288 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12289 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12290 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12291 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12292 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12293 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12294 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12295 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12296 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12297 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12298 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12299 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12300 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12301 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12302 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12303 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12304 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12305 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12306 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12307 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12308 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12309 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12310 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12311 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12312 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12313 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12314 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12315 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12316 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12317 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12318 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12319 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12320 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12321 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12322 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12323 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12324 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12325 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12326 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12327 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12328 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12329 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12330 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12331 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12332 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12333 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12334 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12335 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12336 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12337 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12338 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12339 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12340 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12341
12342 LTCC='$LTCC'
12343 LTCFLAGS='$LTCFLAGS'
12344 compiler='$compiler_DEFAULT'
12345
12346 # Quote evaled strings.
12347 for var in SED \
12348 GREP \
12349 EGREP \
12350 FGREP \
12351 LD \
12352 NM \
12353 LN_S \
12354 lt_SP2NL \
12355 lt_NL2SP \
12356 reload_flag \
12357 OBJDUMP \
12358 deplibs_check_method \
12359 file_magic_cmd \
12360 AR \
12361 AR_FLAGS \
12362 STRIP \
12363 RANLIB \
12364 CC \
12365 CFLAGS \
12366 compiler \
12367 lt_cv_sys_global_symbol_pipe \
12368 lt_cv_sys_global_symbol_to_cdecl \
12369 lt_cv_sys_global_symbol_to_c_name_address \
12370 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12371 SHELL \
12372 ECHO \
12373 lt_prog_compiler_no_builtin_flag \
12374 lt_prog_compiler_wl \
12375 lt_prog_compiler_pic \
12376 lt_prog_compiler_static \
12377 lt_cv_prog_compiler_c_o \
12378 need_locks \
12379 DSYMUTIL \
12380 NMEDIT \
12381 LIPO \
12382 OTOOL \
12383 OTOOL64 \
12384 shrext_cmds \
12385 export_dynamic_flag_spec \
12386 whole_archive_flag_spec \
12387 compiler_needs_object \
12388 with_gnu_ld \
12389 allow_undefined_flag \
12390 no_undefined_flag \
12391 hardcode_libdir_flag_spec \
12392 hardcode_libdir_flag_spec_ld \
12393 hardcode_libdir_separator \
12394 fix_srcfile_path \
12395 exclude_expsyms \
12396 include_expsyms \
12397 file_list_spec \
12398 variables_saved_for_relink \
12399 libname_spec \
12400 library_names_spec \
12401 soname_spec \
12402 finish_eval \
12403 old_striplib \
12404 striplib; do
12405 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12406 *[\\\\\\\`\\"\\\$]*)
12407 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12408 ;;
12409 *)
12410 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12411 ;;
12412 esac
12413 done
12414
12415 # Double-quote double-evaled strings.
12416 for var in reload_cmds \
12417 old_postinstall_cmds \
12418 old_postuninstall_cmds \
12419 old_archive_cmds \
12420 extract_expsyms_cmds \
12421 old_archive_from_new_cmds \
12422 old_archive_from_expsyms_cmds \
12423 archive_cmds \
12424 archive_expsym_cmds \
12425 module_cmds \
12426 module_expsym_cmds \
12427 export_symbols_cmds \
12428 prelink_cmds \
12429 postinstall_cmds \
12430 postuninstall_cmds \
12431 finish_cmds \
12432 sys_lib_search_path_spec \
12433 sys_lib_dlsearch_path_spec; do
12434 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12435 *[\\\\\\\`\\"\\\$]*)
12436 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12437 ;;
12438 *)
12439 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12440 ;;
12441 esac
12442 done
12443
12444 # Fix-up fallback echo if it was mangled by the above quoting rules.
12445 case \$lt_ECHO in
12446 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12447 ;;
12448 esac
12449
12450 ac_aux_dir='$ac_aux_dir'
12451 xsi_shell='$xsi_shell'
12452 lt_shell_append='$lt_shell_append'
12453
12454 # See if we are running on zsh, and set the options which allow our
12455 # commands through without removal of \ escapes INIT.
12456 if test -n "\${ZSH_VERSION+set}" ; then
12457 setopt NO_GLOB_SUBST
12458 fi
12459
12460
12461 PACKAGE='$PACKAGE'
12462 VERSION='$VERSION'
12463 TIMESTAMP='$TIMESTAMP'
12464 RM='$RM'
12465 ofile='$ofile'
12466
12467
12468
12469
12470 _ACEOF
12471
12472 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12473
12474 # Handling of arguments.
12475 for ac_config_target in $ac_config_targets
12476 do
12477 case $ac_config_target in
12478 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12479 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12480 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12481 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12482
12483 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12484 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12485 { (exit 1); exit 1; }; };;
12486 esac
12487 done
12488
12489
12490 # If the user did not use the arguments to specify the items to instantiate,
12491 # then the envvar interface is used. Set only those that are not.
12492 # We use the long form for the default assignment because of an extremely
12493 # bizarre bug on SunOS 4.1.3.
12494 if $ac_need_defaults; then
12495 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12496 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12497 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12498 fi
12499
12500 # Have a temporary directory for convenience. Make it in the build tree
12501 # simply because there is no reason against having it here, and in addition,
12502 # creating and moving files from /tmp can sometimes cause problems.
12503 # Hook for its removal unless debugging.
12504 # Note that there is a small window in which the directory will not be cleaned:
12505 # after its creation but before its name has been assigned to `$tmp'.
12506 $debug ||
12507 {
12508 tmp=
12509 trap 'exit_status=$?
12510 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12511 ' 0
12512 trap '{ (exit 1); exit 1; }' 1 2 13 15
12513 }
12514 # Create a (secure) tmp directory for tmp files.
12515
12516 {
12517 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12518 test -n "$tmp" && test -d "$tmp"
12519 } ||
12520 {
12521 tmp=./conf$$-$RANDOM
12522 (umask 077 && mkdir "$tmp")
12523 } ||
12524 {
12525 $as_echo "$as_me: cannot create a temporary directory in ." >&2
12526 { (exit 1); exit 1; }
12527 }
12528
12529 # Set up the scripts for CONFIG_FILES section.
12530 # No need to generate them if there are no CONFIG_FILES.
12531 # This happens for instance with `./config.status config.h'.
12532 if test -n "$CONFIG_FILES"; then
12533
12534
12535 ac_cr=' '
12536 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12537 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12538 ac_cs_awk_cr='\\r'
12539 else
12540 ac_cs_awk_cr=$ac_cr
12541 fi
12542
12543 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12544 _ACEOF
12545
12546
12547 {
12548 echo "cat >conf$$subs.awk <<_ACEOF" &&
12549 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12550 echo "_ACEOF"
12551 } >conf$$subs.sh ||
12552 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12553 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12554 { (exit 1); exit 1; }; }
12555 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12556 ac_delim='%!_!# '
12557 for ac_last_try in false false false false false :; do
12558 . ./conf$$subs.sh ||
12559 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12560 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12561 { (exit 1); exit 1; }; }
12562
12563 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12564 if test $ac_delim_n = $ac_delim_num; then
12565 break
12566 elif $ac_last_try; then
12567 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12568 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12569 { (exit 1); exit 1; }; }
12570 else
12571 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12572 fi
12573 done
12574 rm -f conf$$subs.sh
12575
12576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12577 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12578 _ACEOF
12579 sed -n '
12580 h
12581 s/^/S["/; s/!.*/"]=/
12582 p
12583 g
12584 s/^[^!]*!//
12585 :repl
12586 t repl
12587 s/'"$ac_delim"'$//
12588 t delim
12589 :nl
12590 h
12591 s/\(.\{148\}\).*/\1/
12592 t more1
12593 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12594 p
12595 n
12596 b repl
12597 :more1
12598 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12599 p
12600 g
12601 s/.\{148\}//
12602 t nl
12603 :delim
12604 h
12605 s/\(.\{148\}\).*/\1/
12606 t more2
12607 s/["\\]/\\&/g; s/^/"/; s/$/"/
12608 p
12609 b
12610 :more2
12611 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12612 p
12613 g
12614 s/.\{148\}//
12615 t delim
12616 ' <conf$$subs.awk | sed '
12617 /^[^""]/{
12618 N
12619 s/\n//
12620 }
12621 ' >>$CONFIG_STATUS || ac_write_fail=1
12622 rm -f conf$$subs.awk
12623 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12624 _ACAWK
12625 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12626 for (key in S) S_is_set[key] = 1
12627 FS = "\a"
12628
12629 }
12630 {
12631 line = $ 0
12632 nfields = split(line, field, "@")
12633 substed = 0
12634 len = length(field[1])
12635 for (i = 2; i < nfields; i++) {
12636 key = field[i]
12637 keylen = length(key)
12638 if (S_is_set[key]) {
12639 value = S[key]
12640 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12641 len += length(value) + length(field[++i])
12642 substed = 1
12643 } else
12644 len += 1 + keylen
12645 }
12646
12647 print line
12648 }
12649
12650 _ACAWK
12651 _ACEOF
12652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12653 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12654 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12655 else
12656 cat
12657 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12658 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
12659 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
12660 { (exit 1); exit 1; }; }
12661 _ACEOF
12662
12663 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12664 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12665 # trailing colons and then remove the whole line if VPATH becomes empty
12666 # (actually we leave an empty line to preserve line numbers).
12667 if test "x$srcdir" = x.; then
12668 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12669 s/:*\$(srcdir):*/:/
12670 s/:*\${srcdir}:*/:/
12671 s/:*@srcdir@:*/:/
12672 s/^\([^=]*=[ ]*\):*/\1/
12673 s/:*$//
12674 s/^[^=]*=[ ]*$//
12675 }'
12676 fi
12677
12678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12679 fi # test -n "$CONFIG_FILES"
12680
12681 # Set up the scripts for CONFIG_HEADERS section.
12682 # No need to generate them if there are no CONFIG_HEADERS.
12683 # This happens for instance with `./config.status Makefile'.
12684 if test -n "$CONFIG_HEADERS"; then
12685 cat >"$tmp/defines.awk" <<\_ACAWK ||
12686 BEGIN {
12687 _ACEOF
12688
12689 # Transform confdefs.h into an awk script `defines.awk', embedded as
12690 # here-document in config.status, that substitutes the proper values into
12691 # config.h.in to produce config.h.
12692
12693 # Create a delimiter string that does not exist in confdefs.h, to ease
12694 # handling of long lines.
12695 ac_delim='%!_!# '
12696 for ac_last_try in false false :; do
12697 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12698 if test -z "$ac_t"; then
12699 break
12700 elif $ac_last_try; then
12701 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
12702 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
12703 { (exit 1); exit 1; }; }
12704 else
12705 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12706 fi
12707 done
12708
12709 # For the awk script, D is an array of macro values keyed by name,
12710 # likewise P contains macro parameters if any. Preserve backslash
12711 # newline sequences.
12712
12713 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12714 sed -n '
12715 s/.\{148\}/&'"$ac_delim"'/g
12716 t rset
12717 :rset
12718 s/^[ ]*#[ ]*define[ ][ ]*/ /
12719 t def
12720 d
12721 :def
12722 s/\\$//
12723 t bsnl
12724 s/["\\]/\\&/g
12725 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12726 D["\1"]=" \3"/p
12727 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12728 d
12729 :bsnl
12730 s/["\\]/\\&/g
12731 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12732 D["\1"]=" \3\\\\\\n"\\/p
12733 t cont
12734 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12735 t cont
12736 d
12737 :cont
12738 n
12739 s/.\{148\}/&'"$ac_delim"'/g
12740 t clear
12741 :clear
12742 s/\\$//
12743 t bsnlc
12744 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12745 d
12746 :bsnlc
12747 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12748 b cont
12749 ' <confdefs.h | sed '
12750 s/'"$ac_delim"'/"\\\
12751 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12752
12753 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12754 for (key in D) D_is_set[key] = 1
12755 FS = "\a"
12756 }
12757 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12758 line = \$ 0
12759 split(line, arg, " ")
12760 if (arg[1] == "#") {
12761 defundef = arg[2]
12762 mac1 = arg[3]
12763 } else {
12764 defundef = substr(arg[1], 2)
12765 mac1 = arg[2]
12766 }
12767 split(mac1, mac2, "(") #)
12768 macro = mac2[1]
12769 prefix = substr(line, 1, index(line, defundef) - 1)
12770 if (D_is_set[macro]) {
12771 # Preserve the white space surrounding the "#".
12772 print prefix "define", macro P[macro] D[macro]
12773 next
12774 } else {
12775 # Replace #undef with comments. This is necessary, for example,
12776 # in the case of _POSIX_SOURCE, which is predefined and required
12777 # on some systems where configure will not decide to define it.
12778 if (defundef == "undef") {
12779 print "/*", prefix defundef, macro, "*/"
12780 next
12781 }
12782 }
12783 }
12784 { print }
12785 _ACAWK
12786 _ACEOF
12787 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12788 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
12789 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
12790 { (exit 1); exit 1; }; }
12791 fi # test -n "$CONFIG_HEADERS"
12792
12793
12794 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12795 shift
12796 for ac_tag
12797 do
12798 case $ac_tag in
12799 :[FHLC]) ac_mode=$ac_tag; continue;;
12800 esac
12801 case $ac_mode$ac_tag in
12802 :[FHL]*:*);;
12803 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
12804 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
12805 { (exit 1); exit 1; }; };;
12806 :[FH]-) ac_tag=-:-;;
12807 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12808 esac
12809 ac_save_IFS=$IFS
12810 IFS=:
12811 set x $ac_tag
12812 IFS=$ac_save_IFS
12813 shift
12814 ac_file=$1
12815 shift
12816
12817 case $ac_mode in
12818 :L) ac_source=$1;;
12819 :[FH])
12820 ac_file_inputs=
12821 for ac_f
12822 do
12823 case $ac_f in
12824 -) ac_f="$tmp/stdin";;
12825 *) # Look for the file first in the build tree, then in the source tree
12826 # (if the path is not absolute). The absolute path cannot be DOS-style,
12827 # because $ac_f cannot contain `:'.
12828 test -f "$ac_f" ||
12829 case $ac_f in
12830 [\\/$]*) false;;
12831 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12832 esac ||
12833 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12834 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12835 { (exit 1); exit 1; }; };;
12836 esac
12837 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12838 ac_file_inputs="$ac_file_inputs '$ac_f'"
12839 done
12840
12841 # Let's still pretend it is `configure' which instantiates (i.e., don't
12842 # use $as_me), people would be surprised to read:
12843 # /* config.h. Generated by config.status. */
12844 configure_input='Generated from '`
12845 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12846 `' by configure.'
12847 if test x"$ac_file" != x-; then
12848 configure_input="$ac_file. $configure_input"
12849 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
12850 $as_echo "$as_me: creating $ac_file" >&6;}
12851 fi
12852 # Neutralize special characters interpreted by sed in replacement strings.
12853 case $configure_input in #(
12854 *\&* | *\|* | *\\* )
12855 ac_sed_conf_input=`$as_echo "$configure_input" |
12856 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12857 *) ac_sed_conf_input=$configure_input;;
12858 esac
12859
12860 case $ac_tag in
12861 *:-:* | *:-) cat >"$tmp/stdin" \
12862 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12863 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12864 { (exit 1); exit 1; }; } ;;
12865 esac
12866 ;;
12867 esac
12868
12869 ac_dir=`$as_dirname -- "$ac_file" ||
12870 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12871 X"$ac_file" : 'X\(//\)[^/]' \| \
12872 X"$ac_file" : 'X\(//\)$' \| \
12873 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12874 $as_echo X"$ac_file" |
12875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12876 s//\1/
12877 q
12878 }
12879 /^X\(\/\/\)[^/].*/{
12880 s//\1/
12881 q
12882 }
12883 /^X\(\/\/\)$/{
12884 s//\1/
12885 q
12886 }
12887 /^X\(\/\).*/{
12888 s//\1/
12889 q
12890 }
12891 s/.*/./; q'`
12892 { as_dir="$ac_dir"
12893 case $as_dir in #(
12894 -*) as_dir=./$as_dir;;
12895 esac
12896 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12897 as_dirs=
12898 while :; do
12899 case $as_dir in #(
12900 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12901 *) as_qdir=$as_dir;;
12902 esac
12903 as_dirs="'$as_qdir' $as_dirs"
12904 as_dir=`$as_dirname -- "$as_dir" ||
12905 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12906 X"$as_dir" : 'X\(//\)[^/]' \| \
12907 X"$as_dir" : 'X\(//\)$' \| \
12908 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12909 $as_echo X"$as_dir" |
12910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12911 s//\1/
12912 q
12913 }
12914 /^X\(\/\/\)[^/].*/{
12915 s//\1/
12916 q
12917 }
12918 /^X\(\/\/\)$/{
12919 s//\1/
12920 q
12921 }
12922 /^X\(\/\).*/{
12923 s//\1/
12924 q
12925 }
12926 s/.*/./; q'`
12927 test -d "$as_dir" && break
12928 done
12929 test -z "$as_dirs" || eval "mkdir $as_dirs"
12930 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12931 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
12932 { (exit 1); exit 1; }; }; }
12933 ac_builddir=.
12934
12935 case "$ac_dir" in
12936 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12937 *)
12938 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12939 # A ".." for each directory in $ac_dir_suffix.
12940 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12941 case $ac_top_builddir_sub in
12942 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12943 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12944 esac ;;
12945 esac
12946 ac_abs_top_builddir=$ac_pwd
12947 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12948 # for backward compatibility:
12949 ac_top_builddir=$ac_top_build_prefix
12950
12951 case $srcdir in
12952 .) # We are building in place.
12953 ac_srcdir=.
12954 ac_top_srcdir=$ac_top_builddir_sub
12955 ac_abs_top_srcdir=$ac_pwd ;;
12956 [\\/]* | ?:[\\/]* ) # Absolute name.
12957 ac_srcdir=$srcdir$ac_dir_suffix;
12958 ac_top_srcdir=$srcdir
12959 ac_abs_top_srcdir=$srcdir ;;
12960 *) # Relative name.
12961 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12962 ac_top_srcdir=$ac_top_build_prefix$srcdir
12963 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12964 esac
12965 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12966
12967
12968 case $ac_mode in
12969 :F)
12970 #
12971 # CONFIG_FILE
12972 #
12973
12974 case $INSTALL in
12975 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12976 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12977 esac
12978 ac_MKDIR_P=$MKDIR_P
12979 case $MKDIR_P in
12980 [\\/$]* | ?:[\\/]* ) ;;
12981 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12982 esac
12983 _ACEOF
12984
12985 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12986 # If the template does not know about datarootdir, expand it.
12987 # FIXME: This hack should be removed a few years after 2.60.
12988 ac_datarootdir_hack=; ac_datarootdir_seen=
12989
12990 ac_sed_dataroot='
12991 /datarootdir/ {
12992 p
12993 q
12994 }
12995 /@datadir@/p
12996 /@docdir@/p
12997 /@infodir@/p
12998 /@localedir@/p
12999 /@mandir@/p
13000 '
13001 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13002 *datarootdir*) ac_datarootdir_seen=yes;;
13003 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13004 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13005 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13006 _ACEOF
13007 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13008 ac_datarootdir_hack='
13009 s&@datadir@&$datadir&g
13010 s&@docdir@&$docdir&g
13011 s&@infodir@&$infodir&g
13012 s&@localedir@&$localedir&g
13013 s&@mandir@&$mandir&g
13014 s&\\\${datarootdir}&$datarootdir&g' ;;
13015 esac
13016 _ACEOF
13017
13018 # Neutralize VPATH when `$srcdir' = `.'.
13019 # Shell code in configure.ac might set extrasub.
13020 # FIXME: do we really want to maintain this feature?
13021 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13022 ac_sed_extra="$ac_vpsub
13023 $extrasub
13024 _ACEOF
13025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13026 :t
13027 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13028 s|@configure_input@|$ac_sed_conf_input|;t t
13029 s&@top_builddir@&$ac_top_builddir_sub&;t t
13030 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13031 s&@srcdir@&$ac_srcdir&;t t
13032 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13033 s&@top_srcdir@&$ac_top_srcdir&;t t
13034 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13035 s&@builddir@&$ac_builddir&;t t
13036 s&@abs_builddir@&$ac_abs_builddir&;t t
13037 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13038 s&@INSTALL@&$ac_INSTALL&;t t
13039 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13040 $ac_datarootdir_hack
13041 "
13042 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13043 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13044 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13045 { (exit 1); exit 1; }; }
13046
13047 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13048 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13049 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13050 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13051 which seems to be undefined. Please make sure it is defined." >&5
13052 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13053 which seems to be undefined. Please make sure it is defined." >&2;}
13054
13055 rm -f "$tmp/stdin"
13056 case $ac_file in
13057 -) cat "$tmp/out" && rm -f "$tmp/out";;
13058 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13059 esac \
13060 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13061 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13062 { (exit 1); exit 1; }; }
13063 ;;
13064 :H)
13065 #
13066 # CONFIG_HEADER
13067 #
13068 if test x"$ac_file" != x-; then
13069 {
13070 $as_echo "/* $configure_input */" \
13071 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13072 } >"$tmp/config.h" \
13073 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13074 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13075 { (exit 1); exit 1; }; }
13076 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13077 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13078 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13079 else
13080 rm -f "$ac_file"
13081 mv "$tmp/config.h" "$ac_file" \
13082 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13083 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13084 { (exit 1); exit 1; }; }
13085 fi
13086 else
13087 $as_echo "/* $configure_input */" \
13088 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13089 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
13090 $as_echo "$as_me: error: could not create -" >&2;}
13091 { (exit 1); exit 1; }; }
13092 fi
13093 # Compute "$ac_file"'s index in $config_headers.
13094 _am_arg="$ac_file"
13095 _am_stamp_count=1
13096 for _am_header in $config_headers :; do
13097 case $_am_header in
13098 $_am_arg | $_am_arg:* )
13099 break ;;
13100 * )
13101 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13102 esac
13103 done
13104 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13105 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13106 X"$_am_arg" : 'X\(//\)[^/]' \| \
13107 X"$_am_arg" : 'X\(//\)$' \| \
13108 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13109 $as_echo X"$_am_arg" |
13110 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13111 s//\1/
13112 q
13113 }
13114 /^X\(\/\/\)[^/].*/{
13115 s//\1/
13116 q
13117 }
13118 /^X\(\/\/\)$/{
13119 s//\1/
13120 q
13121 }
13122 /^X\(\/\).*/{
13123 s//\1/
13124 q
13125 }
13126 s/.*/./; q'`/stamp-h$_am_stamp_count
13127 ;;
13128
13129 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
13130 $as_echo "$as_me: executing $ac_file commands" >&6;}
13131 ;;
13132 esac
13133
13134
13135 case $ac_file$ac_mode in
13136 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13137 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13138 # are listed without --file. Let's play safe and only enable the eval
13139 # if we detect the quoting.
13140 case $CONFIG_FILES in
13141 *\'*) eval set x "$CONFIG_FILES" ;;
13142 *) set x $CONFIG_FILES ;;
13143 esac
13144 shift
13145 for mf
13146 do
13147 # Strip MF so we end up with the name of the file.
13148 mf=`echo "$mf" | sed -e 's/:.*$//'`
13149 # Check whether this is an Automake generated Makefile or not.
13150 # We used to match only the files named `Makefile.in', but
13151 # some people rename them; so instead we look at the file content.
13152 # Grep'ing the first line is not enough: some people post-process
13153 # each Makefile.in and add a new line on top of each file to say so.
13154 # Grep'ing the whole file is not good either: AIX grep has a line
13155 # limit of 2048, but all sed's we know have understand at least 4000.
13156 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13157 dirpart=`$as_dirname -- "$mf" ||
13158 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13159 X"$mf" : 'X\(//\)[^/]' \| \
13160 X"$mf" : 'X\(//\)$' \| \
13161 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13162 $as_echo X"$mf" |
13163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13164 s//\1/
13165 q
13166 }
13167 /^X\(\/\/\)[^/].*/{
13168 s//\1/
13169 q
13170 }
13171 /^X\(\/\/\)$/{
13172 s//\1/
13173 q
13174 }
13175 /^X\(\/\).*/{
13176 s//\1/
13177 q
13178 }
13179 s/.*/./; q'`
13180 else
13181 continue
13182 fi
13183 # Extract the definition of DEPDIR, am__include, and am__quote
13184 # from the Makefile without running `make'.
13185 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13186 test -z "$DEPDIR" && continue
13187 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13188 test -z "am__include" && continue
13189 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13190 # When using ansi2knr, U may be empty or an underscore; expand it
13191 U=`sed -n 's/^U = //p' < "$mf"`
13192 # Find all dependency output files, they are included files with
13193 # $(DEPDIR) in their names. We invoke sed twice because it is the
13194 # simplest approach to changing $(DEPDIR) to its actual value in the
13195 # expansion.
13196 for file in `sed -n "
13197 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13198 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13199 # Make sure the directory exists.
13200 test -f "$dirpart/$file" && continue
13201 fdir=`$as_dirname -- "$file" ||
13202 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13203 X"$file" : 'X\(//\)[^/]' \| \
13204 X"$file" : 'X\(//\)$' \| \
13205 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13206 $as_echo X"$file" |
13207 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13208 s//\1/
13209 q
13210 }
13211 /^X\(\/\/\)[^/].*/{
13212 s//\1/
13213 q
13214 }
13215 /^X\(\/\/\)$/{
13216 s//\1/
13217 q
13218 }
13219 /^X\(\/\).*/{
13220 s//\1/
13221 q
13222 }
13223 s/.*/./; q'`
13224 { as_dir=$dirpart/$fdir
13225 case $as_dir in #(
13226 -*) as_dir=./$as_dir;;
13227 esac
13228 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13229 as_dirs=
13230 while :; do
13231 case $as_dir in #(
13232 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13233 *) as_qdir=$as_dir;;
13234 esac
13235 as_dirs="'$as_qdir' $as_dirs"
13236 as_dir=`$as_dirname -- "$as_dir" ||
13237 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13238 X"$as_dir" : 'X\(//\)[^/]' \| \
13239 X"$as_dir" : 'X\(//\)$' \| \
13240 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13241 $as_echo X"$as_dir" |
13242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13243 s//\1/
13244 q
13245 }
13246 /^X\(\/\/\)[^/].*/{
13247 s//\1/
13248 q
13249 }
13250 /^X\(\/\/\)$/{
13251 s//\1/
13252 q
13253 }
13254 /^X\(\/\).*/{
13255 s//\1/
13256 q
13257 }
13258 s/.*/./; q'`
13259 test -d "$as_dir" && break
13260 done
13261 test -z "$as_dirs" || eval "mkdir $as_dirs"
13262 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13263 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13264 { (exit 1); exit 1; }; }; }
13265 # echo "creating $dirpart/$file"
13266 echo '# dummy' > "$dirpart/$file"
13267 done
13268 done
13269 }
13270 ;;
13271 "libtool":C)
13272
13273 # See if we are running on zsh, and set the options which allow our
13274 # commands through without removal of \ escapes.
13275 if test -n "${ZSH_VERSION+set}" ; then
13276 setopt NO_GLOB_SUBST
13277 fi
13278
13279 cfgfile="${ofile}T"
13280 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13281 $RM "$cfgfile"
13282
13283 cat <<_LT_EOF >> "$cfgfile"
13284 #! $SHELL
13285
13286 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13287 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13288 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13289 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13290 #
13291 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13292 # 2006, 2007, 2008 Free Software Foundation, Inc.
13293 # Written by Gordon Matzigkeit, 1996
13294 #
13295 # This file is part of GNU Libtool.
13296 #
13297 # GNU Libtool is free software; you can redistribute it and/or
13298 # modify it under the terms of the GNU General Public License as
13299 # published by the Free Software Foundation; either version 2 of
13300 # the License, or (at your option) any later version.
13301 #
13302 # As a special exception to the GNU General Public License,
13303 # if you distribute this file as part of a program or library that
13304 # is built using GNU Libtool, you may include this file under the
13305 # same distribution terms that you use for the rest of that program.
13306 #
13307 # GNU Libtool is distributed in the hope that it will be useful,
13308 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13309 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13310 # GNU General Public License for more details.
13311 #
13312 # You should have received a copy of the GNU General Public License
13313 # along with GNU Libtool; see the file COPYING. If not, a copy
13314 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13315 # obtained by writing to the Free Software Foundation, Inc.,
13316 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13317
13318
13319 # The names of the tagged configurations supported by this script.
13320 available_tags=""
13321
13322 # ### BEGIN LIBTOOL CONFIG
13323
13324 # Which release of libtool.m4 was used?
13325 macro_version=$macro_version
13326 macro_revision=$macro_revision
13327
13328 # Whether or not to build shared libraries.
13329 build_libtool_libs=$enable_shared
13330
13331 # Whether or not to build static libraries.
13332 build_old_libs=$enable_static
13333
13334 # What type of objects to build.
13335 pic_mode=$pic_mode
13336
13337 # Whether or not to optimize for fast installation.
13338 fast_install=$enable_fast_install
13339
13340 # The host system.
13341 host_alias=$host_alias
13342 host=$host
13343 host_os=$host_os
13344
13345 # The build system.
13346 build_alias=$build_alias
13347 build=$build
13348 build_os=$build_os
13349
13350 # A sed program that does not truncate output.
13351 SED=$lt_SED
13352
13353 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13354 Xsed="\$SED -e 1s/^X//"
13355
13356 # A grep program that handles long lines.
13357 GREP=$lt_GREP
13358
13359 # An ERE matcher.
13360 EGREP=$lt_EGREP
13361
13362 # A literal string matcher.
13363 FGREP=$lt_FGREP
13364
13365 # A BSD- or MS-compatible name lister.
13366 NM=$lt_NM
13367
13368 # Whether we need soft or hard links.
13369 LN_S=$lt_LN_S
13370
13371 # What is the maximum length of a command?
13372 max_cmd_len=$max_cmd_len
13373
13374 # Object file suffix (normally "o").
13375 objext=$ac_objext
13376
13377 # Executable file suffix (normally "").
13378 exeext=$exeext
13379
13380 # whether the shell understands "unset".
13381 lt_unset=$lt_unset
13382
13383 # turn spaces into newlines.
13384 SP2NL=$lt_lt_SP2NL
13385
13386 # turn newlines into spaces.
13387 NL2SP=$lt_lt_NL2SP
13388
13389 # How to create reloadable object files.
13390 reload_flag=$lt_reload_flag
13391 reload_cmds=$lt_reload_cmds
13392
13393 # An object symbol dumper.
13394 OBJDUMP=$lt_OBJDUMP
13395
13396 # Method to check whether dependent libraries are shared objects.
13397 deplibs_check_method=$lt_deplibs_check_method
13398
13399 # Command to use when deplibs_check_method == "file_magic".
13400 file_magic_cmd=$lt_file_magic_cmd
13401
13402 # The archiver.
13403 AR=$lt_AR
13404 AR_FLAGS=$lt_AR_FLAGS
13405
13406 # A symbol stripping program.
13407 STRIP=$lt_STRIP
13408
13409 # Commands used to install an old-style archive.
13410 RANLIB=$lt_RANLIB
13411 old_postinstall_cmds=$lt_old_postinstall_cmds
13412 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13413
13414 # A C compiler.
13415 LTCC=$lt_CC
13416
13417 # LTCC compiler flags.
13418 LTCFLAGS=$lt_CFLAGS
13419
13420 # Take the output of nm and produce a listing of raw symbols and C names.
13421 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13422
13423 # Transform the output of nm in a proper C declaration.
13424 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13425
13426 # Transform the output of nm in a C name address pair.
13427 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13428
13429 # Transform the output of nm in a C name address pair when lib prefix is needed.
13430 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13431
13432 # The name of the directory that contains temporary libtool files.
13433 objdir=$objdir
13434
13435 # Shell to use when invoking shell scripts.
13436 SHELL=$lt_SHELL
13437
13438 # An echo program that does not interpret backslashes.
13439 ECHO=$lt_ECHO
13440
13441 # Used to examine libraries when file_magic_cmd begins with "file".
13442 MAGIC_CMD=$MAGIC_CMD
13443
13444 # Must we lock files when doing compilation?
13445 need_locks=$lt_need_locks
13446
13447 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13448 DSYMUTIL=$lt_DSYMUTIL
13449
13450 # Tool to change global to local symbols on Mac OS X.
13451 NMEDIT=$lt_NMEDIT
13452
13453 # Tool to manipulate fat objects and archives on Mac OS X.
13454 LIPO=$lt_LIPO
13455
13456 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13457 OTOOL=$lt_OTOOL
13458
13459 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13460 OTOOL64=$lt_OTOOL64
13461
13462 # Old archive suffix (normally "a").
13463 libext=$libext
13464
13465 # Shared library suffix (normally ".so").
13466 shrext_cmds=$lt_shrext_cmds
13467
13468 # The commands to extract the exported symbol list from a shared archive.
13469 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13470
13471 # Variables whose values should be saved in libtool wrapper scripts and
13472 # restored at link time.
13473 variables_saved_for_relink=$lt_variables_saved_for_relink
13474
13475 # Do we need the "lib" prefix for modules?
13476 need_lib_prefix=$need_lib_prefix
13477
13478 # Do we need a version for libraries?
13479 need_version=$need_version
13480
13481 # Library versioning type.
13482 version_type=$version_type
13483
13484 # Shared library runtime path variable.
13485 runpath_var=$runpath_var
13486
13487 # Shared library path variable.
13488 shlibpath_var=$shlibpath_var
13489
13490 # Is shlibpath searched before the hard-coded library search path?
13491 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13492
13493 # Format of library name prefix.
13494 libname_spec=$lt_libname_spec
13495
13496 # List of archive names. First name is the real one, the rest are links.
13497 # The last name is the one that the linker finds with -lNAME
13498 library_names_spec=$lt_library_names_spec
13499
13500 # The coded name of the library, if different from the real name.
13501 soname_spec=$lt_soname_spec
13502
13503 # Command to use after installation of a shared archive.
13504 postinstall_cmds=$lt_postinstall_cmds
13505
13506 # Command to use after uninstallation of a shared archive.
13507 postuninstall_cmds=$lt_postuninstall_cmds
13508
13509 # Commands used to finish a libtool library installation in a directory.
13510 finish_cmds=$lt_finish_cmds
13511
13512 # As "finish_cmds", except a single script fragment to be evaled but
13513 # not shown.
13514 finish_eval=$lt_finish_eval
13515
13516 # Whether we should hardcode library paths into libraries.
13517 hardcode_into_libs=$hardcode_into_libs
13518
13519 # Compile-time system search path for libraries.
13520 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13521
13522 # Run-time system search path for libraries.
13523 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13524
13525 # Whether dlopen is supported.
13526 dlopen_support=$enable_dlopen
13527
13528 # Whether dlopen of programs is supported.
13529 dlopen_self=$enable_dlopen_self
13530
13531 # Whether dlopen of statically linked programs is supported.
13532 dlopen_self_static=$enable_dlopen_self_static
13533
13534 # Commands to strip libraries.
13535 old_striplib=$lt_old_striplib
13536 striplib=$lt_striplib
13537
13538
13539 # The linker used to build libraries.
13540 LD=$lt_LD
13541
13542 # Commands used to build an old-style archive.
13543 old_archive_cmds=$lt_old_archive_cmds
13544
13545 # A language specific compiler.
13546 CC=$lt_compiler
13547
13548 # Is the compiler the GNU compiler?
13549 with_gcc=$GCC
13550
13551 # Compiler flag to turn off builtin functions.
13552 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13553
13554 # How to pass a linker flag through the compiler.
13555 wl=$lt_lt_prog_compiler_wl
13556
13557 # Additional compiler flags for building library objects.
13558 pic_flag=$lt_lt_prog_compiler_pic
13559
13560 # Compiler flag to prevent dynamic linking.
13561 link_static_flag=$lt_lt_prog_compiler_static
13562
13563 # Does compiler simultaneously support -c and -o options?
13564 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13565
13566 # Whether or not to add -lc for building shared libraries.
13567 build_libtool_need_lc=$archive_cmds_need_lc
13568
13569 # Whether or not to disallow shared libs when runtime libs are static.
13570 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13571
13572 # Compiler flag to allow reflexive dlopens.
13573 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13574
13575 # Compiler flag to generate shared objects directly from archives.
13576 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13577
13578 # Whether the compiler copes with passing no objects directly.
13579 compiler_needs_object=$lt_compiler_needs_object
13580
13581 # Create an old-style archive from a shared archive.
13582 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13583
13584 # Create a temporary old-style archive to link instead of a shared archive.
13585 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13586
13587 # Commands used to build a shared archive.
13588 archive_cmds=$lt_archive_cmds
13589 archive_expsym_cmds=$lt_archive_expsym_cmds
13590
13591 # Commands used to build a loadable module if different from building
13592 # a shared archive.
13593 module_cmds=$lt_module_cmds
13594 module_expsym_cmds=$lt_module_expsym_cmds
13595
13596 # Whether we are building with GNU ld or not.
13597 with_gnu_ld=$lt_with_gnu_ld
13598
13599 # Flag that allows shared libraries with undefined symbols to be built.
13600 allow_undefined_flag=$lt_allow_undefined_flag
13601
13602 # Flag that enforces no undefined symbols.
13603 no_undefined_flag=$lt_no_undefined_flag
13604
13605 # Flag to hardcode \$libdir into a binary during linking.
13606 # This must work even if \$libdir does not exist
13607 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13608
13609 # If ld is used when linking, flag to hardcode \$libdir into a binary
13610 # during linking. This must work even if \$libdir does not exist.
13611 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13612
13613 # Whether we need a single "-rpath" flag with a separated argument.
13614 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13615
13616 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13617 # DIR into the resulting binary.
13618 hardcode_direct=$hardcode_direct
13619
13620 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13621 # DIR into the resulting binary and the resulting library dependency is
13622 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13623 # library is relocated.
13624 hardcode_direct_absolute=$hardcode_direct_absolute
13625
13626 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13627 # into the resulting binary.
13628 hardcode_minus_L=$hardcode_minus_L
13629
13630 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13631 # into the resulting binary.
13632 hardcode_shlibpath_var=$hardcode_shlibpath_var
13633
13634 # Set to "yes" if building a shared library automatically hardcodes DIR
13635 # into the library and all subsequent libraries and executables linked
13636 # against it.
13637 hardcode_automatic=$hardcode_automatic
13638
13639 # Set to yes if linker adds runtime paths of dependent libraries
13640 # to runtime path list.
13641 inherit_rpath=$inherit_rpath
13642
13643 # Whether libtool must link a program against all its dependency libraries.
13644 link_all_deplibs=$link_all_deplibs
13645
13646 # Fix the shell variable \$srcfile for the compiler.
13647 fix_srcfile_path=$lt_fix_srcfile_path
13648
13649 # Set to "yes" if exported symbols are required.
13650 always_export_symbols=$always_export_symbols
13651
13652 # The commands to list exported symbols.
13653 export_symbols_cmds=$lt_export_symbols_cmds
13654
13655 # Symbols that should not be listed in the preloaded symbols.
13656 exclude_expsyms=$lt_exclude_expsyms
13657
13658 # Symbols that must always be exported.
13659 include_expsyms=$lt_include_expsyms
13660
13661 # Commands necessary for linking programs (against libraries) with templates.
13662 prelink_cmds=$lt_prelink_cmds
13663
13664 # Specify filename containing input files.
13665 file_list_spec=$lt_file_list_spec
13666
13667 # How to hardcode a shared library path into an executable.
13668 hardcode_action=$hardcode_action
13669
13670 # ### END LIBTOOL CONFIG
13671
13672 _LT_EOF
13673
13674 case $host_os in
13675 aix3*)
13676 cat <<\_LT_EOF >> "$cfgfile"
13677 # AIX sometimes has problems with the GCC collect2 program. For some
13678 # reason, if we set the COLLECT_NAMES environment variable, the problems
13679 # vanish in a puff of smoke.
13680 if test "X${COLLECT_NAMES+set}" != Xset; then
13681 COLLECT_NAMES=
13682 export COLLECT_NAMES
13683 fi
13684 _LT_EOF
13685 ;;
13686 esac
13687
13688
13689 ltmain="$ac_aux_dir/ltmain.sh"
13690
13691
13692 # We use sed instead of cat because bash on DJGPP gets confused if
13693 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13694 # text mode, it properly converts lines to CR/LF. This bash problem
13695 # is reportedly fixed, but why not run on old versions too?
13696 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13697 || (rm -f "$cfgfile"; exit 1)
13698
13699 case $xsi_shell in
13700 yes)
13701 cat << \_LT_EOF >> "$cfgfile"
13702
13703 # func_dirname file append nondir_replacement
13704 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13705 # otherwise set result to NONDIR_REPLACEMENT.
13706 func_dirname ()
13707 {
13708 case ${1} in
13709 */*) func_dirname_result="${1%/*}${2}" ;;
13710 * ) func_dirname_result="${3}" ;;
13711 esac
13712 }
13713
13714 # func_basename file
13715 func_basename ()
13716 {
13717 func_basename_result="${1##*/}"
13718 }
13719
13720 # func_dirname_and_basename file append nondir_replacement
13721 # perform func_basename and func_dirname in a single function
13722 # call:
13723 # dirname: Compute the dirname of FILE. If nonempty,
13724 # add APPEND to the result, otherwise set result
13725 # to NONDIR_REPLACEMENT.
13726 # value returned in "$func_dirname_result"
13727 # basename: Compute filename of FILE.
13728 # value retuned in "$func_basename_result"
13729 # Implementation must be kept synchronized with func_dirname
13730 # and func_basename. For efficiency, we do not delegate to
13731 # those functions but instead duplicate the functionality here.
13732 func_dirname_and_basename ()
13733 {
13734 case ${1} in
13735 */*) func_dirname_result="${1%/*}${2}" ;;
13736 * ) func_dirname_result="${3}" ;;
13737 esac
13738 func_basename_result="${1##*/}"
13739 }
13740
13741 # func_stripname prefix suffix name
13742 # strip PREFIX and SUFFIX off of NAME.
13743 # PREFIX and SUFFIX must not contain globbing or regex special
13744 # characters, hashes, percent signs, but SUFFIX may contain a leading
13745 # dot (in which case that matches only a dot).
13746 func_stripname ()
13747 {
13748 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13749 # positional parameters, so assign one to ordinary parameter first.
13750 func_stripname_result=${3}
13751 func_stripname_result=${func_stripname_result#"${1}"}
13752 func_stripname_result=${func_stripname_result%"${2}"}
13753 }
13754
13755 # func_opt_split
13756 func_opt_split ()
13757 {
13758 func_opt_split_opt=${1%%=*}
13759 func_opt_split_arg=${1#*=}
13760 }
13761
13762 # func_lo2o object
13763 func_lo2o ()
13764 {
13765 case ${1} in
13766 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13767 *) func_lo2o_result=${1} ;;
13768 esac
13769 }
13770
13771 # func_xform libobj-or-source
13772 func_xform ()
13773 {
13774 func_xform_result=${1%.*}.lo
13775 }
13776
13777 # func_arith arithmetic-term...
13778 func_arith ()
13779 {
13780 func_arith_result=$(( $* ))
13781 }
13782
13783 # func_len string
13784 # STRING may not start with a hyphen.
13785 func_len ()
13786 {
13787 func_len_result=${#1}
13788 }
13789
13790 _LT_EOF
13791 ;;
13792 *) # Bourne compatible functions.
13793 cat << \_LT_EOF >> "$cfgfile"
13794
13795 # func_dirname file append nondir_replacement
13796 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13797 # otherwise set result to NONDIR_REPLACEMENT.
13798 func_dirname ()
13799 {
13800 # Extract subdirectory from the argument.
13801 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13802 if test "X$func_dirname_result" = "X${1}"; then
13803 func_dirname_result="${3}"
13804 else
13805 func_dirname_result="$func_dirname_result${2}"
13806 fi
13807 }
13808
13809 # func_basename file
13810 func_basename ()
13811 {
13812 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13813 }
13814
13815
13816 # func_stripname prefix suffix name
13817 # strip PREFIX and SUFFIX off of NAME.
13818 # PREFIX and SUFFIX must not contain globbing or regex special
13819 # characters, hashes, percent signs, but SUFFIX may contain a leading
13820 # dot (in which case that matches only a dot).
13821 # func_strip_suffix prefix name
13822 func_stripname ()
13823 {
13824 case ${2} in
13825 .*) func_stripname_result=`$ECHO "X${3}" \
13826 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13827 *) func_stripname_result=`$ECHO "X${3}" \
13828 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13829 esac
13830 }
13831
13832 # sed scripts:
13833 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13834 my_sed_long_arg='1s/^-[^=]*=//'
13835
13836 # func_opt_split
13837 func_opt_split ()
13838 {
13839 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13840 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13841 }
13842
13843 # func_lo2o object
13844 func_lo2o ()
13845 {
13846 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13847 }
13848
13849 # func_xform libobj-or-source
13850 func_xform ()
13851 {
13852 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13853 }
13854
13855 # func_arith arithmetic-term...
13856 func_arith ()
13857 {
13858 func_arith_result=`expr "$@"`
13859 }
13860
13861 # func_len string
13862 # STRING may not start with a hyphen.
13863 func_len ()
13864 {
13865 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13866 }
13867
13868 _LT_EOF
13869 esac
13870
13871 case $lt_shell_append in
13872 yes)
13873 cat << \_LT_EOF >> "$cfgfile"
13874
13875 # func_append var value
13876 # Append VALUE to the end of shell variable VAR.
13877 func_append ()
13878 {
13879 eval "$1+=\$2"
13880 }
13881 _LT_EOF
13882 ;;
13883 *)
13884 cat << \_LT_EOF >> "$cfgfile"
13885
13886 # func_append var value
13887 # Append VALUE to the end of shell variable VAR.
13888 func_append ()
13889 {
13890 eval "$1=\$$1\$2"
13891 }
13892
13893 _LT_EOF
13894 ;;
13895 esac
13896
13897
13898 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13899 || (rm -f "$cfgfile"; exit 1)
13900
13901 mv -f "$cfgfile" "$ofile" ||
13902 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13903 chmod +x "$ofile"
13904
13905 ;;
13906
13907 esac
13908 done # for ac_tag
13909
13910
13911 { (exit 0); exit 0; }
13912 _ACEOF
13913 chmod +x $CONFIG_STATUS
13914 ac_clean_files=$ac_clean_files_save
13915
13916 test $ac_write_fail = 0 ||
13917 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
13918 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
13919 { (exit 1); exit 1; }; }
13920
13921
13922 # configure is writing to config.log, and then calls config.status.
13923 # config.status does its own redirection, appending to config.log.
13924 # Unfortunately, on DOS this fails, as config.log is still kept open
13925 # by configure, so config.status won't be able to write to it; its
13926 # output is simply discarded. So we exec the FD to /dev/null,
13927 # effectively closing config.log, so it can be properly (re)opened and
13928 # appended to by config.status. When coming back to configure, we
13929 # need to make the FD available again.
13930 if test "$no_create" != yes; then
13931 ac_cs_success=:
13932 ac_config_status_args=
13933 test "$silent" = yes &&
13934 ac_config_status_args="$ac_config_status_args --quiet"
13935 exec 5>/dev/null
13936 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13937 exec 5>>config.log
13938 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13939 # would make configure fail if this is the last instruction.
13940 $ac_cs_success || { (exit 1); exit 1; }
13941 fi
13942 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13943 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13944 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13945 fi
13946