Imported Upstream version 0.63.0
[hcoop/debian/courier-authlib.git] / userdb / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for libuserdb 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='libuserdb'
747 PACKAGE_TARNAME='libuserdb'
748 PACKAGE_VERSION='0.10'
749 PACKAGE_STRING='libuserdb 0.10'
750 PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
751
752 ac_unique_file="userdb.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 HAVE_SGML_FALSE
794 HAVE_SGML_TRUE
795 CRYPTLIBS
796 HMACLIB
797 SHA1LIB
798 MD5LIB
799 makedat
800 tmpdir
801 userdbtmpdir
802 USERDB
803 userdb
804 PERL
805 CPP
806 OTOOL64
807 OTOOL
808 LIPO
809 NMEDIT
810 DSYMUTIL
811 lt_ECHO
812 RANLIB
813 AR
814 OBJDUMP
815 NM
816 ac_ct_DUMPBIN
817 DUMPBIN
818 LD
819 FGREP
820 EGREP
821 GREP
822 SED
823 host_os
824 host_vendor
825 host_cpu
826 host
827 build_os
828 build_vendor
829 build_cpu
830 build
831 LIBTOOL
832 LN_S
833 am__fastdepCC_FALSE
834 am__fastdepCC_TRUE
835 CCDEPMODE
836 AMDEPBACKSLASH
837 AMDEP_FALSE
838 AMDEP_TRUE
839 am__quote
840 am__include
841 DEPDIR
842 OBJEXT
843 EXEEXT
844 ac_ct_CC
845 CPPFLAGS
846 LDFLAGS
847 CFLAGS
848 CC
849 am__untar
850 am__tar
851 AMTAR
852 am__leading_dot
853 SET_MAKE
854 AWK
855 mkdir_p
856 MKDIR_P
857 INSTALL_STRIP_PROGRAM
858 STRIP
859 install_sh
860 MAKEINFO
861 AUTOHEADER
862 AUTOMAKE
863 AUTOCONF
864 ACLOCAL
865 VERSION
866 PACKAGE
867 CYGPATH_W
868 am__isrc
869 INSTALL_DATA
870 INSTALL_SCRIPT
871 INSTALL_PROGRAM
872 target_alias
873 host_alias
874 build_alias
875 LIBS
876 ECHO_T
877 ECHO_N
878 ECHO_C
879 DEFS
880 mandir
881 localedir
882 libdir
883 psdir
884 pdfdir
885 dvidir
886 htmldir
887 infodir
888 docdir
889 oldincludedir
890 includedir
891 localstatedir
892 sharedstatedir
893 sysconfdir
894 datadir
895 datarootdir
896 libexecdir
897 sbindir
898 bindir
899 program_transform_name
900 prefix
901 exec_prefix
902 PACKAGE_BUGREPORT
903 PACKAGE_STRING
904 PACKAGE_VERSION
905 PACKAGE_TARNAME
906 PACKAGE_NAME
907 PATH_SEPARATOR
908 SHELL'
909 ac_subst_files=''
910 ac_user_opts='
911 enable_option_checking
912 enable_dependency_tracking
913 enable_shared
914 enable_static
915 with_pic
916 enable_fast_install
917 with_gnu_ld
918 enable_libtool_lock
919 with_userdb
920 with_userdbmandir
921 with_userdbtmpdir
922 with_makedatprog
923 with_random
924 '
925 ac_precious_vars='build_alias
926 host_alias
927 target_alias
928 CC
929 CFLAGS
930 LDFLAGS
931 LIBS
932 CPPFLAGS
933 CPP'
934
935
936 # Initialize some variables set by options.
937 ac_init_help=
938 ac_init_version=false
939 ac_unrecognized_opts=
940 ac_unrecognized_sep=
941 # The variables have the same names as the options, with
942 # dashes changed to underlines.
943 cache_file=/dev/null
944 exec_prefix=NONE
945 no_create=
946 no_recursion=
947 prefix=NONE
948 program_prefix=NONE
949 program_suffix=NONE
950 program_transform_name=s,x,x,
951 silent=
952 site=
953 srcdir=
954 verbose=
955 x_includes=NONE
956 x_libraries=NONE
957
958 # Installation directory options.
959 # These are left unexpanded so users can "make install exec_prefix=/foo"
960 # and all the variables that are supposed to be based on exec_prefix
961 # by default will actually change.
962 # Use braces instead of parens because sh, perl, etc. also accept them.
963 # (The list follows the same order as the GNU Coding Standards.)
964 bindir='${exec_prefix}/bin'
965 sbindir='${exec_prefix}/sbin'
966 libexecdir='${exec_prefix}/libexec'
967 datarootdir='${prefix}/share'
968 datadir='${datarootdir}'
969 sysconfdir='${prefix}/etc'
970 sharedstatedir='${prefix}/com'
971 localstatedir='${prefix}/var'
972 includedir='${prefix}/include'
973 oldincludedir='/usr/include'
974 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
975 infodir='${datarootdir}/info'
976 htmldir='${docdir}'
977 dvidir='${docdir}'
978 pdfdir='${docdir}'
979 psdir='${docdir}'
980 libdir='${exec_prefix}/lib'
981 localedir='${datarootdir}/locale'
982 mandir='${datarootdir}/man'
983
984 ac_prev=
985 ac_dashdash=
986 for ac_option
987 do
988 # If the previous option needs an argument, assign it.
989 if test -n "$ac_prev"; then
990 eval $ac_prev=\$ac_option
991 ac_prev=
992 continue
993 fi
994
995 case $ac_option in
996 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
997 *) ac_optarg=yes ;;
998 esac
999
1000 # Accept the important Cygnus configure options, so we can diagnose typos.
1001
1002 case $ac_dashdash$ac_option in
1003 --)
1004 ac_dashdash=yes ;;
1005
1006 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1007 ac_prev=bindir ;;
1008 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1009 bindir=$ac_optarg ;;
1010
1011 -build | --build | --buil | --bui | --bu)
1012 ac_prev=build_alias ;;
1013 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1014 build_alias=$ac_optarg ;;
1015
1016 -cache-file | --cache-file | --cache-fil | --cache-fi \
1017 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1018 ac_prev=cache_file ;;
1019 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1020 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1021 cache_file=$ac_optarg ;;
1022
1023 --config-cache | -C)
1024 cache_file=config.cache ;;
1025
1026 -datadir | --datadir | --datadi | --datad)
1027 ac_prev=datadir ;;
1028 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1029 datadir=$ac_optarg ;;
1030
1031 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1032 | --dataroo | --dataro | --datar)
1033 ac_prev=datarootdir ;;
1034 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1035 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1036 datarootdir=$ac_optarg ;;
1037
1038 -disable-* | --disable-*)
1039 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1040 # Reject names that are not valid shell variable names.
1041 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1042 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1043 { (exit 1); exit 1; }; }
1044 ac_useropt_orig=$ac_useropt
1045 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046 case $ac_user_opts in
1047 *"
1048 "enable_$ac_useropt"
1049 "*) ;;
1050 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1051 ac_unrecognized_sep=', ';;
1052 esac
1053 eval enable_$ac_useropt=no ;;
1054
1055 -docdir | --docdir | --docdi | --doc | --do)
1056 ac_prev=docdir ;;
1057 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1058 docdir=$ac_optarg ;;
1059
1060 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1061 ac_prev=dvidir ;;
1062 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1063 dvidir=$ac_optarg ;;
1064
1065 -enable-* | --enable-*)
1066 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1070 { (exit 1); exit 1; }; }
1071 ac_useropt_orig=$ac_useropt
1072 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1073 case $ac_user_opts in
1074 *"
1075 "enable_$ac_useropt"
1076 "*) ;;
1077 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1078 ac_unrecognized_sep=', ';;
1079 esac
1080 eval enable_$ac_useropt=\$ac_optarg ;;
1081
1082 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1083 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1084 | --exec | --exe | --ex)
1085 ac_prev=exec_prefix ;;
1086 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1087 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1088 | --exec=* | --exe=* | --ex=*)
1089 exec_prefix=$ac_optarg ;;
1090
1091 -gas | --gas | --ga | --g)
1092 # Obsolete; use --with-gas.
1093 with_gas=yes ;;
1094
1095 -help | --help | --hel | --he | -h)
1096 ac_init_help=long ;;
1097 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1098 ac_init_help=recursive ;;
1099 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1100 ac_init_help=short ;;
1101
1102 -host | --host | --hos | --ho)
1103 ac_prev=host_alias ;;
1104 -host=* | --host=* | --hos=* | --ho=*)
1105 host_alias=$ac_optarg ;;
1106
1107 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1108 ac_prev=htmldir ;;
1109 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1110 | --ht=*)
1111 htmldir=$ac_optarg ;;
1112
1113 -includedir | --includedir | --includedi | --included | --include \
1114 | --includ | --inclu | --incl | --inc)
1115 ac_prev=includedir ;;
1116 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1117 | --includ=* | --inclu=* | --incl=* | --inc=*)
1118 includedir=$ac_optarg ;;
1119
1120 -infodir | --infodir | --infodi | --infod | --info | --inf)
1121 ac_prev=infodir ;;
1122 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1123 infodir=$ac_optarg ;;
1124
1125 -libdir | --libdir | --libdi | --libd)
1126 ac_prev=libdir ;;
1127 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1128 libdir=$ac_optarg ;;
1129
1130 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1131 | --libexe | --libex | --libe)
1132 ac_prev=libexecdir ;;
1133 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1134 | --libexe=* | --libex=* | --libe=*)
1135 libexecdir=$ac_optarg ;;
1136
1137 -localedir | --localedir | --localedi | --localed | --locale)
1138 ac_prev=localedir ;;
1139 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1140 localedir=$ac_optarg ;;
1141
1142 -localstatedir | --localstatedir | --localstatedi | --localstated \
1143 | --localstate | --localstat | --localsta | --localst | --locals)
1144 ac_prev=localstatedir ;;
1145 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1146 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1147 localstatedir=$ac_optarg ;;
1148
1149 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1150 ac_prev=mandir ;;
1151 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1152 mandir=$ac_optarg ;;
1153
1154 -nfp | --nfp | --nf)
1155 # Obsolete; use --without-fp.
1156 with_fp=no ;;
1157
1158 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1159 | --no-cr | --no-c | -n)
1160 no_create=yes ;;
1161
1162 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1163 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1164 no_recursion=yes ;;
1165
1166 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1167 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1168 | --oldin | --oldi | --old | --ol | --o)
1169 ac_prev=oldincludedir ;;
1170 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1171 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1172 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1173 oldincludedir=$ac_optarg ;;
1174
1175 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1176 ac_prev=prefix ;;
1177 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1178 prefix=$ac_optarg ;;
1179
1180 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1181 | --program-pre | --program-pr | --program-p)
1182 ac_prev=program_prefix ;;
1183 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1184 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1185 program_prefix=$ac_optarg ;;
1186
1187 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1188 | --program-suf | --program-su | --program-s)
1189 ac_prev=program_suffix ;;
1190 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1191 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1192 program_suffix=$ac_optarg ;;
1193
1194 -program-transform-name | --program-transform-name \
1195 | --program-transform-nam | --program-transform-na \
1196 | --program-transform-n | --program-transform- \
1197 | --program-transform | --program-transfor \
1198 | --program-transfo | --program-transf \
1199 | --program-trans | --program-tran \
1200 | --progr-tra | --program-tr | --program-t)
1201 ac_prev=program_transform_name ;;
1202 -program-transform-name=* | --program-transform-name=* \
1203 | --program-transform-nam=* | --program-transform-na=* \
1204 | --program-transform-n=* | --program-transform-=* \
1205 | --program-transform=* | --program-transfor=* \
1206 | --program-transfo=* | --program-transf=* \
1207 | --program-trans=* | --program-tran=* \
1208 | --progr-tra=* | --program-tr=* | --program-t=*)
1209 program_transform_name=$ac_optarg ;;
1210
1211 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1212 ac_prev=pdfdir ;;
1213 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1214 pdfdir=$ac_optarg ;;
1215
1216 -psdir | --psdir | --psdi | --psd | --ps)
1217 ac_prev=psdir ;;
1218 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1219 psdir=$ac_optarg ;;
1220
1221 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1222 | -silent | --silent | --silen | --sile | --sil)
1223 silent=yes ;;
1224
1225 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1226 ac_prev=sbindir ;;
1227 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1228 | --sbi=* | --sb=*)
1229 sbindir=$ac_optarg ;;
1230
1231 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1232 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1233 | --sharedst | --shareds | --shared | --share | --shar \
1234 | --sha | --sh)
1235 ac_prev=sharedstatedir ;;
1236 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1237 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1238 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1239 | --sha=* | --sh=*)
1240 sharedstatedir=$ac_optarg ;;
1241
1242 -site | --site | --sit)
1243 ac_prev=site ;;
1244 -site=* | --site=* | --sit=*)
1245 site=$ac_optarg ;;
1246
1247 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1248 ac_prev=srcdir ;;
1249 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1250 srcdir=$ac_optarg ;;
1251
1252 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1253 | --syscon | --sysco | --sysc | --sys | --sy)
1254 ac_prev=sysconfdir ;;
1255 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1256 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1257 sysconfdir=$ac_optarg ;;
1258
1259 -target | --target | --targe | --targ | --tar | --ta | --t)
1260 ac_prev=target_alias ;;
1261 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1262 target_alias=$ac_optarg ;;
1263
1264 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1265 verbose=yes ;;
1266
1267 -version | --version | --versio | --versi | --vers | -V)
1268 ac_init_version=: ;;
1269
1270 -with-* | --with-*)
1271 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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--with-$ac_useropt_orig"
1283 ac_unrecognized_sep=', ';;
1284 esac
1285 eval with_$ac_useropt=\$ac_optarg ;;
1286
1287 -without-* | --without-*)
1288 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1289 # Reject names that are not valid shell variable names.
1290 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1291 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1292 { (exit 1); exit 1; }; }
1293 ac_useropt_orig=$ac_useropt
1294 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1295 case $ac_user_opts in
1296 *"
1297 "with_$ac_useropt"
1298 "*) ;;
1299 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1300 ac_unrecognized_sep=', ';;
1301 esac
1302 eval with_$ac_useropt=no ;;
1303
1304 --x)
1305 # Obsolete; use --with-x.
1306 with_x=yes ;;
1307
1308 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1309 | --x-incl | --x-inc | --x-in | --x-i)
1310 ac_prev=x_includes ;;
1311 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1312 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1313 x_includes=$ac_optarg ;;
1314
1315 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1316 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1317 ac_prev=x_libraries ;;
1318 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1319 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1320 x_libraries=$ac_optarg ;;
1321
1322 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1323 Try \`$0 --help' for more information." >&2
1324 { (exit 1); exit 1; }; }
1325 ;;
1326
1327 *=*)
1328 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1329 # Reject names that are not valid shell variable names.
1330 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1331 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1332 { (exit 1); exit 1; }; }
1333 eval $ac_envvar=\$ac_optarg
1334 export $ac_envvar ;;
1335
1336 *)
1337 # FIXME: should be removed in autoconf 3.0.
1338 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1339 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1340 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1341 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1342 ;;
1343
1344 esac
1345 done
1346
1347 if test -n "$ac_prev"; then
1348 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1349 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1350 { (exit 1); exit 1; }; }
1351 fi
1352
1353 if test -n "$ac_unrecognized_opts"; then
1354 case $enable_option_checking in
1355 no) ;;
1356 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1357 { (exit 1); exit 1; }; } ;;
1358 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1359 esac
1360 fi
1361
1362 # Check all directory arguments for consistency.
1363 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1364 datadir sysconfdir sharedstatedir localstatedir includedir \
1365 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1366 libdir localedir mandir
1367 do
1368 eval ac_val=\$$ac_var
1369 # Remove trailing slashes.
1370 case $ac_val in
1371 */ )
1372 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1373 eval $ac_var=\$ac_val;;
1374 esac
1375 # Be sure to have absolute directory names.
1376 case $ac_val in
1377 [\\/$]* | ?:[\\/]* ) continue;;
1378 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1379 esac
1380 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1381 { (exit 1); exit 1; }; }
1382 done
1383
1384 # There might be people who depend on the old broken behavior: `$host'
1385 # used to hold the argument of --host etc.
1386 # FIXME: To remove some day.
1387 build=$build_alias
1388 host=$host_alias
1389 target=$target_alias
1390
1391 # FIXME: To remove some day.
1392 if test "x$host_alias" != x; then
1393 if test "x$build_alias" = x; then
1394 cross_compiling=maybe
1395 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1396 If a cross compiler is detected then cross compile mode will be used." >&2
1397 elif test "x$build_alias" != "x$host_alias"; then
1398 cross_compiling=yes
1399 fi
1400 fi
1401
1402 ac_tool_prefix=
1403 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1404
1405 test "$silent" = yes && exec 6>/dev/null
1406
1407
1408 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1409 ac_ls_di=`ls -di .` &&
1410 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1411 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1412 { (exit 1); exit 1; }; }
1413 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1414 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1415 { (exit 1); exit 1; }; }
1416
1417
1418 # Find the source files, if location was not specified.
1419 if test -z "$srcdir"; then
1420 ac_srcdir_defaulted=yes
1421 # Try the directory containing this script, then the parent directory.
1422 ac_confdir=`$as_dirname -- "$as_myself" ||
1423 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1424 X"$as_myself" : 'X\(//\)[^/]' \| \
1425 X"$as_myself" : 'X\(//\)$' \| \
1426 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1427 $as_echo X"$as_myself" |
1428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1429 s//\1/
1430 q
1431 }
1432 /^X\(\/\/\)[^/].*/{
1433 s//\1/
1434 q
1435 }
1436 /^X\(\/\/\)$/{
1437 s//\1/
1438 q
1439 }
1440 /^X\(\/\).*/{
1441 s//\1/
1442 q
1443 }
1444 s/.*/./; q'`
1445 srcdir=$ac_confdir
1446 if test ! -r "$srcdir/$ac_unique_file"; then
1447 srcdir=..
1448 fi
1449 else
1450 ac_srcdir_defaulted=no
1451 fi
1452 if test ! -r "$srcdir/$ac_unique_file"; then
1453 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1454 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1455 { (exit 1); exit 1; }; }
1456 fi
1457 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1458 ac_abs_confdir=`(
1459 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1460 { (exit 1); exit 1; }; }
1461 pwd)`
1462 # When building in place, set srcdir=.
1463 if test "$ac_abs_confdir" = "$ac_pwd"; then
1464 srcdir=.
1465 fi
1466 # Remove unnecessary trailing slashes from srcdir.
1467 # Double slashes in file names in object file debugging info
1468 # mess up M-x gdb in Emacs.
1469 case $srcdir in
1470 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1471 esac
1472 for ac_var in $ac_precious_vars; do
1473 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1474 eval ac_env_${ac_var}_value=\$${ac_var}
1475 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1476 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1477 done
1478
1479 #
1480 # Report the --help message.
1481 #
1482 if test "$ac_init_help" = "long"; then
1483 # Omit some internal or obsolete options to make the list less imposing.
1484 # This message is too long to be a string in the A/UX 3.1 sh.
1485 cat <<_ACEOF
1486 \`configure' configures libuserdb 0.10 to adapt to many kinds of systems.
1487
1488 Usage: $0 [OPTION]... [VAR=VALUE]...
1489
1490 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1491 VAR=VALUE. See below for descriptions of some of the useful variables.
1492
1493 Defaults for the options are specified in brackets.
1494
1495 Configuration:
1496 -h, --help display this help and exit
1497 --help=short display options specific to this package
1498 --help=recursive display the short help of all the included packages
1499 -V, --version display version information and exit
1500 -q, --quiet, --silent do not print \`checking...' messages
1501 --cache-file=FILE cache test results in FILE [disabled]
1502 -C, --config-cache alias for \`--cache-file=config.cache'
1503 -n, --no-create do not create output files
1504 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1505
1506 Installation directories:
1507 --prefix=PREFIX install architecture-independent files in PREFIX
1508 [$ac_default_prefix]
1509 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1510 [PREFIX]
1511
1512 By default, \`make install' will install all the files in
1513 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1514 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1515 for instance \`--prefix=\$HOME'.
1516
1517 For better control, use the options below.
1518
1519 Fine tuning of the installation directories:
1520 --bindir=DIR user executables [EPREFIX/bin]
1521 --sbindir=DIR system admin executables [EPREFIX/sbin]
1522 --libexecdir=DIR program executables [EPREFIX/libexec]
1523 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1524 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1525 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1526 --libdir=DIR object code libraries [EPREFIX/lib]
1527 --includedir=DIR C header files [PREFIX/include]
1528 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1529 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1530 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1531 --infodir=DIR info documentation [DATAROOTDIR/info]
1532 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1533 --mandir=DIR man documentation [DATAROOTDIR/man]
1534 --docdir=DIR documentation root [DATAROOTDIR/doc/libuserdb]
1535 --htmldir=DIR html documentation [DOCDIR]
1536 --dvidir=DIR dvi documentation [DOCDIR]
1537 --pdfdir=DIR pdf documentation [DOCDIR]
1538 --psdir=DIR ps documentation [DOCDIR]
1539 _ACEOF
1540
1541 cat <<\_ACEOF
1542
1543 Program names:
1544 --program-prefix=PREFIX prepend PREFIX to installed program names
1545 --program-suffix=SUFFIX append SUFFIX to installed program names
1546 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1547
1548 System types:
1549 --build=BUILD configure for building on BUILD [guessed]
1550 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1551 _ACEOF
1552 fi
1553
1554 if test -n "$ac_init_help"; then
1555 case $ac_init_help in
1556 short | recursive ) echo "Configuration of libuserdb 0.10:";;
1557 esac
1558 cat <<\_ACEOF
1559
1560 Optional Features:
1561 --disable-option-checking ignore unrecognized --enable/--with options
1562 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1563 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1564 --disable-dependency-tracking speeds up one-time build
1565 --enable-dependency-tracking do not reject slow dependency extractors
1566 --enable-shared[=PKGS] build shared libraries [default=yes]
1567 --enable-static[=PKGS] build static libraries [default=yes]
1568 --enable-fast-install[=PKGS]
1569 optimize for fast installation [default=yes]
1570 --disable-libtool-lock avoid locking (might break parallel builds)
1571
1572 Optional Packages:
1573 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1574 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1575 --with-pic try to use only PIC/non-PIC objects [default=use
1576 both]
1577 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1578
1579 --with-random=/dev/urandom - location of the system random file generator
1580 --without-random - there is no system random file generator
1581
1582 Some influential environment variables:
1583 CC C compiler command
1584 CFLAGS C compiler flags
1585 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1586 nonstandard directory <lib dir>
1587 LIBS libraries to pass to the linker, e.g. -l<library>
1588 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1589 you have headers in a nonstandard directory <include dir>
1590 CPP C preprocessor
1591
1592 Use these variables to override the choices made by `configure' or to help
1593 it to find libraries and programs with nonstandard names/locations.
1594
1595 Report bugs to <courier-users@lists.sourceforge.net>.
1596 _ACEOF
1597 ac_status=$?
1598 fi
1599
1600 if test "$ac_init_help" = "recursive"; then
1601 # If there are subdirs, report their specific --help.
1602 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1603 test -d "$ac_dir" ||
1604 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1605 continue
1606 ac_builddir=.
1607
1608 case "$ac_dir" in
1609 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1610 *)
1611 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1612 # A ".." for each directory in $ac_dir_suffix.
1613 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1614 case $ac_top_builddir_sub in
1615 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1617 esac ;;
1618 esac
1619 ac_abs_top_builddir=$ac_pwd
1620 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1621 # for backward compatibility:
1622 ac_top_builddir=$ac_top_build_prefix
1623
1624 case $srcdir in
1625 .) # We are building in place.
1626 ac_srcdir=.
1627 ac_top_srcdir=$ac_top_builddir_sub
1628 ac_abs_top_srcdir=$ac_pwd ;;
1629 [\\/]* | ?:[\\/]* ) # Absolute name.
1630 ac_srcdir=$srcdir$ac_dir_suffix;
1631 ac_top_srcdir=$srcdir
1632 ac_abs_top_srcdir=$srcdir ;;
1633 *) # Relative name.
1634 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1635 ac_top_srcdir=$ac_top_build_prefix$srcdir
1636 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1637 esac
1638 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1639
1640 cd "$ac_dir" || { ac_status=$?; continue; }
1641 # Check for guested configure.
1642 if test -f "$ac_srcdir/configure.gnu"; then
1643 echo &&
1644 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1645 elif test -f "$ac_srcdir/configure"; then
1646 echo &&
1647 $SHELL "$ac_srcdir/configure" --help=recursive
1648 else
1649 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1650 fi || ac_status=$?
1651 cd "$ac_pwd" || { ac_status=$?; break; }
1652 done
1653 fi
1654
1655 test -n "$ac_init_help" && exit $ac_status
1656 if $ac_init_version; then
1657 cat <<\_ACEOF
1658 libuserdb configure 0.10
1659 generated by GNU Autoconf 2.63
1660
1661 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1662 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1663 This configure script is free software; the Free Software Foundation
1664 gives unlimited permission to copy, distribute and modify it.
1665 _ACEOF
1666 exit
1667 fi
1668 cat >config.log <<_ACEOF
1669 This file contains any messages produced by compilers while
1670 running configure, to aid debugging if configure makes a mistake.
1671
1672 It was created by libuserdb $as_me 0.10, which was
1673 generated by GNU Autoconf 2.63. Invocation command line was
1674
1675 $ $0 $@
1676
1677 _ACEOF
1678 exec 5>>config.log
1679 {
1680 cat <<_ASUNAME
1681 ## --------- ##
1682 ## Platform. ##
1683 ## --------- ##
1684
1685 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1686 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1687 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1688 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1689 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1690
1691 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1692 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1693
1694 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1695 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1696 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1697 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1698 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1699 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1700 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1701
1702 _ASUNAME
1703
1704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705 for as_dir in $PATH
1706 do
1707 IFS=$as_save_IFS
1708 test -z "$as_dir" && as_dir=.
1709 $as_echo "PATH: $as_dir"
1710 done
1711 IFS=$as_save_IFS
1712
1713 } >&5
1714
1715 cat >&5 <<_ACEOF
1716
1717
1718 ## ----------- ##
1719 ## Core tests. ##
1720 ## ----------- ##
1721
1722 _ACEOF
1723
1724
1725 # Keep a trace of the command line.
1726 # Strip out --no-create and --no-recursion so they do not pile up.
1727 # Strip out --silent because we don't want to record it for future runs.
1728 # Also quote any args containing shell meta-characters.
1729 # Make two passes to allow for proper duplicate-argument suppression.
1730 ac_configure_args=
1731 ac_configure_args0=
1732 ac_configure_args1=
1733 ac_must_keep_next=false
1734 for ac_pass in 1 2
1735 do
1736 for ac_arg
1737 do
1738 case $ac_arg in
1739 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1740 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1741 | -silent | --silent | --silen | --sile | --sil)
1742 continue ;;
1743 *\'*)
1744 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1745 esac
1746 case $ac_pass in
1747 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1748 2)
1749 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1750 if test $ac_must_keep_next = true; then
1751 ac_must_keep_next=false # Got value, back to normal.
1752 else
1753 case $ac_arg in
1754 *=* | --config-cache | -C | -disable-* | --disable-* \
1755 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1756 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1757 | -with-* | --with-* | -without-* | --without-* | --x)
1758 case "$ac_configure_args0 " in
1759 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1760 esac
1761 ;;
1762 -* ) ac_must_keep_next=true ;;
1763 esac
1764 fi
1765 ac_configure_args="$ac_configure_args '$ac_arg'"
1766 ;;
1767 esac
1768 done
1769 done
1770 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1771 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1772
1773 # When interrupted or exit'd, cleanup temporary files, and complete
1774 # config.log. We remove comments because anyway the quotes in there
1775 # would cause problems or look ugly.
1776 # WARNING: Use '\'' to represent an apostrophe within the trap.
1777 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1778 trap 'exit_status=$?
1779 # Save into config.log some information that might help in debugging.
1780 {
1781 echo
1782
1783 cat <<\_ASBOX
1784 ## ---------------- ##
1785 ## Cache variables. ##
1786 ## ---------------- ##
1787 _ASBOX
1788 echo
1789 # The following way of writing the cache mishandles newlines in values,
1790 (
1791 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1792 eval ac_val=\$$ac_var
1793 case $ac_val in #(
1794 *${as_nl}*)
1795 case $ac_var in #(
1796 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1797 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1798 esac
1799 case $ac_var in #(
1800 _ | IFS | as_nl) ;; #(
1801 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1802 *) $as_unset $ac_var ;;
1803 esac ;;
1804 esac
1805 done
1806 (set) 2>&1 |
1807 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1808 *${as_nl}ac_space=\ *)
1809 sed -n \
1810 "s/'\''/'\''\\\\'\'''\''/g;
1811 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1812 ;; #(
1813 *)
1814 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1815 ;;
1816 esac |
1817 sort
1818 )
1819 echo
1820
1821 cat <<\_ASBOX
1822 ## ----------------- ##
1823 ## Output variables. ##
1824 ## ----------------- ##
1825 _ASBOX
1826 echo
1827 for ac_var in $ac_subst_vars
1828 do
1829 eval ac_val=\$$ac_var
1830 case $ac_val in
1831 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1832 esac
1833 $as_echo "$ac_var='\''$ac_val'\''"
1834 done | sort
1835 echo
1836
1837 if test -n "$ac_subst_files"; then
1838 cat <<\_ASBOX
1839 ## ------------------- ##
1840 ## File substitutions. ##
1841 ## ------------------- ##
1842 _ASBOX
1843 echo
1844 for ac_var in $ac_subst_files
1845 do
1846 eval ac_val=\$$ac_var
1847 case $ac_val in
1848 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1849 esac
1850 $as_echo "$ac_var='\''$ac_val'\''"
1851 done | sort
1852 echo
1853 fi
1854
1855 if test -s confdefs.h; then
1856 cat <<\_ASBOX
1857 ## ----------- ##
1858 ## confdefs.h. ##
1859 ## ----------- ##
1860 _ASBOX
1861 echo
1862 cat confdefs.h
1863 echo
1864 fi
1865 test "$ac_signal" != 0 &&
1866 $as_echo "$as_me: caught signal $ac_signal"
1867 $as_echo "$as_me: exit $exit_status"
1868 } >&5
1869 rm -f core *.core core.conftest.* &&
1870 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1871 exit $exit_status
1872 ' 0
1873 for ac_signal in 1 2 13 15; do
1874 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1875 done
1876 ac_signal=0
1877
1878 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1879 rm -f -r conftest* confdefs.h
1880
1881 # Predefined preprocessor variables.
1882
1883 cat >>confdefs.h <<_ACEOF
1884 #define PACKAGE_NAME "$PACKAGE_NAME"
1885 _ACEOF
1886
1887
1888 cat >>confdefs.h <<_ACEOF
1889 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1890 _ACEOF
1891
1892
1893 cat >>confdefs.h <<_ACEOF
1894 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1895 _ACEOF
1896
1897
1898 cat >>confdefs.h <<_ACEOF
1899 #define PACKAGE_STRING "$PACKAGE_STRING"
1900 _ACEOF
1901
1902
1903 cat >>confdefs.h <<_ACEOF
1904 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1905 _ACEOF
1906
1907
1908 # Let the site file select an alternate cache file if it wants to.
1909 # Prefer an explicitly selected file to automatically selected ones.
1910 ac_site_file1=NONE
1911 ac_site_file2=NONE
1912 if test -n "$CONFIG_SITE"; then
1913 ac_site_file1=$CONFIG_SITE
1914 elif test "x$prefix" != xNONE; then
1915 ac_site_file1=$prefix/share/config.site
1916 ac_site_file2=$prefix/etc/config.site
1917 else
1918 ac_site_file1=$ac_default_prefix/share/config.site
1919 ac_site_file2=$ac_default_prefix/etc/config.site
1920 fi
1921 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1922 do
1923 test "x$ac_site_file" = xNONE && continue
1924 if test -r "$ac_site_file"; then
1925 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1926 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1927 sed 's/^/| /' "$ac_site_file" >&5
1928 . "$ac_site_file"
1929 fi
1930 done
1931
1932 if test -r "$cache_file"; then
1933 # Some versions of bash will fail to source /dev/null (special
1934 # files actually), so we avoid doing that.
1935 if test -f "$cache_file"; then
1936 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1937 $as_echo "$as_me: loading cache $cache_file" >&6;}
1938 case $cache_file in
1939 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1940 *) . "./$cache_file";;
1941 esac
1942 fi
1943 else
1944 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1945 $as_echo "$as_me: creating cache $cache_file" >&6;}
1946 >$cache_file
1947 fi
1948
1949 # Check that the precious variables saved in the cache have kept the same
1950 # value.
1951 ac_cache_corrupted=false
1952 for ac_var in $ac_precious_vars; do
1953 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1954 eval ac_new_set=\$ac_env_${ac_var}_set
1955 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1956 eval ac_new_val=\$ac_env_${ac_var}_value
1957 case $ac_old_set,$ac_new_set in
1958 set,)
1959 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1960 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1961 ac_cache_corrupted=: ;;
1962 ,set)
1963 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1964 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1965 ac_cache_corrupted=: ;;
1966 ,);;
1967 *)
1968 if test "x$ac_old_val" != "x$ac_new_val"; then
1969 # differences in whitespace do not lead to failure.
1970 ac_old_val_w=`echo x $ac_old_val`
1971 ac_new_val_w=`echo x $ac_new_val`
1972 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1973 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1974 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1975 ac_cache_corrupted=:
1976 else
1977 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1978 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1979 eval $ac_var=\$ac_old_val
1980 fi
1981 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1982 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1983 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1984 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1985 fi;;
1986 esac
1987 # Pass precious variables to config.status.
1988 if test "$ac_new_set" = set; then
1989 case $ac_new_val in
1990 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1991 *) ac_arg=$ac_var=$ac_new_val ;;
1992 esac
1993 case " $ac_configure_args " in
1994 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1995 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1996 esac
1997 fi
1998 done
1999 if $ac_cache_corrupted; then
2000 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2001 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2002 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2003 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2004 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2005 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2006 { (exit 1); exit 1; }; }
2007 fi
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033 ac_ext=c
2034 ac_cpp='$CPP $CPPFLAGS'
2035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2038
2039
2040
2041 >confdefs.h # Kill PACKAGE_ macros.
2042
2043 LPATH="$PATH:/usr/local/bin"
2044
2045
2046 am__api_version='1.11'
2047
2048 ac_aux_dir=
2049 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2050 if test -f "$ac_dir/install-sh"; then
2051 ac_aux_dir=$ac_dir
2052 ac_install_sh="$ac_aux_dir/install-sh -c"
2053 break
2054 elif test -f "$ac_dir/install.sh"; then
2055 ac_aux_dir=$ac_dir
2056 ac_install_sh="$ac_aux_dir/install.sh -c"
2057 break
2058 elif test -f "$ac_dir/shtool"; then
2059 ac_aux_dir=$ac_dir
2060 ac_install_sh="$ac_aux_dir/shtool install -c"
2061 break
2062 fi
2063 done
2064 if test -z "$ac_aux_dir"; then
2065 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2066 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2067 { (exit 1); exit 1; }; }
2068 fi
2069
2070 # These three variables are undocumented and unsupported,
2071 # and are intended to be withdrawn in a future Autoconf release.
2072 # They can cause serious problems if a builder's source tree is in a directory
2073 # whose full name contains unusual characters.
2074 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2075 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2076 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2077
2078
2079 # Find a good install program. We prefer a C program (faster),
2080 # so one script is as good as another. But avoid the broken or
2081 # incompatible versions:
2082 # SysV /etc/install, /usr/sbin/install
2083 # SunOS /usr/etc/install
2084 # IRIX /sbin/install
2085 # AIX /bin/install
2086 # AmigaOS /C/install, which installs bootblocks on floppy discs
2087 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2088 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2089 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2090 # OS/2's system install, which has a completely different semantic
2091 # ./install, which can be erroneously created by make from ./install.sh.
2092 # Reject install programs that cannot install multiple files.
2093 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2094 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2095 if test -z "$INSTALL"; then
2096 if test "${ac_cv_path_install+set}" = set; then
2097 $as_echo_n "(cached) " >&6
2098 else
2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100 for as_dir in $PATH
2101 do
2102 IFS=$as_save_IFS
2103 test -z "$as_dir" && as_dir=.
2104 # Account for people who put trailing slashes in PATH elements.
2105 case $as_dir/ in
2106 ./ | .// | /cC/* | \
2107 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2108 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2109 /usr/ucb/* ) ;;
2110 *)
2111 # OSF1 and SCO ODT 3.0 have their own names for install.
2112 # Don't use installbsd from OSF since it installs stuff as root
2113 # by default.
2114 for ac_prog in ginstall scoinst install; do
2115 for ac_exec_ext in '' $ac_executable_extensions; do
2116 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2117 if test $ac_prog = install &&
2118 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2119 # AIX install. It has an incompatible calling convention.
2120 :
2121 elif test $ac_prog = install &&
2122 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2123 # program-specific install script used by HP pwplus--don't use.
2124 :
2125 else
2126 rm -rf conftest.one conftest.two conftest.dir
2127 echo one > conftest.one
2128 echo two > conftest.two
2129 mkdir conftest.dir
2130 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2131 test -s conftest.one && test -s conftest.two &&
2132 test -s conftest.dir/conftest.one &&
2133 test -s conftest.dir/conftest.two
2134 then
2135 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2136 break 3
2137 fi
2138 fi
2139 fi
2140 done
2141 done
2142 ;;
2143 esac
2144
2145 done
2146 IFS=$as_save_IFS
2147
2148 rm -rf conftest.one conftest.two conftest.dir
2149
2150 fi
2151 if test "${ac_cv_path_install+set}" = set; then
2152 INSTALL=$ac_cv_path_install
2153 else
2154 # As a last resort, use the slow shell script. Don't cache a
2155 # value for INSTALL within a source directory, because that will
2156 # break other packages using the cache if that directory is
2157 # removed, or if the value is a relative name.
2158 INSTALL=$ac_install_sh
2159 fi
2160 fi
2161 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2162 $as_echo "$INSTALL" >&6; }
2163
2164 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2165 # It thinks the first close brace ends the variable substitution.
2166 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2167
2168 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2169
2170 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2171
2172 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2173 $as_echo_n "checking whether build environment is sane... " >&6; }
2174 # Just in case
2175 sleep 1
2176 echo timestamp > conftest.file
2177 # Reject unsafe characters in $srcdir or the absolute working directory
2178 # name. Accept space and tab only in the latter.
2179 am_lf='
2180 '
2181 case `pwd` in
2182 *[\\\"\#\$\&\'\`$am_lf]*)
2183 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2184 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2185 { (exit 1); exit 1; }; };;
2186 esac
2187 case $srcdir in
2188 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2189 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2190 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2191 { (exit 1); exit 1; }; };;
2192 esac
2193
2194 # Do `set' in a subshell so we don't clobber the current shell's
2195 # arguments. Must try -L first in case configure is actually a
2196 # symlink; some systems play weird games with the mod time of symlinks
2197 # (eg FreeBSD returns the mod time of the symlink's containing
2198 # directory).
2199 if (
2200 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2201 if test "$*" = "X"; then
2202 # -L didn't work.
2203 set X `ls -t "$srcdir/configure" conftest.file`
2204 fi
2205 rm -f conftest.file
2206 if test "$*" != "X $srcdir/configure conftest.file" \
2207 && test "$*" != "X conftest.file $srcdir/configure"; then
2208
2209 # If neither matched, then we have a broken ls. This can happen
2210 # if, for instance, CONFIG_SHELL is bash and it inherits a
2211 # broken ls alias from the environment. This has actually
2212 # happened. Such a system could not be considered "sane".
2213 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2214 alias in your environment" >&5
2215 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2216 alias in your environment" >&2;}
2217 { (exit 1); exit 1; }; }
2218 fi
2219
2220 test "$2" = conftest.file
2221 )
2222 then
2223 # Ok.
2224 :
2225 else
2226 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2227 Check your system clock" >&5
2228 $as_echo "$as_me: error: newly created file is older than distributed files!
2229 Check your system clock" >&2;}
2230 { (exit 1); exit 1; }; }
2231 fi
2232 { $as_echo "$as_me:$LINENO: result: yes" >&5
2233 $as_echo "yes" >&6; }
2234 test "$program_prefix" != NONE &&
2235 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2236 # Use a double $ so make ignores it.
2237 test "$program_suffix" != NONE &&
2238 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2239 # Double any \ or $.
2240 # By default was `s,x,x', remove it if useless.
2241 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2242 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2243
2244 # expand $ac_aux_dir to an absolute path
2245 am_aux_dir=`cd $ac_aux_dir && pwd`
2246
2247 if test x"${MISSING+set}" != xset; then
2248 case $am_aux_dir in
2249 *\ * | *\ *)
2250 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2251 *)
2252 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2253 esac
2254 fi
2255 # Use eval to expand $SHELL
2256 if eval "$MISSING --run true"; then
2257 am_missing_run="$MISSING --run "
2258 else
2259 am_missing_run=
2260 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2261 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2262 fi
2263
2264 if test x"${install_sh}" != xset; then
2265 case $am_aux_dir in
2266 *\ * | *\ *)
2267 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2268 *)
2269 install_sh="\${SHELL} $am_aux_dir/install-sh"
2270 esac
2271 fi
2272
2273 # Installed binaries are usually stripped using `strip' when the user
2274 # run `make install-strip'. However `strip' might not be the right
2275 # tool to use in cross-compilation environments, therefore Automake
2276 # will honor the `STRIP' environment variable to overrule this program.
2277 if test "$cross_compiling" != no; then
2278 if test -n "$ac_tool_prefix"; then
2279 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2280 set dummy ${ac_tool_prefix}strip; ac_word=$2
2281 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2282 $as_echo_n "checking for $ac_word... " >&6; }
2283 if test "${ac_cv_prog_STRIP+set}" = set; then
2284 $as_echo_n "(cached) " >&6
2285 else
2286 if test -n "$STRIP"; then
2287 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2288 else
2289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290 for as_dir in $PATH
2291 do
2292 IFS=$as_save_IFS
2293 test -z "$as_dir" && as_dir=.
2294 for ac_exec_ext in '' $ac_executable_extensions; do
2295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2296 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2297 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2298 break 2
2299 fi
2300 done
2301 done
2302 IFS=$as_save_IFS
2303
2304 fi
2305 fi
2306 STRIP=$ac_cv_prog_STRIP
2307 if test -n "$STRIP"; then
2308 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2309 $as_echo "$STRIP" >&6; }
2310 else
2311 { $as_echo "$as_me:$LINENO: result: no" >&5
2312 $as_echo "no" >&6; }
2313 fi
2314
2315
2316 fi
2317 if test -z "$ac_cv_prog_STRIP"; then
2318 ac_ct_STRIP=$STRIP
2319 # Extract the first word of "strip", so it can be a program name with args.
2320 set dummy strip; ac_word=$2
2321 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2322 $as_echo_n "checking for $ac_word... " >&6; }
2323 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2324 $as_echo_n "(cached) " >&6
2325 else
2326 if test -n "$ac_ct_STRIP"; then
2327 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2328 else
2329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330 for as_dir in $PATH
2331 do
2332 IFS=$as_save_IFS
2333 test -z "$as_dir" && as_dir=.
2334 for ac_exec_ext in '' $ac_executable_extensions; do
2335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2336 ac_cv_prog_ac_ct_STRIP="strip"
2337 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2338 break 2
2339 fi
2340 done
2341 done
2342 IFS=$as_save_IFS
2343
2344 fi
2345 fi
2346 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2347 if test -n "$ac_ct_STRIP"; then
2348 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2349 $as_echo "$ac_ct_STRIP" >&6; }
2350 else
2351 { $as_echo "$as_me:$LINENO: result: no" >&5
2352 $as_echo "no" >&6; }
2353 fi
2354
2355 if test "x$ac_ct_STRIP" = x; then
2356 STRIP=":"
2357 else
2358 case $cross_compiling:$ac_tool_warned in
2359 yes:)
2360 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2361 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2362 ac_tool_warned=yes ;;
2363 esac
2364 STRIP=$ac_ct_STRIP
2365 fi
2366 else
2367 STRIP="$ac_cv_prog_STRIP"
2368 fi
2369
2370 fi
2371 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2372
2373 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2374 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2375 if test -z "$MKDIR_P"; then
2376 if test "${ac_cv_path_mkdir+set}" = set; then
2377 $as_echo_n "(cached) " >&6
2378 else
2379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2381 do
2382 IFS=$as_save_IFS
2383 test -z "$as_dir" && as_dir=.
2384 for ac_prog in mkdir gmkdir; do
2385 for ac_exec_ext in '' $ac_executable_extensions; do
2386 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2387 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2388 'mkdir (GNU coreutils) '* | \
2389 'mkdir (coreutils) '* | \
2390 'mkdir (fileutils) '4.1*)
2391 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2392 break 3;;
2393 esac
2394 done
2395 done
2396 done
2397 IFS=$as_save_IFS
2398
2399 fi
2400
2401 if test "${ac_cv_path_mkdir+set}" = set; then
2402 MKDIR_P="$ac_cv_path_mkdir -p"
2403 else
2404 # As a last resort, use the slow shell script. Don't cache a
2405 # value for MKDIR_P within a source directory, because that will
2406 # break other packages using the cache if that directory is
2407 # removed, or if the value is a relative name.
2408 test -d ./--version && rmdir ./--version
2409 MKDIR_P="$ac_install_sh -d"
2410 fi
2411 fi
2412 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2413 $as_echo "$MKDIR_P" >&6; }
2414
2415 mkdir_p="$MKDIR_P"
2416 case $mkdir_p in
2417 [\\/$]* | ?:[\\/]*) ;;
2418 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2419 esac
2420
2421 for ac_prog in gawk mawk nawk awk
2422 do
2423 # Extract the first word of "$ac_prog", so it can be a program name with args.
2424 set dummy $ac_prog; ac_word=$2
2425 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2426 $as_echo_n "checking for $ac_word... " >&6; }
2427 if test "${ac_cv_prog_AWK+set}" = set; then
2428 $as_echo_n "(cached) " >&6
2429 else
2430 if test -n "$AWK"; then
2431 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2432 else
2433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434 for as_dir in $PATH
2435 do
2436 IFS=$as_save_IFS
2437 test -z "$as_dir" && as_dir=.
2438 for ac_exec_ext in '' $ac_executable_extensions; do
2439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2440 ac_cv_prog_AWK="$ac_prog"
2441 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2442 break 2
2443 fi
2444 done
2445 done
2446 IFS=$as_save_IFS
2447
2448 fi
2449 fi
2450 AWK=$ac_cv_prog_AWK
2451 if test -n "$AWK"; then
2452 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2453 $as_echo "$AWK" >&6; }
2454 else
2455 { $as_echo "$as_me:$LINENO: result: no" >&5
2456 $as_echo "no" >&6; }
2457 fi
2458
2459
2460 test -n "$AWK" && break
2461 done
2462
2463 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2464 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2465 set x ${MAKE-make}
2466 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2467 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2468 $as_echo_n "(cached) " >&6
2469 else
2470 cat >conftest.make <<\_ACEOF
2471 SHELL = /bin/sh
2472 all:
2473 @echo '@@@%%%=$(MAKE)=@@@%%%'
2474 _ACEOF
2475 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2476 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2477 *@@@%%%=?*=@@@%%%*)
2478 eval ac_cv_prog_make_${ac_make}_set=yes;;
2479 *)
2480 eval ac_cv_prog_make_${ac_make}_set=no;;
2481 esac
2482 rm -f conftest.make
2483 fi
2484 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2485 { $as_echo "$as_me:$LINENO: result: yes" >&5
2486 $as_echo "yes" >&6; }
2487 SET_MAKE=
2488 else
2489 { $as_echo "$as_me:$LINENO: result: no" >&5
2490 $as_echo "no" >&6; }
2491 SET_MAKE="MAKE=${MAKE-make}"
2492 fi
2493
2494 rm -rf .tst 2>/dev/null
2495 mkdir .tst 2>/dev/null
2496 if test -d .tst; then
2497 am__leading_dot=.
2498 else
2499 am__leading_dot=_
2500 fi
2501 rmdir .tst 2>/dev/null
2502
2503 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2504 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2505 # is not polluted with repeated "-I."
2506 am__isrc=' -I$(srcdir)'
2507 # test to see if srcdir already configured
2508 if test -f $srcdir/config.status; then
2509 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2510 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2511 { (exit 1); exit 1; }; }
2512 fi
2513 fi
2514
2515 # test whether we have cygpath
2516 if test -z "$CYGPATH_W"; then
2517 if (cygpath --version) >/dev/null 2>/dev/null; then
2518 CYGPATH_W='cygpath -w'
2519 else
2520 CYGPATH_W=echo
2521 fi
2522 fi
2523
2524
2525 # Define the identity of the package.
2526 PACKAGE='libuserdb'
2527 VERSION='0.10'
2528
2529
2530 # Some tools Automake needs.
2531
2532 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2533
2534
2535 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2536
2537
2538 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2539
2540
2541 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2542
2543
2544 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2545
2546 # We need awk for the "check" target. The system "awk" is bad on
2547 # some platforms.
2548 # Always define AMTAR for backward compatibility.
2549
2550 AMTAR=${AMTAR-"${am_missing_run}tar"}
2551
2552 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2553
2554
2555
2556
2557
2558
2559 for ac_prog in gawk mawk nawk awk
2560 do
2561 # Extract the first word of "$ac_prog", so it can be a program name with args.
2562 set dummy $ac_prog; ac_word=$2
2563 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2564 $as_echo_n "checking for $ac_word... " >&6; }
2565 if test "${ac_cv_prog_AWK+set}" = set; then
2566 $as_echo_n "(cached) " >&6
2567 else
2568 if test -n "$AWK"; then
2569 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2570 else
2571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572 for as_dir in $PATH
2573 do
2574 IFS=$as_save_IFS
2575 test -z "$as_dir" && as_dir=.
2576 for ac_exec_ext in '' $ac_executable_extensions; do
2577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2578 ac_cv_prog_AWK="$ac_prog"
2579 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2580 break 2
2581 fi
2582 done
2583 done
2584 IFS=$as_save_IFS
2585
2586 fi
2587 fi
2588 AWK=$ac_cv_prog_AWK
2589 if test -n "$AWK"; then
2590 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2591 $as_echo "$AWK" >&6; }
2592 else
2593 { $as_echo "$as_me:$LINENO: result: no" >&5
2594 $as_echo "no" >&6; }
2595 fi
2596
2597
2598 test -n "$AWK" && break
2599 done
2600
2601 ac_ext=c
2602 ac_cpp='$CPP $CPPFLAGS'
2603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2606 if test -n "$ac_tool_prefix"; then
2607 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2608 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2609 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2610 $as_echo_n "checking for $ac_word... " >&6; }
2611 if test "${ac_cv_prog_CC+set}" = set; then
2612 $as_echo_n "(cached) " >&6
2613 else
2614 if test -n "$CC"; then
2615 ac_cv_prog_CC="$CC" # Let the user override the test.
2616 else
2617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618 for as_dir in $PATH
2619 do
2620 IFS=$as_save_IFS
2621 test -z "$as_dir" && as_dir=.
2622 for ac_exec_ext in '' $ac_executable_extensions; do
2623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2624 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2625 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2626 break 2
2627 fi
2628 done
2629 done
2630 IFS=$as_save_IFS
2631
2632 fi
2633 fi
2634 CC=$ac_cv_prog_CC
2635 if test -n "$CC"; then
2636 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2637 $as_echo "$CC" >&6; }
2638 else
2639 { $as_echo "$as_me:$LINENO: result: no" >&5
2640 $as_echo "no" >&6; }
2641 fi
2642
2643
2644 fi
2645 if test -z "$ac_cv_prog_CC"; then
2646 ac_ct_CC=$CC
2647 # Extract the first word of "gcc", so it can be a program name with args.
2648 set dummy gcc; ac_word=$2
2649 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2650 $as_echo_n "checking for $ac_word... " >&6; }
2651 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2652 $as_echo_n "(cached) " >&6
2653 else
2654 if test -n "$ac_ct_CC"; then
2655 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2656 else
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 for as_dir in $PATH
2659 do
2660 IFS=$as_save_IFS
2661 test -z "$as_dir" && as_dir=.
2662 for ac_exec_ext in '' $ac_executable_extensions; do
2663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2664 ac_cv_prog_ac_ct_CC="gcc"
2665 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2666 break 2
2667 fi
2668 done
2669 done
2670 IFS=$as_save_IFS
2671
2672 fi
2673 fi
2674 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2675 if test -n "$ac_ct_CC"; then
2676 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2677 $as_echo "$ac_ct_CC" >&6; }
2678 else
2679 { $as_echo "$as_me:$LINENO: result: no" >&5
2680 $as_echo "no" >&6; }
2681 fi
2682
2683 if test "x$ac_ct_CC" = x; then
2684 CC=""
2685 else
2686 case $cross_compiling:$ac_tool_warned in
2687 yes:)
2688 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2690 ac_tool_warned=yes ;;
2691 esac
2692 CC=$ac_ct_CC
2693 fi
2694 else
2695 CC="$ac_cv_prog_CC"
2696 fi
2697
2698 if test -z "$CC"; then
2699 if test -n "$ac_tool_prefix"; then
2700 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2701 set dummy ${ac_tool_prefix}cc; ac_word=$2
2702 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2703 $as_echo_n "checking for $ac_word... " >&6; }
2704 if test "${ac_cv_prog_CC+set}" = set; then
2705 $as_echo_n "(cached) " >&6
2706 else
2707 if test -n "$CC"; then
2708 ac_cv_prog_CC="$CC" # Let the user override the test.
2709 else
2710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711 for as_dir in $PATH
2712 do
2713 IFS=$as_save_IFS
2714 test -z "$as_dir" && as_dir=.
2715 for ac_exec_ext in '' $ac_executable_extensions; do
2716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2717 ac_cv_prog_CC="${ac_tool_prefix}cc"
2718 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2719 break 2
2720 fi
2721 done
2722 done
2723 IFS=$as_save_IFS
2724
2725 fi
2726 fi
2727 CC=$ac_cv_prog_CC
2728 if test -n "$CC"; then
2729 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2730 $as_echo "$CC" >&6; }
2731 else
2732 { $as_echo "$as_me:$LINENO: result: no" >&5
2733 $as_echo "no" >&6; }
2734 fi
2735
2736
2737 fi
2738 fi
2739 if test -z "$CC"; then
2740 # Extract the first word of "cc", so it can be a program name with args.
2741 set dummy cc; ac_word=$2
2742 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2743 $as_echo_n "checking for $ac_word... " >&6; }
2744 if test "${ac_cv_prog_CC+set}" = set; then
2745 $as_echo_n "(cached) " >&6
2746 else
2747 if test -n "$CC"; then
2748 ac_cv_prog_CC="$CC" # Let the user override the test.
2749 else
2750 ac_prog_rejected=no
2751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752 for as_dir in $PATH
2753 do
2754 IFS=$as_save_IFS
2755 test -z "$as_dir" && as_dir=.
2756 for ac_exec_ext in '' $ac_executable_extensions; do
2757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2758 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2759 ac_prog_rejected=yes
2760 continue
2761 fi
2762 ac_cv_prog_CC="cc"
2763 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2764 break 2
2765 fi
2766 done
2767 done
2768 IFS=$as_save_IFS
2769
2770 if test $ac_prog_rejected = yes; then
2771 # We found a bogon in the path, so make sure we never use it.
2772 set dummy $ac_cv_prog_CC
2773 shift
2774 if test $# != 0; then
2775 # We chose a different compiler from the bogus one.
2776 # However, it has the same basename, so the bogon will be chosen
2777 # first if we set CC to just the basename; use the full file name.
2778 shift
2779 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2780 fi
2781 fi
2782 fi
2783 fi
2784 CC=$ac_cv_prog_CC
2785 if test -n "$CC"; then
2786 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2787 $as_echo "$CC" >&6; }
2788 else
2789 { $as_echo "$as_me:$LINENO: result: no" >&5
2790 $as_echo "no" >&6; }
2791 fi
2792
2793
2794 fi
2795 if test -z "$CC"; then
2796 if test -n "$ac_tool_prefix"; then
2797 for ac_prog in cl.exe
2798 do
2799 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2800 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2801 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2802 $as_echo_n "checking for $ac_word... " >&6; }
2803 if test "${ac_cv_prog_CC+set}" = set; then
2804 $as_echo_n "(cached) " >&6
2805 else
2806 if test -n "$CC"; then
2807 ac_cv_prog_CC="$CC" # Let the user override the test.
2808 else
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810 for as_dir in $PATH
2811 do
2812 IFS=$as_save_IFS
2813 test -z "$as_dir" && as_dir=.
2814 for ac_exec_ext in '' $ac_executable_extensions; do
2815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2816 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2817 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2818 break 2
2819 fi
2820 done
2821 done
2822 IFS=$as_save_IFS
2823
2824 fi
2825 fi
2826 CC=$ac_cv_prog_CC
2827 if test -n "$CC"; then
2828 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2829 $as_echo "$CC" >&6; }
2830 else
2831 { $as_echo "$as_me:$LINENO: result: no" >&5
2832 $as_echo "no" >&6; }
2833 fi
2834
2835
2836 test -n "$CC" && break
2837 done
2838 fi
2839 if test -z "$CC"; then
2840 ac_ct_CC=$CC
2841 for ac_prog in cl.exe
2842 do
2843 # Extract the first word of "$ac_prog", so it can be a program name with args.
2844 set dummy $ac_prog; ac_word=$2
2845 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2846 $as_echo_n "checking for $ac_word... " >&6; }
2847 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2848 $as_echo_n "(cached) " >&6
2849 else
2850 if test -n "$ac_ct_CC"; then
2851 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2852 else
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854 for as_dir in $PATH
2855 do
2856 IFS=$as_save_IFS
2857 test -z "$as_dir" && as_dir=.
2858 for ac_exec_ext in '' $ac_executable_extensions; do
2859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2860 ac_cv_prog_ac_ct_CC="$ac_prog"
2861 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2862 break 2
2863 fi
2864 done
2865 done
2866 IFS=$as_save_IFS
2867
2868 fi
2869 fi
2870 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2871 if test -n "$ac_ct_CC"; then
2872 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2873 $as_echo "$ac_ct_CC" >&6; }
2874 else
2875 { $as_echo "$as_me:$LINENO: result: no" >&5
2876 $as_echo "no" >&6; }
2877 fi
2878
2879
2880 test -n "$ac_ct_CC" && break
2881 done
2882
2883 if test "x$ac_ct_CC" = x; then
2884 CC=""
2885 else
2886 case $cross_compiling:$ac_tool_warned in
2887 yes:)
2888 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2890 ac_tool_warned=yes ;;
2891 esac
2892 CC=$ac_ct_CC
2893 fi
2894 fi
2895
2896 fi
2897
2898
2899 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2901 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2902 See \`config.log' for more details." >&5
2903 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2904 See \`config.log' for more details." >&2;}
2905 { (exit 1); exit 1; }; }; }
2906
2907 # Provide some information about the compiler.
2908 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2909 set X $ac_compile
2910 ac_compiler=$2
2911 { (ac_try="$ac_compiler --version >&5"
2912 case "(($ac_try" in
2913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914 *) ac_try_echo=$ac_try;;
2915 esac
2916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2917 $as_echo "$ac_try_echo") >&5
2918 (eval "$ac_compiler --version >&5") 2>&5
2919 ac_status=$?
2920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }
2922 { (ac_try="$ac_compiler -v >&5"
2923 case "(($ac_try" in
2924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925 *) ac_try_echo=$ac_try;;
2926 esac
2927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2928 $as_echo "$ac_try_echo") >&5
2929 (eval "$ac_compiler -v >&5") 2>&5
2930 ac_status=$?
2931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); }
2933 { (ac_try="$ac_compiler -V >&5"
2934 case "(($ac_try" in
2935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936 *) ac_try_echo=$ac_try;;
2937 esac
2938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2939 $as_echo "$ac_try_echo") >&5
2940 (eval "$ac_compiler -V >&5") 2>&5
2941 ac_status=$?
2942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); }
2944
2945 cat >conftest.$ac_ext <<_ACEOF
2946 /* confdefs.h. */
2947 _ACEOF
2948 cat confdefs.h >>conftest.$ac_ext
2949 cat >>conftest.$ac_ext <<_ACEOF
2950 /* end confdefs.h. */
2951
2952 int
2953 main ()
2954 {
2955
2956 ;
2957 return 0;
2958 }
2959 _ACEOF
2960 ac_clean_files_save=$ac_clean_files
2961 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2962 # Try to create an executable without -o first, disregard a.out.
2963 # It will help us diagnose broken compilers, and finding out an intuition
2964 # of exeext.
2965 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2966 $as_echo_n "checking for C compiler default output file name... " >&6; }
2967 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2968
2969 # The possible output files:
2970 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2971
2972 ac_rmfiles=
2973 for ac_file in $ac_files
2974 do
2975 case $ac_file in
2976 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2977 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2978 esac
2979 done
2980 rm -f $ac_rmfiles
2981
2982 if { (ac_try="$ac_link_default"
2983 case "(($ac_try" in
2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2986 esac
2987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2988 $as_echo "$ac_try_echo") >&5
2989 (eval "$ac_link_default") 2>&5
2990 ac_status=$?
2991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); }; then
2993 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2994 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2995 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2996 # so that the user can short-circuit this test for compilers unknown to
2997 # Autoconf.
2998 for ac_file in $ac_files ''
2999 do
3000 test -f "$ac_file" || continue
3001 case $ac_file in
3002 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3003 ;;
3004 [ab].out )
3005 # We found the default executable, but exeext='' is most
3006 # certainly right.
3007 break;;
3008 *.* )
3009 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3010 then :; else
3011 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3012 fi
3013 # We set ac_cv_exeext here because the later test for it is not
3014 # safe: cross compilers may not add the suffix if given an `-o'
3015 # argument, so we may need to know it at that point already.
3016 # Even if this section looks crufty: it has the advantage of
3017 # actually working.
3018 break;;
3019 * )
3020 break;;
3021 esac
3022 done
3023 test "$ac_cv_exeext" = no && ac_cv_exeext=
3024
3025 else
3026 ac_file=''
3027 fi
3028
3029 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3030 $as_echo "$ac_file" >&6; }
3031 if test -z "$ac_file"; then
3032 $as_echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.$ac_ext >&5
3034
3035 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3036 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3037 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3038 See \`config.log' for more details." >&5
3039 $as_echo "$as_me: error: C compiler cannot create executables
3040 See \`config.log' for more details." >&2;}
3041 { (exit 77); exit 77; }; }; }
3042 fi
3043
3044 ac_exeext=$ac_cv_exeext
3045
3046 # Check that the compiler produces executables we can run. If not, either
3047 # the compiler is broken, or we cross compile.
3048 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3049 $as_echo_n "checking whether the C compiler works... " >&6; }
3050 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3051 # If not cross compiling, check that we can run a simple program.
3052 if test "$cross_compiling" != yes; then
3053 if { ac_try='./$ac_file'
3054 { (case "(($ac_try" in
3055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056 *) ac_try_echo=$ac_try;;
3057 esac
3058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3059 $as_echo "$ac_try_echo") >&5
3060 (eval "$ac_try") 2>&5
3061 ac_status=$?
3062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); }; }; then
3064 cross_compiling=no
3065 else
3066 if test "$cross_compiling" = maybe; then
3067 cross_compiling=yes
3068 else
3069 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3071 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3072 If you meant to cross compile, use \`--host'.
3073 See \`config.log' for more details." >&5
3074 $as_echo "$as_me: error: cannot run C compiled programs.
3075 If you meant to cross compile, use \`--host'.
3076 See \`config.log' for more details." >&2;}
3077 { (exit 1); exit 1; }; }; }
3078 fi
3079 fi
3080 fi
3081 { $as_echo "$as_me:$LINENO: result: yes" >&5
3082 $as_echo "yes" >&6; }
3083
3084 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3085 ac_clean_files=$ac_clean_files_save
3086 # Check that the compiler produces executables we can run. If not, either
3087 # the compiler is broken, or we cross compile.
3088 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3089 $as_echo_n "checking whether we are cross compiling... " >&6; }
3090 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3091 $as_echo "$cross_compiling" >&6; }
3092
3093 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3094 $as_echo_n "checking for suffix of executables... " >&6; }
3095 if { (ac_try="$ac_link"
3096 case "(($ac_try" in
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3099 esac
3100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3101 $as_echo "$ac_try_echo") >&5
3102 (eval "$ac_link") 2>&5
3103 ac_status=$?
3104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); }; then
3106 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3107 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3108 # work properly (i.e., refer to `conftest.exe'), while it won't with
3109 # `rm'.
3110 for ac_file in conftest.exe conftest conftest.*; do
3111 test -f "$ac_file" || continue
3112 case $ac_file in
3113 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3114 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3115 break;;
3116 * ) break;;
3117 esac
3118 done
3119 else
3120 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3122 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3123 See \`config.log' for more details." >&5
3124 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3125 See \`config.log' for more details." >&2;}
3126 { (exit 1); exit 1; }; }; }
3127 fi
3128
3129 rm -f conftest$ac_cv_exeext
3130 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3131 $as_echo "$ac_cv_exeext" >&6; }
3132
3133 rm -f conftest.$ac_ext
3134 EXEEXT=$ac_cv_exeext
3135 ac_exeext=$EXEEXT
3136 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3137 $as_echo_n "checking for suffix of object files... " >&6; }
3138 if test "${ac_cv_objext+set}" = set; then
3139 $as_echo_n "(cached) " >&6
3140 else
3141 cat >conftest.$ac_ext <<_ACEOF
3142 /* confdefs.h. */
3143 _ACEOF
3144 cat confdefs.h >>conftest.$ac_ext
3145 cat >>conftest.$ac_ext <<_ACEOF
3146 /* end confdefs.h. */
3147
3148 int
3149 main ()
3150 {
3151
3152 ;
3153 return 0;
3154 }
3155 _ACEOF
3156 rm -f conftest.o conftest.obj
3157 if { (ac_try="$ac_compile"
3158 case "(($ac_try" in
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3161 esac
3162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3163 $as_echo "$ac_try_echo") >&5
3164 (eval "$ac_compile") 2>&5
3165 ac_status=$?
3166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); }; then
3168 for ac_file in conftest.o conftest.obj conftest.*; do
3169 test -f "$ac_file" || continue;
3170 case $ac_file in
3171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3172 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3173 break;;
3174 esac
3175 done
3176 else
3177 $as_echo "$as_me: failed program was:" >&5
3178 sed 's/^/| /' conftest.$ac_ext >&5
3179
3180 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3182 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3183 See \`config.log' for more details." >&5
3184 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3185 See \`config.log' for more details." >&2;}
3186 { (exit 1); exit 1; }; }; }
3187 fi
3188
3189 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3190 fi
3191 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3192 $as_echo "$ac_cv_objext" >&6; }
3193 OBJEXT=$ac_cv_objext
3194 ac_objext=$OBJEXT
3195 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3196 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3197 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3198 $as_echo_n "(cached) " >&6
3199 else
3200 cat >conftest.$ac_ext <<_ACEOF
3201 /* confdefs.h. */
3202 _ACEOF
3203 cat confdefs.h >>conftest.$ac_ext
3204 cat >>conftest.$ac_ext <<_ACEOF
3205 /* end confdefs.h. */
3206
3207 int
3208 main ()
3209 {
3210 #ifndef __GNUC__
3211 choke me
3212 #endif
3213
3214 ;
3215 return 0;
3216 }
3217 _ACEOF
3218 rm -f conftest.$ac_objext
3219 if { (ac_try="$ac_compile"
3220 case "(($ac_try" in
3221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3222 *) ac_try_echo=$ac_try;;
3223 esac
3224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3225 $as_echo "$ac_try_echo") >&5
3226 (eval "$ac_compile") 2>conftest.er1
3227 ac_status=$?
3228 grep -v '^ *+' conftest.er1 >conftest.err
3229 rm -f conftest.er1
3230 cat conftest.err >&5
3231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232 (exit $ac_status); } && {
3233 test -z "$ac_c_werror_flag" ||
3234 test ! -s conftest.err
3235 } && test -s conftest.$ac_objext; then
3236 ac_compiler_gnu=yes
3237 else
3238 $as_echo "$as_me: failed program was:" >&5
3239 sed 's/^/| /' conftest.$ac_ext >&5
3240
3241 ac_compiler_gnu=no
3242 fi
3243
3244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3245 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3246
3247 fi
3248 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3249 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3250 if test $ac_compiler_gnu = yes; then
3251 GCC=yes
3252 else
3253 GCC=
3254 fi
3255 ac_test_CFLAGS=${CFLAGS+set}
3256 ac_save_CFLAGS=$CFLAGS
3257 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3258 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3259 if test "${ac_cv_prog_cc_g+set}" = set; then
3260 $as_echo_n "(cached) " >&6
3261 else
3262 ac_save_c_werror_flag=$ac_c_werror_flag
3263 ac_c_werror_flag=yes
3264 ac_cv_prog_cc_g=no
3265 CFLAGS="-g"
3266 cat >conftest.$ac_ext <<_ACEOF
3267 /* confdefs.h. */
3268 _ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h. */
3272
3273 int
3274 main ()
3275 {
3276
3277 ;
3278 return 0;
3279 }
3280 _ACEOF
3281 rm -f conftest.$ac_objext
3282 if { (ac_try="$ac_compile"
3283 case "(($ac_try" in
3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285 *) ac_try_echo=$ac_try;;
3286 esac
3287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3288 $as_echo "$ac_try_echo") >&5
3289 (eval "$ac_compile") 2>conftest.er1
3290 ac_status=$?
3291 grep -v '^ *+' conftest.er1 >conftest.err
3292 rm -f conftest.er1
3293 cat conftest.err >&5
3294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); } && {
3296 test -z "$ac_c_werror_flag" ||
3297 test ! -s conftest.err
3298 } && test -s conftest.$ac_objext; then
3299 ac_cv_prog_cc_g=yes
3300 else
3301 $as_echo "$as_me: failed program was:" >&5
3302 sed 's/^/| /' conftest.$ac_ext >&5
3303
3304 CFLAGS=""
3305 cat >conftest.$ac_ext <<_ACEOF
3306 /* confdefs.h. */
3307 _ACEOF
3308 cat confdefs.h >>conftest.$ac_ext
3309 cat >>conftest.$ac_ext <<_ACEOF
3310 /* end confdefs.h. */
3311
3312 int
3313 main ()
3314 {
3315
3316 ;
3317 return 0;
3318 }
3319 _ACEOF
3320 rm -f conftest.$ac_objext
3321 if { (ac_try="$ac_compile"
3322 case "(($ac_try" in
3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324 *) ac_try_echo=$ac_try;;
3325 esac
3326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3327 $as_echo "$ac_try_echo") >&5
3328 (eval "$ac_compile") 2>conftest.er1
3329 ac_status=$?
3330 grep -v '^ *+' conftest.er1 >conftest.err
3331 rm -f conftest.er1
3332 cat conftest.err >&5
3333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); } && {
3335 test -z "$ac_c_werror_flag" ||
3336 test ! -s conftest.err
3337 } && test -s conftest.$ac_objext; then
3338 :
3339 else
3340 $as_echo "$as_me: failed program was:" >&5
3341 sed 's/^/| /' conftest.$ac_ext >&5
3342
3343 ac_c_werror_flag=$ac_save_c_werror_flag
3344 CFLAGS="-g"
3345 cat >conftest.$ac_ext <<_ACEOF
3346 /* confdefs.h. */
3347 _ACEOF
3348 cat confdefs.h >>conftest.$ac_ext
3349 cat >>conftest.$ac_ext <<_ACEOF
3350 /* end confdefs.h. */
3351
3352 int
3353 main ()
3354 {
3355
3356 ;
3357 return 0;
3358 }
3359 _ACEOF
3360 rm -f conftest.$ac_objext
3361 if { (ac_try="$ac_compile"
3362 case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3365 esac
3366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3367 $as_echo "$ac_try_echo") >&5
3368 (eval "$ac_compile") 2>conftest.er1
3369 ac_status=$?
3370 grep -v '^ *+' conftest.er1 >conftest.err
3371 rm -f conftest.er1
3372 cat conftest.err >&5
3373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); } && {
3375 test -z "$ac_c_werror_flag" ||
3376 test ! -s conftest.err
3377 } && test -s conftest.$ac_objext; then
3378 ac_cv_prog_cc_g=yes
3379 else
3380 $as_echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3382
3383
3384 fi
3385
3386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3387 fi
3388
3389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3390 fi
3391
3392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3393 ac_c_werror_flag=$ac_save_c_werror_flag
3394 fi
3395 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3396 $as_echo "$ac_cv_prog_cc_g" >&6; }
3397 if test "$ac_test_CFLAGS" = set; then
3398 CFLAGS=$ac_save_CFLAGS
3399 elif test $ac_cv_prog_cc_g = yes; then
3400 if test "$GCC" = yes; then
3401 CFLAGS="-g -O2"
3402 else
3403 CFLAGS="-g"
3404 fi
3405 else
3406 if test "$GCC" = yes; then
3407 CFLAGS="-O2"
3408 else
3409 CFLAGS=
3410 fi
3411 fi
3412 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3413 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3414 if test "${ac_cv_prog_cc_c89+set}" = set; then
3415 $as_echo_n "(cached) " >&6
3416 else
3417 ac_cv_prog_cc_c89=no
3418 ac_save_CC=$CC
3419 cat >conftest.$ac_ext <<_ACEOF
3420 /* confdefs.h. */
3421 _ACEOF
3422 cat confdefs.h >>conftest.$ac_ext
3423 cat >>conftest.$ac_ext <<_ACEOF
3424 /* end confdefs.h. */
3425 #include <stdarg.h>
3426 #include <stdio.h>
3427 #include <sys/types.h>
3428 #include <sys/stat.h>
3429 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3430 struct buf { int x; };
3431 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3432 static char *e (p, i)
3433 char **p;
3434 int i;
3435 {
3436 return p[i];
3437 }
3438 static char *f (char * (*g) (char **, int), char **p, ...)
3439 {
3440 char *s;
3441 va_list v;
3442 va_start (v,p);
3443 s = g (p, va_arg (v,int));
3444 va_end (v);
3445 return s;
3446 }
3447
3448 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3449 function prototypes and stuff, but not '\xHH' hex character constants.
3450 These don't provoke an error unfortunately, instead are silently treated
3451 as 'x'. The following induces an error, until -std is added to get
3452 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3453 array size at least. It's necessary to write '\x00'==0 to get something
3454 that's true only with -std. */
3455 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3456
3457 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3458 inside strings and character constants. */
3459 #define FOO(x) 'x'
3460 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3461
3462 int test (int i, double x);
3463 struct s1 {int (*f) (int a);};
3464 struct s2 {int (*f) (double a);};
3465 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3466 int argc;
3467 char **argv;
3468 int
3469 main ()
3470 {
3471 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3472 ;
3473 return 0;
3474 }
3475 _ACEOF
3476 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3477 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3478 do
3479 CC="$ac_save_CC $ac_arg"
3480 rm -f conftest.$ac_objext
3481 if { (ac_try="$ac_compile"
3482 case "(($ac_try" in
3483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484 *) ac_try_echo=$ac_try;;
3485 esac
3486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3487 $as_echo "$ac_try_echo") >&5
3488 (eval "$ac_compile") 2>conftest.er1
3489 ac_status=$?
3490 grep -v '^ *+' conftest.er1 >conftest.err
3491 rm -f conftest.er1
3492 cat conftest.err >&5
3493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); } && {
3495 test -z "$ac_c_werror_flag" ||
3496 test ! -s conftest.err
3497 } && test -s conftest.$ac_objext; then
3498 ac_cv_prog_cc_c89=$ac_arg
3499 else
3500 $as_echo "$as_me: failed program was:" >&5
3501 sed 's/^/| /' conftest.$ac_ext >&5
3502
3503
3504 fi
3505
3506 rm -f core conftest.err conftest.$ac_objext
3507 test "x$ac_cv_prog_cc_c89" != "xno" && break
3508 done
3509 rm -f conftest.$ac_ext
3510 CC=$ac_save_CC
3511
3512 fi
3513 # AC_CACHE_VAL
3514 case "x$ac_cv_prog_cc_c89" in
3515 x)
3516 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3517 $as_echo "none needed" >&6; } ;;
3518 xno)
3519 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3520 $as_echo "unsupported" >&6; } ;;
3521 *)
3522 CC="$CC $ac_cv_prog_cc_c89"
3523 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3524 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3525 esac
3526
3527
3528 ac_ext=c
3529 ac_cpp='$CPP $CPPFLAGS'
3530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3533 DEPDIR="${am__leading_dot}deps"
3534
3535 ac_config_commands="$ac_config_commands depfiles"
3536
3537
3538 am_make=${MAKE-make}
3539 cat > confinc << 'END'
3540 am__doit:
3541 @echo this is the am__doit target
3542 .PHONY: am__doit
3543 END
3544 # If we don't find an include directive, just comment out the code.
3545 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3546 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3547 am__include="#"
3548 am__quote=
3549 _am_result=none
3550 # First try GNU make style include.
3551 echo "include confinc" > confmf
3552 # Ignore all kinds of additional output from `make'.
3553 case `$am_make -s -f confmf 2> /dev/null` in #(
3554 *the\ am__doit\ target*)
3555 am__include=include
3556 am__quote=
3557 _am_result=GNU
3558 ;;
3559 esac
3560 # Now try BSD make style include.
3561 if test "$am__include" = "#"; then
3562 echo '.include "confinc"' > confmf
3563 case `$am_make -s -f confmf 2> /dev/null` in #(
3564 *the\ am__doit\ target*)
3565 am__include=.include
3566 am__quote="\""
3567 _am_result=BSD
3568 ;;
3569 esac
3570 fi
3571
3572
3573 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3574 $as_echo "$_am_result" >&6; }
3575 rm -f confinc confmf
3576
3577 # Check whether --enable-dependency-tracking was given.
3578 if test "${enable_dependency_tracking+set}" = set; then
3579 enableval=$enable_dependency_tracking;
3580 fi
3581
3582 if test "x$enable_dependency_tracking" != xno; then
3583 am_depcomp="$ac_aux_dir/depcomp"
3584 AMDEPBACKSLASH='\'
3585 fi
3586 if test "x$enable_dependency_tracking" != xno; then
3587 AMDEP_TRUE=
3588 AMDEP_FALSE='#'
3589 else
3590 AMDEP_TRUE='#'
3591 AMDEP_FALSE=
3592 fi
3593
3594
3595
3596 depcc="$CC" am_compiler_list=
3597
3598 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3599 $as_echo_n "checking dependency style of $depcc... " >&6; }
3600 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3601 $as_echo_n "(cached) " >&6
3602 else
3603 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3604 # We make a subdir and do the tests there. Otherwise we can end up
3605 # making bogus files that we don't know about and never remove. For
3606 # instance it was reported that on HP-UX the gcc test will end up
3607 # making a dummy file named `D' -- because `-MD' means `put the output
3608 # in D'.
3609 mkdir conftest.dir
3610 # Copy depcomp to subdir because otherwise we won't find it if we're
3611 # using a relative directory.
3612 cp "$am_depcomp" conftest.dir
3613 cd conftest.dir
3614 # We will build objects and dependencies in a subdirectory because
3615 # it helps to detect inapplicable dependency modes. For instance
3616 # both Tru64's cc and ICC support -MD to output dependencies as a
3617 # side effect of compilation, but ICC will put the dependencies in
3618 # the current directory while Tru64 will put them in the object
3619 # directory.
3620 mkdir sub
3621
3622 am_cv_CC_dependencies_compiler_type=none
3623 if test "$am_compiler_list" = ""; then
3624 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3625 fi
3626 am__universal=false
3627 case " $depcc " in #(
3628 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3629 esac
3630
3631 for depmode in $am_compiler_list; do
3632 # Setup a source with many dependencies, because some compilers
3633 # like to wrap large dependency lists on column 80 (with \), and
3634 # we should not choose a depcomp mode which is confused by this.
3635 #
3636 # We need to recreate these files for each test, as the compiler may
3637 # overwrite some of them when testing with obscure command lines.
3638 # This happens at least with the AIX C compiler.
3639 : > sub/conftest.c
3640 for i in 1 2 3 4 5 6; do
3641 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3642 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3643 # Solaris 8's {/usr,}/bin/sh.
3644 touch sub/conftst$i.h
3645 done
3646 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3647
3648 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3649 # mode. It turns out that the SunPro C++ compiler does not properly
3650 # handle `-M -o', and we need to detect this. Also, some Intel
3651 # versions had trouble with output in subdirs
3652 am__obj=sub/conftest.${OBJEXT-o}
3653 am__minus_obj="-o $am__obj"
3654 case $depmode in
3655 gcc)
3656 # This depmode causes a compiler race in universal mode.
3657 test "$am__universal" = false || continue
3658 ;;
3659 nosideeffect)
3660 # after this tag, mechanisms are not by side-effect, so they'll
3661 # only be used when explicitly requested
3662 if test "x$enable_dependency_tracking" = xyes; then
3663 continue
3664 else
3665 break
3666 fi
3667 ;;
3668 msvisualcpp | msvcmsys)
3669 # This compiler won't grok `-c -o', but also, the minuso test has
3670 # not run yet. These depmodes are late enough in the game, and
3671 # so weak that their functioning should not be impacted.
3672 am__obj=conftest.${OBJEXT-o}
3673 am__minus_obj=
3674 ;;
3675 none) break ;;
3676 esac
3677 if depmode=$depmode \
3678 source=sub/conftest.c object=$am__obj \
3679 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3680 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3681 >/dev/null 2>conftest.err &&
3682 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3683 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3684 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3685 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3686 # icc doesn't choke on unknown options, it will just issue warnings
3687 # or remarks (even with -Werror). So we grep stderr for any message
3688 # that says an option was ignored or not supported.
3689 # When given -MP, icc 7.0 and 7.1 complain thusly:
3690 # icc: Command line warning: ignoring option '-M'; no argument required
3691 # The diagnosis changed in icc 8.0:
3692 # icc: Command line remark: option '-MP' not supported
3693 if (grep 'ignoring option' conftest.err ||
3694 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3695 am_cv_CC_dependencies_compiler_type=$depmode
3696 break
3697 fi
3698 fi
3699 done
3700
3701 cd ..
3702 rm -rf conftest.dir
3703 else
3704 am_cv_CC_dependencies_compiler_type=none
3705 fi
3706
3707 fi
3708 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3709 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3710 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3711
3712 if
3713 test "x$enable_dependency_tracking" != xno \
3714 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3715 am__fastdepCC_TRUE=
3716 am__fastdepCC_FALSE='#'
3717 else
3718 am__fastdepCC_TRUE='#'
3719 am__fastdepCC_FALSE=
3720 fi
3721
3722
3723 # Find a good install program. We prefer a C program (faster),
3724 # so one script is as good as another. But avoid the broken or
3725 # incompatible versions:
3726 # SysV /etc/install, /usr/sbin/install
3727 # SunOS /usr/etc/install
3728 # IRIX /sbin/install
3729 # AIX /bin/install
3730 # AmigaOS /C/install, which installs bootblocks on floppy discs
3731 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3732 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3733 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3734 # OS/2's system install, which has a completely different semantic
3735 # ./install, which can be erroneously created by make from ./install.sh.
3736 # Reject install programs that cannot install multiple files.
3737 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3738 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3739 if test -z "$INSTALL"; then
3740 if test "${ac_cv_path_install+set}" = set; then
3741 $as_echo_n "(cached) " >&6
3742 else
3743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744 for as_dir in $PATH
3745 do
3746 IFS=$as_save_IFS
3747 test -z "$as_dir" && as_dir=.
3748 # Account for people who put trailing slashes in PATH elements.
3749 case $as_dir/ in
3750 ./ | .// | /cC/* | \
3751 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3752 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3753 /usr/ucb/* ) ;;
3754 *)
3755 # OSF1 and SCO ODT 3.0 have their own names for install.
3756 # Don't use installbsd from OSF since it installs stuff as root
3757 # by default.
3758 for ac_prog in ginstall scoinst install; do
3759 for ac_exec_ext in '' $ac_executable_extensions; do
3760 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3761 if test $ac_prog = install &&
3762 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3763 # AIX install. It has an incompatible calling convention.
3764 :
3765 elif test $ac_prog = install &&
3766 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3767 # program-specific install script used by HP pwplus--don't use.
3768 :
3769 else
3770 rm -rf conftest.one conftest.two conftest.dir
3771 echo one > conftest.one
3772 echo two > conftest.two
3773 mkdir conftest.dir
3774 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3775 test -s conftest.one && test -s conftest.two &&
3776 test -s conftest.dir/conftest.one &&
3777 test -s conftest.dir/conftest.two
3778 then
3779 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3780 break 3
3781 fi
3782 fi
3783 fi
3784 done
3785 done
3786 ;;
3787 esac
3788
3789 done
3790 IFS=$as_save_IFS
3791
3792 rm -rf conftest.one conftest.two conftest.dir
3793
3794 fi
3795 if test "${ac_cv_path_install+set}" = set; then
3796 INSTALL=$ac_cv_path_install
3797 else
3798 # As a last resort, use the slow shell script. Don't cache a
3799 # value for INSTALL within a source directory, because that will
3800 # break other packages using the cache if that directory is
3801 # removed, or if the value is a relative name.
3802 INSTALL=$ac_install_sh
3803 fi
3804 fi
3805 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3806 $as_echo "$INSTALL" >&6; }
3807
3808 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3809 # It thinks the first close brace ends the variable substitution.
3810 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3811
3812 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3813
3814 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3815
3816 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3817 $as_echo_n "checking whether ln -s works... " >&6; }
3818 LN_S=$as_ln_s
3819 if test "$LN_S" = "ln -s"; then
3820 { $as_echo "$as_me:$LINENO: result: yes" >&5
3821 $as_echo "yes" >&6; }
3822 else
3823 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3824 $as_echo "no, using $LN_S" >&6; }
3825 fi
3826
3827 case `pwd` in
3828 *\ * | *\ *)
3829 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3830 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3831 esac
3832
3833
3834
3835 macro_version='2.2.6'
3836 macro_revision='1.3012'
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850 ltmain="$ac_aux_dir/ltmain.sh"
3851
3852 # Make sure we can run config.sub.
3853 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3854 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3855 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3856 { (exit 1); exit 1; }; }
3857
3858 { $as_echo "$as_me:$LINENO: checking build system type" >&5
3859 $as_echo_n "checking build system type... " >&6; }
3860 if test "${ac_cv_build+set}" = set; then
3861 $as_echo_n "(cached) " >&6
3862 else
3863 ac_build_alias=$build_alias
3864 test "x$ac_build_alias" = x &&
3865 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3866 test "x$ac_build_alias" = x &&
3867 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3868 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3869 { (exit 1); exit 1; }; }
3870 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3871 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3872 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3873 { (exit 1); exit 1; }; }
3874
3875 fi
3876 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3877 $as_echo "$ac_cv_build" >&6; }
3878 case $ac_cv_build in
3879 *-*-*) ;;
3880 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3881 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
3882 { (exit 1); exit 1; }; };;
3883 esac
3884 build=$ac_cv_build
3885 ac_save_IFS=$IFS; IFS='-'
3886 set x $ac_cv_build
3887 shift
3888 build_cpu=$1
3889 build_vendor=$2
3890 shift; shift
3891 # Remember, the first character of IFS is used to create $*,
3892 # except with old shells:
3893 build_os=$*
3894 IFS=$ac_save_IFS
3895 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3896
3897
3898 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3899 $as_echo_n "checking host system type... " >&6; }
3900 if test "${ac_cv_host+set}" = set; then
3901 $as_echo_n "(cached) " >&6
3902 else
3903 if test "x$host_alias" = x; then
3904 ac_cv_host=$ac_cv_build
3905 else
3906 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3907 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3908 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3909 { (exit 1); exit 1; }; }
3910 fi
3911
3912 fi
3913 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3914 $as_echo "$ac_cv_host" >&6; }
3915 case $ac_cv_host in
3916 *-*-*) ;;
3917 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3918 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3919 { (exit 1); exit 1; }; };;
3920 esac
3921 host=$ac_cv_host
3922 ac_save_IFS=$IFS; IFS='-'
3923 set x $ac_cv_host
3924 shift
3925 host_cpu=$1
3926 host_vendor=$2
3927 shift; shift
3928 # Remember, the first character of IFS is used to create $*,
3929 # except with old shells:
3930 host_os=$*
3931 IFS=$ac_save_IFS
3932 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3933
3934
3935 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3936 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3937 if test "${ac_cv_path_SED+set}" = set; then
3938 $as_echo_n "(cached) " >&6
3939 else
3940 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3941 for ac_i in 1 2 3 4 5 6 7; do
3942 ac_script="$ac_script$as_nl$ac_script"
3943 done
3944 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3945 $as_unset ac_script || ac_script=
3946 if test -z "$SED"; then
3947 ac_path_SED_found=false
3948 # Loop through the user's path and test for each of PROGNAME-LIST
3949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950 for as_dir in $PATH
3951 do
3952 IFS=$as_save_IFS
3953 test -z "$as_dir" && as_dir=.
3954 for ac_prog in sed gsed; do
3955 for ac_exec_ext in '' $ac_executable_extensions; do
3956 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3957 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3958 # Check for GNU ac_path_SED and select it if it is found.
3959 # Check for GNU $ac_path_SED
3960 case `"$ac_path_SED" --version 2>&1` in
3961 *GNU*)
3962 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3963 *)
3964 ac_count=0
3965 $as_echo_n 0123456789 >"conftest.in"
3966 while :
3967 do
3968 cat "conftest.in" "conftest.in" >"conftest.tmp"
3969 mv "conftest.tmp" "conftest.in"
3970 cp "conftest.in" "conftest.nl"
3971 $as_echo '' >> "conftest.nl"
3972 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3973 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3974 ac_count=`expr $ac_count + 1`
3975 if test $ac_count -gt ${ac_path_SED_max-0}; then
3976 # Best one so far, save it but keep looking for a better one
3977 ac_cv_path_SED="$ac_path_SED"
3978 ac_path_SED_max=$ac_count
3979 fi
3980 # 10*(2^10) chars as input seems more than enough
3981 test $ac_count -gt 10 && break
3982 done
3983 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3984 esac
3985
3986 $ac_path_SED_found && break 3
3987 done
3988 done
3989 done
3990 IFS=$as_save_IFS
3991 if test -z "$ac_cv_path_SED"; then
3992 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3993 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3994 { (exit 1); exit 1; }; }
3995 fi
3996 else
3997 ac_cv_path_SED=$SED
3998 fi
3999
4000 fi
4001 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4002 $as_echo "$ac_cv_path_SED" >&6; }
4003 SED="$ac_cv_path_SED"
4004 rm -f conftest.sed
4005
4006 test -z "$SED" && SED=sed
4007 Xsed="$SED -e 1s/^X//"
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4020 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4021 if test "${ac_cv_path_GREP+set}" = set; then
4022 $as_echo_n "(cached) " >&6
4023 else
4024 if test -z "$GREP"; then
4025 ac_path_GREP_found=false
4026 # Loop through the user's path and test for each of PROGNAME-LIST
4027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4028 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4029 do
4030 IFS=$as_save_IFS
4031 test -z "$as_dir" && as_dir=.
4032 for ac_prog in grep ggrep; do
4033 for ac_exec_ext in '' $ac_executable_extensions; do
4034 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4035 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4036 # Check for GNU ac_path_GREP and select it if it is found.
4037 # Check for GNU $ac_path_GREP
4038 case `"$ac_path_GREP" --version 2>&1` in
4039 *GNU*)
4040 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4041 *)
4042 ac_count=0
4043 $as_echo_n 0123456789 >"conftest.in"
4044 while :
4045 do
4046 cat "conftest.in" "conftest.in" >"conftest.tmp"
4047 mv "conftest.tmp" "conftest.in"
4048 cp "conftest.in" "conftest.nl"
4049 $as_echo 'GREP' >> "conftest.nl"
4050 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4051 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4052 ac_count=`expr $ac_count + 1`
4053 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4054 # Best one so far, save it but keep looking for a better one
4055 ac_cv_path_GREP="$ac_path_GREP"
4056 ac_path_GREP_max=$ac_count
4057 fi
4058 # 10*(2^10) chars as input seems more than enough
4059 test $ac_count -gt 10 && break
4060 done
4061 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4062 esac
4063
4064 $ac_path_GREP_found && break 3
4065 done
4066 done
4067 done
4068 IFS=$as_save_IFS
4069 if test -z "$ac_cv_path_GREP"; then
4070 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4071 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4072 { (exit 1); exit 1; }; }
4073 fi
4074 else
4075 ac_cv_path_GREP=$GREP
4076 fi
4077
4078 fi
4079 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4080 $as_echo "$ac_cv_path_GREP" >&6; }
4081 GREP="$ac_cv_path_GREP"
4082
4083
4084 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4085 $as_echo_n "checking for egrep... " >&6; }
4086 if test "${ac_cv_path_EGREP+set}" = set; then
4087 $as_echo_n "(cached) " >&6
4088 else
4089 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4090 then ac_cv_path_EGREP="$GREP -E"
4091 else
4092 if test -z "$EGREP"; then
4093 ac_path_EGREP_found=false
4094 # Loop through the user's path and test for each of PROGNAME-LIST
4095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4096 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4097 do
4098 IFS=$as_save_IFS
4099 test -z "$as_dir" && as_dir=.
4100 for ac_prog in egrep; do
4101 for ac_exec_ext in '' $ac_executable_extensions; do
4102 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4103 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4104 # Check for GNU ac_path_EGREP and select it if it is found.
4105 # Check for GNU $ac_path_EGREP
4106 case `"$ac_path_EGREP" --version 2>&1` in
4107 *GNU*)
4108 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4109 *)
4110 ac_count=0
4111 $as_echo_n 0123456789 >"conftest.in"
4112 while :
4113 do
4114 cat "conftest.in" "conftest.in" >"conftest.tmp"
4115 mv "conftest.tmp" "conftest.in"
4116 cp "conftest.in" "conftest.nl"
4117 $as_echo 'EGREP' >> "conftest.nl"
4118 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4119 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4120 ac_count=`expr $ac_count + 1`
4121 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4122 # Best one so far, save it but keep looking for a better one
4123 ac_cv_path_EGREP="$ac_path_EGREP"
4124 ac_path_EGREP_max=$ac_count
4125 fi
4126 # 10*(2^10) chars as input seems more than enough
4127 test $ac_count -gt 10 && break
4128 done
4129 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4130 esac
4131
4132 $ac_path_EGREP_found && break 3
4133 done
4134 done
4135 done
4136 IFS=$as_save_IFS
4137 if test -z "$ac_cv_path_EGREP"; then
4138 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4139 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4140 { (exit 1); exit 1; }; }
4141 fi
4142 else
4143 ac_cv_path_EGREP=$EGREP
4144 fi
4145
4146 fi
4147 fi
4148 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4149 $as_echo "$ac_cv_path_EGREP" >&6; }
4150 EGREP="$ac_cv_path_EGREP"
4151
4152
4153 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4154 $as_echo_n "checking for fgrep... " >&6; }
4155 if test "${ac_cv_path_FGREP+set}" = set; then
4156 $as_echo_n "(cached) " >&6
4157 else
4158 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4159 then ac_cv_path_FGREP="$GREP -F"
4160 else
4161 if test -z "$FGREP"; then
4162 ac_path_FGREP_found=false
4163 # Loop through the user's path and test for each of PROGNAME-LIST
4164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4166 do
4167 IFS=$as_save_IFS
4168 test -z "$as_dir" && as_dir=.
4169 for ac_prog in fgrep; do
4170 for ac_exec_ext in '' $ac_executable_extensions; do
4171 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4172 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4173 # Check for GNU ac_path_FGREP and select it if it is found.
4174 # Check for GNU $ac_path_FGREP
4175 case `"$ac_path_FGREP" --version 2>&1` in
4176 *GNU*)
4177 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4178 *)
4179 ac_count=0
4180 $as_echo_n 0123456789 >"conftest.in"
4181 while :
4182 do
4183 cat "conftest.in" "conftest.in" >"conftest.tmp"
4184 mv "conftest.tmp" "conftest.in"
4185 cp "conftest.in" "conftest.nl"
4186 $as_echo 'FGREP' >> "conftest.nl"
4187 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4188 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4189 ac_count=`expr $ac_count + 1`
4190 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4191 # Best one so far, save it but keep looking for a better one
4192 ac_cv_path_FGREP="$ac_path_FGREP"
4193 ac_path_FGREP_max=$ac_count
4194 fi
4195 # 10*(2^10) chars as input seems more than enough
4196 test $ac_count -gt 10 && break
4197 done
4198 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4199 esac
4200
4201 $ac_path_FGREP_found && break 3
4202 done
4203 done
4204 done
4205 IFS=$as_save_IFS
4206 if test -z "$ac_cv_path_FGREP"; then
4207 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4208 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4209 { (exit 1); exit 1; }; }
4210 fi
4211 else
4212 ac_cv_path_FGREP=$FGREP
4213 fi
4214
4215 fi
4216 fi
4217 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4218 $as_echo "$ac_cv_path_FGREP" >&6; }
4219 FGREP="$ac_cv_path_FGREP"
4220
4221
4222 test -z "$GREP" && GREP=grep
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242 # Check whether --with-gnu-ld was given.
4243 if test "${with_gnu_ld+set}" = set; then
4244 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4245 else
4246 with_gnu_ld=no
4247 fi
4248
4249 ac_prog=ld
4250 if test "$GCC" = yes; then
4251 # Check if gcc -print-prog-name=ld gives a path.
4252 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4253 $as_echo_n "checking for ld used by $CC... " >&6; }
4254 case $host in
4255 *-*-mingw*)
4256 # gcc leaves a trailing carriage return which upsets mingw
4257 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4258 *)
4259 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4260 esac
4261 case $ac_prog in
4262 # Accept absolute paths.
4263 [\\/]* | ?:[\\/]*)
4264 re_direlt='/[^/][^/]*/\.\./'
4265 # Canonicalize the pathname of ld
4266 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4267 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4268 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4269 done
4270 test -z "$LD" && LD="$ac_prog"
4271 ;;
4272 "")
4273 # If it fails, then pretend we aren't using GCC.
4274 ac_prog=ld
4275 ;;
4276 *)
4277 # If it is relative, then search for the first ld in PATH.
4278 with_gnu_ld=unknown
4279 ;;
4280 esac
4281 elif test "$with_gnu_ld" = yes; then
4282 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4283 $as_echo_n "checking for GNU ld... " >&6; }
4284 else
4285 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4286 $as_echo_n "checking for non-GNU ld... " >&6; }
4287 fi
4288 if test "${lt_cv_path_LD+set}" = set; then
4289 $as_echo_n "(cached) " >&6
4290 else
4291 if test -z "$LD"; then
4292 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4293 for ac_dir in $PATH; do
4294 IFS="$lt_save_ifs"
4295 test -z "$ac_dir" && ac_dir=.
4296 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4297 lt_cv_path_LD="$ac_dir/$ac_prog"
4298 # Check to see if the program is GNU ld. I'd rather use --version,
4299 # but apparently some variants of GNU ld only accept -v.
4300 # Break only if it was the GNU/non-GNU ld that we prefer.
4301 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4302 *GNU* | *'with BFD'*)
4303 test "$with_gnu_ld" != no && break
4304 ;;
4305 *)
4306 test "$with_gnu_ld" != yes && break
4307 ;;
4308 esac
4309 fi
4310 done
4311 IFS="$lt_save_ifs"
4312 else
4313 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4314 fi
4315 fi
4316
4317 LD="$lt_cv_path_LD"
4318 if test -n "$LD"; then
4319 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4320 $as_echo "$LD" >&6; }
4321 else
4322 { $as_echo "$as_me:$LINENO: result: no" >&5
4323 $as_echo "no" >&6; }
4324 fi
4325 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4326 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4327 { (exit 1); exit 1; }; }
4328 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4329 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4330 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4331 $as_echo_n "(cached) " >&6
4332 else
4333 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4334 case `$LD -v 2>&1 </dev/null` in
4335 *GNU* | *'with BFD'*)
4336 lt_cv_prog_gnu_ld=yes
4337 ;;
4338 *)
4339 lt_cv_prog_gnu_ld=no
4340 ;;
4341 esac
4342 fi
4343 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4344 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4345 with_gnu_ld=$lt_cv_prog_gnu_ld
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4356 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4357 if test "${lt_cv_path_NM+set}" = set; then
4358 $as_echo_n "(cached) " >&6
4359 else
4360 if test -n "$NM"; then
4361 # Let the user override the test.
4362 lt_cv_path_NM="$NM"
4363 else
4364 lt_nm_to_check="${ac_tool_prefix}nm"
4365 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4366 lt_nm_to_check="$lt_nm_to_check nm"
4367 fi
4368 for lt_tmp_nm in $lt_nm_to_check; do
4369 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4370 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4371 IFS="$lt_save_ifs"
4372 test -z "$ac_dir" && ac_dir=.
4373 tmp_nm="$ac_dir/$lt_tmp_nm"
4374 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4375 # Check to see if the nm accepts a BSD-compat flag.
4376 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4377 # nm: unknown option "B" ignored
4378 # Tru64's nm complains that /dev/null is an invalid object file
4379 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4380 */dev/null* | *'Invalid file or object type'*)
4381 lt_cv_path_NM="$tmp_nm -B"
4382 break
4383 ;;
4384 *)
4385 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4386 */dev/null*)
4387 lt_cv_path_NM="$tmp_nm -p"
4388 break
4389 ;;
4390 *)
4391 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4392 continue # so that we can try to find one that supports BSD flags
4393 ;;
4394 esac
4395 ;;
4396 esac
4397 fi
4398 done
4399 IFS="$lt_save_ifs"
4400 done
4401 : ${lt_cv_path_NM=no}
4402 fi
4403 fi
4404 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4405 $as_echo "$lt_cv_path_NM" >&6; }
4406 if test "$lt_cv_path_NM" != "no"; then
4407 NM="$lt_cv_path_NM"
4408 else
4409 # Didn't find any BSD compatible name lister, look for dumpbin.
4410 if test -n "$ac_tool_prefix"; then
4411 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4412 do
4413 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4414 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4415 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4416 $as_echo_n "checking for $ac_word... " >&6; }
4417 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4418 $as_echo_n "(cached) " >&6
4419 else
4420 if test -n "$DUMPBIN"; then
4421 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4422 else
4423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424 for as_dir in $PATH
4425 do
4426 IFS=$as_save_IFS
4427 test -z "$as_dir" && as_dir=.
4428 for ac_exec_ext in '' $ac_executable_extensions; do
4429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4430 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4431 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4432 break 2
4433 fi
4434 done
4435 done
4436 IFS=$as_save_IFS
4437
4438 fi
4439 fi
4440 DUMPBIN=$ac_cv_prog_DUMPBIN
4441 if test -n "$DUMPBIN"; then
4442 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4443 $as_echo "$DUMPBIN" >&6; }
4444 else
4445 { $as_echo "$as_me:$LINENO: result: no" >&5
4446 $as_echo "no" >&6; }
4447 fi
4448
4449
4450 test -n "$DUMPBIN" && break
4451 done
4452 fi
4453 if test -z "$DUMPBIN"; then
4454 ac_ct_DUMPBIN=$DUMPBIN
4455 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4456 do
4457 # Extract the first word of "$ac_prog", so it can be a program name with args.
4458 set dummy $ac_prog; ac_word=$2
4459 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4460 $as_echo_n "checking for $ac_word... " >&6; }
4461 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4462 $as_echo_n "(cached) " >&6
4463 else
4464 if test -n "$ac_ct_DUMPBIN"; then
4465 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4466 else
4467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468 for as_dir in $PATH
4469 do
4470 IFS=$as_save_IFS
4471 test -z "$as_dir" && as_dir=.
4472 for ac_exec_ext in '' $ac_executable_extensions; do
4473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4474 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4475 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4476 break 2
4477 fi
4478 done
4479 done
4480 IFS=$as_save_IFS
4481
4482 fi
4483 fi
4484 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4485 if test -n "$ac_ct_DUMPBIN"; then
4486 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4487 $as_echo "$ac_ct_DUMPBIN" >&6; }
4488 else
4489 { $as_echo "$as_me:$LINENO: result: no" >&5
4490 $as_echo "no" >&6; }
4491 fi
4492
4493
4494 test -n "$ac_ct_DUMPBIN" && break
4495 done
4496
4497 if test "x$ac_ct_DUMPBIN" = x; then
4498 DUMPBIN=":"
4499 else
4500 case $cross_compiling:$ac_tool_warned in
4501 yes:)
4502 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4503 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4504 ac_tool_warned=yes ;;
4505 esac
4506 DUMPBIN=$ac_ct_DUMPBIN
4507 fi
4508 fi
4509
4510
4511 if test "$DUMPBIN" != ":"; then
4512 NM="$DUMPBIN"
4513 fi
4514 fi
4515 test -z "$NM" && NM=nm
4516
4517
4518
4519
4520
4521
4522 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4523 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4524 if test "${lt_cv_nm_interface+set}" = set; then
4525 $as_echo_n "(cached) " >&6
4526 else
4527 lt_cv_nm_interface="BSD nm"
4528 echo "int some_variable = 0;" > conftest.$ac_ext
4529 (eval echo "\"\$as_me:4529: $ac_compile\"" >&5)
4530 (eval "$ac_compile" 2>conftest.err)
4531 cat conftest.err >&5
4532 (eval echo "\"\$as_me:4532: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4533 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4534 cat conftest.err >&5
4535 (eval echo "\"\$as_me:4535: output\"" >&5)
4536 cat conftest.out >&5
4537 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4538 lt_cv_nm_interface="MS dumpbin"
4539 fi
4540 rm -f conftest*
4541 fi
4542 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4543 $as_echo "$lt_cv_nm_interface" >&6; }
4544
4545 # find the maximum length of command line arguments
4546 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4547 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4548 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4549 $as_echo_n "(cached) " >&6
4550 else
4551 i=0
4552 teststring="ABCD"
4553
4554 case $build_os in
4555 msdosdjgpp*)
4556 # On DJGPP, this test can blow up pretty badly due to problems in libc
4557 # (any single argument exceeding 2000 bytes causes a buffer overrun
4558 # during glob expansion). Even if it were fixed, the result of this
4559 # check would be larger than it should be.
4560 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4561 ;;
4562
4563 gnu*)
4564 # Under GNU Hurd, this test is not required because there is
4565 # no limit to the length of command line arguments.
4566 # Libtool will interpret -1 as no limit whatsoever
4567 lt_cv_sys_max_cmd_len=-1;
4568 ;;
4569
4570 cygwin* | mingw* | cegcc*)
4571 # On Win9x/ME, this test blows up -- it succeeds, but takes
4572 # about 5 minutes as the teststring grows exponentially.
4573 # Worse, since 9x/ME are not pre-emptively multitasking,
4574 # you end up with a "frozen" computer, even though with patience
4575 # the test eventually succeeds (with a max line length of 256k).
4576 # Instead, let's just punt: use the minimum linelength reported by
4577 # all of the supported platforms: 8192 (on NT/2K/XP).
4578 lt_cv_sys_max_cmd_len=8192;
4579 ;;
4580
4581 amigaos*)
4582 # On AmigaOS with pdksh, this test takes hours, literally.
4583 # So we just punt and use a minimum line length of 8192.
4584 lt_cv_sys_max_cmd_len=8192;
4585 ;;
4586
4587 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4588 # This has been around since 386BSD, at least. Likely further.
4589 if test -x /sbin/sysctl; then
4590 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4591 elif test -x /usr/sbin/sysctl; then
4592 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4593 else
4594 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4595 fi
4596 # And add a safety zone
4597 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4598 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4599 ;;
4600
4601 interix*)
4602 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4603 lt_cv_sys_max_cmd_len=196608
4604 ;;
4605
4606 osf*)
4607 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4608 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4609 # nice to cause kernel panics so lets avoid the loop below.
4610 # First set a reasonable default.
4611 lt_cv_sys_max_cmd_len=16384
4612 #
4613 if test -x /sbin/sysconfig; then
4614 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4615 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4616 esac
4617 fi
4618 ;;
4619 sco3.2v5*)
4620 lt_cv_sys_max_cmd_len=102400
4621 ;;
4622 sysv5* | sco5v6* | sysv4.2uw2*)
4623 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4624 if test -n "$kargmax"; then
4625 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4626 else
4627 lt_cv_sys_max_cmd_len=32768
4628 fi
4629 ;;
4630 *)
4631 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4632 if test -n "$lt_cv_sys_max_cmd_len"; then
4633 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4634 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4635 else
4636 # Make teststring a little bigger before we do anything with it.
4637 # a 1K string should be a reasonable start.
4638 for i in 1 2 3 4 5 6 7 8 ; do
4639 teststring=$teststring$teststring
4640 done
4641 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4642 # If test is not a shell built-in, we'll probably end up computing a
4643 # maximum length that is only half of the actual maximum length, but
4644 # we can't tell.
4645 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4646 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4647 test $i != 17 # 1/2 MB should be enough
4648 do
4649 i=`expr $i + 1`
4650 teststring=$teststring$teststring
4651 done
4652 # Only check the string length outside the loop.
4653 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4654 teststring=
4655 # Add a significant safety factor because C++ compilers can tack on
4656 # massive amounts of additional arguments before passing them to the
4657 # linker. It appears as though 1/2 is a usable value.
4658 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4659 fi
4660 ;;
4661 esac
4662
4663 fi
4664
4665 if test -n $lt_cv_sys_max_cmd_len ; then
4666 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4667 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4668 else
4669 { $as_echo "$as_me:$LINENO: result: none" >&5
4670 $as_echo "none" >&6; }
4671 fi
4672 max_cmd_len=$lt_cv_sys_max_cmd_len
4673
4674
4675
4676
4677
4678
4679 : ${CP="cp -f"}
4680 : ${MV="mv -f"}
4681 : ${RM="rm -f"}
4682
4683 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4684 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4685 # Try some XSI features
4686 xsi_shell=no
4687 ( _lt_dummy="a/b/c"
4688 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4689 = c,a/b,, \
4690 && eval 'test $(( 1 + 1 )) -eq 2 \
4691 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4692 && xsi_shell=yes
4693 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4694 $as_echo "$xsi_shell" >&6; }
4695
4696
4697 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4698 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4699 lt_shell_append=no
4700 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4701 >/dev/null 2>&1 \
4702 && lt_shell_append=yes
4703 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4704 $as_echo "$lt_shell_append" >&6; }
4705
4706
4707 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4708 lt_unset=unset
4709 else
4710 lt_unset=false
4711 fi
4712
4713
4714
4715
4716
4717 # test EBCDIC or ASCII
4718 case `echo X|tr X '\101'` in
4719 A) # ASCII based system
4720 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4721 lt_SP2NL='tr \040 \012'
4722 lt_NL2SP='tr \015\012 \040\040'
4723 ;;
4724 *) # EBCDIC based system
4725 lt_SP2NL='tr \100 \n'
4726 lt_NL2SP='tr \r\n \100\100'
4727 ;;
4728 esac
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4739 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4740 if test "${lt_cv_ld_reload_flag+set}" = set; then
4741 $as_echo_n "(cached) " >&6
4742 else
4743 lt_cv_ld_reload_flag='-r'
4744 fi
4745 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4746 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4747 reload_flag=$lt_cv_ld_reload_flag
4748 case $reload_flag in
4749 "" | " "*) ;;
4750 *) reload_flag=" $reload_flag" ;;
4751 esac
4752 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4753 case $host_os in
4754 darwin*)
4755 if test "$GCC" = yes; then
4756 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4757 else
4758 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4759 fi
4760 ;;
4761 esac
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771 if test -n "$ac_tool_prefix"; then
4772 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4773 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4774 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4775 $as_echo_n "checking for $ac_word... " >&6; }
4776 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4777 $as_echo_n "(cached) " >&6
4778 else
4779 if test -n "$OBJDUMP"; then
4780 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4781 else
4782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783 for as_dir in $PATH
4784 do
4785 IFS=$as_save_IFS
4786 test -z "$as_dir" && as_dir=.
4787 for ac_exec_ext in '' $ac_executable_extensions; do
4788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4789 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4790 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4791 break 2
4792 fi
4793 done
4794 done
4795 IFS=$as_save_IFS
4796
4797 fi
4798 fi
4799 OBJDUMP=$ac_cv_prog_OBJDUMP
4800 if test -n "$OBJDUMP"; then
4801 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4802 $as_echo "$OBJDUMP" >&6; }
4803 else
4804 { $as_echo "$as_me:$LINENO: result: no" >&5
4805 $as_echo "no" >&6; }
4806 fi
4807
4808
4809 fi
4810 if test -z "$ac_cv_prog_OBJDUMP"; then
4811 ac_ct_OBJDUMP=$OBJDUMP
4812 # Extract the first word of "objdump", so it can be a program name with args.
4813 set dummy objdump; ac_word=$2
4814 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4815 $as_echo_n "checking for $ac_word... " >&6; }
4816 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4817 $as_echo_n "(cached) " >&6
4818 else
4819 if test -n "$ac_ct_OBJDUMP"; then
4820 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4821 else
4822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823 for as_dir in $PATH
4824 do
4825 IFS=$as_save_IFS
4826 test -z "$as_dir" && as_dir=.
4827 for ac_exec_ext in '' $ac_executable_extensions; do
4828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4829 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4830 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4831 break 2
4832 fi
4833 done
4834 done
4835 IFS=$as_save_IFS
4836
4837 fi
4838 fi
4839 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4840 if test -n "$ac_ct_OBJDUMP"; then
4841 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4842 $as_echo "$ac_ct_OBJDUMP" >&6; }
4843 else
4844 { $as_echo "$as_me:$LINENO: result: no" >&5
4845 $as_echo "no" >&6; }
4846 fi
4847
4848 if test "x$ac_ct_OBJDUMP" = x; then
4849 OBJDUMP="false"
4850 else
4851 case $cross_compiling:$ac_tool_warned in
4852 yes:)
4853 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4854 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4855 ac_tool_warned=yes ;;
4856 esac
4857 OBJDUMP=$ac_ct_OBJDUMP
4858 fi
4859 else
4860 OBJDUMP="$ac_cv_prog_OBJDUMP"
4861 fi
4862
4863 test -z "$OBJDUMP" && OBJDUMP=objdump
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4874 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4875 if test "${lt_cv_deplibs_check_method+set}" = set; then
4876 $as_echo_n "(cached) " >&6
4877 else
4878 lt_cv_file_magic_cmd='$MAGIC_CMD'
4879 lt_cv_file_magic_test_file=
4880 lt_cv_deplibs_check_method='unknown'
4881 # Need to set the preceding variable on all platforms that support
4882 # interlibrary dependencies.
4883 # 'none' -- dependencies not supported.
4884 # `unknown' -- same as none, but documents that we really don't know.
4885 # 'pass_all' -- all dependencies passed with no checks.
4886 # 'test_compile' -- check by making test program.
4887 # 'file_magic [[regex]]' -- check by looking for files in library path
4888 # which responds to the $file_magic_cmd with a given extended regex.
4889 # If you have `file' or equivalent on your system and you're not sure
4890 # whether `pass_all' will *always* work, you probably want this one.
4891
4892 case $host_os in
4893 aix[4-9]*)
4894 lt_cv_deplibs_check_method=pass_all
4895 ;;
4896
4897 beos*)
4898 lt_cv_deplibs_check_method=pass_all
4899 ;;
4900
4901 bsdi[45]*)
4902 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4903 lt_cv_file_magic_cmd='/usr/bin/file -L'
4904 lt_cv_file_magic_test_file=/shlib/libc.so
4905 ;;
4906
4907 cygwin*)
4908 # func_win32_libid is a shell function defined in ltmain.sh
4909 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4910 lt_cv_file_magic_cmd='func_win32_libid'
4911 ;;
4912
4913 mingw* | pw32*)
4914 # Base MSYS/MinGW do not provide the 'file' command needed by
4915 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4916 # unless we find 'file', for example because we are cross-compiling.
4917 if ( file / ) >/dev/null 2>&1; then
4918 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4919 lt_cv_file_magic_cmd='func_win32_libid'
4920 else
4921 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4922 lt_cv_file_magic_cmd='$OBJDUMP -f'
4923 fi
4924 ;;
4925
4926 cegcc)
4927 # use the weaker test based on 'objdump'. See mingw*.
4928 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4929 lt_cv_file_magic_cmd='$OBJDUMP -f'
4930 ;;
4931
4932 darwin* | rhapsody*)
4933 lt_cv_deplibs_check_method=pass_all
4934 ;;
4935
4936 freebsd* | dragonfly*)
4937 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4938 case $host_cpu in
4939 i*86 )
4940 # Not sure whether the presence of OpenBSD here was a mistake.
4941 # Let's accept both of them until this is cleared up.
4942 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4943 lt_cv_file_magic_cmd=/usr/bin/file
4944 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4945 ;;
4946 esac
4947 else
4948 lt_cv_deplibs_check_method=pass_all
4949 fi
4950 ;;
4951
4952 gnu*)
4953 lt_cv_deplibs_check_method=pass_all
4954 ;;
4955
4956 hpux10.20* | hpux11*)
4957 lt_cv_file_magic_cmd=/usr/bin/file
4958 case $host_cpu in
4959 ia64*)
4960 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4961 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4962 ;;
4963 hppa*64*)
4964 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]'
4965 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4966 ;;
4967 *)
4968 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4969 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4970 ;;
4971 esac
4972 ;;
4973
4974 interix[3-9]*)
4975 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4976 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4977 ;;
4978
4979 irix5* | irix6* | nonstopux*)
4980 case $LD in
4981 *-32|*"-32 ") libmagic=32-bit;;
4982 *-n32|*"-n32 ") libmagic=N32;;
4983 *-64|*"-64 ") libmagic=64-bit;;
4984 *) libmagic=never-match;;
4985 esac
4986 lt_cv_deplibs_check_method=pass_all
4987 ;;
4988
4989 # This must be Linux ELF.
4990 linux* | k*bsd*-gnu)
4991 lt_cv_deplibs_check_method=pass_all
4992 ;;
4993
4994 netbsd*)
4995 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4996 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4997 else
4998 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4999 fi
5000 ;;
5001
5002 newos6*)
5003 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5004 lt_cv_file_magic_cmd=/usr/bin/file
5005 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5006 ;;
5007
5008 *nto* | *qnx*)
5009 lt_cv_deplibs_check_method=pass_all
5010 ;;
5011
5012 openbsd*)
5013 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5014 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5015 else
5016 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5017 fi
5018 ;;
5019
5020 osf3* | osf4* | osf5*)
5021 lt_cv_deplibs_check_method=pass_all
5022 ;;
5023
5024 rdos*)
5025 lt_cv_deplibs_check_method=pass_all
5026 ;;
5027
5028 solaris*)
5029 lt_cv_deplibs_check_method=pass_all
5030 ;;
5031
5032 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5033 lt_cv_deplibs_check_method=pass_all
5034 ;;
5035
5036 sysv4 | sysv4.3*)
5037 case $host_vendor in
5038 motorola)
5039 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]'
5040 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5041 ;;
5042 ncr)
5043 lt_cv_deplibs_check_method=pass_all
5044 ;;
5045 sequent)
5046 lt_cv_file_magic_cmd='/bin/file'
5047 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5048 ;;
5049 sni)
5050 lt_cv_file_magic_cmd='/bin/file'
5051 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5052 lt_cv_file_magic_test_file=/lib/libc.so
5053 ;;
5054 siemens)
5055 lt_cv_deplibs_check_method=pass_all
5056 ;;
5057 pc)
5058 lt_cv_deplibs_check_method=pass_all
5059 ;;
5060 esac
5061 ;;
5062
5063 tpf*)
5064 lt_cv_deplibs_check_method=pass_all
5065 ;;
5066 esac
5067
5068 fi
5069 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5070 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5071 file_magic_cmd=$lt_cv_file_magic_cmd
5072 deplibs_check_method=$lt_cv_deplibs_check_method
5073 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086 if test -n "$ac_tool_prefix"; then
5087 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5088 set dummy ${ac_tool_prefix}ar; ac_word=$2
5089 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5090 $as_echo_n "checking for $ac_word... " >&6; }
5091 if test "${ac_cv_prog_AR+set}" = set; then
5092 $as_echo_n "(cached) " >&6
5093 else
5094 if test -n "$AR"; then
5095 ac_cv_prog_AR="$AR" # Let the user override the test.
5096 else
5097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098 for as_dir in $PATH
5099 do
5100 IFS=$as_save_IFS
5101 test -z "$as_dir" && as_dir=.
5102 for ac_exec_ext in '' $ac_executable_extensions; do
5103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5104 ac_cv_prog_AR="${ac_tool_prefix}ar"
5105 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5106 break 2
5107 fi
5108 done
5109 done
5110 IFS=$as_save_IFS
5111
5112 fi
5113 fi
5114 AR=$ac_cv_prog_AR
5115 if test -n "$AR"; then
5116 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5117 $as_echo "$AR" >&6; }
5118 else
5119 { $as_echo "$as_me:$LINENO: result: no" >&5
5120 $as_echo "no" >&6; }
5121 fi
5122
5123
5124 fi
5125 if test -z "$ac_cv_prog_AR"; then
5126 ac_ct_AR=$AR
5127 # Extract the first word of "ar", so it can be a program name with args.
5128 set dummy ar; ac_word=$2
5129 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5130 $as_echo_n "checking for $ac_word... " >&6; }
5131 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5132 $as_echo_n "(cached) " >&6
5133 else
5134 if test -n "$ac_ct_AR"; then
5135 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5136 else
5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138 for as_dir in $PATH
5139 do
5140 IFS=$as_save_IFS
5141 test -z "$as_dir" && as_dir=.
5142 for ac_exec_ext in '' $ac_executable_extensions; do
5143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5144 ac_cv_prog_ac_ct_AR="ar"
5145 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5146 break 2
5147 fi
5148 done
5149 done
5150 IFS=$as_save_IFS
5151
5152 fi
5153 fi
5154 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5155 if test -n "$ac_ct_AR"; then
5156 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5157 $as_echo "$ac_ct_AR" >&6; }
5158 else
5159 { $as_echo "$as_me:$LINENO: result: no" >&5
5160 $as_echo "no" >&6; }
5161 fi
5162
5163 if test "x$ac_ct_AR" = x; then
5164 AR="false"
5165 else
5166 case $cross_compiling:$ac_tool_warned in
5167 yes:)
5168 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5170 ac_tool_warned=yes ;;
5171 esac
5172 AR=$ac_ct_AR
5173 fi
5174 else
5175 AR="$ac_cv_prog_AR"
5176 fi
5177
5178 test -z "$AR" && AR=ar
5179 test -z "$AR_FLAGS" && AR_FLAGS=cru
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191 if test -n "$ac_tool_prefix"; then
5192 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5193 set dummy ${ac_tool_prefix}strip; ac_word=$2
5194 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5195 $as_echo_n "checking for $ac_word... " >&6; }
5196 if test "${ac_cv_prog_STRIP+set}" = set; then
5197 $as_echo_n "(cached) " >&6
5198 else
5199 if test -n "$STRIP"; then
5200 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5201 else
5202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203 for as_dir in $PATH
5204 do
5205 IFS=$as_save_IFS
5206 test -z "$as_dir" && as_dir=.
5207 for ac_exec_ext in '' $ac_executable_extensions; do
5208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5209 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5210 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5211 break 2
5212 fi
5213 done
5214 done
5215 IFS=$as_save_IFS
5216
5217 fi
5218 fi
5219 STRIP=$ac_cv_prog_STRIP
5220 if test -n "$STRIP"; then
5221 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5222 $as_echo "$STRIP" >&6; }
5223 else
5224 { $as_echo "$as_me:$LINENO: result: no" >&5
5225 $as_echo "no" >&6; }
5226 fi
5227
5228
5229 fi
5230 if test -z "$ac_cv_prog_STRIP"; then
5231 ac_ct_STRIP=$STRIP
5232 # Extract the first word of "strip", so it can be a program name with args.
5233 set dummy strip; ac_word=$2
5234 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5235 $as_echo_n "checking for $ac_word... " >&6; }
5236 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5237 $as_echo_n "(cached) " >&6
5238 else
5239 if test -n "$ac_ct_STRIP"; then
5240 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5241 else
5242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243 for as_dir in $PATH
5244 do
5245 IFS=$as_save_IFS
5246 test -z "$as_dir" && as_dir=.
5247 for ac_exec_ext in '' $ac_executable_extensions; do
5248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5249 ac_cv_prog_ac_ct_STRIP="strip"
5250 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5251 break 2
5252 fi
5253 done
5254 done
5255 IFS=$as_save_IFS
5256
5257 fi
5258 fi
5259 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5260 if test -n "$ac_ct_STRIP"; then
5261 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5262 $as_echo "$ac_ct_STRIP" >&6; }
5263 else
5264 { $as_echo "$as_me:$LINENO: result: no" >&5
5265 $as_echo "no" >&6; }
5266 fi
5267
5268 if test "x$ac_ct_STRIP" = x; then
5269 STRIP=":"
5270 else
5271 case $cross_compiling:$ac_tool_warned in
5272 yes:)
5273 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5274 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5275 ac_tool_warned=yes ;;
5276 esac
5277 STRIP=$ac_ct_STRIP
5278 fi
5279 else
5280 STRIP="$ac_cv_prog_STRIP"
5281 fi
5282
5283 test -z "$STRIP" && STRIP=:
5284
5285
5286
5287
5288
5289
5290 if test -n "$ac_tool_prefix"; then
5291 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5292 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5293 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5294 $as_echo_n "checking for $ac_word... " >&6; }
5295 if test "${ac_cv_prog_RANLIB+set}" = set; then
5296 $as_echo_n "(cached) " >&6
5297 else
5298 if test -n "$RANLIB"; then
5299 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5300 else
5301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302 for as_dir in $PATH
5303 do
5304 IFS=$as_save_IFS
5305 test -z "$as_dir" && as_dir=.
5306 for ac_exec_ext in '' $ac_executable_extensions; do
5307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5308 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5309 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5310 break 2
5311 fi
5312 done
5313 done
5314 IFS=$as_save_IFS
5315
5316 fi
5317 fi
5318 RANLIB=$ac_cv_prog_RANLIB
5319 if test -n "$RANLIB"; then
5320 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5321 $as_echo "$RANLIB" >&6; }
5322 else
5323 { $as_echo "$as_me:$LINENO: result: no" >&5
5324 $as_echo "no" >&6; }
5325 fi
5326
5327
5328 fi
5329 if test -z "$ac_cv_prog_RANLIB"; then
5330 ac_ct_RANLIB=$RANLIB
5331 # Extract the first word of "ranlib", so it can be a program name with args.
5332 set dummy ranlib; ac_word=$2
5333 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5334 $as_echo_n "checking for $ac_word... " >&6; }
5335 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5336 $as_echo_n "(cached) " >&6
5337 else
5338 if test -n "$ac_ct_RANLIB"; then
5339 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5340 else
5341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5342 for as_dir in $PATH
5343 do
5344 IFS=$as_save_IFS
5345 test -z "$as_dir" && as_dir=.
5346 for ac_exec_ext in '' $ac_executable_extensions; do
5347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5348 ac_cv_prog_ac_ct_RANLIB="ranlib"
5349 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5350 break 2
5351 fi
5352 done
5353 done
5354 IFS=$as_save_IFS
5355
5356 fi
5357 fi
5358 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5359 if test -n "$ac_ct_RANLIB"; then
5360 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5361 $as_echo "$ac_ct_RANLIB" >&6; }
5362 else
5363 { $as_echo "$as_me:$LINENO: result: no" >&5
5364 $as_echo "no" >&6; }
5365 fi
5366
5367 if test "x$ac_ct_RANLIB" = x; then
5368 RANLIB=":"
5369 else
5370 case $cross_compiling:$ac_tool_warned in
5371 yes:)
5372 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5374 ac_tool_warned=yes ;;
5375 esac
5376 RANLIB=$ac_ct_RANLIB
5377 fi
5378 else
5379 RANLIB="$ac_cv_prog_RANLIB"
5380 fi
5381
5382 test -z "$RANLIB" && RANLIB=:
5383
5384
5385
5386
5387
5388
5389 # Determine commands to create old-style static archives.
5390 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5391 old_postinstall_cmds='chmod 644 $oldlib'
5392 old_postuninstall_cmds=
5393
5394 if test -n "$RANLIB"; then
5395 case $host_os in
5396 openbsd*)
5397 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5398 ;;
5399 *)
5400 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5401 ;;
5402 esac
5403 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5404 fi
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439 # If no C compiler was specified, use CC.
5440 LTCC=${LTCC-"$CC"}
5441
5442 # If no C compiler flags were specified, use CFLAGS.
5443 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5444
5445 # Allow CC to be a program name with arguments.
5446 compiler=$CC
5447
5448
5449 # Check for command to grab the raw symbol name followed by C symbol from nm.
5450 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5451 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5452 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5453 $as_echo_n "(cached) " >&6
5454 else
5455
5456 # These are sane defaults that work on at least a few old systems.
5457 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5458
5459 # Character class describing NM global symbol codes.
5460 symcode='[BCDEGRST]'
5461
5462 # Regexp to match symbols that can be accessed directly from C.
5463 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5464
5465 # Define system-specific variables.
5466 case $host_os in
5467 aix*)
5468 symcode='[BCDT]'
5469 ;;
5470 cygwin* | mingw* | pw32* | cegcc*)
5471 symcode='[ABCDGISTW]'
5472 ;;
5473 hpux*)
5474 if test "$host_cpu" = ia64; then
5475 symcode='[ABCDEGRST]'
5476 fi
5477 ;;
5478 irix* | nonstopux*)
5479 symcode='[BCDEGRST]'
5480 ;;
5481 osf*)
5482 symcode='[BCDEGQRST]'
5483 ;;
5484 solaris*)
5485 symcode='[BDRT]'
5486 ;;
5487 sco3.2v5*)
5488 symcode='[DT]'
5489 ;;
5490 sysv4.2uw2*)
5491 symcode='[DT]'
5492 ;;
5493 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5494 symcode='[ABDT]'
5495 ;;
5496 sysv4)
5497 symcode='[DFNSTU]'
5498 ;;
5499 esac
5500
5501 # If we're using GNU nm, then use its standard symbol codes.
5502 case `$NM -V 2>&1` in
5503 *GNU* | *'with BFD'*)
5504 symcode='[ABCDGIRSTW]' ;;
5505 esac
5506
5507 # Transform an extracted symbol line into a proper C declaration.
5508 # Some systems (esp. on ia64) link data and code symbols differently,
5509 # so use this general approach.
5510 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5511
5512 # Transform an extracted symbol line into symbol name and symbol address
5513 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5514 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'"
5515
5516 # Handle CRLF in mingw tool chain
5517 opt_cr=
5518 case $build_os in
5519 mingw*)
5520 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5521 ;;
5522 esac
5523
5524 # Try without a prefix underscore, then with it.
5525 for ac_symprfx in "" "_"; do
5526
5527 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5528 symxfrm="\\1 $ac_symprfx\\2 \\2"
5529
5530 # Write the raw and C identifiers.
5531 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5532 # Fake it for dumpbin and say T for any non-static function
5533 # and D for any global variable.
5534 # Also find C++ and __fastcall symbols from MSVC++,
5535 # which start with @ or ?.
5536 lt_cv_sys_global_symbol_pipe="$AWK '"\
5537 " {last_section=section; section=\$ 3};"\
5538 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5539 " \$ 0!~/External *\|/{next};"\
5540 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5541 " {if(hide[section]) next};"\
5542 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5543 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5544 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5545 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5546 " ' prfx=^$ac_symprfx"
5547 else
5548 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5549 fi
5550
5551 # Check to see that the pipe works correctly.
5552 pipe_works=no
5553
5554 rm -f conftest*
5555 cat > conftest.$ac_ext <<_LT_EOF
5556 #ifdef __cplusplus
5557 extern "C" {
5558 #endif
5559 char nm_test_var;
5560 void nm_test_func(void);
5561 void nm_test_func(void){}
5562 #ifdef __cplusplus
5563 }
5564 #endif
5565 int main(){nm_test_var='a';nm_test_func();return(0);}
5566 _LT_EOF
5567
5568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5569 (eval $ac_compile) 2>&5
5570 ac_status=$?
5571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572 (exit $ac_status); }; then
5573 # Now try to grab the symbols.
5574 nlist=conftest.nm
5575 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5576 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5577 ac_status=$?
5578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); } && test -s "$nlist"; then
5580 # Try sorting and uniquifying the output.
5581 if sort "$nlist" | uniq > "$nlist"T; then
5582 mv -f "$nlist"T "$nlist"
5583 else
5584 rm -f "$nlist"T
5585 fi
5586
5587 # Make sure that we snagged all the symbols we need.
5588 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5589 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5590 cat <<_LT_EOF > conftest.$ac_ext
5591 #ifdef __cplusplus
5592 extern "C" {
5593 #endif
5594
5595 _LT_EOF
5596 # Now generate the symbol file.
5597 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5598
5599 cat <<_LT_EOF >> conftest.$ac_ext
5600
5601 /* The mapping between symbol names and symbols. */
5602 const struct {
5603 const char *name;
5604 void *address;
5605 }
5606 lt__PROGRAM__LTX_preloaded_symbols[] =
5607 {
5608 { "@PROGRAM@", (void *) 0 },
5609 _LT_EOF
5610 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5611 cat <<\_LT_EOF >> conftest.$ac_ext
5612 {0, (void *) 0}
5613 };
5614
5615 /* This works around a problem in FreeBSD linker */
5616 #ifdef FREEBSD_WORKAROUND
5617 static const void *lt_preloaded_setup() {
5618 return lt__PROGRAM__LTX_preloaded_symbols;
5619 }
5620 #endif
5621
5622 #ifdef __cplusplus
5623 }
5624 #endif
5625 _LT_EOF
5626 # Now try linking the two files.
5627 mv conftest.$ac_objext conftstm.$ac_objext
5628 lt_save_LIBS="$LIBS"
5629 lt_save_CFLAGS="$CFLAGS"
5630 LIBS="conftstm.$ac_objext"
5631 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5633 (eval $ac_link) 2>&5
5634 ac_status=$?
5635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5637 pipe_works=yes
5638 fi
5639 LIBS="$lt_save_LIBS"
5640 CFLAGS="$lt_save_CFLAGS"
5641 else
5642 echo "cannot find nm_test_func in $nlist" >&5
5643 fi
5644 else
5645 echo "cannot find nm_test_var in $nlist" >&5
5646 fi
5647 else
5648 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5649 fi
5650 else
5651 echo "$progname: failed program was:" >&5
5652 cat conftest.$ac_ext >&5
5653 fi
5654 rm -rf conftest* conftst*
5655
5656 # Do not use the global_symbol_pipe unless it works.
5657 if test "$pipe_works" = yes; then
5658 break
5659 else
5660 lt_cv_sys_global_symbol_pipe=
5661 fi
5662 done
5663
5664 fi
5665
5666 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5667 lt_cv_sys_global_symbol_to_cdecl=
5668 fi
5669 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5670 { $as_echo "$as_me:$LINENO: result: failed" >&5
5671 $as_echo "failed" >&6; }
5672 else
5673 { $as_echo "$as_me:$LINENO: result: ok" >&5
5674 $as_echo "ok" >&6; }
5675 fi
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699 # Check whether --enable-libtool-lock was given.
5700 if test "${enable_libtool_lock+set}" = set; then
5701 enableval=$enable_libtool_lock;
5702 fi
5703
5704 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5705
5706 # Some flags need to be propagated to the compiler or linker for good
5707 # libtool support.
5708 case $host in
5709 ia64-*-hpux*)
5710 # Find out which ABI we are using.
5711 echo 'int i;' > conftest.$ac_ext
5712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5713 (eval $ac_compile) 2>&5
5714 ac_status=$?
5715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; then
5717 case `/usr/bin/file conftest.$ac_objext` in
5718 *ELF-32*)
5719 HPUX_IA64_MODE="32"
5720 ;;
5721 *ELF-64*)
5722 HPUX_IA64_MODE="64"
5723 ;;
5724 esac
5725 fi
5726 rm -rf conftest*
5727 ;;
5728 *-*-irix6*)
5729 # Find out which ABI we are using.
5730 echo '#line 5730 "configure"' > conftest.$ac_ext
5731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5732 (eval $ac_compile) 2>&5
5733 ac_status=$?
5734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); }; then
5736 if test "$lt_cv_prog_gnu_ld" = yes; then
5737 case `/usr/bin/file conftest.$ac_objext` in
5738 *32-bit*)
5739 LD="${LD-ld} -melf32bsmip"
5740 ;;
5741 *N32*)
5742 LD="${LD-ld} -melf32bmipn32"
5743 ;;
5744 *64-bit*)
5745 LD="${LD-ld} -melf64bmip"
5746 ;;
5747 esac
5748 else
5749 case `/usr/bin/file conftest.$ac_objext` in
5750 *32-bit*)
5751 LD="${LD-ld} -32"
5752 ;;
5753 *N32*)
5754 LD="${LD-ld} -n32"
5755 ;;
5756 *64-bit*)
5757 LD="${LD-ld} -64"
5758 ;;
5759 esac
5760 fi
5761 fi
5762 rm -rf conftest*
5763 ;;
5764
5765 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5766 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5767 # Find out which ABI we are using.
5768 echo 'int i;' > conftest.$ac_ext
5769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5770 (eval $ac_compile) 2>&5
5771 ac_status=$?
5772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); }; then
5774 case `/usr/bin/file conftest.o` in
5775 *32-bit*)
5776 case $host in
5777 x86_64-*kfreebsd*-gnu)
5778 LD="${LD-ld} -m elf_i386_fbsd"
5779 ;;
5780 x86_64-*linux*)
5781 LD="${LD-ld} -m elf_i386"
5782 ;;
5783 ppc64-*linux*|powerpc64-*linux*)
5784 LD="${LD-ld} -m elf32ppclinux"
5785 ;;
5786 s390x-*linux*)
5787 LD="${LD-ld} -m elf_s390"
5788 ;;
5789 sparc64-*linux*)
5790 LD="${LD-ld} -m elf32_sparc"
5791 ;;
5792 esac
5793 ;;
5794 *64-bit*)
5795 case $host in
5796 x86_64-*kfreebsd*-gnu)
5797 LD="${LD-ld} -m elf_x86_64_fbsd"
5798 ;;
5799 x86_64-*linux*)
5800 LD="${LD-ld} -m elf_x86_64"
5801 ;;
5802 ppc*-*linux*|powerpc*-*linux*)
5803 LD="${LD-ld} -m elf64ppc"
5804 ;;
5805 s390*-*linux*|s390*-*tpf*)
5806 LD="${LD-ld} -m elf64_s390"
5807 ;;
5808 sparc*-*linux*)
5809 LD="${LD-ld} -m elf64_sparc"
5810 ;;
5811 esac
5812 ;;
5813 esac
5814 fi
5815 rm -rf conftest*
5816 ;;
5817
5818 *-*-sco3.2v5*)
5819 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5820 SAVE_CFLAGS="$CFLAGS"
5821 CFLAGS="$CFLAGS -belf"
5822 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5823 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5824 if test "${lt_cv_cc_needs_belf+set}" = set; then
5825 $as_echo_n "(cached) " >&6
5826 else
5827 ac_ext=c
5828 ac_cpp='$CPP $CPPFLAGS'
5829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5832
5833 cat >conftest.$ac_ext <<_ACEOF
5834 /* confdefs.h. */
5835 _ACEOF
5836 cat confdefs.h >>conftest.$ac_ext
5837 cat >>conftest.$ac_ext <<_ACEOF
5838 /* end confdefs.h. */
5839
5840 int
5841 main ()
5842 {
5843
5844 ;
5845 return 0;
5846 }
5847 _ACEOF
5848 rm -f conftest.$ac_objext conftest$ac_exeext
5849 if { (ac_try="$ac_link"
5850 case "(($ac_try" in
5851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5852 *) ac_try_echo=$ac_try;;
5853 esac
5854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5855 $as_echo "$ac_try_echo") >&5
5856 (eval "$ac_link") 2>conftest.er1
5857 ac_status=$?
5858 grep -v '^ *+' conftest.er1 >conftest.err
5859 rm -f conftest.er1
5860 cat conftest.err >&5
5861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } && {
5863 test -z "$ac_c_werror_flag" ||
5864 test ! -s conftest.err
5865 } && test -s conftest$ac_exeext && {
5866 test "$cross_compiling" = yes ||
5867 $as_test_x conftest$ac_exeext
5868 }; then
5869 lt_cv_cc_needs_belf=yes
5870 else
5871 $as_echo "$as_me: failed program was:" >&5
5872 sed 's/^/| /' conftest.$ac_ext >&5
5873
5874 lt_cv_cc_needs_belf=no
5875 fi
5876
5877 rm -rf conftest.dSYM
5878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5879 conftest$ac_exeext conftest.$ac_ext
5880 ac_ext=c
5881 ac_cpp='$CPP $CPPFLAGS'
5882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5885
5886 fi
5887 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5888 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5889 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5890 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5891 CFLAGS="$SAVE_CFLAGS"
5892 fi
5893 ;;
5894 sparc*-*solaris*)
5895 # Find out which ABI we are using.
5896 echo 'int i;' > conftest.$ac_ext
5897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5898 (eval $ac_compile) 2>&5
5899 ac_status=$?
5900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); }; then
5902 case `/usr/bin/file conftest.o` in
5903 *64-bit*)
5904 case $lt_cv_prog_gnu_ld in
5905 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5906 *)
5907 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5908 LD="${LD-ld} -64"
5909 fi
5910 ;;
5911 esac
5912 ;;
5913 esac
5914 fi
5915 rm -rf conftest*
5916 ;;
5917 esac
5918
5919 need_locks="$enable_libtool_lock"
5920
5921
5922 case $host_os in
5923 rhapsody* | darwin*)
5924 if test -n "$ac_tool_prefix"; then
5925 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5926 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5927 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5928 $as_echo_n "checking for $ac_word... " >&6; }
5929 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5930 $as_echo_n "(cached) " >&6
5931 else
5932 if test -n "$DSYMUTIL"; then
5933 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5934 else
5935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936 for as_dir in $PATH
5937 do
5938 IFS=$as_save_IFS
5939 test -z "$as_dir" && as_dir=.
5940 for ac_exec_ext in '' $ac_executable_extensions; do
5941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5942 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5943 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5944 break 2
5945 fi
5946 done
5947 done
5948 IFS=$as_save_IFS
5949
5950 fi
5951 fi
5952 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5953 if test -n "$DSYMUTIL"; then
5954 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5955 $as_echo "$DSYMUTIL" >&6; }
5956 else
5957 { $as_echo "$as_me:$LINENO: result: no" >&5
5958 $as_echo "no" >&6; }
5959 fi
5960
5961
5962 fi
5963 if test -z "$ac_cv_prog_DSYMUTIL"; then
5964 ac_ct_DSYMUTIL=$DSYMUTIL
5965 # Extract the first word of "dsymutil", so it can be a program name with args.
5966 set dummy dsymutil; ac_word=$2
5967 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5968 $as_echo_n "checking for $ac_word... " >&6; }
5969 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5970 $as_echo_n "(cached) " >&6
5971 else
5972 if test -n "$ac_ct_DSYMUTIL"; then
5973 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5974 else
5975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976 for as_dir in $PATH
5977 do
5978 IFS=$as_save_IFS
5979 test -z "$as_dir" && as_dir=.
5980 for ac_exec_ext in '' $ac_executable_extensions; do
5981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5982 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5983 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5984 break 2
5985 fi
5986 done
5987 done
5988 IFS=$as_save_IFS
5989
5990 fi
5991 fi
5992 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5993 if test -n "$ac_ct_DSYMUTIL"; then
5994 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5995 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5996 else
5997 { $as_echo "$as_me:$LINENO: result: no" >&5
5998 $as_echo "no" >&6; }
5999 fi
6000
6001 if test "x$ac_ct_DSYMUTIL" = x; then
6002 DSYMUTIL=":"
6003 else
6004 case $cross_compiling:$ac_tool_warned in
6005 yes:)
6006 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6007 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6008 ac_tool_warned=yes ;;
6009 esac
6010 DSYMUTIL=$ac_ct_DSYMUTIL
6011 fi
6012 else
6013 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6014 fi
6015
6016 if test -n "$ac_tool_prefix"; then
6017 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6018 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6019 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6020 $as_echo_n "checking for $ac_word... " >&6; }
6021 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6022 $as_echo_n "(cached) " >&6
6023 else
6024 if test -n "$NMEDIT"; then
6025 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6026 else
6027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6028 for as_dir in $PATH
6029 do
6030 IFS=$as_save_IFS
6031 test -z "$as_dir" && as_dir=.
6032 for ac_exec_ext in '' $ac_executable_extensions; do
6033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6034 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6035 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6036 break 2
6037 fi
6038 done
6039 done
6040 IFS=$as_save_IFS
6041
6042 fi
6043 fi
6044 NMEDIT=$ac_cv_prog_NMEDIT
6045 if test -n "$NMEDIT"; then
6046 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6047 $as_echo "$NMEDIT" >&6; }
6048 else
6049 { $as_echo "$as_me:$LINENO: result: no" >&5
6050 $as_echo "no" >&6; }
6051 fi
6052
6053
6054 fi
6055 if test -z "$ac_cv_prog_NMEDIT"; then
6056 ac_ct_NMEDIT=$NMEDIT
6057 # Extract the first word of "nmedit", so it can be a program name with args.
6058 set dummy nmedit; ac_word=$2
6059 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6060 $as_echo_n "checking for $ac_word... " >&6; }
6061 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6062 $as_echo_n "(cached) " >&6
6063 else
6064 if test -n "$ac_ct_NMEDIT"; then
6065 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6066 else
6067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6068 for as_dir in $PATH
6069 do
6070 IFS=$as_save_IFS
6071 test -z "$as_dir" && as_dir=.
6072 for ac_exec_ext in '' $ac_executable_extensions; do
6073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6074 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6075 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6076 break 2
6077 fi
6078 done
6079 done
6080 IFS=$as_save_IFS
6081
6082 fi
6083 fi
6084 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6085 if test -n "$ac_ct_NMEDIT"; then
6086 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6087 $as_echo "$ac_ct_NMEDIT" >&6; }
6088 else
6089 { $as_echo "$as_me:$LINENO: result: no" >&5
6090 $as_echo "no" >&6; }
6091 fi
6092
6093 if test "x$ac_ct_NMEDIT" = x; then
6094 NMEDIT=":"
6095 else
6096 case $cross_compiling:$ac_tool_warned in
6097 yes:)
6098 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6099 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6100 ac_tool_warned=yes ;;
6101 esac
6102 NMEDIT=$ac_ct_NMEDIT
6103 fi
6104 else
6105 NMEDIT="$ac_cv_prog_NMEDIT"
6106 fi
6107
6108 if test -n "$ac_tool_prefix"; then
6109 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6110 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6111 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6112 $as_echo_n "checking for $ac_word... " >&6; }
6113 if test "${ac_cv_prog_LIPO+set}" = set; then
6114 $as_echo_n "(cached) " >&6
6115 else
6116 if test -n "$LIPO"; then
6117 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6118 else
6119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120 for as_dir in $PATH
6121 do
6122 IFS=$as_save_IFS
6123 test -z "$as_dir" && as_dir=.
6124 for ac_exec_ext in '' $ac_executable_extensions; do
6125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6126 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6127 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6128 break 2
6129 fi
6130 done
6131 done
6132 IFS=$as_save_IFS
6133
6134 fi
6135 fi
6136 LIPO=$ac_cv_prog_LIPO
6137 if test -n "$LIPO"; then
6138 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6139 $as_echo "$LIPO" >&6; }
6140 else
6141 { $as_echo "$as_me:$LINENO: result: no" >&5
6142 $as_echo "no" >&6; }
6143 fi
6144
6145
6146 fi
6147 if test -z "$ac_cv_prog_LIPO"; then
6148 ac_ct_LIPO=$LIPO
6149 # Extract the first word of "lipo", so it can be a program name with args.
6150 set dummy lipo; ac_word=$2
6151 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6152 $as_echo_n "checking for $ac_word... " >&6; }
6153 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6154 $as_echo_n "(cached) " >&6
6155 else
6156 if test -n "$ac_ct_LIPO"; then
6157 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6158 else
6159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160 for as_dir in $PATH
6161 do
6162 IFS=$as_save_IFS
6163 test -z "$as_dir" && as_dir=.
6164 for ac_exec_ext in '' $ac_executable_extensions; do
6165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6166 ac_cv_prog_ac_ct_LIPO="lipo"
6167 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6168 break 2
6169 fi
6170 done
6171 done
6172 IFS=$as_save_IFS
6173
6174 fi
6175 fi
6176 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6177 if test -n "$ac_ct_LIPO"; then
6178 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6179 $as_echo "$ac_ct_LIPO" >&6; }
6180 else
6181 { $as_echo "$as_me:$LINENO: result: no" >&5
6182 $as_echo "no" >&6; }
6183 fi
6184
6185 if test "x$ac_ct_LIPO" = x; then
6186 LIPO=":"
6187 else
6188 case $cross_compiling:$ac_tool_warned in
6189 yes:)
6190 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6191 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6192 ac_tool_warned=yes ;;
6193 esac
6194 LIPO=$ac_ct_LIPO
6195 fi
6196 else
6197 LIPO="$ac_cv_prog_LIPO"
6198 fi
6199
6200 if test -n "$ac_tool_prefix"; then
6201 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6202 set dummy ${ac_tool_prefix}otool; ac_word=$2
6203 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6204 $as_echo_n "checking for $ac_word... " >&6; }
6205 if test "${ac_cv_prog_OTOOL+set}" = set; then
6206 $as_echo_n "(cached) " >&6
6207 else
6208 if test -n "$OTOOL"; then
6209 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6210 else
6211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6212 for as_dir in $PATH
6213 do
6214 IFS=$as_save_IFS
6215 test -z "$as_dir" && as_dir=.
6216 for ac_exec_ext in '' $ac_executable_extensions; do
6217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6218 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6219 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6220 break 2
6221 fi
6222 done
6223 done
6224 IFS=$as_save_IFS
6225
6226 fi
6227 fi
6228 OTOOL=$ac_cv_prog_OTOOL
6229 if test -n "$OTOOL"; then
6230 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6231 $as_echo "$OTOOL" >&6; }
6232 else
6233 { $as_echo "$as_me:$LINENO: result: no" >&5
6234 $as_echo "no" >&6; }
6235 fi
6236
6237
6238 fi
6239 if test -z "$ac_cv_prog_OTOOL"; then
6240 ac_ct_OTOOL=$OTOOL
6241 # Extract the first word of "otool", so it can be a program name with args.
6242 set dummy otool; ac_word=$2
6243 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6244 $as_echo_n "checking for $ac_word... " >&6; }
6245 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6246 $as_echo_n "(cached) " >&6
6247 else
6248 if test -n "$ac_ct_OTOOL"; then
6249 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6250 else
6251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6252 for as_dir in $PATH
6253 do
6254 IFS=$as_save_IFS
6255 test -z "$as_dir" && as_dir=.
6256 for ac_exec_ext in '' $ac_executable_extensions; do
6257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6258 ac_cv_prog_ac_ct_OTOOL="otool"
6259 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6260 break 2
6261 fi
6262 done
6263 done
6264 IFS=$as_save_IFS
6265
6266 fi
6267 fi
6268 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6269 if test -n "$ac_ct_OTOOL"; then
6270 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6271 $as_echo "$ac_ct_OTOOL" >&6; }
6272 else
6273 { $as_echo "$as_me:$LINENO: result: no" >&5
6274 $as_echo "no" >&6; }
6275 fi
6276
6277 if test "x$ac_ct_OTOOL" = x; then
6278 OTOOL=":"
6279 else
6280 case $cross_compiling:$ac_tool_warned in
6281 yes:)
6282 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6284 ac_tool_warned=yes ;;
6285 esac
6286 OTOOL=$ac_ct_OTOOL
6287 fi
6288 else
6289 OTOOL="$ac_cv_prog_OTOOL"
6290 fi
6291
6292 if test -n "$ac_tool_prefix"; then
6293 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6294 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6295 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6296 $as_echo_n "checking for $ac_word... " >&6; }
6297 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6298 $as_echo_n "(cached) " >&6
6299 else
6300 if test -n "$OTOOL64"; then
6301 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6302 else
6303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304 for as_dir in $PATH
6305 do
6306 IFS=$as_save_IFS
6307 test -z "$as_dir" && as_dir=.
6308 for ac_exec_ext in '' $ac_executable_extensions; do
6309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6310 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6311 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6312 break 2
6313 fi
6314 done
6315 done
6316 IFS=$as_save_IFS
6317
6318 fi
6319 fi
6320 OTOOL64=$ac_cv_prog_OTOOL64
6321 if test -n "$OTOOL64"; then
6322 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6323 $as_echo "$OTOOL64" >&6; }
6324 else
6325 { $as_echo "$as_me:$LINENO: result: no" >&5
6326 $as_echo "no" >&6; }
6327 fi
6328
6329
6330 fi
6331 if test -z "$ac_cv_prog_OTOOL64"; then
6332 ac_ct_OTOOL64=$OTOOL64
6333 # Extract the first word of "otool64", so it can be a program name with args.
6334 set dummy otool64; ac_word=$2
6335 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6336 $as_echo_n "checking for $ac_word... " >&6; }
6337 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6338 $as_echo_n "(cached) " >&6
6339 else
6340 if test -n "$ac_ct_OTOOL64"; then
6341 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6342 else
6343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344 for as_dir in $PATH
6345 do
6346 IFS=$as_save_IFS
6347 test -z "$as_dir" && as_dir=.
6348 for ac_exec_ext in '' $ac_executable_extensions; do
6349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6350 ac_cv_prog_ac_ct_OTOOL64="otool64"
6351 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6352 break 2
6353 fi
6354 done
6355 done
6356 IFS=$as_save_IFS
6357
6358 fi
6359 fi
6360 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6361 if test -n "$ac_ct_OTOOL64"; then
6362 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6363 $as_echo "$ac_ct_OTOOL64" >&6; }
6364 else
6365 { $as_echo "$as_me:$LINENO: result: no" >&5
6366 $as_echo "no" >&6; }
6367 fi
6368
6369 if test "x$ac_ct_OTOOL64" = x; then
6370 OTOOL64=":"
6371 else
6372 case $cross_compiling:$ac_tool_warned in
6373 yes:)
6374 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6376 ac_tool_warned=yes ;;
6377 esac
6378 OTOOL64=$ac_ct_OTOOL64
6379 fi
6380 else
6381 OTOOL64="$ac_cv_prog_OTOOL64"
6382 fi
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6411 $as_echo_n "checking for -single_module linker flag... " >&6; }
6412 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6413 $as_echo_n "(cached) " >&6
6414 else
6415 lt_cv_apple_cc_single_mod=no
6416 if test -z "${LT_MULTI_MODULE}"; then
6417 # By default we will add the -single_module flag. You can override
6418 # by either setting the environment variable LT_MULTI_MODULE
6419 # non-empty at configure time, or by adding -multi_module to the
6420 # link flags.
6421 rm -rf libconftest.dylib*
6422 echo "int foo(void){return 1;}" > conftest.c
6423 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6424 -dynamiclib -Wl,-single_module conftest.c" >&5
6425 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6426 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6427 _lt_result=$?
6428 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6429 lt_cv_apple_cc_single_mod=yes
6430 else
6431 cat conftest.err >&5
6432 fi
6433 rm -rf libconftest.dylib*
6434 rm -f conftest.*
6435 fi
6436 fi
6437 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6438 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6439 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6440 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6441 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6442 $as_echo_n "(cached) " >&6
6443 else
6444 lt_cv_ld_exported_symbols_list=no
6445 save_LDFLAGS=$LDFLAGS
6446 echo "_main" > conftest.sym
6447 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6448 cat >conftest.$ac_ext <<_ACEOF
6449 /* confdefs.h. */
6450 _ACEOF
6451 cat confdefs.h >>conftest.$ac_ext
6452 cat >>conftest.$ac_ext <<_ACEOF
6453 /* end confdefs.h. */
6454
6455 int
6456 main ()
6457 {
6458
6459 ;
6460 return 0;
6461 }
6462 _ACEOF
6463 rm -f conftest.$ac_objext conftest$ac_exeext
6464 if { (ac_try="$ac_link"
6465 case "(($ac_try" in
6466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6467 *) ac_try_echo=$ac_try;;
6468 esac
6469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6470 $as_echo "$ac_try_echo") >&5
6471 (eval "$ac_link") 2>conftest.er1
6472 ac_status=$?
6473 grep -v '^ *+' conftest.er1 >conftest.err
6474 rm -f conftest.er1
6475 cat conftest.err >&5
6476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); } && {
6478 test -z "$ac_c_werror_flag" ||
6479 test ! -s conftest.err
6480 } && test -s conftest$ac_exeext && {
6481 test "$cross_compiling" = yes ||
6482 $as_test_x conftest$ac_exeext
6483 }; then
6484 lt_cv_ld_exported_symbols_list=yes
6485 else
6486 $as_echo "$as_me: failed program was:" >&5
6487 sed 's/^/| /' conftest.$ac_ext >&5
6488
6489 lt_cv_ld_exported_symbols_list=no
6490 fi
6491
6492 rm -rf conftest.dSYM
6493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6494 conftest$ac_exeext conftest.$ac_ext
6495 LDFLAGS="$save_LDFLAGS"
6496
6497 fi
6498 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6499 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6500 case $host_os in
6501 rhapsody* | darwin1.[012])
6502 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6503 darwin1.*)
6504 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6505 darwin*) # darwin 5.x on
6506 # if running on 10.5 or later, the deployment target defaults
6507 # to the OS version, if on x86, and 10.4, the deployment
6508 # target defaults to 10.4. Don't you love it?
6509 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6510 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6511 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6512 10.[012]*)
6513 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6514 10.*)
6515 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6516 esac
6517 ;;
6518 esac
6519 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6520 _lt_dar_single_mod='$single_module'
6521 fi
6522 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6523 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6524 else
6525 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6526 fi
6527 if test "$DSYMUTIL" != ":"; then
6528 _lt_dsymutil='~$DSYMUTIL $lib || :'
6529 else
6530 _lt_dsymutil=
6531 fi
6532 ;;
6533 esac
6534
6535 ac_ext=c
6536 ac_cpp='$CPP $CPPFLAGS'
6537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6540 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6541 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6542 # On Suns, sometimes $CPP names a directory.
6543 if test -n "$CPP" && test -d "$CPP"; then
6544 CPP=
6545 fi
6546 if test -z "$CPP"; then
6547 if test "${ac_cv_prog_CPP+set}" = set; then
6548 $as_echo_n "(cached) " >&6
6549 else
6550 # Double quotes because CPP needs to be expanded
6551 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6552 do
6553 ac_preproc_ok=false
6554 for ac_c_preproc_warn_flag in '' yes
6555 do
6556 # Use a header file that comes with gcc, so configuring glibc
6557 # with a fresh cross-compiler works.
6558 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6559 # <limits.h> exists even on freestanding compilers.
6560 # On the NeXT, cc -E runs the code through the compiler's parser,
6561 # not just through cpp. "Syntax error" is here to catch this case.
6562 cat >conftest.$ac_ext <<_ACEOF
6563 /* confdefs.h. */
6564 _ACEOF
6565 cat confdefs.h >>conftest.$ac_ext
6566 cat >>conftest.$ac_ext <<_ACEOF
6567 /* end confdefs.h. */
6568 #ifdef __STDC__
6569 # include <limits.h>
6570 #else
6571 # include <assert.h>
6572 #endif
6573 Syntax error
6574 _ACEOF
6575 if { (ac_try="$ac_cpp conftest.$ac_ext"
6576 case "(($ac_try" in
6577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6578 *) ac_try_echo=$ac_try;;
6579 esac
6580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6581 $as_echo "$ac_try_echo") >&5
6582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6583 ac_status=$?
6584 grep -v '^ *+' conftest.er1 >conftest.err
6585 rm -f conftest.er1
6586 cat conftest.err >&5
6587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); } >/dev/null && {
6589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6590 test ! -s conftest.err
6591 }; then
6592 :
6593 else
6594 $as_echo "$as_me: failed program was:" >&5
6595 sed 's/^/| /' conftest.$ac_ext >&5
6596
6597 # Broken: fails on valid input.
6598 continue
6599 fi
6600
6601 rm -f conftest.err conftest.$ac_ext
6602
6603 # OK, works on sane cases. Now check whether nonexistent headers
6604 # can be detected and how.
6605 cat >conftest.$ac_ext <<_ACEOF
6606 /* confdefs.h. */
6607 _ACEOF
6608 cat confdefs.h >>conftest.$ac_ext
6609 cat >>conftest.$ac_ext <<_ACEOF
6610 /* end confdefs.h. */
6611 #include <ac_nonexistent.h>
6612 _ACEOF
6613 if { (ac_try="$ac_cpp conftest.$ac_ext"
6614 case "(($ac_try" in
6615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6616 *) ac_try_echo=$ac_try;;
6617 esac
6618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6619 $as_echo "$ac_try_echo") >&5
6620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6621 ac_status=$?
6622 grep -v '^ *+' conftest.er1 >conftest.err
6623 rm -f conftest.er1
6624 cat conftest.err >&5
6625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); } >/dev/null && {
6627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6628 test ! -s conftest.err
6629 }; then
6630 # Broken: success on invalid input.
6631 continue
6632 else
6633 $as_echo "$as_me: failed program was:" >&5
6634 sed 's/^/| /' conftest.$ac_ext >&5
6635
6636 # Passes both tests.
6637 ac_preproc_ok=:
6638 break
6639 fi
6640
6641 rm -f conftest.err conftest.$ac_ext
6642
6643 done
6644 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6645 rm -f conftest.err conftest.$ac_ext
6646 if $ac_preproc_ok; then
6647 break
6648 fi
6649
6650 done
6651 ac_cv_prog_CPP=$CPP
6652
6653 fi
6654 CPP=$ac_cv_prog_CPP
6655 else
6656 ac_cv_prog_CPP=$CPP
6657 fi
6658 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6659 $as_echo "$CPP" >&6; }
6660 ac_preproc_ok=false
6661 for ac_c_preproc_warn_flag in '' yes
6662 do
6663 # Use a header file that comes with gcc, so configuring glibc
6664 # with a fresh cross-compiler works.
6665 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6666 # <limits.h> exists even on freestanding compilers.
6667 # On the NeXT, cc -E runs the code through the compiler's parser,
6668 # not just through cpp. "Syntax error" is here to catch this case.
6669 cat >conftest.$ac_ext <<_ACEOF
6670 /* confdefs.h. */
6671 _ACEOF
6672 cat confdefs.h >>conftest.$ac_ext
6673 cat >>conftest.$ac_ext <<_ACEOF
6674 /* end confdefs.h. */
6675 #ifdef __STDC__
6676 # include <limits.h>
6677 #else
6678 # include <assert.h>
6679 #endif
6680 Syntax error
6681 _ACEOF
6682 if { (ac_try="$ac_cpp conftest.$ac_ext"
6683 case "(($ac_try" in
6684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6685 *) ac_try_echo=$ac_try;;
6686 esac
6687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6688 $as_echo "$ac_try_echo") >&5
6689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6690 ac_status=$?
6691 grep -v '^ *+' conftest.er1 >conftest.err
6692 rm -f conftest.er1
6693 cat conftest.err >&5
6694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); } >/dev/null && {
6696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6697 test ! -s conftest.err
6698 }; then
6699 :
6700 else
6701 $as_echo "$as_me: failed program was:" >&5
6702 sed 's/^/| /' conftest.$ac_ext >&5
6703
6704 # Broken: fails on valid input.
6705 continue
6706 fi
6707
6708 rm -f conftest.err conftest.$ac_ext
6709
6710 # OK, works on sane cases. Now check whether nonexistent headers
6711 # can be detected and how.
6712 cat >conftest.$ac_ext <<_ACEOF
6713 /* confdefs.h. */
6714 _ACEOF
6715 cat confdefs.h >>conftest.$ac_ext
6716 cat >>conftest.$ac_ext <<_ACEOF
6717 /* end confdefs.h. */
6718 #include <ac_nonexistent.h>
6719 _ACEOF
6720 if { (ac_try="$ac_cpp conftest.$ac_ext"
6721 case "(($ac_try" in
6722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6723 *) ac_try_echo=$ac_try;;
6724 esac
6725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6726 $as_echo "$ac_try_echo") >&5
6727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6728 ac_status=$?
6729 grep -v '^ *+' conftest.er1 >conftest.err
6730 rm -f conftest.er1
6731 cat conftest.err >&5
6732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); } >/dev/null && {
6734 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6735 test ! -s conftest.err
6736 }; then
6737 # Broken: success on invalid input.
6738 continue
6739 else
6740 $as_echo "$as_me: failed program was:" >&5
6741 sed 's/^/| /' conftest.$ac_ext >&5
6742
6743 # Passes both tests.
6744 ac_preproc_ok=:
6745 break
6746 fi
6747
6748 rm -f conftest.err conftest.$ac_ext
6749
6750 done
6751 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6752 rm -f conftest.err conftest.$ac_ext
6753 if $ac_preproc_ok; then
6754 :
6755 else
6756 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6757 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6758 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6759 See \`config.log' for more details." >&5
6760 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6761 See \`config.log' for more details." >&2;}
6762 { (exit 1); exit 1; }; }; }
6763 fi
6764
6765 ac_ext=c
6766 ac_cpp='$CPP $CPPFLAGS'
6767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6770
6771
6772 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6773 $as_echo_n "checking for ANSI C header files... " >&6; }
6774 if test "${ac_cv_header_stdc+set}" = set; then
6775 $as_echo_n "(cached) " >&6
6776 else
6777 cat >conftest.$ac_ext <<_ACEOF
6778 /* confdefs.h. */
6779 _ACEOF
6780 cat confdefs.h >>conftest.$ac_ext
6781 cat >>conftest.$ac_ext <<_ACEOF
6782 /* end confdefs.h. */
6783 #include <stdlib.h>
6784 #include <stdarg.h>
6785 #include <string.h>
6786 #include <float.h>
6787
6788 int
6789 main ()
6790 {
6791
6792 ;
6793 return 0;
6794 }
6795 _ACEOF
6796 rm -f conftest.$ac_objext
6797 if { (ac_try="$ac_compile"
6798 case "(($ac_try" in
6799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6800 *) ac_try_echo=$ac_try;;
6801 esac
6802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6803 $as_echo "$ac_try_echo") >&5
6804 (eval "$ac_compile") 2>conftest.er1
6805 ac_status=$?
6806 grep -v '^ *+' conftest.er1 >conftest.err
6807 rm -f conftest.er1
6808 cat conftest.err >&5
6809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); } && {
6811 test -z "$ac_c_werror_flag" ||
6812 test ! -s conftest.err
6813 } && test -s conftest.$ac_objext; then
6814 ac_cv_header_stdc=yes
6815 else
6816 $as_echo "$as_me: failed program was:" >&5
6817 sed 's/^/| /' conftest.$ac_ext >&5
6818
6819 ac_cv_header_stdc=no
6820 fi
6821
6822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6823
6824 if test $ac_cv_header_stdc = yes; then
6825 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6826 cat >conftest.$ac_ext <<_ACEOF
6827 /* confdefs.h. */
6828 _ACEOF
6829 cat confdefs.h >>conftest.$ac_ext
6830 cat >>conftest.$ac_ext <<_ACEOF
6831 /* end confdefs.h. */
6832 #include <string.h>
6833
6834 _ACEOF
6835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6836 $EGREP "memchr" >/dev/null 2>&1; then
6837 :
6838 else
6839 ac_cv_header_stdc=no
6840 fi
6841 rm -f conftest*
6842
6843 fi
6844
6845 if test $ac_cv_header_stdc = yes; then
6846 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6847 cat >conftest.$ac_ext <<_ACEOF
6848 /* confdefs.h. */
6849 _ACEOF
6850 cat confdefs.h >>conftest.$ac_ext
6851 cat >>conftest.$ac_ext <<_ACEOF
6852 /* end confdefs.h. */
6853 #include <stdlib.h>
6854
6855 _ACEOF
6856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6857 $EGREP "free" >/dev/null 2>&1; then
6858 :
6859 else
6860 ac_cv_header_stdc=no
6861 fi
6862 rm -f conftest*
6863
6864 fi
6865
6866 if test $ac_cv_header_stdc = yes; then
6867 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6868 if test "$cross_compiling" = yes; then
6869 :
6870 else
6871 cat >conftest.$ac_ext <<_ACEOF
6872 /* confdefs.h. */
6873 _ACEOF
6874 cat confdefs.h >>conftest.$ac_ext
6875 cat >>conftest.$ac_ext <<_ACEOF
6876 /* end confdefs.h. */
6877 #include <ctype.h>
6878 #include <stdlib.h>
6879 #if ((' ' & 0x0FF) == 0x020)
6880 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6881 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6882 #else
6883 # define ISLOWER(c) \
6884 (('a' <= (c) && (c) <= 'i') \
6885 || ('j' <= (c) && (c) <= 'r') \
6886 || ('s' <= (c) && (c) <= 'z'))
6887 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6888 #endif
6889
6890 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6891 int
6892 main ()
6893 {
6894 int i;
6895 for (i = 0; i < 256; i++)
6896 if (XOR (islower (i), ISLOWER (i))
6897 || toupper (i) != TOUPPER (i))
6898 return 2;
6899 return 0;
6900 }
6901 _ACEOF
6902 rm -f conftest$ac_exeext
6903 if { (ac_try="$ac_link"
6904 case "(($ac_try" in
6905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6906 *) ac_try_echo=$ac_try;;
6907 esac
6908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6909 $as_echo "$ac_try_echo") >&5
6910 (eval "$ac_link") 2>&5
6911 ac_status=$?
6912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6914 { (case "(($ac_try" in
6915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6916 *) ac_try_echo=$ac_try;;
6917 esac
6918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6919 $as_echo "$ac_try_echo") >&5
6920 (eval "$ac_try") 2>&5
6921 ac_status=$?
6922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); }; }; then
6924 :
6925 else
6926 $as_echo "$as_me: program exited with status $ac_status" >&5
6927 $as_echo "$as_me: failed program was:" >&5
6928 sed 's/^/| /' conftest.$ac_ext >&5
6929
6930 ( exit $ac_status )
6931 ac_cv_header_stdc=no
6932 fi
6933 rm -rf conftest.dSYM
6934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6935 fi
6936
6937
6938 fi
6939 fi
6940 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6941 $as_echo "$ac_cv_header_stdc" >&6; }
6942 if test $ac_cv_header_stdc = yes; then
6943
6944 cat >>confdefs.h <<\_ACEOF
6945 #define STDC_HEADERS 1
6946 _ACEOF
6947
6948 fi
6949
6950 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6961 inttypes.h stdint.h unistd.h
6962 do
6963 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6964 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6965 $as_echo_n "checking for $ac_header... " >&6; }
6966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6967 $as_echo_n "(cached) " >&6
6968 else
6969 cat >conftest.$ac_ext <<_ACEOF
6970 /* confdefs.h. */
6971 _ACEOF
6972 cat confdefs.h >>conftest.$ac_ext
6973 cat >>conftest.$ac_ext <<_ACEOF
6974 /* end confdefs.h. */
6975 $ac_includes_default
6976
6977 #include <$ac_header>
6978 _ACEOF
6979 rm -f conftest.$ac_objext
6980 if { (ac_try="$ac_compile"
6981 case "(($ac_try" in
6982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6983 *) ac_try_echo=$ac_try;;
6984 esac
6985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6986 $as_echo "$ac_try_echo") >&5
6987 (eval "$ac_compile") 2>conftest.er1
6988 ac_status=$?
6989 grep -v '^ *+' conftest.er1 >conftest.err
6990 rm -f conftest.er1
6991 cat conftest.err >&5
6992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 (exit $ac_status); } && {
6994 test -z "$ac_c_werror_flag" ||
6995 test ! -s conftest.err
6996 } && test -s conftest.$ac_objext; then
6997 eval "$as_ac_Header=yes"
6998 else
6999 $as_echo "$as_me: failed program was:" >&5
7000 sed 's/^/| /' conftest.$ac_ext >&5
7001
7002 eval "$as_ac_Header=no"
7003 fi
7004
7005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7006 fi
7007 ac_res=`eval 'as_val=${'$as_ac_Header'}
7008 $as_echo "$as_val"'`
7009 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7010 $as_echo "$ac_res" >&6; }
7011 as_val=`eval 'as_val=${'$as_ac_Header'}
7012 $as_echo "$as_val"'`
7013 if test "x$as_val" = x""yes; then
7014 cat >>confdefs.h <<_ACEOF
7015 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7016 _ACEOF
7017
7018 fi
7019
7020 done
7021
7022
7023
7024 for ac_header in dlfcn.h
7025 do
7026 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7027 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7028 $as_echo_n "checking for $ac_header... " >&6; }
7029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7030 $as_echo_n "(cached) " >&6
7031 else
7032 cat >conftest.$ac_ext <<_ACEOF
7033 /* confdefs.h. */
7034 _ACEOF
7035 cat confdefs.h >>conftest.$ac_ext
7036 cat >>conftest.$ac_ext <<_ACEOF
7037 /* end confdefs.h. */
7038 $ac_includes_default
7039
7040 #include <$ac_header>
7041 _ACEOF
7042 rm -f conftest.$ac_objext
7043 if { (ac_try="$ac_compile"
7044 case "(($ac_try" in
7045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7046 *) ac_try_echo=$ac_try;;
7047 esac
7048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7049 $as_echo "$ac_try_echo") >&5
7050 (eval "$ac_compile") 2>conftest.er1
7051 ac_status=$?
7052 grep -v '^ *+' conftest.er1 >conftest.err
7053 rm -f conftest.er1
7054 cat conftest.err >&5
7055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); } && {
7057 test -z "$ac_c_werror_flag" ||
7058 test ! -s conftest.err
7059 } && test -s conftest.$ac_objext; then
7060 eval "$as_ac_Header=yes"
7061 else
7062 $as_echo "$as_me: failed program was:" >&5
7063 sed 's/^/| /' conftest.$ac_ext >&5
7064
7065 eval "$as_ac_Header=no"
7066 fi
7067
7068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7069 fi
7070 ac_res=`eval 'as_val=${'$as_ac_Header'}
7071 $as_echo "$as_val"'`
7072 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7073 $as_echo "$ac_res" >&6; }
7074 as_val=`eval 'as_val=${'$as_ac_Header'}
7075 $as_echo "$as_val"'`
7076 if test "x$as_val" = x""yes; then
7077 cat >>confdefs.h <<_ACEOF
7078 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7079 _ACEOF
7080
7081 fi
7082
7083 done
7084
7085
7086
7087 # Set options
7088
7089
7090
7091 enable_dlopen=no
7092
7093
7094 enable_win32_dll=no
7095
7096
7097 # Check whether --enable-shared was given.
7098 if test "${enable_shared+set}" = set; then
7099 enableval=$enable_shared; p=${PACKAGE-default}
7100 case $enableval in
7101 yes) enable_shared=yes ;;
7102 no) enable_shared=no ;;
7103 *)
7104 enable_shared=no
7105 # Look at the argument we got. We use all the common list separators.
7106 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7107 for pkg in $enableval; do
7108 IFS="$lt_save_ifs"
7109 if test "X$pkg" = "X$p"; then
7110 enable_shared=yes
7111 fi
7112 done
7113 IFS="$lt_save_ifs"
7114 ;;
7115 esac
7116 else
7117 enable_shared=yes
7118 fi
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128 # Check whether --enable-static was given.
7129 if test "${enable_static+set}" = set; then
7130 enableval=$enable_static; p=${PACKAGE-default}
7131 case $enableval in
7132 yes) enable_static=yes ;;
7133 no) enable_static=no ;;
7134 *)
7135 enable_static=no
7136 # Look at the argument we got. We use all the common list separators.
7137 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7138 for pkg in $enableval; do
7139 IFS="$lt_save_ifs"
7140 if test "X$pkg" = "X$p"; then
7141 enable_static=yes
7142 fi
7143 done
7144 IFS="$lt_save_ifs"
7145 ;;
7146 esac
7147 else
7148 enable_static=yes
7149 fi
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160 # Check whether --with-pic was given.
7161 if test "${with_pic+set}" = set; then
7162 withval=$with_pic; pic_mode="$withval"
7163 else
7164 pic_mode=default
7165 fi
7166
7167
7168 test -z "$pic_mode" && pic_mode=default
7169
7170
7171
7172
7173
7174
7175
7176 # Check whether --enable-fast-install was given.
7177 if test "${enable_fast_install+set}" = set; then
7178 enableval=$enable_fast_install; p=${PACKAGE-default}
7179 case $enableval in
7180 yes) enable_fast_install=yes ;;
7181 no) enable_fast_install=no ;;
7182 *)
7183 enable_fast_install=no
7184 # Look at the argument we got. We use all the common list separators.
7185 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7186 for pkg in $enableval; do
7187 IFS="$lt_save_ifs"
7188 if test "X$pkg" = "X$p"; then
7189 enable_fast_install=yes
7190 fi
7191 done
7192 IFS="$lt_save_ifs"
7193 ;;
7194 esac
7195 else
7196 enable_fast_install=yes
7197 fi
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209 # This can be used to rebuild libtool when needed
7210 LIBTOOL_DEPS="$ltmain"
7211
7212 # Always use our own libtool.
7213 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239 test -z "$LN_S" && LN_S="ln -s"
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254 if test -n "${ZSH_VERSION+set}" ; then
7255 setopt NO_GLOB_SUBST
7256 fi
7257
7258 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7259 $as_echo_n "checking for objdir... " >&6; }
7260 if test "${lt_cv_objdir+set}" = set; then
7261 $as_echo_n "(cached) " >&6
7262 else
7263 rm -f .libs 2>/dev/null
7264 mkdir .libs 2>/dev/null
7265 if test -d .libs; then
7266 lt_cv_objdir=.libs
7267 else
7268 # MS-DOS does not allow filenames that begin with a dot.
7269 lt_cv_objdir=_libs
7270 fi
7271 rmdir .libs 2>/dev/null
7272 fi
7273 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7274 $as_echo "$lt_cv_objdir" >&6; }
7275 objdir=$lt_cv_objdir
7276
7277
7278
7279
7280
7281 cat >>confdefs.h <<_ACEOF
7282 #define LT_OBJDIR "$lt_cv_objdir/"
7283 _ACEOF
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301 case $host_os in
7302 aix3*)
7303 # AIX sometimes has problems with the GCC collect2 program. For some
7304 # reason, if we set the COLLECT_NAMES environment variable, the problems
7305 # vanish in a puff of smoke.
7306 if test "X${COLLECT_NAMES+set}" != Xset; then
7307 COLLECT_NAMES=
7308 export COLLECT_NAMES
7309 fi
7310 ;;
7311 esac
7312
7313 # Sed substitution that helps us do robust quoting. It backslashifies
7314 # metacharacters that are still active within double-quoted strings.
7315 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7316
7317 # Same as above, but do not quote variable references.
7318 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7319
7320 # Sed substitution to delay expansion of an escaped shell variable in a
7321 # double_quote_subst'ed string.
7322 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7323
7324 # Sed substitution to delay expansion of an escaped single quote.
7325 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7326
7327 # Sed substitution to avoid accidental globbing in evaled expressions
7328 no_glob_subst='s/\*/\\\*/g'
7329
7330 # Global variables:
7331 ofile=libtool
7332 can_build_shared=yes
7333
7334 # All known linkers require a `.a' archive for static linking (except MSVC,
7335 # which needs '.lib').
7336 libext=a
7337
7338 with_gnu_ld="$lt_cv_prog_gnu_ld"
7339
7340 old_CC="$CC"
7341 old_CFLAGS="$CFLAGS"
7342
7343 # Set sane defaults for various variables
7344 test -z "$CC" && CC=cc
7345 test -z "$LTCC" && LTCC=$CC
7346 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7347 test -z "$LD" && LD=ld
7348 test -z "$ac_objext" && ac_objext=o
7349
7350 for cc_temp in $compiler""; do
7351 case $cc_temp in
7352 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7353 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7354 \-*) ;;
7355 *) break;;
7356 esac
7357 done
7358 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7359
7360
7361 # Only perform the check for file, if the check method requires it
7362 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7363 case $deplibs_check_method in
7364 file_magic*)
7365 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7366 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7367 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7368 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7369 $as_echo_n "(cached) " >&6
7370 else
7371 case $MAGIC_CMD in
7372 [\\/*] | ?:[\\/]*)
7373 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7374 ;;
7375 *)
7376 lt_save_MAGIC_CMD="$MAGIC_CMD"
7377 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7378 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7379 for ac_dir in $ac_dummy; do
7380 IFS="$lt_save_ifs"
7381 test -z "$ac_dir" && ac_dir=.
7382 if test -f $ac_dir/${ac_tool_prefix}file; then
7383 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7384 if test -n "$file_magic_test_file"; then
7385 case $deplibs_check_method in
7386 "file_magic "*)
7387 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7388 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7389 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7390 $EGREP "$file_magic_regex" > /dev/null; then
7391 :
7392 else
7393 cat <<_LT_EOF 1>&2
7394
7395 *** Warning: the command libtool uses to detect shared libraries,
7396 *** $file_magic_cmd, produces output that libtool cannot recognize.
7397 *** The result is that libtool may fail to recognize shared libraries
7398 *** as such. This will affect the creation of libtool libraries that
7399 *** depend on shared libraries, but programs linked with such libtool
7400 *** libraries will work regardless of this problem. Nevertheless, you
7401 *** may want to report the problem to your system manager and/or to
7402 *** bug-libtool@gnu.org
7403
7404 _LT_EOF
7405 fi ;;
7406 esac
7407 fi
7408 break
7409 fi
7410 done
7411 IFS="$lt_save_ifs"
7412 MAGIC_CMD="$lt_save_MAGIC_CMD"
7413 ;;
7414 esac
7415 fi
7416
7417 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7418 if test -n "$MAGIC_CMD"; then
7419 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7420 $as_echo "$MAGIC_CMD" >&6; }
7421 else
7422 { $as_echo "$as_me:$LINENO: result: no" >&5
7423 $as_echo "no" >&6; }
7424 fi
7425
7426
7427
7428
7429
7430 if test -z "$lt_cv_path_MAGIC_CMD"; then
7431 if test -n "$ac_tool_prefix"; then
7432 { $as_echo "$as_me:$LINENO: checking for file" >&5
7433 $as_echo_n "checking for file... " >&6; }
7434 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7435 $as_echo_n "(cached) " >&6
7436 else
7437 case $MAGIC_CMD in
7438 [\\/*] | ?:[\\/]*)
7439 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7440 ;;
7441 *)
7442 lt_save_MAGIC_CMD="$MAGIC_CMD"
7443 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7444 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7445 for ac_dir in $ac_dummy; do
7446 IFS="$lt_save_ifs"
7447 test -z "$ac_dir" && ac_dir=.
7448 if test -f $ac_dir/file; then
7449 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7450 if test -n "$file_magic_test_file"; then
7451 case $deplibs_check_method in
7452 "file_magic "*)
7453 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7454 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7455 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7456 $EGREP "$file_magic_regex" > /dev/null; then
7457 :
7458 else
7459 cat <<_LT_EOF 1>&2
7460
7461 *** Warning: the command libtool uses to detect shared libraries,
7462 *** $file_magic_cmd, produces output that libtool cannot recognize.
7463 *** The result is that libtool may fail to recognize shared libraries
7464 *** as such. This will affect the creation of libtool libraries that
7465 *** depend on shared libraries, but programs linked with such libtool
7466 *** libraries will work regardless of this problem. Nevertheless, you
7467 *** may want to report the problem to your system manager and/or to
7468 *** bug-libtool@gnu.org
7469
7470 _LT_EOF
7471 fi ;;
7472 esac
7473 fi
7474 break
7475 fi
7476 done
7477 IFS="$lt_save_ifs"
7478 MAGIC_CMD="$lt_save_MAGIC_CMD"
7479 ;;
7480 esac
7481 fi
7482
7483 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7484 if test -n "$MAGIC_CMD"; then
7485 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7486 $as_echo "$MAGIC_CMD" >&6; }
7487 else
7488 { $as_echo "$as_me:$LINENO: result: no" >&5
7489 $as_echo "no" >&6; }
7490 fi
7491
7492
7493 else
7494 MAGIC_CMD=:
7495 fi
7496 fi
7497
7498 fi
7499 ;;
7500 esac
7501
7502 # Use C for the default configuration in the libtool script
7503
7504 lt_save_CC="$CC"
7505 ac_ext=c
7506 ac_cpp='$CPP $CPPFLAGS'
7507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7510
7511
7512 # Source file extension for C test sources.
7513 ac_ext=c
7514
7515 # Object file extension for compiled C test sources.
7516 objext=o
7517 objext=$objext
7518
7519 # Code to be used in simple compile tests
7520 lt_simple_compile_test_code="int some_variable = 0;"
7521
7522 # Code to be used in simple link tests
7523 lt_simple_link_test_code='int main(){return(0);}'
7524
7525
7526
7527
7528
7529
7530
7531 # If no C compiler was specified, use CC.
7532 LTCC=${LTCC-"$CC"}
7533
7534 # If no C compiler flags were specified, use CFLAGS.
7535 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7536
7537 # Allow CC to be a program name with arguments.
7538 compiler=$CC
7539
7540 # Save the default compiler, since it gets overwritten when the other
7541 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7542 compiler_DEFAULT=$CC
7543
7544 # save warnings/boilerplate of simple test code
7545 ac_outfile=conftest.$ac_objext
7546 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7547 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7548 _lt_compiler_boilerplate=`cat conftest.err`
7549 $RM conftest*
7550
7551 ac_outfile=conftest.$ac_objext
7552 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7553 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7554 _lt_linker_boilerplate=`cat conftest.err`
7555 $RM -r conftest*
7556
7557
7558 if test -n "$compiler"; then
7559
7560 lt_prog_compiler_no_builtin_flag=
7561
7562 if test "$GCC" = yes; then
7563 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7564
7565 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7566 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7567 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7568 $as_echo_n "(cached) " >&6
7569 else
7570 lt_cv_prog_compiler_rtti_exceptions=no
7571 ac_outfile=conftest.$ac_objext
7572 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7573 lt_compiler_flag="-fno-rtti -fno-exceptions"
7574 # Insert the option either (1) after the last *FLAGS variable, or
7575 # (2) before a word containing "conftest.", or (3) at the end.
7576 # Note that $ac_compile itself does not contain backslashes and begins
7577 # with a dollar sign (not a hyphen), so the echo should work correctly.
7578 # The option is referenced via a variable to avoid confusing sed.
7579 lt_compile=`echo "$ac_compile" | $SED \
7580 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7581 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7582 -e 's:$: $lt_compiler_flag:'`
7583 (eval echo "\"\$as_me:7583: $lt_compile\"" >&5)
7584 (eval "$lt_compile" 2>conftest.err)
7585 ac_status=$?
7586 cat conftest.err >&5
7587 echo "$as_me:7587: \$? = $ac_status" >&5
7588 if (exit $ac_status) && test -s "$ac_outfile"; then
7589 # The compiler can only warn and ignore the option if not recognized
7590 # So say no if there are warnings other than the usual output.
7591 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7592 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7593 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7594 lt_cv_prog_compiler_rtti_exceptions=yes
7595 fi
7596 fi
7597 $RM conftest*
7598
7599 fi
7600 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7601 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7602
7603 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7604 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7605 else
7606 :
7607 fi
7608
7609 fi
7610
7611
7612
7613
7614
7615
7616 lt_prog_compiler_wl=
7617 lt_prog_compiler_pic=
7618 lt_prog_compiler_static=
7619
7620 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7621 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7622
7623 if test "$GCC" = yes; then
7624 lt_prog_compiler_wl='-Wl,'
7625 lt_prog_compiler_static='-static'
7626
7627 case $host_os in
7628 aix*)
7629 # All AIX code is PIC.
7630 if test "$host_cpu" = ia64; then
7631 # AIX 5 now supports IA64 processor
7632 lt_prog_compiler_static='-Bstatic'
7633 fi
7634 ;;
7635
7636 amigaos*)
7637 case $host_cpu in
7638 powerpc)
7639 # see comment about AmigaOS4 .so support
7640 lt_prog_compiler_pic='-fPIC'
7641 ;;
7642 m68k)
7643 # FIXME: we need at least 68020 code to build shared libraries, but
7644 # adding the `-m68020' flag to GCC prevents building anything better,
7645 # like `-m68040'.
7646 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7647 ;;
7648 esac
7649 ;;
7650
7651 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7652 # PIC is the default for these OSes.
7653 ;;
7654
7655 mingw* | cygwin* | pw32* | os2* | cegcc*)
7656 # This hack is so that the source file can tell whether it is being
7657 # built for inclusion in a dll (and should export symbols for example).
7658 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7659 # (--disable-auto-import) libraries
7660 lt_prog_compiler_pic='-DDLL_EXPORT'
7661 ;;
7662
7663 darwin* | rhapsody*)
7664 # PIC is the default on this platform
7665 # Common symbols not allowed in MH_DYLIB files
7666 lt_prog_compiler_pic='-fno-common'
7667 ;;
7668
7669 hpux*)
7670 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7671 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7672 # sets the default TLS model and affects inlining.
7673 case $host_cpu in
7674 hppa*64*)
7675 # +Z the default
7676 ;;
7677 *)
7678 lt_prog_compiler_pic='-fPIC'
7679 ;;
7680 esac
7681 ;;
7682
7683 interix[3-9]*)
7684 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7685 # Instead, we relocate shared libraries at runtime.
7686 ;;
7687
7688 msdosdjgpp*)
7689 # Just because we use GCC doesn't mean we suddenly get shared libraries
7690 # on systems that don't support them.
7691 lt_prog_compiler_can_build_shared=no
7692 enable_shared=no
7693 ;;
7694
7695 *nto* | *qnx*)
7696 # QNX uses GNU C++, but need to define -shared option too, otherwise
7697 # it will coredump.
7698 lt_prog_compiler_pic='-fPIC -shared'
7699 ;;
7700
7701 sysv4*MP*)
7702 if test -d /usr/nec; then
7703 lt_prog_compiler_pic=-Kconform_pic
7704 fi
7705 ;;
7706
7707 *)
7708 lt_prog_compiler_pic='-fPIC'
7709 ;;
7710 esac
7711 else
7712 # PORTME Check for flag to pass linker flags through the system compiler.
7713 case $host_os in
7714 aix*)
7715 lt_prog_compiler_wl='-Wl,'
7716 if test "$host_cpu" = ia64; then
7717 # AIX 5 now supports IA64 processor
7718 lt_prog_compiler_static='-Bstatic'
7719 else
7720 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7721 fi
7722 ;;
7723
7724 mingw* | cygwin* | pw32* | os2* | cegcc*)
7725 # This hack is so that the source file can tell whether it is being
7726 # built for inclusion in a dll (and should export symbols for example).
7727 lt_prog_compiler_pic='-DDLL_EXPORT'
7728 ;;
7729
7730 hpux9* | hpux10* | hpux11*)
7731 lt_prog_compiler_wl='-Wl,'
7732 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7733 # not for PA HP-UX.
7734 case $host_cpu in
7735 hppa*64*|ia64*)
7736 # +Z the default
7737 ;;
7738 *)
7739 lt_prog_compiler_pic='+Z'
7740 ;;
7741 esac
7742 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7743 lt_prog_compiler_static='${wl}-a ${wl}archive'
7744 ;;
7745
7746 irix5* | irix6* | nonstopux*)
7747 lt_prog_compiler_wl='-Wl,'
7748 # PIC (with -KPIC) is the default.
7749 lt_prog_compiler_static='-non_shared'
7750 ;;
7751
7752 linux* | k*bsd*-gnu)
7753 case $cc_basename in
7754 # old Intel for x86_64 which still supported -KPIC.
7755 ecc*)
7756 lt_prog_compiler_wl='-Wl,'
7757 lt_prog_compiler_pic='-KPIC'
7758 lt_prog_compiler_static='-static'
7759 ;;
7760 # icc used to be incompatible with GCC.
7761 # ICC 10 doesn't accept -KPIC any more.
7762 icc* | ifort*)
7763 lt_prog_compiler_wl='-Wl,'
7764 lt_prog_compiler_pic='-fPIC'
7765 lt_prog_compiler_static='-static'
7766 ;;
7767 # Lahey Fortran 8.1.
7768 lf95*)
7769 lt_prog_compiler_wl='-Wl,'
7770 lt_prog_compiler_pic='--shared'
7771 lt_prog_compiler_static='--static'
7772 ;;
7773 pgcc* | pgf77* | pgf90* | pgf95*)
7774 # Portland Group compilers (*not* the Pentium gcc compiler,
7775 # which looks to be a dead project)
7776 lt_prog_compiler_wl='-Wl,'
7777 lt_prog_compiler_pic='-fpic'
7778 lt_prog_compiler_static='-Bstatic'
7779 ;;
7780 ccc*)
7781 lt_prog_compiler_wl='-Wl,'
7782 # All Alpha code is PIC.
7783 lt_prog_compiler_static='-non_shared'
7784 ;;
7785 xl*)
7786 # IBM XL C 8.0/Fortran 10.1 on PPC
7787 lt_prog_compiler_wl='-Wl,'
7788 lt_prog_compiler_pic='-qpic'
7789 lt_prog_compiler_static='-qstaticlink'
7790 ;;
7791 *)
7792 case `$CC -V 2>&1 | sed 5q` in
7793 *Sun\ C*)
7794 # Sun C 5.9
7795 lt_prog_compiler_pic='-KPIC'
7796 lt_prog_compiler_static='-Bstatic'
7797 lt_prog_compiler_wl='-Wl,'
7798 ;;
7799 *Sun\ F*)
7800 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7801 lt_prog_compiler_pic='-KPIC'
7802 lt_prog_compiler_static='-Bstatic'
7803 lt_prog_compiler_wl=''
7804 ;;
7805 esac
7806 ;;
7807 esac
7808 ;;
7809
7810 newsos6)
7811 lt_prog_compiler_pic='-KPIC'
7812 lt_prog_compiler_static='-Bstatic'
7813 ;;
7814
7815 *nto* | *qnx*)
7816 # QNX uses GNU C++, but need to define -shared option too, otherwise
7817 # it will coredump.
7818 lt_prog_compiler_pic='-fPIC -shared'
7819 ;;
7820
7821 osf3* | osf4* | osf5*)
7822 lt_prog_compiler_wl='-Wl,'
7823 # All OSF/1 code is PIC.
7824 lt_prog_compiler_static='-non_shared'
7825 ;;
7826
7827 rdos*)
7828 lt_prog_compiler_static='-non_shared'
7829 ;;
7830
7831 solaris*)
7832 lt_prog_compiler_pic='-KPIC'
7833 lt_prog_compiler_static='-Bstatic'
7834 case $cc_basename in
7835 f77* | f90* | f95*)
7836 lt_prog_compiler_wl='-Qoption ld ';;
7837 *)
7838 lt_prog_compiler_wl='-Wl,';;
7839 esac
7840 ;;
7841
7842 sunos4*)
7843 lt_prog_compiler_wl='-Qoption ld '
7844 lt_prog_compiler_pic='-PIC'
7845 lt_prog_compiler_static='-Bstatic'
7846 ;;
7847
7848 sysv4 | sysv4.2uw2* | sysv4.3*)
7849 lt_prog_compiler_wl='-Wl,'
7850 lt_prog_compiler_pic='-KPIC'
7851 lt_prog_compiler_static='-Bstatic'
7852 ;;
7853
7854 sysv4*MP*)
7855 if test -d /usr/nec ;then
7856 lt_prog_compiler_pic='-Kconform_pic'
7857 lt_prog_compiler_static='-Bstatic'
7858 fi
7859 ;;
7860
7861 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7862 lt_prog_compiler_wl='-Wl,'
7863 lt_prog_compiler_pic='-KPIC'
7864 lt_prog_compiler_static='-Bstatic'
7865 ;;
7866
7867 unicos*)
7868 lt_prog_compiler_wl='-Wl,'
7869 lt_prog_compiler_can_build_shared=no
7870 ;;
7871
7872 uts4*)
7873 lt_prog_compiler_pic='-pic'
7874 lt_prog_compiler_static='-Bstatic'
7875 ;;
7876
7877 *)
7878 lt_prog_compiler_can_build_shared=no
7879 ;;
7880 esac
7881 fi
7882
7883 case $host_os in
7884 # For platforms which do not support PIC, -DPIC is meaningless:
7885 *djgpp*)
7886 lt_prog_compiler_pic=
7887 ;;
7888 *)
7889 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7890 ;;
7891 esac
7892 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7893 $as_echo "$lt_prog_compiler_pic" >&6; }
7894
7895
7896
7897
7898
7899
7900 #
7901 # Check to make sure the PIC flag actually works.
7902 #
7903 if test -n "$lt_prog_compiler_pic"; then
7904 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7905 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7906 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7907 $as_echo_n "(cached) " >&6
7908 else
7909 lt_cv_prog_compiler_pic_works=no
7910 ac_outfile=conftest.$ac_objext
7911 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7912 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7913 # Insert the option either (1) after the last *FLAGS variable, or
7914 # (2) before a word containing "conftest.", or (3) at the end.
7915 # Note that $ac_compile itself does not contain backslashes and begins
7916 # with a dollar sign (not a hyphen), so the echo should work correctly.
7917 # The option is referenced via a variable to avoid confusing sed.
7918 lt_compile=`echo "$ac_compile" | $SED \
7919 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7920 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7921 -e 's:$: $lt_compiler_flag:'`
7922 (eval echo "\"\$as_me:7922: $lt_compile\"" >&5)
7923 (eval "$lt_compile" 2>conftest.err)
7924 ac_status=$?
7925 cat conftest.err >&5
7926 echo "$as_me:7926: \$? = $ac_status" >&5
7927 if (exit $ac_status) && test -s "$ac_outfile"; then
7928 # The compiler can only warn and ignore the option if not recognized
7929 # So say no if there are warnings other than the usual output.
7930 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7931 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7932 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7933 lt_cv_prog_compiler_pic_works=yes
7934 fi
7935 fi
7936 $RM conftest*
7937
7938 fi
7939 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7940 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7941
7942 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7943 case $lt_prog_compiler_pic in
7944 "" | " "*) ;;
7945 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7946 esac
7947 else
7948 lt_prog_compiler_pic=
7949 lt_prog_compiler_can_build_shared=no
7950 fi
7951
7952 fi
7953
7954
7955
7956
7957
7958
7959 #
7960 # Check to make sure the static flag actually works.
7961 #
7962 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7963 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7964 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7965 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7966 $as_echo_n "(cached) " >&6
7967 else
7968 lt_cv_prog_compiler_static_works=no
7969 save_LDFLAGS="$LDFLAGS"
7970 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7971 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7972 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7973 # The linker can only warn and ignore the option if not recognized
7974 # So say no if there are warnings
7975 if test -s conftest.err; then
7976 # Append any errors to the config.log.
7977 cat conftest.err 1>&5
7978 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7979 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7980 if diff conftest.exp conftest.er2 >/dev/null; then
7981 lt_cv_prog_compiler_static_works=yes
7982 fi
7983 else
7984 lt_cv_prog_compiler_static_works=yes
7985 fi
7986 fi
7987 $RM -r conftest*
7988 LDFLAGS="$save_LDFLAGS"
7989
7990 fi
7991 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7992 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7993
7994 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7995 :
7996 else
7997 lt_prog_compiler_static=
7998 fi
7999
8000
8001
8002
8003
8004
8005
8006 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8007 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8008 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8009 $as_echo_n "(cached) " >&6
8010 else
8011 lt_cv_prog_compiler_c_o=no
8012 $RM -r conftest 2>/dev/null
8013 mkdir conftest
8014 cd conftest
8015 mkdir out
8016 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8017
8018 lt_compiler_flag="-o out/conftest2.$ac_objext"
8019 # Insert the option either (1) after the last *FLAGS variable, or
8020 # (2) before a word containing "conftest.", or (3) at the end.
8021 # Note that $ac_compile itself does not contain backslashes and begins
8022 # with a dollar sign (not a hyphen), so the echo should work correctly.
8023 lt_compile=`echo "$ac_compile" | $SED \
8024 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8025 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8026 -e 's:$: $lt_compiler_flag:'`
8027 (eval echo "\"\$as_me:8027: $lt_compile\"" >&5)
8028 (eval "$lt_compile" 2>out/conftest.err)
8029 ac_status=$?
8030 cat out/conftest.err >&5
8031 echo "$as_me:8031: \$? = $ac_status" >&5
8032 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8033 then
8034 # The compiler can only warn and ignore the option if not recognized
8035 # So say no if there are warnings
8036 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8037 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8038 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8039 lt_cv_prog_compiler_c_o=yes
8040 fi
8041 fi
8042 chmod u+w . 2>&5
8043 $RM conftest*
8044 # SGI C++ compiler will create directory out/ii_files/ for
8045 # template instantiation
8046 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8047 $RM out/* && rmdir out
8048 cd ..
8049 $RM -r conftest
8050 $RM conftest*
8051
8052 fi
8053 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8054 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8055
8056
8057
8058
8059
8060
8061 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8062 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8063 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8064 $as_echo_n "(cached) " >&6
8065 else
8066 lt_cv_prog_compiler_c_o=no
8067 $RM -r conftest 2>/dev/null
8068 mkdir conftest
8069 cd conftest
8070 mkdir out
8071 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8072
8073 lt_compiler_flag="-o out/conftest2.$ac_objext"
8074 # Insert the option either (1) after the last *FLAGS variable, or
8075 # (2) before a word containing "conftest.", or (3) at the end.
8076 # Note that $ac_compile itself does not contain backslashes and begins
8077 # with a dollar sign (not a hyphen), so the echo should work correctly.
8078 lt_compile=`echo "$ac_compile" | $SED \
8079 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8080 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8081 -e 's:$: $lt_compiler_flag:'`
8082 (eval echo "\"\$as_me:8082: $lt_compile\"" >&5)
8083 (eval "$lt_compile" 2>out/conftest.err)
8084 ac_status=$?
8085 cat out/conftest.err >&5
8086 echo "$as_me:8086: \$? = $ac_status" >&5
8087 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8088 then
8089 # The compiler can only warn and ignore the option if not recognized
8090 # So say no if there are warnings
8091 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8092 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8093 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8094 lt_cv_prog_compiler_c_o=yes
8095 fi
8096 fi
8097 chmod u+w . 2>&5
8098 $RM conftest*
8099 # SGI C++ compiler will create directory out/ii_files/ for
8100 # template instantiation
8101 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8102 $RM out/* && rmdir out
8103 cd ..
8104 $RM -r conftest
8105 $RM conftest*
8106
8107 fi
8108 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8109 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8110
8111
8112
8113
8114 hard_links="nottested"
8115 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8116 # do not overwrite the value of need_locks provided by the user
8117 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8118 $as_echo_n "checking if we can lock with hard links... " >&6; }
8119 hard_links=yes
8120 $RM conftest*
8121 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8122 touch conftest.a
8123 ln conftest.a conftest.b 2>&5 || hard_links=no
8124 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8125 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8126 $as_echo "$hard_links" >&6; }
8127 if test "$hard_links" = no; then
8128 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8129 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8130 need_locks=warn
8131 fi
8132 else
8133 need_locks=no
8134 fi
8135
8136
8137
8138
8139
8140
8141 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8142 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8143
8144 runpath_var=
8145 allow_undefined_flag=
8146 always_export_symbols=no
8147 archive_cmds=
8148 archive_expsym_cmds=
8149 compiler_needs_object=no
8150 enable_shared_with_static_runtimes=no
8151 export_dynamic_flag_spec=
8152 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8153 hardcode_automatic=no
8154 hardcode_direct=no
8155 hardcode_direct_absolute=no
8156 hardcode_libdir_flag_spec=
8157 hardcode_libdir_flag_spec_ld=
8158 hardcode_libdir_separator=
8159 hardcode_minus_L=no
8160 hardcode_shlibpath_var=unsupported
8161 inherit_rpath=no
8162 link_all_deplibs=unknown
8163 module_cmds=
8164 module_expsym_cmds=
8165 old_archive_from_new_cmds=
8166 old_archive_from_expsyms_cmds=
8167 thread_safe_flag_spec=
8168 whole_archive_flag_spec=
8169 # include_expsyms should be a list of space-separated symbols to be *always*
8170 # included in the symbol list
8171 include_expsyms=
8172 # exclude_expsyms can be an extended regexp of symbols to exclude
8173 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8174 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8175 # as well as any symbol that contains `d'.
8176 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8177 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8178 # platforms (ab)use it in PIC code, but their linkers get confused if
8179 # the symbol is explicitly referenced. Since portable code cannot
8180 # rely on this symbol name, it's probably fine to never include it in
8181 # preloaded symbol tables.
8182 # Exclude shared library initialization/finalization symbols.
8183 extract_expsyms_cmds=
8184
8185 case $host_os in
8186 cygwin* | mingw* | pw32* | cegcc*)
8187 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8188 # When not using gcc, we currently assume that we are using
8189 # Microsoft Visual C++.
8190 if test "$GCC" != yes; then
8191 with_gnu_ld=no
8192 fi
8193 ;;
8194 interix*)
8195 # we just hope/assume this is gcc and not c89 (= MSVC++)
8196 with_gnu_ld=yes
8197 ;;
8198 openbsd*)
8199 with_gnu_ld=no
8200 ;;
8201 esac
8202
8203 ld_shlibs=yes
8204 if test "$with_gnu_ld" = yes; then
8205 # If archive_cmds runs LD, not CC, wlarc should be empty
8206 wlarc='${wl}'
8207
8208 # Set some defaults for GNU ld with shared library support. These
8209 # are reset later if shared libraries are not supported. Putting them
8210 # here allows them to be overridden if necessary.
8211 runpath_var=LD_RUN_PATH
8212 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8213 export_dynamic_flag_spec='${wl}--export-dynamic'
8214 # ancient GNU ld didn't support --whole-archive et. al.
8215 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8216 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8217 else
8218 whole_archive_flag_spec=
8219 fi
8220 supports_anon_versioning=no
8221 case `$LD -v 2>&1` in
8222 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8223 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8224 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8225 *\ 2.11.*) ;; # other 2.11 versions
8226 *) supports_anon_versioning=yes ;;
8227 esac
8228
8229 # See if GNU ld supports shared libraries.
8230 case $host_os in
8231 aix[3-9]*)
8232 # On AIX/PPC, the GNU linker is very broken
8233 if test "$host_cpu" != ia64; then
8234 ld_shlibs=no
8235 cat <<_LT_EOF 1>&2
8236
8237 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8238 *** to be unable to reliably create shared libraries on AIX.
8239 *** Therefore, libtool is disabling shared libraries support. If you
8240 *** really care for shared libraries, you may want to modify your PATH
8241 *** so that a non-GNU linker is found, and then restart.
8242
8243 _LT_EOF
8244 fi
8245 ;;
8246
8247 amigaos*)
8248 case $host_cpu in
8249 powerpc)
8250 # see comment about AmigaOS4 .so support
8251 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8252 archive_expsym_cmds=''
8253 ;;
8254 m68k)
8255 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)'
8256 hardcode_libdir_flag_spec='-L$libdir'
8257 hardcode_minus_L=yes
8258 ;;
8259 esac
8260 ;;
8261
8262 beos*)
8263 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8264 allow_undefined_flag=unsupported
8265 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8266 # support --undefined. This deserves some investigation. FIXME
8267 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8268 else
8269 ld_shlibs=no
8270 fi
8271 ;;
8272
8273 cygwin* | mingw* | pw32* | cegcc*)
8274 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8275 # as there is no search path for DLLs.
8276 hardcode_libdir_flag_spec='-L$libdir'
8277 allow_undefined_flag=unsupported
8278 always_export_symbols=no
8279 enable_shared_with_static_runtimes=yes
8280 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8281
8282 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8283 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8284 # If the export-symbols file already is a .def file (1st line
8285 # is EXPORTS), use it as is; otherwise, prepend...
8286 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8287 cp $export_symbols $output_objdir/$soname.def;
8288 else
8289 echo EXPORTS > $output_objdir/$soname.def;
8290 cat $export_symbols >> $output_objdir/$soname.def;
8291 fi~
8292 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8293 else
8294 ld_shlibs=no
8295 fi
8296 ;;
8297
8298 interix[3-9]*)
8299 hardcode_direct=no
8300 hardcode_shlibpath_var=no
8301 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8302 export_dynamic_flag_spec='${wl}-E'
8303 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8304 # Instead, shared libraries are loaded at an image base (0x10000000 by
8305 # default) and relocated if they conflict, which is a slow very memory
8306 # consuming and fragmenting process. To avoid this, we pick a random,
8307 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8308 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8309 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8310 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'
8311 ;;
8312
8313 gnu* | linux* | tpf* | k*bsd*-gnu)
8314 tmp_diet=no
8315 if test "$host_os" = linux-dietlibc; then
8316 case $cc_basename in
8317 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8318 esac
8319 fi
8320 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8321 && test "$tmp_diet" = no
8322 then
8323 tmp_addflag=
8324 tmp_sharedflag='-shared'
8325 case $cc_basename,$host_cpu in
8326 pgcc*) # Portland Group C compiler
8327 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'
8328 tmp_addflag=' $pic_flag'
8329 ;;
8330 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8331 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'
8332 tmp_addflag=' $pic_flag -Mnomain' ;;
8333 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8334 tmp_addflag=' -i_dynamic' ;;
8335 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8336 tmp_addflag=' -i_dynamic -nofor_main' ;;
8337 ifc* | ifort*) # Intel Fortran compiler
8338 tmp_addflag=' -nofor_main' ;;
8339 lf95*) # Lahey Fortran 8.1
8340 whole_archive_flag_spec=
8341 tmp_sharedflag='--shared' ;;
8342 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8343 tmp_sharedflag='-qmkshrobj'
8344 tmp_addflag= ;;
8345 esac
8346 case `$CC -V 2>&1 | sed 5q` in
8347 *Sun\ C*) # Sun C 5.9
8348 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'
8349 compiler_needs_object=yes
8350 tmp_sharedflag='-G' ;;
8351 *Sun\ F*) # Sun Fortran 8.3
8352 tmp_sharedflag='-G' ;;
8353 esac
8354 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8355
8356 if test "x$supports_anon_versioning" = xyes; then
8357 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8358 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8359 echo "local: *; };" >> $output_objdir/$libname.ver~
8360 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8361 fi
8362
8363 case $cc_basename in
8364 xlf*)
8365 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8366 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8367 hardcode_libdir_flag_spec=
8368 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8369 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8370 if test "x$supports_anon_versioning" = xyes; then
8371 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8372 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8373 echo "local: *; };" >> $output_objdir/$libname.ver~
8374 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8375 fi
8376 ;;
8377 esac
8378 else
8379 ld_shlibs=no
8380 fi
8381 ;;
8382
8383 netbsd*)
8384 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8385 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8386 wlarc=
8387 else
8388 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8389 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8390 fi
8391 ;;
8392
8393 solaris*)
8394 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8395 ld_shlibs=no
8396 cat <<_LT_EOF 1>&2
8397
8398 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8399 *** create shared libraries on Solaris systems. Therefore, libtool
8400 *** is disabling shared libraries support. We urge you to upgrade GNU
8401 *** binutils to release 2.9.1 or newer. Another option is to modify
8402 *** your PATH or compiler configuration so that the native linker is
8403 *** used, and then restart.
8404
8405 _LT_EOF
8406 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8407 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8408 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8409 else
8410 ld_shlibs=no
8411 fi
8412 ;;
8413
8414 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8415 case `$LD -v 2>&1` in
8416 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8417 ld_shlibs=no
8418 cat <<_LT_EOF 1>&2
8419
8420 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8421 *** reliably create shared libraries on SCO systems. Therefore, libtool
8422 *** is disabling shared libraries support. We urge you to upgrade GNU
8423 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8424 *** your PATH or compiler configuration so that the native linker is
8425 *** used, and then restart.
8426
8427 _LT_EOF
8428 ;;
8429 *)
8430 # For security reasons, it is highly recommended that you always
8431 # use absolute paths for naming shared libraries, and exclude the
8432 # DT_RUNPATH tag from executables and libraries. But doing so
8433 # requires that you compile everything twice, which is a pain.
8434 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8435 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8436 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8437 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8438 else
8439 ld_shlibs=no
8440 fi
8441 ;;
8442 esac
8443 ;;
8444
8445 sunos4*)
8446 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8447 wlarc=
8448 hardcode_direct=yes
8449 hardcode_shlibpath_var=no
8450 ;;
8451
8452 *)
8453 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8454 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8455 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8456 else
8457 ld_shlibs=no
8458 fi
8459 ;;
8460 esac
8461
8462 if test "$ld_shlibs" = no; then
8463 runpath_var=
8464 hardcode_libdir_flag_spec=
8465 export_dynamic_flag_spec=
8466 whole_archive_flag_spec=
8467 fi
8468 else
8469 # PORTME fill in a description of your system's linker (not GNU ld)
8470 case $host_os in
8471 aix3*)
8472 allow_undefined_flag=unsupported
8473 always_export_symbols=yes
8474 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'
8475 # Note: this linker hardcodes the directories in LIBPATH if there
8476 # are no directories specified by -L.
8477 hardcode_minus_L=yes
8478 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8479 # Neither direct hardcoding nor static linking is supported with a
8480 # broken collect2.
8481 hardcode_direct=unsupported
8482 fi
8483 ;;
8484
8485 aix[4-9]*)
8486 if test "$host_cpu" = ia64; then
8487 # On IA64, the linker does run time linking by default, so we don't
8488 # have to do anything special.
8489 aix_use_runtimelinking=no
8490 exp_sym_flag='-Bexport'
8491 no_entry_flag=""
8492 else
8493 # If we're using GNU nm, then we don't want the "-C" option.
8494 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8495 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8496 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'
8497 else
8498 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'
8499 fi
8500 aix_use_runtimelinking=no
8501
8502 # Test if we are trying to use run time linking or normal
8503 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8504 # need to do runtime linking.
8505 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8506 for ld_flag in $LDFLAGS; do
8507 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8508 aix_use_runtimelinking=yes
8509 break
8510 fi
8511 done
8512 ;;
8513 esac
8514
8515 exp_sym_flag='-bexport'
8516 no_entry_flag='-bnoentry'
8517 fi
8518
8519 # When large executables or shared objects are built, AIX ld can
8520 # have problems creating the table of contents. If linking a library
8521 # or program results in "error TOC overflow" add -mminimal-toc to
8522 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8523 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8524
8525 archive_cmds=''
8526 hardcode_direct=yes
8527 hardcode_direct_absolute=yes
8528 hardcode_libdir_separator=':'
8529 link_all_deplibs=yes
8530 file_list_spec='${wl}-f,'
8531
8532 if test "$GCC" = yes; then
8533 case $host_os in aix4.[012]|aix4.[012].*)
8534 # We only want to do this on AIX 4.2 and lower, the check
8535 # below for broken collect2 doesn't work under 4.3+
8536 collect2name=`${CC} -print-prog-name=collect2`
8537 if test -f "$collect2name" &&
8538 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8539 then
8540 # We have reworked collect2
8541 :
8542 else
8543 # We have old collect2
8544 hardcode_direct=unsupported
8545 # It fails to find uninstalled libraries when the uninstalled
8546 # path is not listed in the libpath. Setting hardcode_minus_L
8547 # to unsupported forces relinking
8548 hardcode_minus_L=yes
8549 hardcode_libdir_flag_spec='-L$libdir'
8550 hardcode_libdir_separator=
8551 fi
8552 ;;
8553 esac
8554 shared_flag='-shared'
8555 if test "$aix_use_runtimelinking" = yes; then
8556 shared_flag="$shared_flag "'${wl}-G'
8557 fi
8558 else
8559 # not using gcc
8560 if test "$host_cpu" = ia64; then
8561 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8562 # chokes on -Wl,-G. The following line is correct:
8563 shared_flag='-G'
8564 else
8565 if test "$aix_use_runtimelinking" = yes; then
8566 shared_flag='${wl}-G'
8567 else
8568 shared_flag='${wl}-bM:SRE'
8569 fi
8570 fi
8571 fi
8572
8573 export_dynamic_flag_spec='${wl}-bexpall'
8574 # It seems that -bexpall does not export symbols beginning with
8575 # underscore (_), so it is better to generate a list of symbols to export.
8576 always_export_symbols=yes
8577 if test "$aix_use_runtimelinking" = yes; then
8578 # Warning - without using the other runtime loading flags (-brtl),
8579 # -berok will link without error, but may produce a broken library.
8580 allow_undefined_flag='-berok'
8581 # Determine the default libpath from the value encoded in an
8582 # empty executable.
8583 cat >conftest.$ac_ext <<_ACEOF
8584 /* confdefs.h. */
8585 _ACEOF
8586 cat confdefs.h >>conftest.$ac_ext
8587 cat >>conftest.$ac_ext <<_ACEOF
8588 /* end confdefs.h. */
8589
8590 int
8591 main ()
8592 {
8593
8594 ;
8595 return 0;
8596 }
8597 _ACEOF
8598 rm -f conftest.$ac_objext conftest$ac_exeext
8599 if { (ac_try="$ac_link"
8600 case "(($ac_try" in
8601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8602 *) ac_try_echo=$ac_try;;
8603 esac
8604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8605 $as_echo "$ac_try_echo") >&5
8606 (eval "$ac_link") 2>conftest.er1
8607 ac_status=$?
8608 grep -v '^ *+' conftest.er1 >conftest.err
8609 rm -f conftest.er1
8610 cat conftest.err >&5
8611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); } && {
8613 test -z "$ac_c_werror_flag" ||
8614 test ! -s conftest.err
8615 } && test -s conftest$ac_exeext && {
8616 test "$cross_compiling" = yes ||
8617 $as_test_x conftest$ac_exeext
8618 }; then
8619
8620 lt_aix_libpath_sed='
8621 /Import File Strings/,/^$/ {
8622 /^0/ {
8623 s/^0 *\(.*\)$/\1/
8624 p
8625 }
8626 }'
8627 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8628 # Check for a 64-bit object if we didn't find anything.
8629 if test -z "$aix_libpath"; then
8630 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8631 fi
8632 else
8633 $as_echo "$as_me: failed program was:" >&5
8634 sed 's/^/| /' conftest.$ac_ext >&5
8635
8636
8637 fi
8638
8639 rm -rf conftest.dSYM
8640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8641 conftest$ac_exeext conftest.$ac_ext
8642 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8643
8644 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8645 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"
8646 else
8647 if test "$host_cpu" = ia64; then
8648 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8649 allow_undefined_flag="-z nodefs"
8650 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"
8651 else
8652 # Determine the default libpath from the value encoded in an
8653 # empty executable.
8654 cat >conftest.$ac_ext <<_ACEOF
8655 /* confdefs.h. */
8656 _ACEOF
8657 cat confdefs.h >>conftest.$ac_ext
8658 cat >>conftest.$ac_ext <<_ACEOF
8659 /* end confdefs.h. */
8660
8661 int
8662 main ()
8663 {
8664
8665 ;
8666 return 0;
8667 }
8668 _ACEOF
8669 rm -f conftest.$ac_objext conftest$ac_exeext
8670 if { (ac_try="$ac_link"
8671 case "(($ac_try" in
8672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8673 *) ac_try_echo=$ac_try;;
8674 esac
8675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8676 $as_echo "$ac_try_echo") >&5
8677 (eval "$ac_link") 2>conftest.er1
8678 ac_status=$?
8679 grep -v '^ *+' conftest.er1 >conftest.err
8680 rm -f conftest.er1
8681 cat conftest.err >&5
8682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); } && {
8684 test -z "$ac_c_werror_flag" ||
8685 test ! -s conftest.err
8686 } && test -s conftest$ac_exeext && {
8687 test "$cross_compiling" = yes ||
8688 $as_test_x conftest$ac_exeext
8689 }; then
8690
8691 lt_aix_libpath_sed='
8692 /Import File Strings/,/^$/ {
8693 /^0/ {
8694 s/^0 *\(.*\)$/\1/
8695 p
8696 }
8697 }'
8698 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8699 # Check for a 64-bit object if we didn't find anything.
8700 if test -z "$aix_libpath"; then
8701 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8702 fi
8703 else
8704 $as_echo "$as_me: failed program was:" >&5
8705 sed 's/^/| /' conftest.$ac_ext >&5
8706
8707
8708 fi
8709
8710 rm -rf conftest.dSYM
8711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8712 conftest$ac_exeext conftest.$ac_ext
8713 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8714
8715 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8716 # Warning - without using the other run time loading flags,
8717 # -berok will link without error, but may produce a broken library.
8718 no_undefined_flag=' ${wl}-bernotok'
8719 allow_undefined_flag=' ${wl}-berok'
8720 # Exported symbols can be pulled into shared objects from archives
8721 whole_archive_flag_spec='$convenience'
8722 archive_cmds_need_lc=yes
8723 # This is similar to how AIX traditionally builds its shared libraries.
8724 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'
8725 fi
8726 fi
8727 ;;
8728
8729 amigaos*)
8730 case $host_cpu in
8731 powerpc)
8732 # see comment about AmigaOS4 .so support
8733 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8734 archive_expsym_cmds=''
8735 ;;
8736 m68k)
8737 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)'
8738 hardcode_libdir_flag_spec='-L$libdir'
8739 hardcode_minus_L=yes
8740 ;;
8741 esac
8742 ;;
8743
8744 bsdi[45]*)
8745 export_dynamic_flag_spec=-rdynamic
8746 ;;
8747
8748 cygwin* | mingw* | pw32* | cegcc*)
8749 # When not using gcc, we currently assume that we are using
8750 # Microsoft Visual C++.
8751 # hardcode_libdir_flag_spec is actually meaningless, as there is
8752 # no search path for DLLs.
8753 hardcode_libdir_flag_spec=' '
8754 allow_undefined_flag=unsupported
8755 # Tell ltmain to make .lib files, not .a files.
8756 libext=lib
8757 # Tell ltmain to make .dll files, not .so files.
8758 shrext_cmds=".dll"
8759 # FIXME: Setting linknames here is a bad hack.
8760 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8761 # The linker will automatically build a .lib file if we build a DLL.
8762 old_archive_from_new_cmds='true'
8763 # FIXME: Should let the user specify the lib program.
8764 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8765 fix_srcfile_path='`cygpath -w "$srcfile"`'
8766 enable_shared_with_static_runtimes=yes
8767 ;;
8768
8769 darwin* | rhapsody*)
8770
8771
8772 archive_cmds_need_lc=no
8773 hardcode_direct=no
8774 hardcode_automatic=yes
8775 hardcode_shlibpath_var=unsupported
8776 whole_archive_flag_spec=''
8777 link_all_deplibs=yes
8778 allow_undefined_flag="$_lt_dar_allow_undefined"
8779 case $cc_basename in
8780 ifort*) _lt_dar_can_shared=yes ;;
8781 *) _lt_dar_can_shared=$GCC ;;
8782 esac
8783 if test "$_lt_dar_can_shared" = "yes"; then
8784 output_verbose_link_cmd=echo
8785 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8786 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8787 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}"
8788 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}"
8789
8790 else
8791 ld_shlibs=no
8792 fi
8793
8794 ;;
8795
8796 dgux*)
8797 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8798 hardcode_libdir_flag_spec='-L$libdir'
8799 hardcode_shlibpath_var=no
8800 ;;
8801
8802 freebsd1*)
8803 ld_shlibs=no
8804 ;;
8805
8806 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8807 # support. Future versions do this automatically, but an explicit c++rt0.o
8808 # does not break anything, and helps significantly (at the cost of a little
8809 # extra space).
8810 freebsd2.2*)
8811 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8812 hardcode_libdir_flag_spec='-R$libdir'
8813 hardcode_direct=yes
8814 hardcode_shlibpath_var=no
8815 ;;
8816
8817 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8818 freebsd2*)
8819 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8820 hardcode_direct=yes
8821 hardcode_minus_L=yes
8822 hardcode_shlibpath_var=no
8823 ;;
8824
8825 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8826 freebsd* | dragonfly*)
8827 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8828 hardcode_libdir_flag_spec='-R$libdir'
8829 hardcode_direct=yes
8830 hardcode_shlibpath_var=no
8831 ;;
8832
8833 hpux9*)
8834 if test "$GCC" = yes; then
8835 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'
8836 else
8837 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'
8838 fi
8839 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8840 hardcode_libdir_separator=:
8841 hardcode_direct=yes
8842
8843 # hardcode_minus_L: Not really in the search PATH,
8844 # but as the default location of the library.
8845 hardcode_minus_L=yes
8846 export_dynamic_flag_spec='${wl}-E'
8847 ;;
8848
8849 hpux10*)
8850 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8851 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8852 else
8853 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8854 fi
8855 if test "$with_gnu_ld" = no; then
8856 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8857 hardcode_libdir_flag_spec_ld='+b $libdir'
8858 hardcode_libdir_separator=:
8859 hardcode_direct=yes
8860 hardcode_direct_absolute=yes
8861 export_dynamic_flag_spec='${wl}-E'
8862 # hardcode_minus_L: Not really in the search PATH,
8863 # but as the default location of the library.
8864 hardcode_minus_L=yes
8865 fi
8866 ;;
8867
8868 hpux11*)
8869 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8870 case $host_cpu in
8871 hppa*64*)
8872 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8873 ;;
8874 ia64*)
8875 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8876 ;;
8877 *)
8878 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8879 ;;
8880 esac
8881 else
8882 case $host_cpu in
8883 hppa*64*)
8884 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8885 ;;
8886 ia64*)
8887 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8888 ;;
8889 *)
8890 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8891 ;;
8892 esac
8893 fi
8894 if test "$with_gnu_ld" = no; then
8895 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8896 hardcode_libdir_separator=:
8897
8898 case $host_cpu in
8899 hppa*64*|ia64*)
8900 hardcode_direct=no
8901 hardcode_shlibpath_var=no
8902 ;;
8903 *)
8904 hardcode_direct=yes
8905 hardcode_direct_absolute=yes
8906 export_dynamic_flag_spec='${wl}-E'
8907
8908 # hardcode_minus_L: Not really in the search PATH,
8909 # but as the default location of the library.
8910 hardcode_minus_L=yes
8911 ;;
8912 esac
8913 fi
8914 ;;
8915
8916 irix5* | irix6* | nonstopux*)
8917 if test "$GCC" = yes; then
8918 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'
8919 # Try to use the -exported_symbol ld option, if it does not
8920 # work, assume that -exports_file does not work either and
8921 # implicitly export all symbols.
8922 save_LDFLAGS="$LDFLAGS"
8923 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8924 cat >conftest.$ac_ext <<_ACEOF
8925 int foo(void) {}
8926 _ACEOF
8927 rm -f conftest.$ac_objext conftest$ac_exeext
8928 if { (ac_try="$ac_link"
8929 case "(($ac_try" in
8930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8931 *) ac_try_echo=$ac_try;;
8932 esac
8933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8934 $as_echo "$ac_try_echo") >&5
8935 (eval "$ac_link") 2>conftest.er1
8936 ac_status=$?
8937 grep -v '^ *+' conftest.er1 >conftest.err
8938 rm -f conftest.er1
8939 cat conftest.err >&5
8940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); } && {
8942 test -z "$ac_c_werror_flag" ||
8943 test ! -s conftest.err
8944 } && test -s conftest$ac_exeext && {
8945 test "$cross_compiling" = yes ||
8946 $as_test_x conftest$ac_exeext
8947 }; then
8948 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'
8949
8950 else
8951 $as_echo "$as_me: failed program was:" >&5
8952 sed 's/^/| /' conftest.$ac_ext >&5
8953
8954
8955 fi
8956
8957 rm -rf conftest.dSYM
8958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8959 conftest$ac_exeext conftest.$ac_ext
8960 LDFLAGS="$save_LDFLAGS"
8961 else
8962 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'
8963 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'
8964 fi
8965 archive_cmds_need_lc='no'
8966 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8967 hardcode_libdir_separator=:
8968 inherit_rpath=yes
8969 link_all_deplibs=yes
8970 ;;
8971
8972 netbsd*)
8973 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8974 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8975 else
8976 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8977 fi
8978 hardcode_libdir_flag_spec='-R$libdir'
8979 hardcode_direct=yes
8980 hardcode_shlibpath_var=no
8981 ;;
8982
8983 newsos6)
8984 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8985 hardcode_direct=yes
8986 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8987 hardcode_libdir_separator=:
8988 hardcode_shlibpath_var=no
8989 ;;
8990
8991 *nto* | *qnx*)
8992 ;;
8993
8994 openbsd*)
8995 if test -f /usr/libexec/ld.so; then
8996 hardcode_direct=yes
8997 hardcode_shlibpath_var=no
8998 hardcode_direct_absolute=yes
8999 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9000 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9001 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9002 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9003 export_dynamic_flag_spec='${wl}-E'
9004 else
9005 case $host_os in
9006 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9007 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9008 hardcode_libdir_flag_spec='-R$libdir'
9009 ;;
9010 *)
9011 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9012 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9013 ;;
9014 esac
9015 fi
9016 else
9017 ld_shlibs=no
9018 fi
9019 ;;
9020
9021 os2*)
9022 hardcode_libdir_flag_spec='-L$libdir'
9023 hardcode_minus_L=yes
9024 allow_undefined_flag=unsupported
9025 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'
9026 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9027 ;;
9028
9029 osf3*)
9030 if test "$GCC" = yes; then
9031 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9032 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'
9033 else
9034 allow_undefined_flag=' -expect_unresolved \*'
9035 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'
9036 fi
9037 archive_cmds_need_lc='no'
9038 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9039 hardcode_libdir_separator=:
9040 ;;
9041
9042 osf4* | osf5*) # as osf3* with the addition of -msym flag
9043 if test "$GCC" = yes; then
9044 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9045 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'
9046 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9047 else
9048 allow_undefined_flag=' -expect_unresolved \*'
9049 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'
9050 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~
9051 $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'
9052
9053 # Both c and cxx compiler support -rpath directly
9054 hardcode_libdir_flag_spec='-rpath $libdir'
9055 fi
9056 archive_cmds_need_lc='no'
9057 hardcode_libdir_separator=:
9058 ;;
9059
9060 solaris*)
9061 no_undefined_flag=' -z defs'
9062 if test "$GCC" = yes; then
9063 wlarc='${wl}'
9064 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9065 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9066 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9067 else
9068 case `$CC -V 2>&1` in
9069 *"Compilers 5.0"*)
9070 wlarc=''
9071 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9072 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9073 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9074 ;;
9075 *)
9076 wlarc='${wl}'
9077 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9078 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9079 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9080 ;;
9081 esac
9082 fi
9083 hardcode_libdir_flag_spec='-R$libdir'
9084 hardcode_shlibpath_var=no
9085 case $host_os in
9086 solaris2.[0-5] | solaris2.[0-5].*) ;;
9087 *)
9088 # The compiler driver will combine and reorder linker options,
9089 # but understands `-z linker_flag'. GCC discards it without `$wl',
9090 # but is careful enough not to reorder.
9091 # Supported since Solaris 2.6 (maybe 2.5.1?)
9092 if test "$GCC" = yes; then
9093 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9094 else
9095 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9096 fi
9097 ;;
9098 esac
9099 link_all_deplibs=yes
9100 ;;
9101
9102 sunos4*)
9103 if test "x$host_vendor" = xsequent; then
9104 # Use $CC to link under sequent, because it throws in some extra .o
9105 # files that make .init and .fini sections work.
9106 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9107 else
9108 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9109 fi
9110 hardcode_libdir_flag_spec='-L$libdir'
9111 hardcode_direct=yes
9112 hardcode_minus_L=yes
9113 hardcode_shlibpath_var=no
9114 ;;
9115
9116 sysv4)
9117 case $host_vendor in
9118 sni)
9119 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9120 hardcode_direct=yes # is this really true???
9121 ;;
9122 siemens)
9123 ## LD is ld it makes a PLAMLIB
9124 ## CC just makes a GrossModule.
9125 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9126 reload_cmds='$CC -r -o $output$reload_objs'
9127 hardcode_direct=no
9128 ;;
9129 motorola)
9130 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9131 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9132 ;;
9133 esac
9134 runpath_var='LD_RUN_PATH'
9135 hardcode_shlibpath_var=no
9136 ;;
9137
9138 sysv4.3*)
9139 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9140 hardcode_shlibpath_var=no
9141 export_dynamic_flag_spec='-Bexport'
9142 ;;
9143
9144 sysv4*MP*)
9145 if test -d /usr/nec; then
9146 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9147 hardcode_shlibpath_var=no
9148 runpath_var=LD_RUN_PATH
9149 hardcode_runpath_var=yes
9150 ld_shlibs=yes
9151 fi
9152 ;;
9153
9154 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9155 no_undefined_flag='${wl}-z,text'
9156 archive_cmds_need_lc=no
9157 hardcode_shlibpath_var=no
9158 runpath_var='LD_RUN_PATH'
9159
9160 if test "$GCC" = yes; then
9161 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9162 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9163 else
9164 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9165 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9166 fi
9167 ;;
9168
9169 sysv5* | sco3.2v5* | sco5v6*)
9170 # Note: We can NOT use -z defs as we might desire, because we do not
9171 # link with -lc, and that would cause any symbols used from libc to
9172 # always be unresolved, which means just about no library would
9173 # ever link correctly. If we're not using GNU ld we use -z text
9174 # though, which does catch some bad symbols but isn't as heavy-handed
9175 # as -z defs.
9176 no_undefined_flag='${wl}-z,text'
9177 allow_undefined_flag='${wl}-z,nodefs'
9178 archive_cmds_need_lc=no
9179 hardcode_shlibpath_var=no
9180 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9181 hardcode_libdir_separator=':'
9182 link_all_deplibs=yes
9183 export_dynamic_flag_spec='${wl}-Bexport'
9184 runpath_var='LD_RUN_PATH'
9185
9186 if test "$GCC" = yes; then
9187 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9188 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9189 else
9190 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9191 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9192 fi
9193 ;;
9194
9195 uts4*)
9196 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9197 hardcode_libdir_flag_spec='-L$libdir'
9198 hardcode_shlibpath_var=no
9199 ;;
9200
9201 *)
9202 ld_shlibs=no
9203 ;;
9204 esac
9205
9206 if test x$host_vendor = xsni; then
9207 case $host in
9208 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9209 export_dynamic_flag_spec='${wl}-Blargedynsym'
9210 ;;
9211 esac
9212 fi
9213 fi
9214
9215 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9216 $as_echo "$ld_shlibs" >&6; }
9217 test "$ld_shlibs" = no && can_build_shared=no
9218
9219 with_gnu_ld=$with_gnu_ld
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235 #
9236 # Do we need to explicitly link libc?
9237 #
9238 case "x$archive_cmds_need_lc" in
9239 x|xyes)
9240 # Assume -lc should be added
9241 archive_cmds_need_lc=yes
9242
9243 if test "$enable_shared" = yes && test "$GCC" = yes; then
9244 case $archive_cmds in
9245 *'~'*)
9246 # FIXME: we may have to deal with multi-command sequences.
9247 ;;
9248 '$CC '*)
9249 # Test whether the compiler implicitly links with -lc since on some
9250 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9251 # to ld, don't add -lc before -lgcc.
9252 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9253 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9254 $RM conftest*
9255 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9256
9257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9258 (eval $ac_compile) 2>&5
9259 ac_status=$?
9260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); } 2>conftest.err; then
9262 soname=conftest
9263 lib=conftest
9264 libobjs=conftest.$ac_objext
9265 deplibs=
9266 wl=$lt_prog_compiler_wl
9267 pic_flag=$lt_prog_compiler_pic
9268 compiler_flags=-v
9269 linker_flags=-v
9270 verstring=
9271 output_objdir=.
9272 libname=conftest
9273 lt_save_allow_undefined_flag=$allow_undefined_flag
9274 allow_undefined_flag=
9275 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9276 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9277 ac_status=$?
9278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279 (exit $ac_status); }
9280 then
9281 archive_cmds_need_lc=no
9282 else
9283 archive_cmds_need_lc=yes
9284 fi
9285 allow_undefined_flag=$lt_save_allow_undefined_flag
9286 else
9287 cat conftest.err 1>&5
9288 fi
9289 $RM conftest*
9290 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9291 $as_echo "$archive_cmds_need_lc" >&6; }
9292 ;;
9293 esac
9294 fi
9295 ;;
9296 esac
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
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9455 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9456
9457 if test "$GCC" = yes; then
9458 case $host_os in
9459 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9460 *) lt_awk_arg="/^libraries:/" ;;
9461 esac
9462 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9463 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9464 # if the path contains ";" then we assume it to be the separator
9465 # otherwise default to the standard path separator (i.e. ":") - it is
9466 # assumed that no part of a normal pathname contains ";" but that should
9467 # okay in the real world where ";" in dirpaths is itself problematic.
9468 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9469 else
9470 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9471 fi
9472 # Ok, now we have the path, separated by spaces, we can step through it
9473 # and add multilib dir if necessary.
9474 lt_tmp_lt_search_path_spec=
9475 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9476 for lt_sys_path in $lt_search_path_spec; do
9477 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9478 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9479 else
9480 test -d "$lt_sys_path" && \
9481 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9482 fi
9483 done
9484 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9485 BEGIN {RS=" "; FS="/|\n";} {
9486 lt_foo="";
9487 lt_count=0;
9488 for (lt_i = NF; lt_i > 0; lt_i--) {
9489 if ($lt_i != "" && $lt_i != ".") {
9490 if ($lt_i == "..") {
9491 lt_count++;
9492 } else {
9493 if (lt_count == 0) {
9494 lt_foo="/" $lt_i lt_foo;
9495 } else {
9496 lt_count--;
9497 }
9498 }
9499 }
9500 }
9501 if (lt_foo != "") { lt_freq[lt_foo]++; }
9502 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9503 }'`
9504 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9505 else
9506 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9507 fi
9508 library_names_spec=
9509 libname_spec='lib$name'
9510 soname_spec=
9511 shrext_cmds=".so"
9512 postinstall_cmds=
9513 postuninstall_cmds=
9514 finish_cmds=
9515 finish_eval=
9516 shlibpath_var=
9517 shlibpath_overrides_runpath=unknown
9518 version_type=none
9519 dynamic_linker="$host_os ld.so"
9520 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9521 need_lib_prefix=unknown
9522 hardcode_into_libs=no
9523
9524 # when you set need_version to no, make sure it does not cause -set_version
9525 # flags to be left without arguments
9526 need_version=unknown
9527
9528 case $host_os in
9529 aix3*)
9530 version_type=linux
9531 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9532 shlibpath_var=LIBPATH
9533
9534 # AIX 3 has no versioning support, so we append a major version to the name.
9535 soname_spec='${libname}${release}${shared_ext}$major'
9536 ;;
9537
9538 aix[4-9]*)
9539 version_type=linux
9540 need_lib_prefix=no
9541 need_version=no
9542 hardcode_into_libs=yes
9543 if test "$host_cpu" = ia64; then
9544 # AIX 5 supports IA64
9545 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9546 shlibpath_var=LD_LIBRARY_PATH
9547 else
9548 # With GCC up to 2.95.x, collect2 would create an import file
9549 # for dependence libraries. The import file would start with
9550 # the line `#! .'. This would cause the generated library to
9551 # depend on `.', always an invalid library. This was fixed in
9552 # development snapshots of GCC prior to 3.0.
9553 case $host_os in
9554 aix4 | aix4.[01] | aix4.[01].*)
9555 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9556 echo ' yes '
9557 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9558 :
9559 else
9560 can_build_shared=no
9561 fi
9562 ;;
9563 esac
9564 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9565 # soname into executable. Probably we can add versioning support to
9566 # collect2, so additional links can be useful in future.
9567 if test "$aix_use_runtimelinking" = yes; then
9568 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9569 # instead of lib<name>.a to let people know that these are not
9570 # typical AIX shared libraries.
9571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9572 else
9573 # We preserve .a as extension for shared libraries through AIX4.2
9574 # and later when we are not doing run time linking.
9575 library_names_spec='${libname}${release}.a $libname.a'
9576 soname_spec='${libname}${release}${shared_ext}$major'
9577 fi
9578 shlibpath_var=LIBPATH
9579 fi
9580 ;;
9581
9582 amigaos*)
9583 case $host_cpu in
9584 powerpc)
9585 # Since July 2007 AmigaOS4 officially supports .so libraries.
9586 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9588 ;;
9589 m68k)
9590 library_names_spec='$libname.ixlibrary $libname.a'
9591 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9592 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'
9593 ;;
9594 esac
9595 ;;
9596
9597 beos*)
9598 library_names_spec='${libname}${shared_ext}'
9599 dynamic_linker="$host_os ld.so"
9600 shlibpath_var=LIBRARY_PATH
9601 ;;
9602
9603 bsdi[45]*)
9604 version_type=linux
9605 need_version=no
9606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9607 soname_spec='${libname}${release}${shared_ext}$major'
9608 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9609 shlibpath_var=LD_LIBRARY_PATH
9610 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9611 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9612 # the default ld.so.conf also contains /usr/contrib/lib and
9613 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9614 # libtool to hard-code these into programs
9615 ;;
9616
9617 cygwin* | mingw* | pw32* | cegcc*)
9618 version_type=windows
9619 shrext_cmds=".dll"
9620 need_version=no
9621 need_lib_prefix=no
9622
9623 case $GCC,$host_os in
9624 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9625 library_names_spec='$libname.dll.a'
9626 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9627 postinstall_cmds='base_file=`basename \${file}`~
9628 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9629 dldir=$destdir/`dirname \$dlpath`~
9630 test -d \$dldir || mkdir -p \$dldir~
9631 $install_prog $dir/$dlname \$dldir/$dlname~
9632 chmod a+x \$dldir/$dlname~
9633 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9634 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9635 fi'
9636 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9637 dlpath=$dir/\$dldll~
9638 $RM \$dlpath'
9639 shlibpath_overrides_runpath=yes
9640
9641 case $host_os in
9642 cygwin*)
9643 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9644 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9645 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9646 ;;
9647 mingw* | cegcc*)
9648 # MinGW DLLs use traditional 'lib' prefix
9649 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9650 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9651 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9652 # It is most probably a Windows format PATH printed by
9653 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9654 # path with ; separators, and with drive letters. We can handle the
9655 # drive letters (cygwin fileutils understands them), so leave them,
9656 # especially as we might pass files found there to a mingw objdump,
9657 # which wouldn't understand a cygwinified path. Ahh.
9658 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9659 else
9660 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9661 fi
9662 ;;
9663 pw32*)
9664 # pw32 DLLs use 'pw' prefix rather than 'lib'
9665 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9666 ;;
9667 esac
9668 ;;
9669
9670 *)
9671 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9672 ;;
9673 esac
9674 dynamic_linker='Win32 ld.exe'
9675 # FIXME: first we should search . and the directory the executable is in
9676 shlibpath_var=PATH
9677 ;;
9678
9679 darwin* | rhapsody*)
9680 dynamic_linker="$host_os dyld"
9681 version_type=darwin
9682 need_lib_prefix=no
9683 need_version=no
9684 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9685 soname_spec='${libname}${release}${major}$shared_ext'
9686 shlibpath_overrides_runpath=yes
9687 shlibpath_var=DYLD_LIBRARY_PATH
9688 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9689
9690 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9691 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9692 ;;
9693
9694 dgux*)
9695 version_type=linux
9696 need_lib_prefix=no
9697 need_version=no
9698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9699 soname_spec='${libname}${release}${shared_ext}$major'
9700 shlibpath_var=LD_LIBRARY_PATH
9701 ;;
9702
9703 freebsd1*)
9704 dynamic_linker=no
9705 ;;
9706
9707 freebsd* | dragonfly*)
9708 # DragonFly does not have aout. When/if they implement a new
9709 # versioning mechanism, adjust this.
9710 if test -x /usr/bin/objformat; then
9711 objformat=`/usr/bin/objformat`
9712 else
9713 case $host_os in
9714 freebsd[123]*) objformat=aout ;;
9715 *) objformat=elf ;;
9716 esac
9717 fi
9718 version_type=freebsd-$objformat
9719 case $version_type in
9720 freebsd-elf*)
9721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9722 need_version=no
9723 need_lib_prefix=no
9724 ;;
9725 freebsd-*)
9726 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9727 need_version=yes
9728 ;;
9729 esac
9730 shlibpath_var=LD_LIBRARY_PATH
9731 case $host_os in
9732 freebsd2*)
9733 shlibpath_overrides_runpath=yes
9734 ;;
9735 freebsd3.[01]* | freebsdelf3.[01]*)
9736 shlibpath_overrides_runpath=yes
9737 hardcode_into_libs=yes
9738 ;;
9739 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9740 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9741 shlibpath_overrides_runpath=no
9742 hardcode_into_libs=yes
9743 ;;
9744 *) # from 4.6 on, and DragonFly
9745 shlibpath_overrides_runpath=yes
9746 hardcode_into_libs=yes
9747 ;;
9748 esac
9749 ;;
9750
9751 gnu*)
9752 version_type=linux
9753 need_lib_prefix=no
9754 need_version=no
9755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9756 soname_spec='${libname}${release}${shared_ext}$major'
9757 shlibpath_var=LD_LIBRARY_PATH
9758 hardcode_into_libs=yes
9759 ;;
9760
9761 hpux9* | hpux10* | hpux11*)
9762 # Give a soname corresponding to the major version so that dld.sl refuses to
9763 # link against other versions.
9764 version_type=sunos
9765 need_lib_prefix=no
9766 need_version=no
9767 case $host_cpu in
9768 ia64*)
9769 shrext_cmds='.so'
9770 hardcode_into_libs=yes
9771 dynamic_linker="$host_os dld.so"
9772 shlibpath_var=LD_LIBRARY_PATH
9773 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9775 soname_spec='${libname}${release}${shared_ext}$major'
9776 if test "X$HPUX_IA64_MODE" = X32; then
9777 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9778 else
9779 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9780 fi
9781 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9782 ;;
9783 hppa*64*)
9784 shrext_cmds='.sl'
9785 hardcode_into_libs=yes
9786 dynamic_linker="$host_os dld.sl"
9787 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9788 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9790 soname_spec='${libname}${release}${shared_ext}$major'
9791 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9792 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9793 ;;
9794 *)
9795 shrext_cmds='.sl'
9796 dynamic_linker="$host_os dld.sl"
9797 shlibpath_var=SHLIB_PATH
9798 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9800 soname_spec='${libname}${release}${shared_ext}$major'
9801 ;;
9802 esac
9803 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9804 postinstall_cmds='chmod 555 $lib'
9805 ;;
9806
9807 interix[3-9]*)
9808 version_type=linux
9809 need_lib_prefix=no
9810 need_version=no
9811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9812 soname_spec='${libname}${release}${shared_ext}$major'
9813 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9814 shlibpath_var=LD_LIBRARY_PATH
9815 shlibpath_overrides_runpath=no
9816 hardcode_into_libs=yes
9817 ;;
9818
9819 irix5* | irix6* | nonstopux*)
9820 case $host_os in
9821 nonstopux*) version_type=nonstopux ;;
9822 *)
9823 if test "$lt_cv_prog_gnu_ld" = yes; then
9824 version_type=linux
9825 else
9826 version_type=irix
9827 fi ;;
9828 esac
9829 need_lib_prefix=no
9830 need_version=no
9831 soname_spec='${libname}${release}${shared_ext}$major'
9832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9833 case $host_os in
9834 irix5* | nonstopux*)
9835 libsuff= shlibsuff=
9836 ;;
9837 *)
9838 case $LD in # libtool.m4 will add one of these switches to LD
9839 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9840 libsuff= shlibsuff= libmagic=32-bit;;
9841 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9842 libsuff=32 shlibsuff=N32 libmagic=N32;;
9843 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9844 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9845 *) libsuff= shlibsuff= libmagic=never-match;;
9846 esac
9847 ;;
9848 esac
9849 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9850 shlibpath_overrides_runpath=no
9851 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9852 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9853 hardcode_into_libs=yes
9854 ;;
9855
9856 # No shared lib support for Linux oldld, aout, or coff.
9857 linux*oldld* | linux*aout* | linux*coff*)
9858 dynamic_linker=no
9859 ;;
9860
9861 # This must be Linux ELF.
9862 linux* | k*bsd*-gnu)
9863 version_type=linux
9864 need_lib_prefix=no
9865 need_version=no
9866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9867 soname_spec='${libname}${release}${shared_ext}$major'
9868 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9869 shlibpath_var=LD_LIBRARY_PATH
9870 shlibpath_overrides_runpath=no
9871 # Some binutils ld are patched to set DT_RUNPATH
9872 save_LDFLAGS=$LDFLAGS
9873 save_libdir=$libdir
9874 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9875 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9876 cat >conftest.$ac_ext <<_ACEOF
9877 /* confdefs.h. */
9878 _ACEOF
9879 cat confdefs.h >>conftest.$ac_ext
9880 cat >>conftest.$ac_ext <<_ACEOF
9881 /* end confdefs.h. */
9882
9883 int
9884 main ()
9885 {
9886
9887 ;
9888 return 0;
9889 }
9890 _ACEOF
9891 rm -f conftest.$ac_objext conftest$ac_exeext
9892 if { (ac_try="$ac_link"
9893 case "(($ac_try" in
9894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9895 *) ac_try_echo=$ac_try;;
9896 esac
9897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9898 $as_echo "$ac_try_echo") >&5
9899 (eval "$ac_link") 2>conftest.er1
9900 ac_status=$?
9901 grep -v '^ *+' conftest.er1 >conftest.err
9902 rm -f conftest.er1
9903 cat conftest.err >&5
9904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); } && {
9906 test -z "$ac_c_werror_flag" ||
9907 test ! -s conftest.err
9908 } && test -s conftest$ac_exeext && {
9909 test "$cross_compiling" = yes ||
9910 $as_test_x conftest$ac_exeext
9911 }; then
9912 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9913 shlibpath_overrides_runpath=yes
9914 fi
9915
9916 else
9917 $as_echo "$as_me: failed program was:" >&5
9918 sed 's/^/| /' conftest.$ac_ext >&5
9919
9920
9921 fi
9922
9923 rm -rf conftest.dSYM
9924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9925 conftest$ac_exeext conftest.$ac_ext
9926 LDFLAGS=$save_LDFLAGS
9927 libdir=$save_libdir
9928
9929 # This implies no fast_install, which is unacceptable.
9930 # Some rework will be needed to allow for fast_install
9931 # before this can be enabled.
9932 hardcode_into_libs=yes
9933
9934 # Add ABI-specific directories to the system library path.
9935 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
9936
9937 # Append ld.so.conf contents to the search path
9938 if test -f /etc/ld.so.conf; then
9939 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' ' '`
9940 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9941 fi
9942
9943 # We used to test for /lib/ld.so.1 and disable shared libraries on
9944 # powerpc, because MkLinux only supported shared libraries with the
9945 # GNU dynamic linker. Since this was broken with cross compilers,
9946 # most powerpc-linux boxes support dynamic linking these days and
9947 # people can always --disable-shared, the test was removed, and we
9948 # assume the GNU/Linux dynamic linker is in use.
9949 dynamic_linker='GNU/Linux ld.so'
9950 ;;
9951
9952 netbsd*)
9953 version_type=sunos
9954 need_lib_prefix=no
9955 need_version=no
9956 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9958 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9959 dynamic_linker='NetBSD (a.out) ld.so'
9960 else
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 dynamic_linker='NetBSD ld.elf_so'
9964 fi
9965 shlibpath_var=LD_LIBRARY_PATH
9966 shlibpath_overrides_runpath=yes
9967 hardcode_into_libs=yes
9968 ;;
9969
9970 newsos6)
9971 version_type=linux
9972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9973 shlibpath_var=LD_LIBRARY_PATH
9974 shlibpath_overrides_runpath=yes
9975 ;;
9976
9977 *nto* | *qnx*)
9978 version_type=qnx
9979 need_lib_prefix=no
9980 need_version=no
9981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9982 soname_spec='${libname}${release}${shared_ext}$major'
9983 shlibpath_var=LD_LIBRARY_PATH
9984 shlibpath_overrides_runpath=no
9985 hardcode_into_libs=yes
9986 dynamic_linker='ldqnx.so'
9987 ;;
9988
9989 openbsd*)
9990 version_type=sunos
9991 sys_lib_dlsearch_path_spec="/usr/lib"
9992 need_lib_prefix=no
9993 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9994 case $host_os in
9995 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9996 *) need_version=no ;;
9997 esac
9998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9999 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10000 shlibpath_var=LD_LIBRARY_PATH
10001 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10002 case $host_os in
10003 openbsd2.[89] | openbsd2.[89].*)
10004 shlibpath_overrides_runpath=no
10005 ;;
10006 *)
10007 shlibpath_overrides_runpath=yes
10008 ;;
10009 esac
10010 else
10011 shlibpath_overrides_runpath=yes
10012 fi
10013 ;;
10014
10015 os2*)
10016 libname_spec='$name'
10017 shrext_cmds=".dll"
10018 need_lib_prefix=no
10019 library_names_spec='$libname${shared_ext} $libname.a'
10020 dynamic_linker='OS/2 ld.exe'
10021 shlibpath_var=LIBPATH
10022 ;;
10023
10024 osf3* | osf4* | osf5*)
10025 version_type=osf
10026 need_lib_prefix=no
10027 need_version=no
10028 soname_spec='${libname}${release}${shared_ext}$major'
10029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10030 shlibpath_var=LD_LIBRARY_PATH
10031 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10032 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10033 ;;
10034
10035 rdos*)
10036 dynamic_linker=no
10037 ;;
10038
10039 solaris*)
10040 version_type=linux
10041 need_lib_prefix=no
10042 need_version=no
10043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10044 soname_spec='${libname}${release}${shared_ext}$major'
10045 shlibpath_var=LD_LIBRARY_PATH
10046 shlibpath_overrides_runpath=yes
10047 hardcode_into_libs=yes
10048 # ldd complains unless libraries are executable
10049 postinstall_cmds='chmod +x $lib'
10050 ;;
10051
10052 sunos4*)
10053 version_type=sunos
10054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10055 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10056 shlibpath_var=LD_LIBRARY_PATH
10057 shlibpath_overrides_runpath=yes
10058 if test "$with_gnu_ld" = yes; then
10059 need_lib_prefix=no
10060 fi
10061 need_version=yes
10062 ;;
10063
10064 sysv4 | sysv4.3*)
10065 version_type=linux
10066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10067 soname_spec='${libname}${release}${shared_ext}$major'
10068 shlibpath_var=LD_LIBRARY_PATH
10069 case $host_vendor in
10070 sni)
10071 shlibpath_overrides_runpath=no
10072 need_lib_prefix=no
10073 runpath_var=LD_RUN_PATH
10074 ;;
10075 siemens)
10076 need_lib_prefix=no
10077 ;;
10078 motorola)
10079 need_lib_prefix=no
10080 need_version=no
10081 shlibpath_overrides_runpath=no
10082 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10083 ;;
10084 esac
10085 ;;
10086
10087 sysv4*MP*)
10088 if test -d /usr/nec ;then
10089 version_type=linux
10090 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10091 soname_spec='$libname${shared_ext}.$major'
10092 shlibpath_var=LD_LIBRARY_PATH
10093 fi
10094 ;;
10095
10096 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10097 version_type=freebsd-elf
10098 need_lib_prefix=no
10099 need_version=no
10100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10101 soname_spec='${libname}${release}${shared_ext}$major'
10102 shlibpath_var=LD_LIBRARY_PATH
10103 shlibpath_overrides_runpath=yes
10104 hardcode_into_libs=yes
10105 if test "$with_gnu_ld" = yes; then
10106 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10107 else
10108 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10109 case $host_os in
10110 sco3.2v5*)
10111 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10112 ;;
10113 esac
10114 fi
10115 sys_lib_dlsearch_path_spec='/usr/lib'
10116 ;;
10117
10118 tpf*)
10119 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10120 version_type=linux
10121 need_lib_prefix=no
10122 need_version=no
10123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10124 shlibpath_var=LD_LIBRARY_PATH
10125 shlibpath_overrides_runpath=no
10126 hardcode_into_libs=yes
10127 ;;
10128
10129 uts4*)
10130 version_type=linux
10131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10132 soname_spec='${libname}${release}${shared_ext}$major'
10133 shlibpath_var=LD_LIBRARY_PATH
10134 ;;
10135
10136 *)
10137 dynamic_linker=no
10138 ;;
10139 esac
10140 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10141 $as_echo "$dynamic_linker" >&6; }
10142 test "$dynamic_linker" = no && can_build_shared=no
10143
10144 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10145 if test "$GCC" = yes; then
10146 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10147 fi
10148
10149 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10150 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10151 fi
10152 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10153 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10154 fi
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
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10243 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10244 hardcode_action=
10245 if test -n "$hardcode_libdir_flag_spec" ||
10246 test -n "$runpath_var" ||
10247 test "X$hardcode_automatic" = "Xyes" ; then
10248
10249 # We can hardcode non-existent directories.
10250 if test "$hardcode_direct" != no &&
10251 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10252 # have to relink, otherwise we might link with an installed library
10253 # when we should be linking with a yet-to-be-installed one
10254 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10255 test "$hardcode_minus_L" != no; then
10256 # Linking always hardcodes the temporary library directory.
10257 hardcode_action=relink
10258 else
10259 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10260 hardcode_action=immediate
10261 fi
10262 else
10263 # We cannot hardcode anything, or else we can only hardcode existing
10264 # directories.
10265 hardcode_action=unsupported
10266 fi
10267 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10268 $as_echo "$hardcode_action" >&6; }
10269
10270 if test "$hardcode_action" = relink ||
10271 test "$inherit_rpath" = yes; then
10272 # Fast installation is not supported
10273 enable_fast_install=no
10274 elif test "$shlibpath_overrides_runpath" = yes ||
10275 test "$enable_shared" = no; then
10276 # Fast installation is not necessary
10277 enable_fast_install=needless
10278 fi
10279
10280
10281
10282
10283
10284
10285 if test "x$enable_dlopen" != xyes; then
10286 enable_dlopen=unknown
10287 enable_dlopen_self=unknown
10288 enable_dlopen_self_static=unknown
10289 else
10290 lt_cv_dlopen=no
10291 lt_cv_dlopen_libs=
10292
10293 case $host_os in
10294 beos*)
10295 lt_cv_dlopen="load_add_on"
10296 lt_cv_dlopen_libs=
10297 lt_cv_dlopen_self=yes
10298 ;;
10299
10300 mingw* | pw32* | cegcc*)
10301 lt_cv_dlopen="LoadLibrary"
10302 lt_cv_dlopen_libs=
10303 ;;
10304
10305 cygwin*)
10306 lt_cv_dlopen="dlopen"
10307 lt_cv_dlopen_libs=
10308 ;;
10309
10310 darwin*)
10311 # if libdl is installed we need to link against it
10312 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10313 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10314 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10315 $as_echo_n "(cached) " >&6
10316 else
10317 ac_check_lib_save_LIBS=$LIBS
10318 LIBS="-ldl $LIBS"
10319 cat >conftest.$ac_ext <<_ACEOF
10320 /* confdefs.h. */
10321 _ACEOF
10322 cat confdefs.h >>conftest.$ac_ext
10323 cat >>conftest.$ac_ext <<_ACEOF
10324 /* end confdefs.h. */
10325
10326 /* Override any GCC internal prototype to avoid an error.
10327 Use char because int might match the return type of a GCC
10328 builtin and then its argument prototype would still apply. */
10329 #ifdef __cplusplus
10330 extern "C"
10331 #endif
10332 char dlopen ();
10333 int
10334 main ()
10335 {
10336 return dlopen ();
10337 ;
10338 return 0;
10339 }
10340 _ACEOF
10341 rm -f conftest.$ac_objext conftest$ac_exeext
10342 if { (ac_try="$ac_link"
10343 case "(($ac_try" in
10344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10345 *) ac_try_echo=$ac_try;;
10346 esac
10347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10348 $as_echo "$ac_try_echo") >&5
10349 (eval "$ac_link") 2>conftest.er1
10350 ac_status=$?
10351 grep -v '^ *+' conftest.er1 >conftest.err
10352 rm -f conftest.er1
10353 cat conftest.err >&5
10354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355 (exit $ac_status); } && {
10356 test -z "$ac_c_werror_flag" ||
10357 test ! -s conftest.err
10358 } && test -s conftest$ac_exeext && {
10359 test "$cross_compiling" = yes ||
10360 $as_test_x conftest$ac_exeext
10361 }; then
10362 ac_cv_lib_dl_dlopen=yes
10363 else
10364 $as_echo "$as_me: failed program was:" >&5
10365 sed 's/^/| /' conftest.$ac_ext >&5
10366
10367 ac_cv_lib_dl_dlopen=no
10368 fi
10369
10370 rm -rf conftest.dSYM
10371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10372 conftest$ac_exeext conftest.$ac_ext
10373 LIBS=$ac_check_lib_save_LIBS
10374 fi
10375 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10376 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10377 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10378 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10379 else
10380
10381 lt_cv_dlopen="dyld"
10382 lt_cv_dlopen_libs=
10383 lt_cv_dlopen_self=yes
10384
10385 fi
10386
10387 ;;
10388
10389 *)
10390 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10391 $as_echo_n "checking for shl_load... " >&6; }
10392 if test "${ac_cv_func_shl_load+set}" = set; then
10393 $as_echo_n "(cached) " >&6
10394 else
10395 cat >conftest.$ac_ext <<_ACEOF
10396 /* confdefs.h. */
10397 _ACEOF
10398 cat confdefs.h >>conftest.$ac_ext
10399 cat >>conftest.$ac_ext <<_ACEOF
10400 /* end confdefs.h. */
10401 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10403 #define shl_load innocuous_shl_load
10404
10405 /* System header to define __stub macros and hopefully few prototypes,
10406 which can conflict with char shl_load (); below.
10407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10408 <limits.h> exists even on freestanding compilers. */
10409
10410 #ifdef __STDC__
10411 # include <limits.h>
10412 #else
10413 # include <assert.h>
10414 #endif
10415
10416 #undef shl_load
10417
10418 /* Override any GCC internal prototype to avoid an error.
10419 Use char because int might match the return type of a GCC
10420 builtin and then its argument prototype would still apply. */
10421 #ifdef __cplusplus
10422 extern "C"
10423 #endif
10424 char shl_load ();
10425 /* The GNU C library defines this for functions which it implements
10426 to always fail with ENOSYS. Some functions are actually named
10427 something starting with __ and the normal name is an alias. */
10428 #if defined __stub_shl_load || defined __stub___shl_load
10429 choke me
10430 #endif
10431
10432 int
10433 main ()
10434 {
10435 return shl_load ();
10436 ;
10437 return 0;
10438 }
10439 _ACEOF
10440 rm -f conftest.$ac_objext conftest$ac_exeext
10441 if { (ac_try="$ac_link"
10442 case "(($ac_try" in
10443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10444 *) ac_try_echo=$ac_try;;
10445 esac
10446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10447 $as_echo "$ac_try_echo") >&5
10448 (eval "$ac_link") 2>conftest.er1
10449 ac_status=$?
10450 grep -v '^ *+' conftest.er1 >conftest.err
10451 rm -f conftest.er1
10452 cat conftest.err >&5
10453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454 (exit $ac_status); } && {
10455 test -z "$ac_c_werror_flag" ||
10456 test ! -s conftest.err
10457 } && test -s conftest$ac_exeext && {
10458 test "$cross_compiling" = yes ||
10459 $as_test_x conftest$ac_exeext
10460 }; then
10461 ac_cv_func_shl_load=yes
10462 else
10463 $as_echo "$as_me: failed program was:" >&5
10464 sed 's/^/| /' conftest.$ac_ext >&5
10465
10466 ac_cv_func_shl_load=no
10467 fi
10468
10469 rm -rf conftest.dSYM
10470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10471 conftest$ac_exeext conftest.$ac_ext
10472 fi
10473 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10474 $as_echo "$ac_cv_func_shl_load" >&6; }
10475 if test "x$ac_cv_func_shl_load" = x""yes; then
10476 lt_cv_dlopen="shl_load"
10477 else
10478 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10479 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10480 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10481 $as_echo_n "(cached) " >&6
10482 else
10483 ac_check_lib_save_LIBS=$LIBS
10484 LIBS="-ldld $LIBS"
10485 cat >conftest.$ac_ext <<_ACEOF
10486 /* confdefs.h. */
10487 _ACEOF
10488 cat confdefs.h >>conftest.$ac_ext
10489 cat >>conftest.$ac_ext <<_ACEOF
10490 /* end confdefs.h. */
10491
10492 /* Override any GCC internal prototype to avoid an error.
10493 Use char because int might match the return type of a GCC
10494 builtin and then its argument prototype would still apply. */
10495 #ifdef __cplusplus
10496 extern "C"
10497 #endif
10498 char shl_load ();
10499 int
10500 main ()
10501 {
10502 return shl_load ();
10503 ;
10504 return 0;
10505 }
10506 _ACEOF
10507 rm -f conftest.$ac_objext conftest$ac_exeext
10508 if { (ac_try="$ac_link"
10509 case "(($ac_try" in
10510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10511 *) ac_try_echo=$ac_try;;
10512 esac
10513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10514 $as_echo "$ac_try_echo") >&5
10515 (eval "$ac_link") 2>conftest.er1
10516 ac_status=$?
10517 grep -v '^ *+' conftest.er1 >conftest.err
10518 rm -f conftest.er1
10519 cat conftest.err >&5
10520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); } && {
10522 test -z "$ac_c_werror_flag" ||
10523 test ! -s conftest.err
10524 } && test -s conftest$ac_exeext && {
10525 test "$cross_compiling" = yes ||
10526 $as_test_x conftest$ac_exeext
10527 }; then
10528 ac_cv_lib_dld_shl_load=yes
10529 else
10530 $as_echo "$as_me: failed program was:" >&5
10531 sed 's/^/| /' conftest.$ac_ext >&5
10532
10533 ac_cv_lib_dld_shl_load=no
10534 fi
10535
10536 rm -rf conftest.dSYM
10537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10538 conftest$ac_exeext conftest.$ac_ext
10539 LIBS=$ac_check_lib_save_LIBS
10540 fi
10541 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10542 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10543 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10544 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10545 else
10546 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10547 $as_echo_n "checking for dlopen... " >&6; }
10548 if test "${ac_cv_func_dlopen+set}" = set; then
10549 $as_echo_n "(cached) " >&6
10550 else
10551 cat >conftest.$ac_ext <<_ACEOF
10552 /* confdefs.h. */
10553 _ACEOF
10554 cat confdefs.h >>conftest.$ac_ext
10555 cat >>conftest.$ac_ext <<_ACEOF
10556 /* end confdefs.h. */
10557 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10559 #define dlopen innocuous_dlopen
10560
10561 /* System header to define __stub macros and hopefully few prototypes,
10562 which can conflict with char dlopen (); below.
10563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10564 <limits.h> exists even on freestanding compilers. */
10565
10566 #ifdef __STDC__
10567 # include <limits.h>
10568 #else
10569 # include <assert.h>
10570 #endif
10571
10572 #undef dlopen
10573
10574 /* Override any GCC internal prototype to avoid an error.
10575 Use char because int might match the return type of a GCC
10576 builtin and then its argument prototype would still apply. */
10577 #ifdef __cplusplus
10578 extern "C"
10579 #endif
10580 char dlopen ();
10581 /* The GNU C library defines this for functions which it implements
10582 to always fail with ENOSYS. Some functions are actually named
10583 something starting with __ and the normal name is an alias. */
10584 #if defined __stub_dlopen || defined __stub___dlopen
10585 choke me
10586 #endif
10587
10588 int
10589 main ()
10590 {
10591 return dlopen ();
10592 ;
10593 return 0;
10594 }
10595 _ACEOF
10596 rm -f conftest.$ac_objext conftest$ac_exeext
10597 if { (ac_try="$ac_link"
10598 case "(($ac_try" in
10599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10600 *) ac_try_echo=$ac_try;;
10601 esac
10602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10603 $as_echo "$ac_try_echo") >&5
10604 (eval "$ac_link") 2>conftest.er1
10605 ac_status=$?
10606 grep -v '^ *+' conftest.er1 >conftest.err
10607 rm -f conftest.er1
10608 cat conftest.err >&5
10609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); } && {
10611 test -z "$ac_c_werror_flag" ||
10612 test ! -s conftest.err
10613 } && test -s conftest$ac_exeext && {
10614 test "$cross_compiling" = yes ||
10615 $as_test_x conftest$ac_exeext
10616 }; then
10617 ac_cv_func_dlopen=yes
10618 else
10619 $as_echo "$as_me: failed program was:" >&5
10620 sed 's/^/| /' conftest.$ac_ext >&5
10621
10622 ac_cv_func_dlopen=no
10623 fi
10624
10625 rm -rf conftest.dSYM
10626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10627 conftest$ac_exeext conftest.$ac_ext
10628 fi
10629 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10630 $as_echo "$ac_cv_func_dlopen" >&6; }
10631 if test "x$ac_cv_func_dlopen" = x""yes; then
10632 lt_cv_dlopen="dlopen"
10633 else
10634 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10635 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10636 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10637 $as_echo_n "(cached) " >&6
10638 else
10639 ac_check_lib_save_LIBS=$LIBS
10640 LIBS="-ldl $LIBS"
10641 cat >conftest.$ac_ext <<_ACEOF
10642 /* confdefs.h. */
10643 _ACEOF
10644 cat confdefs.h >>conftest.$ac_ext
10645 cat >>conftest.$ac_ext <<_ACEOF
10646 /* end confdefs.h. */
10647
10648 /* Override any GCC internal prototype to avoid an error.
10649 Use char because int might match the return type of a GCC
10650 builtin and then its argument prototype would still apply. */
10651 #ifdef __cplusplus
10652 extern "C"
10653 #endif
10654 char dlopen ();
10655 int
10656 main ()
10657 {
10658 return dlopen ();
10659 ;
10660 return 0;
10661 }
10662 _ACEOF
10663 rm -f conftest.$ac_objext conftest$ac_exeext
10664 if { (ac_try="$ac_link"
10665 case "(($ac_try" in
10666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10667 *) ac_try_echo=$ac_try;;
10668 esac
10669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10670 $as_echo "$ac_try_echo") >&5
10671 (eval "$ac_link") 2>conftest.er1
10672 ac_status=$?
10673 grep -v '^ *+' conftest.er1 >conftest.err
10674 rm -f conftest.er1
10675 cat conftest.err >&5
10676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677 (exit $ac_status); } && {
10678 test -z "$ac_c_werror_flag" ||
10679 test ! -s conftest.err
10680 } && test -s conftest$ac_exeext && {
10681 test "$cross_compiling" = yes ||
10682 $as_test_x conftest$ac_exeext
10683 }; then
10684 ac_cv_lib_dl_dlopen=yes
10685 else
10686 $as_echo "$as_me: failed program was:" >&5
10687 sed 's/^/| /' conftest.$ac_ext >&5
10688
10689 ac_cv_lib_dl_dlopen=no
10690 fi
10691
10692 rm -rf conftest.dSYM
10693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10694 conftest$ac_exeext conftest.$ac_ext
10695 LIBS=$ac_check_lib_save_LIBS
10696 fi
10697 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10698 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10699 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10700 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10701 else
10702 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10703 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10704 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10705 $as_echo_n "(cached) " >&6
10706 else
10707 ac_check_lib_save_LIBS=$LIBS
10708 LIBS="-lsvld $LIBS"
10709 cat >conftest.$ac_ext <<_ACEOF
10710 /* confdefs.h. */
10711 _ACEOF
10712 cat confdefs.h >>conftest.$ac_ext
10713 cat >>conftest.$ac_ext <<_ACEOF
10714 /* end confdefs.h. */
10715
10716 /* Override any GCC internal prototype to avoid an error.
10717 Use char because int might match the return type of a GCC
10718 builtin and then its argument prototype would still apply. */
10719 #ifdef __cplusplus
10720 extern "C"
10721 #endif
10722 char dlopen ();
10723 int
10724 main ()
10725 {
10726 return dlopen ();
10727 ;
10728 return 0;
10729 }
10730 _ACEOF
10731 rm -f conftest.$ac_objext conftest$ac_exeext
10732 if { (ac_try="$ac_link"
10733 case "(($ac_try" in
10734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10735 *) ac_try_echo=$ac_try;;
10736 esac
10737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10738 $as_echo "$ac_try_echo") >&5
10739 (eval "$ac_link") 2>conftest.er1
10740 ac_status=$?
10741 grep -v '^ *+' conftest.er1 >conftest.err
10742 rm -f conftest.er1
10743 cat conftest.err >&5
10744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745 (exit $ac_status); } && {
10746 test -z "$ac_c_werror_flag" ||
10747 test ! -s conftest.err
10748 } && test -s conftest$ac_exeext && {
10749 test "$cross_compiling" = yes ||
10750 $as_test_x conftest$ac_exeext
10751 }; then
10752 ac_cv_lib_svld_dlopen=yes
10753 else
10754 $as_echo "$as_me: failed program was:" >&5
10755 sed 's/^/| /' conftest.$ac_ext >&5
10756
10757 ac_cv_lib_svld_dlopen=no
10758 fi
10759
10760 rm -rf conftest.dSYM
10761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10762 conftest$ac_exeext conftest.$ac_ext
10763 LIBS=$ac_check_lib_save_LIBS
10764 fi
10765 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10766 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10767 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10768 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10769 else
10770 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10771 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10772 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10773 $as_echo_n "(cached) " >&6
10774 else
10775 ac_check_lib_save_LIBS=$LIBS
10776 LIBS="-ldld $LIBS"
10777 cat >conftest.$ac_ext <<_ACEOF
10778 /* confdefs.h. */
10779 _ACEOF
10780 cat confdefs.h >>conftest.$ac_ext
10781 cat >>conftest.$ac_ext <<_ACEOF
10782 /* end confdefs.h. */
10783
10784 /* Override any GCC internal prototype to avoid an error.
10785 Use char because int might match the return type of a GCC
10786 builtin and then its argument prototype would still apply. */
10787 #ifdef __cplusplus
10788 extern "C"
10789 #endif
10790 char dld_link ();
10791 int
10792 main ()
10793 {
10794 return dld_link ();
10795 ;
10796 return 0;
10797 }
10798 _ACEOF
10799 rm -f conftest.$ac_objext conftest$ac_exeext
10800 if { (ac_try="$ac_link"
10801 case "(($ac_try" in
10802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10803 *) ac_try_echo=$ac_try;;
10804 esac
10805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10806 $as_echo "$ac_try_echo") >&5
10807 (eval "$ac_link") 2>conftest.er1
10808 ac_status=$?
10809 grep -v '^ *+' conftest.er1 >conftest.err
10810 rm -f conftest.er1
10811 cat conftest.err >&5
10812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); } && {
10814 test -z "$ac_c_werror_flag" ||
10815 test ! -s conftest.err
10816 } && test -s conftest$ac_exeext && {
10817 test "$cross_compiling" = yes ||
10818 $as_test_x conftest$ac_exeext
10819 }; then
10820 ac_cv_lib_dld_dld_link=yes
10821 else
10822 $as_echo "$as_me: failed program was:" >&5
10823 sed 's/^/| /' conftest.$ac_ext >&5
10824
10825 ac_cv_lib_dld_dld_link=no
10826 fi
10827
10828 rm -rf conftest.dSYM
10829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10830 conftest$ac_exeext conftest.$ac_ext
10831 LIBS=$ac_check_lib_save_LIBS
10832 fi
10833 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10834 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10835 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10836 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10837 fi
10838
10839
10840 fi
10841
10842
10843 fi
10844
10845
10846 fi
10847
10848
10849 fi
10850
10851
10852 fi
10853
10854 ;;
10855 esac
10856
10857 if test "x$lt_cv_dlopen" != xno; then
10858 enable_dlopen=yes
10859 else
10860 enable_dlopen=no
10861 fi
10862
10863 case $lt_cv_dlopen in
10864 dlopen)
10865 save_CPPFLAGS="$CPPFLAGS"
10866 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10867
10868 save_LDFLAGS="$LDFLAGS"
10869 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10870
10871 save_LIBS="$LIBS"
10872 LIBS="$lt_cv_dlopen_libs $LIBS"
10873
10874 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10875 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10876 if test "${lt_cv_dlopen_self+set}" = set; then
10877 $as_echo_n "(cached) " >&6
10878 else
10879 if test "$cross_compiling" = yes; then :
10880 lt_cv_dlopen_self=cross
10881 else
10882 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10883 lt_status=$lt_dlunknown
10884 cat > conftest.$ac_ext <<_LT_EOF
10885 #line 10885 "configure"
10886 #include "confdefs.h"
10887
10888 #if HAVE_DLFCN_H
10889 #include <dlfcn.h>
10890 #endif
10891
10892 #include <stdio.h>
10893
10894 #ifdef RTLD_GLOBAL
10895 # define LT_DLGLOBAL RTLD_GLOBAL
10896 #else
10897 # ifdef DL_GLOBAL
10898 # define LT_DLGLOBAL DL_GLOBAL
10899 # else
10900 # define LT_DLGLOBAL 0
10901 # endif
10902 #endif
10903
10904 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10905 find out it does not work in some platform. */
10906 #ifndef LT_DLLAZY_OR_NOW
10907 # ifdef RTLD_LAZY
10908 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10909 # else
10910 # ifdef DL_LAZY
10911 # define LT_DLLAZY_OR_NOW DL_LAZY
10912 # else
10913 # ifdef RTLD_NOW
10914 # define LT_DLLAZY_OR_NOW RTLD_NOW
10915 # else
10916 # ifdef DL_NOW
10917 # define LT_DLLAZY_OR_NOW DL_NOW
10918 # else
10919 # define LT_DLLAZY_OR_NOW 0
10920 # endif
10921 # endif
10922 # endif
10923 # endif
10924 #endif
10925
10926 void fnord() { int i=42;}
10927 int main ()
10928 {
10929 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10930 int status = $lt_dlunknown;
10931
10932 if (self)
10933 {
10934 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10935 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10936 /* dlclose (self); */
10937 }
10938 else
10939 puts (dlerror ());
10940
10941 return status;
10942 }
10943 _LT_EOF
10944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10945 (eval $ac_link) 2>&5
10946 ac_status=$?
10947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10949 (./conftest; exit; ) >&5 2>/dev/null
10950 lt_status=$?
10951 case x$lt_status in
10952 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10953 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10954 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10955 esac
10956 else :
10957 # compilation failed
10958 lt_cv_dlopen_self=no
10959 fi
10960 fi
10961 rm -fr conftest*
10962
10963
10964 fi
10965 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10966 $as_echo "$lt_cv_dlopen_self" >&6; }
10967
10968 if test "x$lt_cv_dlopen_self" = xyes; then
10969 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10970 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10971 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10972 if test "${lt_cv_dlopen_self_static+set}" = set; then
10973 $as_echo_n "(cached) " >&6
10974 else
10975 if test "$cross_compiling" = yes; then :
10976 lt_cv_dlopen_self_static=cross
10977 else
10978 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10979 lt_status=$lt_dlunknown
10980 cat > conftest.$ac_ext <<_LT_EOF
10981 #line 10981 "configure"
10982 #include "confdefs.h"
10983
10984 #if HAVE_DLFCN_H
10985 #include <dlfcn.h>
10986 #endif
10987
10988 #include <stdio.h>
10989
10990 #ifdef RTLD_GLOBAL
10991 # define LT_DLGLOBAL RTLD_GLOBAL
10992 #else
10993 # ifdef DL_GLOBAL
10994 # define LT_DLGLOBAL DL_GLOBAL
10995 # else
10996 # define LT_DLGLOBAL 0
10997 # endif
10998 #endif
10999
11000 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11001 find out it does not work in some platform. */
11002 #ifndef LT_DLLAZY_OR_NOW
11003 # ifdef RTLD_LAZY
11004 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11005 # else
11006 # ifdef DL_LAZY
11007 # define LT_DLLAZY_OR_NOW DL_LAZY
11008 # else
11009 # ifdef RTLD_NOW
11010 # define LT_DLLAZY_OR_NOW RTLD_NOW
11011 # else
11012 # ifdef DL_NOW
11013 # define LT_DLLAZY_OR_NOW DL_NOW
11014 # else
11015 # define LT_DLLAZY_OR_NOW 0
11016 # endif
11017 # endif
11018 # endif
11019 # endif
11020 #endif
11021
11022 void fnord() { int i=42;}
11023 int main ()
11024 {
11025 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11026 int status = $lt_dlunknown;
11027
11028 if (self)
11029 {
11030 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11031 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11032 /* dlclose (self); */
11033 }
11034 else
11035 puts (dlerror ());
11036
11037 return status;
11038 }
11039 _LT_EOF
11040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11041 (eval $ac_link) 2>&5
11042 ac_status=$?
11043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11045 (./conftest; exit; ) >&5 2>/dev/null
11046 lt_status=$?
11047 case x$lt_status in
11048 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11049 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11050 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11051 esac
11052 else :
11053 # compilation failed
11054 lt_cv_dlopen_self_static=no
11055 fi
11056 fi
11057 rm -fr conftest*
11058
11059
11060 fi
11061 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11062 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11063 fi
11064
11065 CPPFLAGS="$save_CPPFLAGS"
11066 LDFLAGS="$save_LDFLAGS"
11067 LIBS="$save_LIBS"
11068 ;;
11069 esac
11070
11071 case $lt_cv_dlopen_self in
11072 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11073 *) enable_dlopen_self=unknown ;;
11074 esac
11075
11076 case $lt_cv_dlopen_self_static in
11077 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11078 *) enable_dlopen_self_static=unknown ;;
11079 esac
11080 fi
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098 striplib=
11099 old_striplib=
11100 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11101 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11102 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11103 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11104 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11105 { $as_echo "$as_me:$LINENO: result: yes" >&5
11106 $as_echo "yes" >&6; }
11107 else
11108 # FIXME - insert some real tests, host_os isn't really good enough
11109 case $host_os in
11110 darwin*)
11111 if test -n "$STRIP" ; then
11112 striplib="$STRIP -x"
11113 old_striplib="$STRIP -S"
11114 { $as_echo "$as_me:$LINENO: result: yes" >&5
11115 $as_echo "yes" >&6; }
11116 else
11117 { $as_echo "$as_me:$LINENO: result: no" >&5
11118 $as_echo "no" >&6; }
11119 fi
11120 ;;
11121 *)
11122 { $as_echo "$as_me:$LINENO: result: no" >&5
11123 $as_echo "no" >&6; }
11124 ;;
11125 esac
11126 fi
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139 # Report which library types will actually be built
11140 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11141 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11142 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11143 $as_echo "$can_build_shared" >&6; }
11144
11145 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11146 $as_echo_n "checking whether to build shared libraries... " >&6; }
11147 test "$can_build_shared" = "no" && enable_shared=no
11148
11149 # On AIX, shared libraries and static libraries use the same namespace, and
11150 # are all built from PIC.
11151 case $host_os in
11152 aix3*)
11153 test "$enable_shared" = yes && enable_static=no
11154 if test -n "$RANLIB"; then
11155 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11156 postinstall_cmds='$RANLIB $lib'
11157 fi
11158 ;;
11159
11160 aix[4-9]*)
11161 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11162 test "$enable_shared" = yes && enable_static=no
11163 fi
11164 ;;
11165 esac
11166 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11167 $as_echo "$enable_shared" >&6; }
11168
11169 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11170 $as_echo_n "checking whether to build static libraries... " >&6; }
11171 # Make sure either enable_shared or enable_static is yes.
11172 test "$enable_shared" = yes || enable_static=yes
11173 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11174 $as_echo "$enable_static" >&6; }
11175
11176
11177
11178
11179 fi
11180 ac_ext=c
11181 ac_cpp='$CPP $CPPFLAGS'
11182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11185
11186 CC="$lt_save_CC"
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200 ac_config_commands="$ac_config_commands libtool"
11201
11202
11203
11204
11205 # Only expand once:
11206
11207
11208 for ac_prog in perl5 perl
11209 do
11210 # Extract the first word of "$ac_prog", so it can be a program name with args.
11211 set dummy $ac_prog; ac_word=$2
11212 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11213 $as_echo_n "checking for $ac_word... " >&6; }
11214 if test "${ac_cv_path_PERL+set}" = set; then
11215 $as_echo_n "(cached) " >&6
11216 else
11217 case $PERL in
11218 [\\/]* | ?:[\\/]*)
11219 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11220 ;;
11221 *)
11222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11223 for as_dir in $LPATH
11224 do
11225 IFS=$as_save_IFS
11226 test -z "$as_dir" && as_dir=.
11227 for ac_exec_ext in '' $ac_executable_extensions; do
11228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11229 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11230 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11231 break 2
11232 fi
11233 done
11234 done
11235 IFS=$as_save_IFS
11236
11237 ;;
11238 esac
11239 fi
11240 PERL=$ac_cv_path_PERL
11241 if test -n "$PERL"; then
11242 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
11243 $as_echo "$PERL" >&6; }
11244 else
11245 { $as_echo "$as_me:$LINENO: result: no" >&5
11246 $as_echo "no" >&6; }
11247 fi
11248
11249
11250 test -n "$PERL" && break
11251 done
11252 test -n "$PERL" || PERL="perl"
11253
11254
11255 if test "$PERL" = "perl"
11256 then
11257 { { $as_echo "$as_me:$LINENO: error: Perl not found." >&5
11258 $as_echo "$as_me: error: Perl not found." >&2;}
11259 { (exit 1); exit 1; }; }
11260 fi
11261
11262 if test "$GCC" = "yes"
11263 then
11264 CFLAGS="$CFLAGS -Wall"
11265 fi
11266
11267 CFLAGS="$CFLAGS -I.. -I${srcdir}/.."
11268
11269
11270
11271 # Check whether --with-userdb was given.
11272 if test "${with_userdb+set}" = set; then
11273 withval=$with_userdb; userdb="$withval"
11274 else
11275 userdb="/etc/userdb"
11276 fi
11277
11278
11279 USERDB="`echo $userdb | tr 'a-z' 'A-Z'`"
11280
11281
11282
11283 # Check whether --with-userdbmandir was given.
11284 if test "${with_userdbmandir+set}" = set; then
11285 withval=$with_userdbmandir; mandir="$withval"
11286 fi
11287
11288
11289
11290 # Check whether --with-userdbtmpdir was given.
11291 if test "${with_userdbtmpdir+set}" = set; then
11292 withval=$with_userdbtmpdir; tmpdir="$withval"
11293 else
11294 tmpdir=""
11295 fi
11296
11297
11298
11299
11300 if test "$tmpdir" = ""
11301 then
11302 tmpdir=`echo "$userdb" | sed 's/\/[^\/]*$//'`
11303 fi
11304
11305
11306
11307
11308
11309
11310
11311 # Check whether --with-makedatprog was given.
11312 if test "${with_makedatprog+set}" = set; then
11313 withval=$with_makedatprog; makedat="$withval"
11314 else
11315 makedat="$bindir/makedat"
11316 fi
11317
11318
11319
11320 if test -d ${srcdir}/../md5
11321 then
11322
11323 cat >>confdefs.h <<_ACEOF
11324 #define HAVE_MD5 1
11325 _ACEOF
11326
11327 MD5LIB=../md5/libmd5.la
11328 else
11329 MD5LIB=""
11330 fi
11331
11332
11333 if test -d ${srcdir}/../sha1
11334 then
11335 SHA1LIB=../sha1/libsha1.la
11336 else
11337 SHA1LIB=""
11338 fi
11339
11340
11341 if test -d ${srcdir}/../libhmac
11342 then
11343
11344 cat >>confdefs.h <<_ACEOF
11345 #define HAVE_HMAC 1
11346 _ACEOF
11347
11348 HMACLIB=../libhmac/libhmac.la
11349 else
11350 HMACLIB=""
11351 fi
11352
11353
11354 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11355 $as_echo_n "checking for ANSI C header files... " >&6; }
11356 if test "${ac_cv_header_stdc+set}" = set; then
11357 $as_echo_n "(cached) " >&6
11358 else
11359 cat >conftest.$ac_ext <<_ACEOF
11360 /* confdefs.h. */
11361 _ACEOF
11362 cat confdefs.h >>conftest.$ac_ext
11363 cat >>conftest.$ac_ext <<_ACEOF
11364 /* end confdefs.h. */
11365 #include <stdlib.h>
11366 #include <stdarg.h>
11367 #include <string.h>
11368 #include <float.h>
11369
11370 int
11371 main ()
11372 {
11373
11374 ;
11375 return 0;
11376 }
11377 _ACEOF
11378 rm -f conftest.$ac_objext
11379 if { (ac_try="$ac_compile"
11380 case "(($ac_try" in
11381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11382 *) ac_try_echo=$ac_try;;
11383 esac
11384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11385 $as_echo "$ac_try_echo") >&5
11386 (eval "$ac_compile") 2>conftest.er1
11387 ac_status=$?
11388 grep -v '^ *+' conftest.er1 >conftest.err
11389 rm -f conftest.er1
11390 cat conftest.err >&5
11391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392 (exit $ac_status); } && {
11393 test -z "$ac_c_werror_flag" ||
11394 test ! -s conftest.err
11395 } && test -s conftest.$ac_objext; then
11396 ac_cv_header_stdc=yes
11397 else
11398 $as_echo "$as_me: failed program was:" >&5
11399 sed 's/^/| /' conftest.$ac_ext >&5
11400
11401 ac_cv_header_stdc=no
11402 fi
11403
11404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11405
11406 if test $ac_cv_header_stdc = yes; then
11407 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11408 cat >conftest.$ac_ext <<_ACEOF
11409 /* confdefs.h. */
11410 _ACEOF
11411 cat confdefs.h >>conftest.$ac_ext
11412 cat >>conftest.$ac_ext <<_ACEOF
11413 /* end confdefs.h. */
11414 #include <string.h>
11415
11416 _ACEOF
11417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11418 $EGREP "memchr" >/dev/null 2>&1; then
11419 :
11420 else
11421 ac_cv_header_stdc=no
11422 fi
11423 rm -f conftest*
11424
11425 fi
11426
11427 if test $ac_cv_header_stdc = yes; then
11428 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11429 cat >conftest.$ac_ext <<_ACEOF
11430 /* confdefs.h. */
11431 _ACEOF
11432 cat confdefs.h >>conftest.$ac_ext
11433 cat >>conftest.$ac_ext <<_ACEOF
11434 /* end confdefs.h. */
11435 #include <stdlib.h>
11436
11437 _ACEOF
11438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11439 $EGREP "free" >/dev/null 2>&1; then
11440 :
11441 else
11442 ac_cv_header_stdc=no
11443 fi
11444 rm -f conftest*
11445
11446 fi
11447
11448 if test $ac_cv_header_stdc = yes; then
11449 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11450 if test "$cross_compiling" = yes; then
11451 :
11452 else
11453 cat >conftest.$ac_ext <<_ACEOF
11454 /* confdefs.h. */
11455 _ACEOF
11456 cat confdefs.h >>conftest.$ac_ext
11457 cat >>conftest.$ac_ext <<_ACEOF
11458 /* end confdefs.h. */
11459 #include <ctype.h>
11460 #include <stdlib.h>
11461 #if ((' ' & 0x0FF) == 0x020)
11462 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11463 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11464 #else
11465 # define ISLOWER(c) \
11466 (('a' <= (c) && (c) <= 'i') \
11467 || ('j' <= (c) && (c) <= 'r') \
11468 || ('s' <= (c) && (c) <= 'z'))
11469 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11470 #endif
11471
11472 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11473 int
11474 main ()
11475 {
11476 int i;
11477 for (i = 0; i < 256; i++)
11478 if (XOR (islower (i), ISLOWER (i))
11479 || toupper (i) != TOUPPER (i))
11480 return 2;
11481 return 0;
11482 }
11483 _ACEOF
11484 rm -f conftest$ac_exeext
11485 if { (ac_try="$ac_link"
11486 case "(($ac_try" in
11487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11488 *) ac_try_echo=$ac_try;;
11489 esac
11490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11491 $as_echo "$ac_try_echo") >&5
11492 (eval "$ac_link") 2>&5
11493 ac_status=$?
11494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11496 { (case "(($ac_try" in
11497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11498 *) ac_try_echo=$ac_try;;
11499 esac
11500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11501 $as_echo "$ac_try_echo") >&5
11502 (eval "$ac_try") 2>&5
11503 ac_status=$?
11504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); }; }; then
11506 :
11507 else
11508 $as_echo "$as_me: program exited with status $ac_status" >&5
11509 $as_echo "$as_me: failed program was:" >&5
11510 sed 's/^/| /' conftest.$ac_ext >&5
11511
11512 ( exit $ac_status )
11513 ac_cv_header_stdc=no
11514 fi
11515 rm -rf conftest.dSYM
11516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11517 fi
11518
11519
11520 fi
11521 fi
11522 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11523 $as_echo "$ac_cv_header_stdc" >&6; }
11524 if test $ac_cv_header_stdc = yes; then
11525
11526 cat >>confdefs.h <<\_ACEOF
11527 #define STDC_HEADERS 1
11528 _ACEOF
11529
11530 fi
11531
11532
11533
11534
11535
11536
11537
11538 for ac_header in sys/stat.h sys/time.h unistd.h fcntl.h termios.h crypt.h
11539 do
11540 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11542 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11543 $as_echo_n "checking for $ac_header... " >&6; }
11544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11545 $as_echo_n "(cached) " >&6
11546 fi
11547 ac_res=`eval 'as_val=${'$as_ac_Header'}
11548 $as_echo "$as_val"'`
11549 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11550 $as_echo "$ac_res" >&6; }
11551 else
11552 # Is the header compilable?
11553 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11554 $as_echo_n "checking $ac_header usability... " >&6; }
11555 cat >conftest.$ac_ext <<_ACEOF
11556 /* confdefs.h. */
11557 _ACEOF
11558 cat confdefs.h >>conftest.$ac_ext
11559 cat >>conftest.$ac_ext <<_ACEOF
11560 /* end confdefs.h. */
11561 $ac_includes_default
11562 #include <$ac_header>
11563 _ACEOF
11564 rm -f conftest.$ac_objext
11565 if { (ac_try="$ac_compile"
11566 case "(($ac_try" in
11567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11568 *) ac_try_echo=$ac_try;;
11569 esac
11570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11571 $as_echo "$ac_try_echo") >&5
11572 (eval "$ac_compile") 2>conftest.er1
11573 ac_status=$?
11574 grep -v '^ *+' conftest.er1 >conftest.err
11575 rm -f conftest.er1
11576 cat conftest.err >&5
11577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); } && {
11579 test -z "$ac_c_werror_flag" ||
11580 test ! -s conftest.err
11581 } && test -s conftest.$ac_objext; then
11582 ac_header_compiler=yes
11583 else
11584 $as_echo "$as_me: failed program was:" >&5
11585 sed 's/^/| /' conftest.$ac_ext >&5
11586
11587 ac_header_compiler=no
11588 fi
11589
11590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11591 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11592 $as_echo "$ac_header_compiler" >&6; }
11593
11594 # Is the header present?
11595 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11596 $as_echo_n "checking $ac_header presence... " >&6; }
11597 cat >conftest.$ac_ext <<_ACEOF
11598 /* confdefs.h. */
11599 _ACEOF
11600 cat confdefs.h >>conftest.$ac_ext
11601 cat >>conftest.$ac_ext <<_ACEOF
11602 /* end confdefs.h. */
11603 #include <$ac_header>
11604 _ACEOF
11605 if { (ac_try="$ac_cpp conftest.$ac_ext"
11606 case "(($ac_try" in
11607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11608 *) ac_try_echo=$ac_try;;
11609 esac
11610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11611 $as_echo "$ac_try_echo") >&5
11612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11613 ac_status=$?
11614 grep -v '^ *+' conftest.er1 >conftest.err
11615 rm -f conftest.er1
11616 cat conftest.err >&5
11617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); } >/dev/null && {
11619 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11620 test ! -s conftest.err
11621 }; then
11622 ac_header_preproc=yes
11623 else
11624 $as_echo "$as_me: failed program was:" >&5
11625 sed 's/^/| /' conftest.$ac_ext >&5
11626
11627 ac_header_preproc=no
11628 fi
11629
11630 rm -f conftest.err conftest.$ac_ext
11631 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11632 $as_echo "$ac_header_preproc" >&6; }
11633
11634 # So? What about this header?
11635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11636 yes:no: )
11637 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11638 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11639 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11640 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11641 ac_header_preproc=yes
11642 ;;
11643 no:yes:* )
11644 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11645 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11646 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11647 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11648 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11649 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11650 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11651 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11652 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11653 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11654 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11655 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11656 ( cat <<\_ASBOX
11657 ## -------------------------------------------------- ##
11658 ## Report this to courier-users@lists.sourceforge.net ##
11659 ## -------------------------------------------------- ##
11660 _ASBOX
11661 ) | sed "s/^/$as_me: WARNING: /" >&2
11662 ;;
11663 esac
11664 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11665 $as_echo_n "checking for $ac_header... " >&6; }
11666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11667 $as_echo_n "(cached) " >&6
11668 else
11669 eval "$as_ac_Header=\$ac_header_preproc"
11670 fi
11671 ac_res=`eval 'as_val=${'$as_ac_Header'}
11672 $as_echo "$as_val"'`
11673 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11674 $as_echo "$ac_res" >&6; }
11675
11676 fi
11677 as_val=`eval 'as_val=${'$as_ac_Header'}
11678 $as_echo "$as_val"'`
11679 if test "x$as_val" = x""yes; then
11680 cat >>confdefs.h <<_ACEOF
11681 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11682 _ACEOF
11683
11684 fi
11685
11686 done
11687
11688 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11689 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11690 if test "${ac_cv_header_time+set}" = set; then
11691 $as_echo_n "(cached) " >&6
11692 else
11693 cat >conftest.$ac_ext <<_ACEOF
11694 /* confdefs.h. */
11695 _ACEOF
11696 cat confdefs.h >>conftest.$ac_ext
11697 cat >>conftest.$ac_ext <<_ACEOF
11698 /* end confdefs.h. */
11699 #include <sys/types.h>
11700 #include <sys/time.h>
11701 #include <time.h>
11702
11703 int
11704 main ()
11705 {
11706 if ((struct tm *) 0)
11707 return 0;
11708 ;
11709 return 0;
11710 }
11711 _ACEOF
11712 rm -f conftest.$ac_objext
11713 if { (ac_try="$ac_compile"
11714 case "(($ac_try" in
11715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11716 *) ac_try_echo=$ac_try;;
11717 esac
11718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11719 $as_echo "$ac_try_echo") >&5
11720 (eval "$ac_compile") 2>conftest.er1
11721 ac_status=$?
11722 grep -v '^ *+' conftest.er1 >conftest.err
11723 rm -f conftest.er1
11724 cat conftest.err >&5
11725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); } && {
11727 test -z "$ac_c_werror_flag" ||
11728 test ! -s conftest.err
11729 } && test -s conftest.$ac_objext; then
11730 ac_cv_header_time=yes
11731 else
11732 $as_echo "$as_me: failed program was:" >&5
11733 sed 's/^/| /' conftest.$ac_ext >&5
11734
11735 ac_cv_header_time=no
11736 fi
11737
11738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11739 fi
11740 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11741 $as_echo "$ac_cv_header_time" >&6; }
11742 if test $ac_cv_header_time = yes; then
11743
11744 cat >>confdefs.h <<\_ACEOF
11745 #define TIME_WITH_SYS_TIME 1
11746 _ACEOF
11747
11748 fi
11749
11750
11751 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11752 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11753 if test "${ac_cv_c_const+set}" = set; then
11754 $as_echo_n "(cached) " >&6
11755 else
11756 cat >conftest.$ac_ext <<_ACEOF
11757 /* confdefs.h. */
11758 _ACEOF
11759 cat confdefs.h >>conftest.$ac_ext
11760 cat >>conftest.$ac_ext <<_ACEOF
11761 /* end confdefs.h. */
11762
11763 int
11764 main ()
11765 {
11766 /* FIXME: Include the comments suggested by Paul. */
11767 #ifndef __cplusplus
11768 /* Ultrix mips cc rejects this. */
11769 typedef int charset[2];
11770 const charset cs;
11771 /* SunOS 4.1.1 cc rejects this. */
11772 char const *const *pcpcc;
11773 char **ppc;
11774 /* NEC SVR4.0.2 mips cc rejects this. */
11775 struct point {int x, y;};
11776 static struct point const zero = {0,0};
11777 /* AIX XL C 1.02.0.0 rejects this.
11778 It does not let you subtract one const X* pointer from another in
11779 an arm of an if-expression whose if-part is not a constant
11780 expression */
11781 const char *g = "string";
11782 pcpcc = &g + (g ? g-g : 0);
11783 /* HPUX 7.0 cc rejects these. */
11784 ++pcpcc;
11785 ppc = (char**) pcpcc;
11786 pcpcc = (char const *const *) ppc;
11787 { /* SCO 3.2v4 cc rejects this. */
11788 char *t;
11789 char const *s = 0 ? (char *) 0 : (char const *) 0;
11790
11791 *t++ = 0;
11792 if (s) return 0;
11793 }
11794 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11795 int x[] = {25, 17};
11796 const int *foo = &x[0];
11797 ++foo;
11798 }
11799 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11800 typedef const int *iptr;
11801 iptr p = 0;
11802 ++p;
11803 }
11804 { /* AIX XL C 1.02.0.0 rejects this saying
11805 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11806 struct s { int j; const int *ap[3]; };
11807 struct s *b; b->j = 5;
11808 }
11809 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11810 const int foo = 10;
11811 if (!foo) return 0;
11812 }
11813 return !cs[0] && !zero.x;
11814 #endif
11815
11816 ;
11817 return 0;
11818 }
11819 _ACEOF
11820 rm -f conftest.$ac_objext
11821 if { (ac_try="$ac_compile"
11822 case "(($ac_try" in
11823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11824 *) ac_try_echo=$ac_try;;
11825 esac
11826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11827 $as_echo "$ac_try_echo") >&5
11828 (eval "$ac_compile") 2>conftest.er1
11829 ac_status=$?
11830 grep -v '^ *+' conftest.er1 >conftest.err
11831 rm -f conftest.er1
11832 cat conftest.err >&5
11833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); } && {
11835 test -z "$ac_c_werror_flag" ||
11836 test ! -s conftest.err
11837 } && test -s conftest.$ac_objext; then
11838 ac_cv_c_const=yes
11839 else
11840 $as_echo "$as_me: failed program was:" >&5
11841 sed 's/^/| /' conftest.$ac_ext >&5
11842
11843 ac_cv_c_const=no
11844 fi
11845
11846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11847 fi
11848 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11849 $as_echo "$ac_cv_c_const" >&6; }
11850 if test $ac_cv_c_const = no; then
11851
11852 cat >>confdefs.h <<\_ACEOF
11853 #define const /**/
11854 _ACEOF
11855
11856 fi
11857
11858 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
11859 $as_echo_n "checking for pid_t... " >&6; }
11860 if test "${ac_cv_type_pid_t+set}" = set; then
11861 $as_echo_n "(cached) " >&6
11862 else
11863 ac_cv_type_pid_t=no
11864 cat >conftest.$ac_ext <<_ACEOF
11865 /* confdefs.h. */
11866 _ACEOF
11867 cat confdefs.h >>conftest.$ac_ext
11868 cat >>conftest.$ac_ext <<_ACEOF
11869 /* end confdefs.h. */
11870 $ac_includes_default
11871 int
11872 main ()
11873 {
11874 if (sizeof (pid_t))
11875 return 0;
11876 ;
11877 return 0;
11878 }
11879 _ACEOF
11880 rm -f conftest.$ac_objext
11881 if { (ac_try="$ac_compile"
11882 case "(($ac_try" in
11883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11884 *) ac_try_echo=$ac_try;;
11885 esac
11886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11887 $as_echo "$ac_try_echo") >&5
11888 (eval "$ac_compile") 2>conftest.er1
11889 ac_status=$?
11890 grep -v '^ *+' conftest.er1 >conftest.err
11891 rm -f conftest.er1
11892 cat conftest.err >&5
11893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894 (exit $ac_status); } && {
11895 test -z "$ac_c_werror_flag" ||
11896 test ! -s conftest.err
11897 } && test -s conftest.$ac_objext; then
11898 cat >conftest.$ac_ext <<_ACEOF
11899 /* confdefs.h. */
11900 _ACEOF
11901 cat confdefs.h >>conftest.$ac_ext
11902 cat >>conftest.$ac_ext <<_ACEOF
11903 /* end confdefs.h. */
11904 $ac_includes_default
11905 int
11906 main ()
11907 {
11908 if (sizeof ((pid_t)))
11909 return 0;
11910 ;
11911 return 0;
11912 }
11913 _ACEOF
11914 rm -f conftest.$ac_objext
11915 if { (ac_try="$ac_compile"
11916 case "(($ac_try" in
11917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11918 *) ac_try_echo=$ac_try;;
11919 esac
11920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11921 $as_echo "$ac_try_echo") >&5
11922 (eval "$ac_compile") 2>conftest.er1
11923 ac_status=$?
11924 grep -v '^ *+' conftest.er1 >conftest.err
11925 rm -f conftest.er1
11926 cat conftest.err >&5
11927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 (exit $ac_status); } && {
11929 test -z "$ac_c_werror_flag" ||
11930 test ! -s conftest.err
11931 } && test -s conftest.$ac_objext; then
11932 :
11933 else
11934 $as_echo "$as_me: failed program was:" >&5
11935 sed 's/^/| /' conftest.$ac_ext >&5
11936
11937 ac_cv_type_pid_t=yes
11938 fi
11939
11940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11941 else
11942 $as_echo "$as_me: failed program was:" >&5
11943 sed 's/^/| /' conftest.$ac_ext >&5
11944
11945
11946 fi
11947
11948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11949 fi
11950 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11951 $as_echo "$ac_cv_type_pid_t" >&6; }
11952 if test "x$ac_cv_type_pid_t" = x""yes; then
11953 :
11954 else
11955
11956 cat >>confdefs.h <<_ACEOF
11957 #define pid_t int
11958 _ACEOF
11959
11960 fi
11961
11962 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11963 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11964 if test "${ac_cv_type_uid_t+set}" = set; then
11965 $as_echo_n "(cached) " >&6
11966 else
11967 cat >conftest.$ac_ext <<_ACEOF
11968 /* confdefs.h. */
11969 _ACEOF
11970 cat confdefs.h >>conftest.$ac_ext
11971 cat >>conftest.$ac_ext <<_ACEOF
11972 /* end confdefs.h. */
11973 #include <sys/types.h>
11974
11975 _ACEOF
11976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11977 $EGREP "uid_t" >/dev/null 2>&1; then
11978 ac_cv_type_uid_t=yes
11979 else
11980 ac_cv_type_uid_t=no
11981 fi
11982 rm -f conftest*
11983
11984 fi
11985 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11986 $as_echo "$ac_cv_type_uid_t" >&6; }
11987 if test $ac_cv_type_uid_t = no; then
11988
11989 cat >>confdefs.h <<\_ACEOF
11990 #define uid_t int
11991 _ACEOF
11992
11993
11994 cat >>confdefs.h <<\_ACEOF
11995 #define gid_t int
11996 _ACEOF
11997
11998 fi
11999
12000 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12001 $as_echo_n "checking return type of signal handlers... " >&6; }
12002 if test "${ac_cv_type_signal+set}" = set; then
12003 $as_echo_n "(cached) " >&6
12004 else
12005 cat >conftest.$ac_ext <<_ACEOF
12006 /* confdefs.h. */
12007 _ACEOF
12008 cat confdefs.h >>conftest.$ac_ext
12009 cat >>conftest.$ac_ext <<_ACEOF
12010 /* end confdefs.h. */
12011 #include <sys/types.h>
12012 #include <signal.h>
12013
12014 int
12015 main ()
12016 {
12017 return *(signal (0, 0)) (0) == 1;
12018 ;
12019 return 0;
12020 }
12021 _ACEOF
12022 rm -f conftest.$ac_objext
12023 if { (ac_try="$ac_compile"
12024 case "(($ac_try" in
12025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12026 *) ac_try_echo=$ac_try;;
12027 esac
12028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12029 $as_echo "$ac_try_echo") >&5
12030 (eval "$ac_compile") 2>conftest.er1
12031 ac_status=$?
12032 grep -v '^ *+' conftest.er1 >conftest.err
12033 rm -f conftest.er1
12034 cat conftest.err >&5
12035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); } && {
12037 test -z "$ac_c_werror_flag" ||
12038 test ! -s conftest.err
12039 } && test -s conftest.$ac_objext; then
12040 ac_cv_type_signal=int
12041 else
12042 $as_echo "$as_me: failed program was:" >&5
12043 sed 's/^/| /' conftest.$ac_ext >&5
12044
12045 ac_cv_type_signal=void
12046 fi
12047
12048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12049 fi
12050 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12051 $as_echo "$ac_cv_type_signal" >&6; }
12052
12053 cat >>confdefs.h <<_ACEOF
12054 #define RETSIGTYPE $ac_cv_type_signal
12055 _ACEOF
12056
12057
12058
12059
12060 { $as_echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
12061 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
12062 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
12063 $as_echo_n "(cached) " >&6
12064 else
12065 ac_check_lib_save_LIBS=$LIBS
12066 LIBS="-lcrypt $LIBS"
12067 cat >conftest.$ac_ext <<_ACEOF
12068 /* confdefs.h. */
12069 _ACEOF
12070 cat confdefs.h >>conftest.$ac_ext
12071 cat >>conftest.$ac_ext <<_ACEOF
12072 /* end confdefs.h. */
12073
12074 /* Override any GCC internal prototype to avoid an error.
12075 Use char because int might match the return type of a GCC
12076 builtin and then its argument prototype would still apply. */
12077 #ifdef __cplusplus
12078 extern "C"
12079 #endif
12080 char crypt ();
12081 int
12082 main ()
12083 {
12084 return crypt ();
12085 ;
12086 return 0;
12087 }
12088 _ACEOF
12089 rm -f conftest.$ac_objext conftest$ac_exeext
12090 if { (ac_try="$ac_link"
12091 case "(($ac_try" in
12092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12093 *) ac_try_echo=$ac_try;;
12094 esac
12095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12096 $as_echo "$ac_try_echo") >&5
12097 (eval "$ac_link") 2>conftest.er1
12098 ac_status=$?
12099 grep -v '^ *+' conftest.er1 >conftest.err
12100 rm -f conftest.er1
12101 cat conftest.err >&5
12102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); } && {
12104 test -z "$ac_c_werror_flag" ||
12105 test ! -s conftest.err
12106 } && test -s conftest$ac_exeext && {
12107 test "$cross_compiling" = yes ||
12108 $as_test_x conftest$ac_exeext
12109 }; then
12110 ac_cv_lib_crypt_crypt=yes
12111 else
12112 $as_echo "$as_me: failed program was:" >&5
12113 sed 's/^/| /' conftest.$ac_ext >&5
12114
12115 ac_cv_lib_crypt_crypt=no
12116 fi
12117
12118 rm -rf conftest.dSYM
12119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12120 conftest$ac_exeext conftest.$ac_ext
12121 LIBS=$ac_check_lib_save_LIBS
12122 fi
12123 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
12124 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
12125 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then
12126 CRYPTLIBS="-lcrypt"
12127 fi
12128
12129 saveLIBS="$LIBS"
12130 LIBS="$CRYPTLIBS $LIBS"
12131 { $as_echo "$as_me:$LINENO: checking for crypt" >&5
12132 $as_echo_n "checking for crypt... " >&6; }
12133 if test "${ac_cv_func_crypt+set}" = set; then
12134 $as_echo_n "(cached) " >&6
12135 else
12136 cat >conftest.$ac_ext <<_ACEOF
12137 /* confdefs.h. */
12138 _ACEOF
12139 cat confdefs.h >>conftest.$ac_ext
12140 cat >>conftest.$ac_ext <<_ACEOF
12141 /* end confdefs.h. */
12142 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
12143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12144 #define crypt innocuous_crypt
12145
12146 /* System header to define __stub macros and hopefully few prototypes,
12147 which can conflict with char crypt (); below.
12148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12149 <limits.h> exists even on freestanding compilers. */
12150
12151 #ifdef __STDC__
12152 # include <limits.h>
12153 #else
12154 # include <assert.h>
12155 #endif
12156
12157 #undef crypt
12158
12159 /* Override any GCC internal prototype to avoid an error.
12160 Use char because int might match the return type of a GCC
12161 builtin and then its argument prototype would still apply. */
12162 #ifdef __cplusplus
12163 extern "C"
12164 #endif
12165 char crypt ();
12166 /* The GNU C library defines this for functions which it implements
12167 to always fail with ENOSYS. Some functions are actually named
12168 something starting with __ and the normal name is an alias. */
12169 #if defined __stub_crypt || defined __stub___crypt
12170 choke me
12171 #endif
12172
12173 int
12174 main ()
12175 {
12176 return crypt ();
12177 ;
12178 return 0;
12179 }
12180 _ACEOF
12181 rm -f conftest.$ac_objext conftest$ac_exeext
12182 if { (ac_try="$ac_link"
12183 case "(($ac_try" in
12184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12185 *) ac_try_echo=$ac_try;;
12186 esac
12187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12188 $as_echo "$ac_try_echo") >&5
12189 (eval "$ac_link") 2>conftest.er1
12190 ac_status=$?
12191 grep -v '^ *+' conftest.er1 >conftest.err
12192 rm -f conftest.er1
12193 cat conftest.err >&5
12194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); } && {
12196 test -z "$ac_c_werror_flag" ||
12197 test ! -s conftest.err
12198 } && test -s conftest$ac_exeext && {
12199 test "$cross_compiling" = yes ||
12200 $as_test_x conftest$ac_exeext
12201 }; then
12202 ac_cv_func_crypt=yes
12203 else
12204 $as_echo "$as_me: failed program was:" >&5
12205 sed 's/^/| /' conftest.$ac_ext >&5
12206
12207 ac_cv_func_crypt=no
12208 fi
12209
12210 rm -rf conftest.dSYM
12211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12212 conftest$ac_exeext conftest.$ac_ext
12213 fi
12214 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
12215 $as_echo "$ac_cv_func_crypt" >&6; }
12216 if test "x$ac_cv_func_crypt" = x""yes; then
12217
12218 cat >>confdefs.h <<_ACEOF
12219 #define HAVE_CRYPT 1
12220 _ACEOF
12221
12222 fi
12223
12224 LIBS="$saveLIBS"
12225 { $as_echo "$as_me:$LINENO: checking for crypt() prototype" >&5
12226 $as_echo_n "checking for crypt() prototype... " >&6; }
12227 if test "${userdb_cv_NEED_CRYPT_PROTOTYPE+set}" = set; then
12228 $as_echo_n "(cached) " >&6
12229 else
12230 cat >conftest.$ac_ext <<_ACEOF
12231 /* confdefs.h. */
12232 _ACEOF
12233 cat confdefs.h >>conftest.$ac_ext
12234 cat >>conftest.$ac_ext <<_ACEOF
12235 /* end confdefs.h. */
12236
12237 #if HAVE_CRYPT_H
12238 #include <crypt.h>
12239 #endif
12240 #if HAVE_UNISTD_H
12241 #include <unistd.h>
12242 #endif
12243 int crypt(int, int);
12244
12245
12246 int
12247 main ()
12248 {
12249
12250 ;
12251 return 0;
12252 }
12253 _ACEOF
12254 rm -f conftest.$ac_objext
12255 if { (ac_try="$ac_compile"
12256 case "(($ac_try" in
12257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12258 *) ac_try_echo=$ac_try;;
12259 esac
12260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12261 $as_echo "$ac_try_echo") >&5
12262 (eval "$ac_compile") 2>conftest.er1
12263 ac_status=$?
12264 grep -v '^ *+' conftest.er1 >conftest.err
12265 rm -f conftest.er1
12266 cat conftest.err >&5
12267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); } && {
12269 test -z "$ac_c_werror_flag" ||
12270 test ! -s conftest.err
12271 } && test -s conftest.$ac_objext; then
12272 userdb_cv_NEED_CRYPT_PROTOTYPE=1
12273 else
12274 $as_echo "$as_me: failed program was:" >&5
12275 sed 's/^/| /' conftest.$ac_ext >&5
12276
12277 userdb_cv_NEED_CRYPT_PROTOTYPE=0
12278 fi
12279
12280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12281
12282
12283 fi
12284 { $as_echo "$as_me:$LINENO: result: $userdb_cv_NEED_CRYPT_PROTOTYPE" >&5
12285 $as_echo "$userdb_cv_NEED_CRYPT_PROTOTYPE" >&6; }
12286
12287
12288 cat >>confdefs.h <<_ACEOF
12289 #define NEED_CRYPT_PROTOTYPE $userdb_cv_NEED_CRYPT_PROTOTYPE
12290 _ACEOF
12291
12292
12293
12294
12295
12296 for ac_func in isatty gettimeofday
12297 do
12298 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12299 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12300 $as_echo_n "checking for $ac_func... " >&6; }
12301 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12302 $as_echo_n "(cached) " >&6
12303 else
12304 cat >conftest.$ac_ext <<_ACEOF
12305 /* confdefs.h. */
12306 _ACEOF
12307 cat confdefs.h >>conftest.$ac_ext
12308 cat >>conftest.$ac_ext <<_ACEOF
12309 /* end confdefs.h. */
12310 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12312 #define $ac_func innocuous_$ac_func
12313
12314 /* System header to define __stub macros and hopefully few prototypes,
12315 which can conflict with char $ac_func (); below.
12316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12317 <limits.h> exists even on freestanding compilers. */
12318
12319 #ifdef __STDC__
12320 # include <limits.h>
12321 #else
12322 # include <assert.h>
12323 #endif
12324
12325 #undef $ac_func
12326
12327 /* Override any GCC internal prototype to avoid an error.
12328 Use char because int might match the return type of a GCC
12329 builtin and then its argument prototype would still apply. */
12330 #ifdef __cplusplus
12331 extern "C"
12332 #endif
12333 char $ac_func ();
12334 /* The GNU C library defines this for functions which it implements
12335 to always fail with ENOSYS. Some functions are actually named
12336 something starting with __ and the normal name is an alias. */
12337 #if defined __stub_$ac_func || defined __stub___$ac_func
12338 choke me
12339 #endif
12340
12341 int
12342 main ()
12343 {
12344 return $ac_func ();
12345 ;
12346 return 0;
12347 }
12348 _ACEOF
12349 rm -f conftest.$ac_objext conftest$ac_exeext
12350 if { (ac_try="$ac_link"
12351 case "(($ac_try" in
12352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12353 *) ac_try_echo=$ac_try;;
12354 esac
12355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12356 $as_echo "$ac_try_echo") >&5
12357 (eval "$ac_link") 2>conftest.er1
12358 ac_status=$?
12359 grep -v '^ *+' conftest.er1 >conftest.err
12360 rm -f conftest.er1
12361 cat conftest.err >&5
12362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); } && {
12364 test -z "$ac_c_werror_flag" ||
12365 test ! -s conftest.err
12366 } && test -s conftest$ac_exeext && {
12367 test "$cross_compiling" = yes ||
12368 $as_test_x conftest$ac_exeext
12369 }; then
12370 eval "$as_ac_var=yes"
12371 else
12372 $as_echo "$as_me: failed program was:" >&5
12373 sed 's/^/| /' conftest.$ac_ext >&5
12374
12375 eval "$as_ac_var=no"
12376 fi
12377
12378 rm -rf conftest.dSYM
12379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12380 conftest$ac_exeext conftest.$ac_ext
12381 fi
12382 ac_res=`eval 'as_val=${'$as_ac_var'}
12383 $as_echo "$as_val"'`
12384 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12385 $as_echo "$ac_res" >&6; }
12386 as_val=`eval 'as_val=${'$as_ac_var'}
12387 $as_echo "$as_val"'`
12388 if test "x$as_val" = x""yes; then
12389 cat >>confdefs.h <<_ACEOF
12390 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12391 _ACEOF
12392
12393 fi
12394 done
12395
12396
12397
12398 # Check whether --with-random was given.
12399 if test "${with_random+set}" = set; then
12400 withval=$with_random; random="$withval"
12401 else
12402 random="y"
12403 fi
12404
12405
12406 case "$random" in
12407 /*)
12408 ;;
12409 y*|1*)
12410 { $as_echo "$as_me:$LINENO: checking for random source" >&5
12411 $as_echo_n "checking for random source... " >&6; }
12412 if test "${userdb_cv_RANDOM+set}" = set; then
12413 $as_echo_n "(cached) " >&6
12414 else
12415 if test -c /dev/urandom
12416 then
12417 userdb_cv_RANDOM=/dev/urandom
12418 else
12419 if test -c /dev/random
12420 then
12421 userdb_cv_RANDOM=/dev/random
12422 else
12423 userdb_cv_RANDOM="none"
12424 fi
12425 fi
12426
12427 fi
12428 { $as_echo "$as_me:$LINENO: result: $userdb_cv_RANDOM" >&5
12429 $as_echo "$userdb_cv_RANDOM" >&6; }
12430 random="$userdb_cv_RANDOM"
12431 ;;
12432 *)
12433 random="none"
12434 ;;
12435 esac
12436
12437 if test "$random" != "none"
12438 then
12439
12440 cat >>confdefs.h <<_ACEOF
12441 #define RANDOM "$random"
12442 _ACEOF
12443
12444 fi
12445
12446 if test -d ${srcdir}/../docbook; then
12447 HAVE_SGML_TRUE=
12448 HAVE_SGML_FALSE='#'
12449 else
12450 HAVE_SGML_TRUE='#'
12451 HAVE_SGML_FALSE=
12452 fi
12453
12454
12455 ac_config_files="$ac_config_files Makefile userdb.pl makeuserdb pw2userdb"
12456
12457 cat >confcache <<\_ACEOF
12458 # This file is a shell script that caches the results of configure
12459 # tests run on this system so they can be shared between configure
12460 # scripts and configure runs, see configure's option --config-cache.
12461 # It is not useful on other systems. If it contains results you don't
12462 # want to keep, you may remove or edit it.
12463 #
12464 # config.status only pays attention to the cache file if you give it
12465 # the --recheck option to rerun configure.
12466 #
12467 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12468 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12469 # following values.
12470
12471 _ACEOF
12472
12473 # The following way of writing the cache mishandles newlines in values,
12474 # but we know of no workaround that is simple, portable, and efficient.
12475 # So, we kill variables containing newlines.
12476 # Ultrix sh set writes to stderr and can't be redirected directly,
12477 # and sets the high bit in the cache file unless we assign to the vars.
12478 (
12479 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12480 eval ac_val=\$$ac_var
12481 case $ac_val in #(
12482 *${as_nl}*)
12483 case $ac_var in #(
12484 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12485 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12486 esac
12487 case $ac_var in #(
12488 _ | IFS | as_nl) ;; #(
12489 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12490 *) $as_unset $ac_var ;;
12491 esac ;;
12492 esac
12493 done
12494
12495 (set) 2>&1 |
12496 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12497 *${as_nl}ac_space=\ *)
12498 # `set' does not quote correctly, so add quotes (double-quote
12499 # substitution turns \\\\ into \\, and sed turns \\ into \).
12500 sed -n \
12501 "s/'/'\\\\''/g;
12502 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12503 ;; #(
12504 *)
12505 # `set' quotes correctly as required by POSIX, so do not add quotes.
12506 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12507 ;;
12508 esac |
12509 sort
12510 ) |
12511 sed '
12512 /^ac_cv_env_/b end
12513 t clear
12514 :clear
12515 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12516 t end
12517 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12518 :end' >>confcache
12519 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12520 if test -w "$cache_file"; then
12521 test "x$cache_file" != "x/dev/null" &&
12522 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12523 $as_echo "$as_me: updating cache $cache_file" >&6;}
12524 cat confcache >$cache_file
12525 else
12526 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12527 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12528 fi
12529 fi
12530 rm -f confcache
12531
12532 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12533 # Let make expand exec_prefix.
12534 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12535
12536 # Transform confdefs.h into DEFS.
12537 # Protect against shell expansion while executing Makefile rules.
12538 # Protect against Makefile macro expansion.
12539 #
12540 # If the first sed substitution is executed (which looks for macros that
12541 # take arguments), then branch to the quote section. Otherwise,
12542 # look for a macro that doesn't take arguments.
12543 ac_script='
12544 :mline
12545 /\\$/{
12546 N
12547 s,\\\n,,
12548 b mline
12549 }
12550 t clear
12551 :clear
12552 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
12553 t quote
12554 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
12555 t quote
12556 b any
12557 :quote
12558 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
12559 s/\[/\\&/g
12560 s/\]/\\&/g
12561 s/\$/$$/g
12562 H
12563 :any
12564 ${
12565 g
12566 s/^\n//
12567 s/\n/ /g
12568 p
12569 }
12570 '
12571 DEFS=`sed -n "$ac_script" confdefs.h`
12572
12573
12574 ac_libobjs=
12575 ac_ltlibobjs=
12576 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12577 # 1. Remove the extension, and $U if already installed.
12578 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12579 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12580 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12581 # will be set to the directory where LIBOBJS objects are built.
12582 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12583 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12584 done
12585 LIBOBJS=$ac_libobjs
12586
12587 LTLIBOBJS=$ac_ltlibobjs
12588
12589
12590 if test -n "$EXEEXT"; then
12591 am__EXEEXT_TRUE=
12592 am__EXEEXT_FALSE='#'
12593 else
12594 am__EXEEXT_TRUE='#'
12595 am__EXEEXT_FALSE=
12596 fi
12597
12598 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12599 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12600 Usually this means the macro was only invoked conditionally." >&5
12601 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
12602 Usually this means the macro was only invoked conditionally." >&2;}
12603 { (exit 1); exit 1; }; }
12604 fi
12605 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12606 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12607 Usually this means the macro was only invoked conditionally." >&5
12608 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12609 Usually this means the macro was only invoked conditionally." >&2;}
12610 { (exit 1); exit 1; }; }
12611 fi
12612 if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then
12613 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_SGML\" was never defined.
12614 Usually this means the macro was only invoked conditionally." >&5
12615 $as_echo "$as_me: error: conditional \"HAVE_SGML\" was never defined.
12616 Usually this means the macro was only invoked conditionally." >&2;}
12617 { (exit 1); exit 1; }; }
12618 fi
12619
12620 : ${CONFIG_STATUS=./config.status}
12621 ac_write_fail=0
12622 ac_clean_files_save=$ac_clean_files
12623 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12624 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12625 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12626 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12627 #! $SHELL
12628 # Generated by $as_me.
12629 # Run this file to recreate the current configuration.
12630 # Compiler output produced by configure, useful for debugging
12631 # configure, is in config.log if it exists.
12632
12633 debug=false
12634 ac_cs_recheck=false
12635 ac_cs_silent=false
12636 SHELL=\${CONFIG_SHELL-$SHELL}
12637 _ACEOF
12638
12639 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12640 ## --------------------- ##
12641 ## M4sh Initialization. ##
12642 ## --------------------- ##
12643
12644 # Be more Bourne compatible
12645 DUALCASE=1; export DUALCASE # for MKS sh
12646 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12647 emulate sh
12648 NULLCMD=:
12649 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12650 # is contrary to our usage. Disable this feature.
12651 alias -g '${1+"$@"}'='"$@"'
12652 setopt NO_GLOB_SUBST
12653 else
12654 case `(set -o) 2>/dev/null` in
12655 *posix*) set -o posix ;;
12656 esac
12657
12658 fi
12659
12660
12661
12662
12663 # PATH needs CR
12664 # Avoid depending upon Character Ranges.
12665 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12666 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12667 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12668 as_cr_digits='0123456789'
12669 as_cr_alnum=$as_cr_Letters$as_cr_digits
12670
12671 as_nl='
12672 '
12673 export as_nl
12674 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12675 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12676 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12677 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12678 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12679 as_echo='printf %s\n'
12680 as_echo_n='printf %s'
12681 else
12682 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12683 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12684 as_echo_n='/usr/ucb/echo -n'
12685 else
12686 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12687 as_echo_n_body='eval
12688 arg=$1;
12689 case $arg in
12690 *"$as_nl"*)
12691 expr "X$arg" : "X\\(.*\\)$as_nl";
12692 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12693 esac;
12694 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12695 '
12696 export as_echo_n_body
12697 as_echo_n='sh -c $as_echo_n_body as_echo'
12698 fi
12699 export as_echo_body
12700 as_echo='sh -c $as_echo_body as_echo'
12701 fi
12702
12703 # The user is always right.
12704 if test "${PATH_SEPARATOR+set}" != set; then
12705 PATH_SEPARATOR=:
12706 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12707 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12708 PATH_SEPARATOR=';'
12709 }
12710 fi
12711
12712 # Support unset when possible.
12713 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12714 as_unset=unset
12715 else
12716 as_unset=false
12717 fi
12718
12719
12720 # IFS
12721 # We need space, tab and new line, in precisely that order. Quoting is
12722 # there to prevent editors from complaining about space-tab.
12723 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12724 # splitting by setting IFS to empty value.)
12725 IFS=" "" $as_nl"
12726
12727 # Find who we are. Look in the path if we contain no directory separator.
12728 case $0 in
12729 *[\\/]* ) as_myself=$0 ;;
12730 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12731 for as_dir in $PATH
12732 do
12733 IFS=$as_save_IFS
12734 test -z "$as_dir" && as_dir=.
12735 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12736 done
12737 IFS=$as_save_IFS
12738
12739 ;;
12740 esac
12741 # We did not find ourselves, most probably we were run as `sh COMMAND'
12742 # in which case we are not to be found in the path.
12743 if test "x$as_myself" = x; then
12744 as_myself=$0
12745 fi
12746 if test ! -f "$as_myself"; then
12747 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12748 { (exit 1); exit 1; }
12749 fi
12750
12751 # Work around bugs in pre-3.0 UWIN ksh.
12752 for as_var in ENV MAIL MAILPATH
12753 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12754 done
12755 PS1='$ '
12756 PS2='> '
12757 PS4='+ '
12758
12759 # NLS nuisances.
12760 LC_ALL=C
12761 export LC_ALL
12762 LANGUAGE=C
12763 export LANGUAGE
12764
12765 # Required to use basename.
12766 if expr a : '\(a\)' >/dev/null 2>&1 &&
12767 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12768 as_expr=expr
12769 else
12770 as_expr=false
12771 fi
12772
12773 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12774 as_basename=basename
12775 else
12776 as_basename=false
12777 fi
12778
12779
12780 # Name of the executable.
12781 as_me=`$as_basename -- "$0" ||
12782 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12783 X"$0" : 'X\(//\)$' \| \
12784 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12785 $as_echo X/"$0" |
12786 sed '/^.*\/\([^/][^/]*\)\/*$/{
12787 s//\1/
12788 q
12789 }
12790 /^X\/\(\/\/\)$/{
12791 s//\1/
12792 q
12793 }
12794 /^X\/\(\/\).*/{
12795 s//\1/
12796 q
12797 }
12798 s/.*/./; q'`
12799
12800 # CDPATH.
12801 $as_unset CDPATH
12802
12803
12804
12805 as_lineno_1=$LINENO
12806 as_lineno_2=$LINENO
12807 test "x$as_lineno_1" != "x$as_lineno_2" &&
12808 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12809
12810 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12811 # uniformly replaced by the line number. The first 'sed' inserts a
12812 # line-number line after each line using $LINENO; the second 'sed'
12813 # does the real work. The second script uses 'N' to pair each
12814 # line-number line with the line containing $LINENO, and appends
12815 # trailing '-' during substitution so that $LINENO is not a special
12816 # case at line end.
12817 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12818 # scripts with optimization help from Paolo Bonzini. Blame Lee
12819 # E. McMahon (1931-1989) for sed's syntax. :-)
12820 sed -n '
12821 p
12822 /[$]LINENO/=
12823 ' <$as_myself |
12824 sed '
12825 s/[$]LINENO.*/&-/
12826 t lineno
12827 b
12828 :lineno
12829 N
12830 :loop
12831 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12832 t loop
12833 s/-\n.*//
12834 ' >$as_me.lineno &&
12835 chmod +x "$as_me.lineno" ||
12836 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12837 { (exit 1); exit 1; }; }
12838
12839 # Don't try to exec as it changes $[0], causing all sort of problems
12840 # (the dirname of $[0] is not the place where we might find the
12841 # original and so on. Autoconf is especially sensitive to this).
12842 . "./$as_me.lineno"
12843 # Exit status is that of the last command.
12844 exit
12845 }
12846
12847
12848 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12849 as_dirname=dirname
12850 else
12851 as_dirname=false
12852 fi
12853
12854 ECHO_C= ECHO_N= ECHO_T=
12855 case `echo -n x` in
12856 -n*)
12857 case `echo 'x\c'` in
12858 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12859 *) ECHO_C='\c';;
12860 esac;;
12861 *)
12862 ECHO_N='-n';;
12863 esac
12864 if expr a : '\(a\)' >/dev/null 2>&1 &&
12865 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12866 as_expr=expr
12867 else
12868 as_expr=false
12869 fi
12870
12871 rm -f conf$$ conf$$.exe conf$$.file
12872 if test -d conf$$.dir; then
12873 rm -f conf$$.dir/conf$$.file
12874 else
12875 rm -f conf$$.dir
12876 mkdir conf$$.dir 2>/dev/null
12877 fi
12878 if (echo >conf$$.file) 2>/dev/null; then
12879 if ln -s conf$$.file conf$$ 2>/dev/null; then
12880 as_ln_s='ln -s'
12881 # ... but there are two gotchas:
12882 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12883 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12884 # In both cases, we have to default to `cp -p'.
12885 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12886 as_ln_s='cp -p'
12887 elif ln conf$$.file conf$$ 2>/dev/null; then
12888 as_ln_s=ln
12889 else
12890 as_ln_s='cp -p'
12891 fi
12892 else
12893 as_ln_s='cp -p'
12894 fi
12895 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12896 rmdir conf$$.dir 2>/dev/null
12897
12898 if mkdir -p . 2>/dev/null; then
12899 as_mkdir_p=:
12900 else
12901 test -d ./-p && rmdir ./-p
12902 as_mkdir_p=false
12903 fi
12904
12905 if test -x / >/dev/null 2>&1; then
12906 as_test_x='test -x'
12907 else
12908 if ls -dL / >/dev/null 2>&1; then
12909 as_ls_L_option=L
12910 else
12911 as_ls_L_option=
12912 fi
12913 as_test_x='
12914 eval sh -c '\''
12915 if test -d "$1"; then
12916 test -d "$1/.";
12917 else
12918 case $1 in
12919 -*)set "./$1";;
12920 esac;
12921 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12922 ???[sx]*):;;*)false;;esac;fi
12923 '\'' sh
12924 '
12925 fi
12926 as_executable_p=$as_test_x
12927
12928 # Sed expression to map a string onto a valid CPP name.
12929 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12930
12931 # Sed expression to map a string onto a valid variable name.
12932 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12933
12934
12935 exec 6>&1
12936
12937 # Save the log message, to keep $[0] and so on meaningful, and to
12938 # report actual input values of CONFIG_FILES etc. instead of their
12939 # values after options handling.
12940 ac_log="
12941 This file was extended by libuserdb $as_me 0.10, which was
12942 generated by GNU Autoconf 2.63. Invocation command line was
12943
12944 CONFIG_FILES = $CONFIG_FILES
12945 CONFIG_HEADERS = $CONFIG_HEADERS
12946 CONFIG_LINKS = $CONFIG_LINKS
12947 CONFIG_COMMANDS = $CONFIG_COMMANDS
12948 $ $0 $@
12949
12950 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12951 "
12952
12953 _ACEOF
12954
12955 case $ac_config_files in *"
12956 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12957 esac
12958
12959
12960
12961 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12962 # Files that config.status was made for.
12963 config_files="$ac_config_files"
12964 config_commands="$ac_config_commands"
12965
12966 _ACEOF
12967
12968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12969 ac_cs_usage="\
12970 \`$as_me' instantiates files from templates according to the
12971 current configuration.
12972
12973 Usage: $0 [OPTION]... [FILE]...
12974
12975 -h, --help print this help, then exit
12976 -V, --version print version number and configuration settings, then exit
12977 -q, --quiet, --silent
12978 do not print progress messages
12979 -d, --debug don't remove temporary files
12980 --recheck update $as_me by reconfiguring in the same conditions
12981 --file=FILE[:TEMPLATE]
12982 instantiate the configuration file FILE
12983
12984 Configuration files:
12985 $config_files
12986
12987 Configuration commands:
12988 $config_commands
12989
12990 Report bugs to <bug-autoconf@gnu.org>."
12991
12992 _ACEOF
12993 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12994 ac_cs_version="\\
12995 libuserdb config.status 0.10
12996 configured by $0, generated by GNU Autoconf 2.63,
12997 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12998
12999 Copyright (C) 2008 Free Software Foundation, Inc.
13000 This config.status script is free software; the Free Software Foundation
13001 gives unlimited permission to copy, distribute and modify it."
13002
13003 ac_pwd='$ac_pwd'
13004 srcdir='$srcdir'
13005 INSTALL='$INSTALL'
13006 MKDIR_P='$MKDIR_P'
13007 AWK='$AWK'
13008 test -n "\$AWK" || AWK=awk
13009 _ACEOF
13010
13011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13012 # The default lists apply if the user does not specify any file.
13013 ac_need_defaults=:
13014 while test $# != 0
13015 do
13016 case $1 in
13017 --*=*)
13018 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13019 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13020 ac_shift=:
13021 ;;
13022 *)
13023 ac_option=$1
13024 ac_optarg=$2
13025 ac_shift=shift
13026 ;;
13027 esac
13028
13029 case $ac_option in
13030 # Handling of the options.
13031 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13032 ac_cs_recheck=: ;;
13033 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13034 $as_echo "$ac_cs_version"; exit ;;
13035 --debug | --debu | --deb | --de | --d | -d )
13036 debug=: ;;
13037 --file | --fil | --fi | --f )
13038 $ac_shift
13039 case $ac_optarg in
13040 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13041 esac
13042 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13043 ac_need_defaults=false;;
13044 --he | --h | --help | --hel | -h )
13045 $as_echo "$ac_cs_usage"; exit ;;
13046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13047 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13048 ac_cs_silent=: ;;
13049
13050 # This is an error.
13051 -*) { $as_echo "$as_me: error: unrecognized option: $1
13052 Try \`$0 --help' for more information." >&2
13053 { (exit 1); exit 1; }; } ;;
13054
13055 *) ac_config_targets="$ac_config_targets $1"
13056 ac_need_defaults=false ;;
13057
13058 esac
13059 shift
13060 done
13061
13062 ac_configure_extra_args=
13063
13064 if $ac_cs_silent; then
13065 exec 6>/dev/null
13066 ac_configure_extra_args="$ac_configure_extra_args --silent"
13067 fi
13068
13069 _ACEOF
13070 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13071 if \$ac_cs_recheck; then
13072 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13073 shift
13074 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13075 CONFIG_SHELL='$SHELL'
13076 export CONFIG_SHELL
13077 exec "\$@"
13078 fi
13079
13080 _ACEOF
13081 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13082 exec 5>>config.log
13083 {
13084 echo
13085 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13086 ## Running $as_me. ##
13087 _ASBOX
13088 $as_echo "$ac_log"
13089 } >&5
13090
13091 _ACEOF
13092 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13093 #
13094 # INIT-COMMANDS
13095 #
13096 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13097
13098
13099 # The HP-UX ksh and POSIX shell print the target directory to stdout
13100 # if CDPATH is set.
13101 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13102
13103 sed_quote_subst='$sed_quote_subst'
13104 double_quote_subst='$double_quote_subst'
13105 delay_variable_subst='$delay_variable_subst'
13106 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13107 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13108 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13109 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13110 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13111 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13112 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13113 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13114 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13115 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13116 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13117 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13118 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13119 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13120 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13121 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13122 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13123 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13124 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13125 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13126 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13127 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13128 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13129 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13130 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13131 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13132 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13133 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13134 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13135 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13136 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13137 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13138 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13139 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13140 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13141 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13142 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13143 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13144 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13145 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13146 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13147 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13148 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13149 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13150 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"`'
13151 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"`'
13152 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13153 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13154 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13155 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13156 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13157 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13158 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13159 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13160 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13161 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13162 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13163 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13164 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13165 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13166 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13167 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13168 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13169 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13170 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13171 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13172 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13173 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13174 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13175 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13176 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13177 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13178 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13179 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13180 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13181 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13182 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13183 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13184 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13185 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13186 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13187 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13188 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13189 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13190 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13191 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13192 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13193 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13194 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13195 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13196 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13197 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13198 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13199 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13200 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13201 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13202 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13203 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13204 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13205 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13206 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13207 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13208 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13209 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13210 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13211 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13212 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13213 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13214 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13215 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13216 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13217 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13218 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13219 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13220 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13221 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13222 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13223 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13224
13225 LTCC='$LTCC'
13226 LTCFLAGS='$LTCFLAGS'
13227 compiler='$compiler_DEFAULT'
13228
13229 # Quote evaled strings.
13230 for var in SED \
13231 GREP \
13232 EGREP \
13233 FGREP \
13234 LD \
13235 NM \
13236 LN_S \
13237 lt_SP2NL \
13238 lt_NL2SP \
13239 reload_flag \
13240 OBJDUMP \
13241 deplibs_check_method \
13242 file_magic_cmd \
13243 AR \
13244 AR_FLAGS \
13245 STRIP \
13246 RANLIB \
13247 CC \
13248 CFLAGS \
13249 compiler \
13250 lt_cv_sys_global_symbol_pipe \
13251 lt_cv_sys_global_symbol_to_cdecl \
13252 lt_cv_sys_global_symbol_to_c_name_address \
13253 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13254 SHELL \
13255 ECHO \
13256 lt_prog_compiler_no_builtin_flag \
13257 lt_prog_compiler_wl \
13258 lt_prog_compiler_pic \
13259 lt_prog_compiler_static \
13260 lt_cv_prog_compiler_c_o \
13261 need_locks \
13262 DSYMUTIL \
13263 NMEDIT \
13264 LIPO \
13265 OTOOL \
13266 OTOOL64 \
13267 shrext_cmds \
13268 export_dynamic_flag_spec \
13269 whole_archive_flag_spec \
13270 compiler_needs_object \
13271 with_gnu_ld \
13272 allow_undefined_flag \
13273 no_undefined_flag \
13274 hardcode_libdir_flag_spec \
13275 hardcode_libdir_flag_spec_ld \
13276 hardcode_libdir_separator \
13277 fix_srcfile_path \
13278 exclude_expsyms \
13279 include_expsyms \
13280 file_list_spec \
13281 variables_saved_for_relink \
13282 libname_spec \
13283 library_names_spec \
13284 soname_spec \
13285 finish_eval \
13286 old_striplib \
13287 striplib; do
13288 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13289 *[\\\\\\\`\\"\\\$]*)
13290 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13291 ;;
13292 *)
13293 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13294 ;;
13295 esac
13296 done
13297
13298 # Double-quote double-evaled strings.
13299 for var in reload_cmds \
13300 old_postinstall_cmds \
13301 old_postuninstall_cmds \
13302 old_archive_cmds \
13303 extract_expsyms_cmds \
13304 old_archive_from_new_cmds \
13305 old_archive_from_expsyms_cmds \
13306 archive_cmds \
13307 archive_expsym_cmds \
13308 module_cmds \
13309 module_expsym_cmds \
13310 export_symbols_cmds \
13311 prelink_cmds \
13312 postinstall_cmds \
13313 postuninstall_cmds \
13314 finish_cmds \
13315 sys_lib_search_path_spec \
13316 sys_lib_dlsearch_path_spec; do
13317 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13318 *[\\\\\\\`\\"\\\$]*)
13319 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13320 ;;
13321 *)
13322 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13323 ;;
13324 esac
13325 done
13326
13327 # Fix-up fallback echo if it was mangled by the above quoting rules.
13328 case \$lt_ECHO in
13329 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13330 ;;
13331 esac
13332
13333 ac_aux_dir='$ac_aux_dir'
13334 xsi_shell='$xsi_shell'
13335 lt_shell_append='$lt_shell_append'
13336
13337 # See if we are running on zsh, and set the options which allow our
13338 # commands through without removal of \ escapes INIT.
13339 if test -n "\${ZSH_VERSION+set}" ; then
13340 setopt NO_GLOB_SUBST
13341 fi
13342
13343
13344 PACKAGE='$PACKAGE'
13345 VERSION='$VERSION'
13346 TIMESTAMP='$TIMESTAMP'
13347 RM='$RM'
13348 ofile='$ofile'
13349
13350
13351
13352
13353 _ACEOF
13354
13355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13356
13357 # Handling of arguments.
13358 for ac_config_target in $ac_config_targets
13359 do
13360 case $ac_config_target in
13361 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13362 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13363 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13364 "userdb.pl") CONFIG_FILES="$CONFIG_FILES userdb.pl" ;;
13365 "makeuserdb") CONFIG_FILES="$CONFIG_FILES makeuserdb" ;;
13366 "pw2userdb") CONFIG_FILES="$CONFIG_FILES pw2userdb" ;;
13367
13368 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13369 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13370 { (exit 1); exit 1; }; };;
13371 esac
13372 done
13373
13374
13375 # If the user did not use the arguments to specify the items to instantiate,
13376 # then the envvar interface is used. Set only those that are not.
13377 # We use the long form for the default assignment because of an extremely
13378 # bizarre bug on SunOS 4.1.3.
13379 if $ac_need_defaults; then
13380 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13381 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13382 fi
13383
13384 # Have a temporary directory for convenience. Make it in the build tree
13385 # simply because there is no reason against having it here, and in addition,
13386 # creating and moving files from /tmp can sometimes cause problems.
13387 # Hook for its removal unless debugging.
13388 # Note that there is a small window in which the directory will not be cleaned:
13389 # after its creation but before its name has been assigned to `$tmp'.
13390 $debug ||
13391 {
13392 tmp=
13393 trap 'exit_status=$?
13394 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13395 ' 0
13396 trap '{ (exit 1); exit 1; }' 1 2 13 15
13397 }
13398 # Create a (secure) tmp directory for tmp files.
13399
13400 {
13401 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13402 test -n "$tmp" && test -d "$tmp"
13403 } ||
13404 {
13405 tmp=./conf$$-$RANDOM
13406 (umask 077 && mkdir "$tmp")
13407 } ||
13408 {
13409 $as_echo "$as_me: cannot create a temporary directory in ." >&2
13410 { (exit 1); exit 1; }
13411 }
13412
13413 # Set up the scripts for CONFIG_FILES section.
13414 # No need to generate them if there are no CONFIG_FILES.
13415 # This happens for instance with `./config.status config.h'.
13416 if test -n "$CONFIG_FILES"; then
13417
13418
13419 ac_cr=' '
13420 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13421 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13422 ac_cs_awk_cr='\\r'
13423 else
13424 ac_cs_awk_cr=$ac_cr
13425 fi
13426
13427 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13428 _ACEOF
13429
13430
13431 {
13432 echo "cat >conf$$subs.awk <<_ACEOF" &&
13433 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13434 echo "_ACEOF"
13435 } >conf$$subs.sh ||
13436 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13437 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13438 { (exit 1); exit 1; }; }
13439 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13440 ac_delim='%!_!# '
13441 for ac_last_try in false false false false false :; do
13442 . ./conf$$subs.sh ||
13443 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13444 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13445 { (exit 1); exit 1; }; }
13446
13447 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13448 if test $ac_delim_n = $ac_delim_num; then
13449 break
13450 elif $ac_last_try; then
13451 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13452 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13453 { (exit 1); exit 1; }; }
13454 else
13455 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13456 fi
13457 done
13458 rm -f conf$$subs.sh
13459
13460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13461 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13462 _ACEOF
13463 sed -n '
13464 h
13465 s/^/S["/; s/!.*/"]=/
13466 p
13467 g
13468 s/^[^!]*!//
13469 :repl
13470 t repl
13471 s/'"$ac_delim"'$//
13472 t delim
13473 :nl
13474 h
13475 s/\(.\{148\}\).*/\1/
13476 t more1
13477 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13478 p
13479 n
13480 b repl
13481 :more1
13482 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13483 p
13484 g
13485 s/.\{148\}//
13486 t nl
13487 :delim
13488 h
13489 s/\(.\{148\}\).*/\1/
13490 t more2
13491 s/["\\]/\\&/g; s/^/"/; s/$/"/
13492 p
13493 b
13494 :more2
13495 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13496 p
13497 g
13498 s/.\{148\}//
13499 t delim
13500 ' <conf$$subs.awk | sed '
13501 /^[^""]/{
13502 N
13503 s/\n//
13504 }
13505 ' >>$CONFIG_STATUS || ac_write_fail=1
13506 rm -f conf$$subs.awk
13507 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13508 _ACAWK
13509 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13510 for (key in S) S_is_set[key] = 1
13511 FS = "\a"
13512
13513 }
13514 {
13515 line = $ 0
13516 nfields = split(line, field, "@")
13517 substed = 0
13518 len = length(field[1])
13519 for (i = 2; i < nfields; i++) {
13520 key = field[i]
13521 keylen = length(key)
13522 if (S_is_set[key]) {
13523 value = S[key]
13524 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13525 len += length(value) + length(field[++i])
13526 substed = 1
13527 } else
13528 len += 1 + keylen
13529 }
13530
13531 print line
13532 }
13533
13534 _ACAWK
13535 _ACEOF
13536 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13537 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13538 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13539 else
13540 cat
13541 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13542 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13543 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
13544 { (exit 1); exit 1; }; }
13545 _ACEOF
13546
13547 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13548 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13549 # trailing colons and then remove the whole line if VPATH becomes empty
13550 # (actually we leave an empty line to preserve line numbers).
13551 if test "x$srcdir" = x.; then
13552 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13553 s/:*\$(srcdir):*/:/
13554 s/:*\${srcdir}:*/:/
13555 s/:*@srcdir@:*/:/
13556 s/^\([^=]*=[ ]*\):*/\1/
13557 s/:*$//
13558 s/^[^=]*=[ ]*$//
13559 }'
13560 fi
13561
13562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13563 fi # test -n "$CONFIG_FILES"
13564
13565
13566 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
13567 shift
13568 for ac_tag
13569 do
13570 case $ac_tag in
13571 :[FHLC]) ac_mode=$ac_tag; continue;;
13572 esac
13573 case $ac_mode$ac_tag in
13574 :[FHL]*:*);;
13575 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
13576 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
13577 { (exit 1); exit 1; }; };;
13578 :[FH]-) ac_tag=-:-;;
13579 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13580 esac
13581 ac_save_IFS=$IFS
13582 IFS=:
13583 set x $ac_tag
13584 IFS=$ac_save_IFS
13585 shift
13586 ac_file=$1
13587 shift
13588
13589 case $ac_mode in
13590 :L) ac_source=$1;;
13591 :[FH])
13592 ac_file_inputs=
13593 for ac_f
13594 do
13595 case $ac_f in
13596 -) ac_f="$tmp/stdin";;
13597 *) # Look for the file first in the build tree, then in the source tree
13598 # (if the path is not absolute). The absolute path cannot be DOS-style,
13599 # because $ac_f cannot contain `:'.
13600 test -f "$ac_f" ||
13601 case $ac_f in
13602 [\\/$]*) false;;
13603 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13604 esac ||
13605 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13606 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13607 { (exit 1); exit 1; }; };;
13608 esac
13609 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13610 ac_file_inputs="$ac_file_inputs '$ac_f'"
13611 done
13612
13613 # Let's still pretend it is `configure' which instantiates (i.e., don't
13614 # use $as_me), people would be surprised to read:
13615 # /* config.h. Generated by config.status. */
13616 configure_input='Generated from '`
13617 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13618 `' by configure.'
13619 if test x"$ac_file" != x-; then
13620 configure_input="$ac_file. $configure_input"
13621 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13622 $as_echo "$as_me: creating $ac_file" >&6;}
13623 fi
13624 # Neutralize special characters interpreted by sed in replacement strings.
13625 case $configure_input in #(
13626 *\&* | *\|* | *\\* )
13627 ac_sed_conf_input=`$as_echo "$configure_input" |
13628 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13629 *) ac_sed_conf_input=$configure_input;;
13630 esac
13631
13632 case $ac_tag in
13633 *:-:* | *:-) cat >"$tmp/stdin" \
13634 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13635 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13636 { (exit 1); exit 1; }; } ;;
13637 esac
13638 ;;
13639 esac
13640
13641 ac_dir=`$as_dirname -- "$ac_file" ||
13642 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13643 X"$ac_file" : 'X\(//\)[^/]' \| \
13644 X"$ac_file" : 'X\(//\)$' \| \
13645 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13646 $as_echo X"$ac_file" |
13647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13648 s//\1/
13649 q
13650 }
13651 /^X\(\/\/\)[^/].*/{
13652 s//\1/
13653 q
13654 }
13655 /^X\(\/\/\)$/{
13656 s//\1/
13657 q
13658 }
13659 /^X\(\/\).*/{
13660 s//\1/
13661 q
13662 }
13663 s/.*/./; q'`
13664 { as_dir="$ac_dir"
13665 case $as_dir in #(
13666 -*) as_dir=./$as_dir;;
13667 esac
13668 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13669 as_dirs=
13670 while :; do
13671 case $as_dir in #(
13672 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13673 *) as_qdir=$as_dir;;
13674 esac
13675 as_dirs="'$as_qdir' $as_dirs"
13676 as_dir=`$as_dirname -- "$as_dir" ||
13677 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13678 X"$as_dir" : 'X\(//\)[^/]' \| \
13679 X"$as_dir" : 'X\(//\)$' \| \
13680 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13681 $as_echo X"$as_dir" |
13682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13683 s//\1/
13684 q
13685 }
13686 /^X\(\/\/\)[^/].*/{
13687 s//\1/
13688 q
13689 }
13690 /^X\(\/\/\)$/{
13691 s//\1/
13692 q
13693 }
13694 /^X\(\/\).*/{
13695 s//\1/
13696 q
13697 }
13698 s/.*/./; q'`
13699 test -d "$as_dir" && break
13700 done
13701 test -z "$as_dirs" || eval "mkdir $as_dirs"
13702 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13703 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13704 { (exit 1); exit 1; }; }; }
13705 ac_builddir=.
13706
13707 case "$ac_dir" in
13708 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13709 *)
13710 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13711 # A ".." for each directory in $ac_dir_suffix.
13712 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13713 case $ac_top_builddir_sub in
13714 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13715 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13716 esac ;;
13717 esac
13718 ac_abs_top_builddir=$ac_pwd
13719 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13720 # for backward compatibility:
13721 ac_top_builddir=$ac_top_build_prefix
13722
13723 case $srcdir in
13724 .) # We are building in place.
13725 ac_srcdir=.
13726 ac_top_srcdir=$ac_top_builddir_sub
13727 ac_abs_top_srcdir=$ac_pwd ;;
13728 [\\/]* | ?:[\\/]* ) # Absolute name.
13729 ac_srcdir=$srcdir$ac_dir_suffix;
13730 ac_top_srcdir=$srcdir
13731 ac_abs_top_srcdir=$srcdir ;;
13732 *) # Relative name.
13733 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13734 ac_top_srcdir=$ac_top_build_prefix$srcdir
13735 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13736 esac
13737 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13738
13739
13740 case $ac_mode in
13741 :F)
13742 #
13743 # CONFIG_FILE
13744 #
13745
13746 case $INSTALL in
13747 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13748 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13749 esac
13750 ac_MKDIR_P=$MKDIR_P
13751 case $MKDIR_P in
13752 [\\/$]* | ?:[\\/]* ) ;;
13753 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13754 esac
13755 _ACEOF
13756
13757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13758 # If the template does not know about datarootdir, expand it.
13759 # FIXME: This hack should be removed a few years after 2.60.
13760 ac_datarootdir_hack=; ac_datarootdir_seen=
13761
13762 ac_sed_dataroot='
13763 /datarootdir/ {
13764 p
13765 q
13766 }
13767 /@datadir@/p
13768 /@docdir@/p
13769 /@infodir@/p
13770 /@localedir@/p
13771 /@mandir@/p
13772 '
13773 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13774 *datarootdir*) ac_datarootdir_seen=yes;;
13775 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13776 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13777 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13778 _ACEOF
13779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13780 ac_datarootdir_hack='
13781 s&@datadir@&$datadir&g
13782 s&@docdir@&$docdir&g
13783 s&@infodir@&$infodir&g
13784 s&@localedir@&$localedir&g
13785 s&@mandir@&$mandir&g
13786 s&\\\${datarootdir}&$datarootdir&g' ;;
13787 esac
13788 _ACEOF
13789
13790 # Neutralize VPATH when `$srcdir' = `.'.
13791 # Shell code in configure.ac might set extrasub.
13792 # FIXME: do we really want to maintain this feature?
13793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13794 ac_sed_extra="$ac_vpsub
13795 $extrasub
13796 _ACEOF
13797 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13798 :t
13799 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13800 s|@configure_input@|$ac_sed_conf_input|;t t
13801 s&@top_builddir@&$ac_top_builddir_sub&;t t
13802 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13803 s&@srcdir@&$ac_srcdir&;t t
13804 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13805 s&@top_srcdir@&$ac_top_srcdir&;t t
13806 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13807 s&@builddir@&$ac_builddir&;t t
13808 s&@abs_builddir@&$ac_abs_builddir&;t t
13809 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13810 s&@INSTALL@&$ac_INSTALL&;t t
13811 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13812 $ac_datarootdir_hack
13813 "
13814 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13815 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13816 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13817 { (exit 1); exit 1; }; }
13818
13819 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13820 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13821 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13822 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13823 which seems to be undefined. Please make sure it is defined." >&5
13824 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13825 which seems to be undefined. Please make sure it is defined." >&2;}
13826
13827 rm -f "$tmp/stdin"
13828 case $ac_file in
13829 -) cat "$tmp/out" && rm -f "$tmp/out";;
13830 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13831 esac \
13832 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13833 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13834 { (exit 1); exit 1; }; }
13835 ;;
13836
13837
13838 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
13839 $as_echo "$as_me: executing $ac_file commands" >&6;}
13840 ;;
13841 esac
13842
13843
13844 case $ac_file$ac_mode in
13845 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13846 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13847 # are listed without --file. Let's play safe and only enable the eval
13848 # if we detect the quoting.
13849 case $CONFIG_FILES in
13850 *\'*) eval set x "$CONFIG_FILES" ;;
13851 *) set x $CONFIG_FILES ;;
13852 esac
13853 shift
13854 for mf
13855 do
13856 # Strip MF so we end up with the name of the file.
13857 mf=`echo "$mf" | sed -e 's/:.*$//'`
13858 # Check whether this is an Automake generated Makefile or not.
13859 # We used to match only the files named `Makefile.in', but
13860 # some people rename them; so instead we look at the file content.
13861 # Grep'ing the first line is not enough: some people post-process
13862 # each Makefile.in and add a new line on top of each file to say so.
13863 # Grep'ing the whole file is not good either: AIX grep has a line
13864 # limit of 2048, but all sed's we know have understand at least 4000.
13865 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13866 dirpart=`$as_dirname -- "$mf" ||
13867 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13868 X"$mf" : 'X\(//\)[^/]' \| \
13869 X"$mf" : 'X\(//\)$' \| \
13870 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13871 $as_echo X"$mf" |
13872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13873 s//\1/
13874 q
13875 }
13876 /^X\(\/\/\)[^/].*/{
13877 s//\1/
13878 q
13879 }
13880 /^X\(\/\/\)$/{
13881 s//\1/
13882 q
13883 }
13884 /^X\(\/\).*/{
13885 s//\1/
13886 q
13887 }
13888 s/.*/./; q'`
13889 else
13890 continue
13891 fi
13892 # Extract the definition of DEPDIR, am__include, and am__quote
13893 # from the Makefile without running `make'.
13894 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13895 test -z "$DEPDIR" && continue
13896 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13897 test -z "am__include" && continue
13898 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13899 # When using ansi2knr, U may be empty or an underscore; expand it
13900 U=`sed -n 's/^U = //p' < "$mf"`
13901 # Find all dependency output files, they are included files with
13902 # $(DEPDIR) in their names. We invoke sed twice because it is the
13903 # simplest approach to changing $(DEPDIR) to its actual value in the
13904 # expansion.
13905 for file in `sed -n "
13906 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13907 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13908 # Make sure the directory exists.
13909 test -f "$dirpart/$file" && continue
13910 fdir=`$as_dirname -- "$file" ||
13911 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13912 X"$file" : 'X\(//\)[^/]' \| \
13913 X"$file" : 'X\(//\)$' \| \
13914 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13915 $as_echo X"$file" |
13916 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13917 s//\1/
13918 q
13919 }
13920 /^X\(\/\/\)[^/].*/{
13921 s//\1/
13922 q
13923 }
13924 /^X\(\/\/\)$/{
13925 s//\1/
13926 q
13927 }
13928 /^X\(\/\).*/{
13929 s//\1/
13930 q
13931 }
13932 s/.*/./; q'`
13933 { as_dir=$dirpart/$fdir
13934 case $as_dir in #(
13935 -*) as_dir=./$as_dir;;
13936 esac
13937 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13938 as_dirs=
13939 while :; do
13940 case $as_dir in #(
13941 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13942 *) as_qdir=$as_dir;;
13943 esac
13944 as_dirs="'$as_qdir' $as_dirs"
13945 as_dir=`$as_dirname -- "$as_dir" ||
13946 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13947 X"$as_dir" : 'X\(//\)[^/]' \| \
13948 X"$as_dir" : 'X\(//\)$' \| \
13949 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13950 $as_echo X"$as_dir" |
13951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13952 s//\1/
13953 q
13954 }
13955 /^X\(\/\/\)[^/].*/{
13956 s//\1/
13957 q
13958 }
13959 /^X\(\/\/\)$/{
13960 s//\1/
13961 q
13962 }
13963 /^X\(\/\).*/{
13964 s//\1/
13965 q
13966 }
13967 s/.*/./; q'`
13968 test -d "$as_dir" && break
13969 done
13970 test -z "$as_dirs" || eval "mkdir $as_dirs"
13971 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13972 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13973 { (exit 1); exit 1; }; }; }
13974 # echo "creating $dirpart/$file"
13975 echo '# dummy' > "$dirpart/$file"
13976 done
13977 done
13978 }
13979 ;;
13980 "libtool":C)
13981
13982 # See if we are running on zsh, and set the options which allow our
13983 # commands through without removal of \ escapes.
13984 if test -n "${ZSH_VERSION+set}" ; then
13985 setopt NO_GLOB_SUBST
13986 fi
13987
13988 cfgfile="${ofile}T"
13989 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13990 $RM "$cfgfile"
13991
13992 cat <<_LT_EOF >> "$cfgfile"
13993 #! $SHELL
13994
13995 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13996 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13997 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13998 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13999 #
14000 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14001 # 2006, 2007, 2008 Free Software Foundation, Inc.
14002 # Written by Gordon Matzigkeit, 1996
14003 #
14004 # This file is part of GNU Libtool.
14005 #
14006 # GNU Libtool is free software; you can redistribute it and/or
14007 # modify it under the terms of the GNU General Public License as
14008 # published by the Free Software Foundation; either version 2 of
14009 # the License, or (at your option) any later version.
14010 #
14011 # As a special exception to the GNU General Public License,
14012 # if you distribute this file as part of a program or library that
14013 # is built using GNU Libtool, you may include this file under the
14014 # same distribution terms that you use for the rest of that program.
14015 #
14016 # GNU Libtool is distributed in the hope that it will be useful,
14017 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14018 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14019 # GNU General Public License for more details.
14020 #
14021 # You should have received a copy of the GNU General Public License
14022 # along with GNU Libtool; see the file COPYING. If not, a copy
14023 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14024 # obtained by writing to the Free Software Foundation, Inc.,
14025 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14026
14027
14028 # The names of the tagged configurations supported by this script.
14029 available_tags=""
14030
14031 # ### BEGIN LIBTOOL CONFIG
14032
14033 # Which release of libtool.m4 was used?
14034 macro_version=$macro_version
14035 macro_revision=$macro_revision
14036
14037 # Whether or not to build shared libraries.
14038 build_libtool_libs=$enable_shared
14039
14040 # Whether or not to build static libraries.
14041 build_old_libs=$enable_static
14042
14043 # What type of objects to build.
14044 pic_mode=$pic_mode
14045
14046 # Whether or not to optimize for fast installation.
14047 fast_install=$enable_fast_install
14048
14049 # The host system.
14050 host_alias=$host_alias
14051 host=$host
14052 host_os=$host_os
14053
14054 # The build system.
14055 build_alias=$build_alias
14056 build=$build
14057 build_os=$build_os
14058
14059 # A sed program that does not truncate output.
14060 SED=$lt_SED
14061
14062 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14063 Xsed="\$SED -e 1s/^X//"
14064
14065 # A grep program that handles long lines.
14066 GREP=$lt_GREP
14067
14068 # An ERE matcher.
14069 EGREP=$lt_EGREP
14070
14071 # A literal string matcher.
14072 FGREP=$lt_FGREP
14073
14074 # A BSD- or MS-compatible name lister.
14075 NM=$lt_NM
14076
14077 # Whether we need soft or hard links.
14078 LN_S=$lt_LN_S
14079
14080 # What is the maximum length of a command?
14081 max_cmd_len=$max_cmd_len
14082
14083 # Object file suffix (normally "o").
14084 objext=$ac_objext
14085
14086 # Executable file suffix (normally "").
14087 exeext=$exeext
14088
14089 # whether the shell understands "unset".
14090 lt_unset=$lt_unset
14091
14092 # turn spaces into newlines.
14093 SP2NL=$lt_lt_SP2NL
14094
14095 # turn newlines into spaces.
14096 NL2SP=$lt_lt_NL2SP
14097
14098 # How to create reloadable object files.
14099 reload_flag=$lt_reload_flag
14100 reload_cmds=$lt_reload_cmds
14101
14102 # An object symbol dumper.
14103 OBJDUMP=$lt_OBJDUMP
14104
14105 # Method to check whether dependent libraries are shared objects.
14106 deplibs_check_method=$lt_deplibs_check_method
14107
14108 # Command to use when deplibs_check_method == "file_magic".
14109 file_magic_cmd=$lt_file_magic_cmd
14110
14111 # The archiver.
14112 AR=$lt_AR
14113 AR_FLAGS=$lt_AR_FLAGS
14114
14115 # A symbol stripping program.
14116 STRIP=$lt_STRIP
14117
14118 # Commands used to install an old-style archive.
14119 RANLIB=$lt_RANLIB
14120 old_postinstall_cmds=$lt_old_postinstall_cmds
14121 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14122
14123 # A C compiler.
14124 LTCC=$lt_CC
14125
14126 # LTCC compiler flags.
14127 LTCFLAGS=$lt_CFLAGS
14128
14129 # Take the output of nm and produce a listing of raw symbols and C names.
14130 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14131
14132 # Transform the output of nm in a proper C declaration.
14133 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14134
14135 # Transform the output of nm in a C name address pair.
14136 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14137
14138 # Transform the output of nm in a C name address pair when lib prefix is needed.
14139 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14140
14141 # The name of the directory that contains temporary libtool files.
14142 objdir=$objdir
14143
14144 # Shell to use when invoking shell scripts.
14145 SHELL=$lt_SHELL
14146
14147 # An echo program that does not interpret backslashes.
14148 ECHO=$lt_ECHO
14149
14150 # Used to examine libraries when file_magic_cmd begins with "file".
14151 MAGIC_CMD=$MAGIC_CMD
14152
14153 # Must we lock files when doing compilation?
14154 need_locks=$lt_need_locks
14155
14156 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14157 DSYMUTIL=$lt_DSYMUTIL
14158
14159 # Tool to change global to local symbols on Mac OS X.
14160 NMEDIT=$lt_NMEDIT
14161
14162 # Tool to manipulate fat objects and archives on Mac OS X.
14163 LIPO=$lt_LIPO
14164
14165 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14166 OTOOL=$lt_OTOOL
14167
14168 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14169 OTOOL64=$lt_OTOOL64
14170
14171 # Old archive suffix (normally "a").
14172 libext=$libext
14173
14174 # Shared library suffix (normally ".so").
14175 shrext_cmds=$lt_shrext_cmds
14176
14177 # The commands to extract the exported symbol list from a shared archive.
14178 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14179
14180 # Variables whose values should be saved in libtool wrapper scripts and
14181 # restored at link time.
14182 variables_saved_for_relink=$lt_variables_saved_for_relink
14183
14184 # Do we need the "lib" prefix for modules?
14185 need_lib_prefix=$need_lib_prefix
14186
14187 # Do we need a version for libraries?
14188 need_version=$need_version
14189
14190 # Library versioning type.
14191 version_type=$version_type
14192
14193 # Shared library runtime path variable.
14194 runpath_var=$runpath_var
14195
14196 # Shared library path variable.
14197 shlibpath_var=$shlibpath_var
14198
14199 # Is shlibpath searched before the hard-coded library search path?
14200 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14201
14202 # Format of library name prefix.
14203 libname_spec=$lt_libname_spec
14204
14205 # List of archive names. First name is the real one, the rest are links.
14206 # The last name is the one that the linker finds with -lNAME
14207 library_names_spec=$lt_library_names_spec
14208
14209 # The coded name of the library, if different from the real name.
14210 soname_spec=$lt_soname_spec
14211
14212 # Command to use after installation of a shared archive.
14213 postinstall_cmds=$lt_postinstall_cmds
14214
14215 # Command to use after uninstallation of a shared archive.
14216 postuninstall_cmds=$lt_postuninstall_cmds
14217
14218 # Commands used to finish a libtool library installation in a directory.
14219 finish_cmds=$lt_finish_cmds
14220
14221 # As "finish_cmds", except a single script fragment to be evaled but
14222 # not shown.
14223 finish_eval=$lt_finish_eval
14224
14225 # Whether we should hardcode library paths into libraries.
14226 hardcode_into_libs=$hardcode_into_libs
14227
14228 # Compile-time system search path for libraries.
14229 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14230
14231 # Run-time system search path for libraries.
14232 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14233
14234 # Whether dlopen is supported.
14235 dlopen_support=$enable_dlopen
14236
14237 # Whether dlopen of programs is supported.
14238 dlopen_self=$enable_dlopen_self
14239
14240 # Whether dlopen of statically linked programs is supported.
14241 dlopen_self_static=$enable_dlopen_self_static
14242
14243 # Commands to strip libraries.
14244 old_striplib=$lt_old_striplib
14245 striplib=$lt_striplib
14246
14247
14248 # The linker used to build libraries.
14249 LD=$lt_LD
14250
14251 # Commands used to build an old-style archive.
14252 old_archive_cmds=$lt_old_archive_cmds
14253
14254 # A language specific compiler.
14255 CC=$lt_compiler
14256
14257 # Is the compiler the GNU compiler?
14258 with_gcc=$GCC
14259
14260 # Compiler flag to turn off builtin functions.
14261 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14262
14263 # How to pass a linker flag through the compiler.
14264 wl=$lt_lt_prog_compiler_wl
14265
14266 # Additional compiler flags for building library objects.
14267 pic_flag=$lt_lt_prog_compiler_pic
14268
14269 # Compiler flag to prevent dynamic linking.
14270 link_static_flag=$lt_lt_prog_compiler_static
14271
14272 # Does compiler simultaneously support -c and -o options?
14273 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14274
14275 # Whether or not to add -lc for building shared libraries.
14276 build_libtool_need_lc=$archive_cmds_need_lc
14277
14278 # Whether or not to disallow shared libs when runtime libs are static.
14279 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14280
14281 # Compiler flag to allow reflexive dlopens.
14282 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14283
14284 # Compiler flag to generate shared objects directly from archives.
14285 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14286
14287 # Whether the compiler copes with passing no objects directly.
14288 compiler_needs_object=$lt_compiler_needs_object
14289
14290 # Create an old-style archive from a shared archive.
14291 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14292
14293 # Create a temporary old-style archive to link instead of a shared archive.
14294 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14295
14296 # Commands used to build a shared archive.
14297 archive_cmds=$lt_archive_cmds
14298 archive_expsym_cmds=$lt_archive_expsym_cmds
14299
14300 # Commands used to build a loadable module if different from building
14301 # a shared archive.
14302 module_cmds=$lt_module_cmds
14303 module_expsym_cmds=$lt_module_expsym_cmds
14304
14305 # Whether we are building with GNU ld or not.
14306 with_gnu_ld=$lt_with_gnu_ld
14307
14308 # Flag that allows shared libraries with undefined symbols to be built.
14309 allow_undefined_flag=$lt_allow_undefined_flag
14310
14311 # Flag that enforces no undefined symbols.
14312 no_undefined_flag=$lt_no_undefined_flag
14313
14314 # Flag to hardcode \$libdir into a binary during linking.
14315 # This must work even if \$libdir does not exist
14316 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14317
14318 # If ld is used when linking, flag to hardcode \$libdir into a binary
14319 # during linking. This must work even if \$libdir does not exist.
14320 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14321
14322 # Whether we need a single "-rpath" flag with a separated argument.
14323 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14324
14325 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14326 # DIR into the resulting binary.
14327 hardcode_direct=$hardcode_direct
14328
14329 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14330 # DIR into the resulting binary and the resulting library dependency is
14331 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14332 # library is relocated.
14333 hardcode_direct_absolute=$hardcode_direct_absolute
14334
14335 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14336 # into the resulting binary.
14337 hardcode_minus_L=$hardcode_minus_L
14338
14339 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14340 # into the resulting binary.
14341 hardcode_shlibpath_var=$hardcode_shlibpath_var
14342
14343 # Set to "yes" if building a shared library automatically hardcodes DIR
14344 # into the library and all subsequent libraries and executables linked
14345 # against it.
14346 hardcode_automatic=$hardcode_automatic
14347
14348 # Set to yes if linker adds runtime paths of dependent libraries
14349 # to runtime path list.
14350 inherit_rpath=$inherit_rpath
14351
14352 # Whether libtool must link a program against all its dependency libraries.
14353 link_all_deplibs=$link_all_deplibs
14354
14355 # Fix the shell variable \$srcfile for the compiler.
14356 fix_srcfile_path=$lt_fix_srcfile_path
14357
14358 # Set to "yes" if exported symbols are required.
14359 always_export_symbols=$always_export_symbols
14360
14361 # The commands to list exported symbols.
14362 export_symbols_cmds=$lt_export_symbols_cmds
14363
14364 # Symbols that should not be listed in the preloaded symbols.
14365 exclude_expsyms=$lt_exclude_expsyms
14366
14367 # Symbols that must always be exported.
14368 include_expsyms=$lt_include_expsyms
14369
14370 # Commands necessary for linking programs (against libraries) with templates.
14371 prelink_cmds=$lt_prelink_cmds
14372
14373 # Specify filename containing input files.
14374 file_list_spec=$lt_file_list_spec
14375
14376 # How to hardcode a shared library path into an executable.
14377 hardcode_action=$hardcode_action
14378
14379 # ### END LIBTOOL CONFIG
14380
14381 _LT_EOF
14382
14383 case $host_os in
14384 aix3*)
14385 cat <<\_LT_EOF >> "$cfgfile"
14386 # AIX sometimes has problems with the GCC collect2 program. For some
14387 # reason, if we set the COLLECT_NAMES environment variable, the problems
14388 # vanish in a puff of smoke.
14389 if test "X${COLLECT_NAMES+set}" != Xset; then
14390 COLLECT_NAMES=
14391 export COLLECT_NAMES
14392 fi
14393 _LT_EOF
14394 ;;
14395 esac
14396
14397
14398 ltmain="$ac_aux_dir/ltmain.sh"
14399
14400
14401 # We use sed instead of cat because bash on DJGPP gets confused if
14402 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14403 # text mode, it properly converts lines to CR/LF. This bash problem
14404 # is reportedly fixed, but why not run on old versions too?
14405 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14406 || (rm -f "$cfgfile"; exit 1)
14407
14408 case $xsi_shell in
14409 yes)
14410 cat << \_LT_EOF >> "$cfgfile"
14411
14412 # func_dirname file append nondir_replacement
14413 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14414 # otherwise set result to NONDIR_REPLACEMENT.
14415 func_dirname ()
14416 {
14417 case ${1} in
14418 */*) func_dirname_result="${1%/*}${2}" ;;
14419 * ) func_dirname_result="${3}" ;;
14420 esac
14421 }
14422
14423 # func_basename file
14424 func_basename ()
14425 {
14426 func_basename_result="${1##*/}"
14427 }
14428
14429 # func_dirname_and_basename file append nondir_replacement
14430 # perform func_basename and func_dirname in a single function
14431 # call:
14432 # dirname: Compute the dirname of FILE. If nonempty,
14433 # add APPEND to the result, otherwise set result
14434 # to NONDIR_REPLACEMENT.
14435 # value returned in "$func_dirname_result"
14436 # basename: Compute filename of FILE.
14437 # value retuned in "$func_basename_result"
14438 # Implementation must be kept synchronized with func_dirname
14439 # and func_basename. For efficiency, we do not delegate to
14440 # those functions but instead duplicate the functionality here.
14441 func_dirname_and_basename ()
14442 {
14443 case ${1} in
14444 */*) func_dirname_result="${1%/*}${2}" ;;
14445 * ) func_dirname_result="${3}" ;;
14446 esac
14447 func_basename_result="${1##*/}"
14448 }
14449
14450 # func_stripname prefix suffix name
14451 # strip PREFIX and SUFFIX off of NAME.
14452 # PREFIX and SUFFIX must not contain globbing or regex special
14453 # characters, hashes, percent signs, but SUFFIX may contain a leading
14454 # dot (in which case that matches only a dot).
14455 func_stripname ()
14456 {
14457 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14458 # positional parameters, so assign one to ordinary parameter first.
14459 func_stripname_result=${3}
14460 func_stripname_result=${func_stripname_result#"${1}"}
14461 func_stripname_result=${func_stripname_result%"${2}"}
14462 }
14463
14464 # func_opt_split
14465 func_opt_split ()
14466 {
14467 func_opt_split_opt=${1%%=*}
14468 func_opt_split_arg=${1#*=}
14469 }
14470
14471 # func_lo2o object
14472 func_lo2o ()
14473 {
14474 case ${1} in
14475 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14476 *) func_lo2o_result=${1} ;;
14477 esac
14478 }
14479
14480 # func_xform libobj-or-source
14481 func_xform ()
14482 {
14483 func_xform_result=${1%.*}.lo
14484 }
14485
14486 # func_arith arithmetic-term...
14487 func_arith ()
14488 {
14489 func_arith_result=$(( $* ))
14490 }
14491
14492 # func_len string
14493 # STRING may not start with a hyphen.
14494 func_len ()
14495 {
14496 func_len_result=${#1}
14497 }
14498
14499 _LT_EOF
14500 ;;
14501 *) # Bourne compatible functions.
14502 cat << \_LT_EOF >> "$cfgfile"
14503
14504 # func_dirname file append nondir_replacement
14505 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14506 # otherwise set result to NONDIR_REPLACEMENT.
14507 func_dirname ()
14508 {
14509 # Extract subdirectory from the argument.
14510 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14511 if test "X$func_dirname_result" = "X${1}"; then
14512 func_dirname_result="${3}"
14513 else
14514 func_dirname_result="$func_dirname_result${2}"
14515 fi
14516 }
14517
14518 # func_basename file
14519 func_basename ()
14520 {
14521 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14522 }
14523
14524
14525 # func_stripname prefix suffix name
14526 # strip PREFIX and SUFFIX off of NAME.
14527 # PREFIX and SUFFIX must not contain globbing or regex special
14528 # characters, hashes, percent signs, but SUFFIX may contain a leading
14529 # dot (in which case that matches only a dot).
14530 # func_strip_suffix prefix name
14531 func_stripname ()
14532 {
14533 case ${2} in
14534 .*) func_stripname_result=`$ECHO "X${3}" \
14535 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14536 *) func_stripname_result=`$ECHO "X${3}" \
14537 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14538 esac
14539 }
14540
14541 # sed scripts:
14542 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14543 my_sed_long_arg='1s/^-[^=]*=//'
14544
14545 # func_opt_split
14546 func_opt_split ()
14547 {
14548 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14549 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14550 }
14551
14552 # func_lo2o object
14553 func_lo2o ()
14554 {
14555 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14556 }
14557
14558 # func_xform libobj-or-source
14559 func_xform ()
14560 {
14561 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14562 }
14563
14564 # func_arith arithmetic-term...
14565 func_arith ()
14566 {
14567 func_arith_result=`expr "$@"`
14568 }
14569
14570 # func_len string
14571 # STRING may not start with a hyphen.
14572 func_len ()
14573 {
14574 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14575 }
14576
14577 _LT_EOF
14578 esac
14579
14580 case $lt_shell_append in
14581 yes)
14582 cat << \_LT_EOF >> "$cfgfile"
14583
14584 # func_append var value
14585 # Append VALUE to the end of shell variable VAR.
14586 func_append ()
14587 {
14588 eval "$1+=\$2"
14589 }
14590 _LT_EOF
14591 ;;
14592 *)
14593 cat << \_LT_EOF >> "$cfgfile"
14594
14595 # func_append var value
14596 # Append VALUE to the end of shell variable VAR.
14597 func_append ()
14598 {
14599 eval "$1=\$$1\$2"
14600 }
14601
14602 _LT_EOF
14603 ;;
14604 esac
14605
14606
14607 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14608 || (rm -f "$cfgfile"; exit 1)
14609
14610 mv -f "$cfgfile" "$ofile" ||
14611 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14612 chmod +x "$ofile"
14613
14614 ;;
14615
14616 esac
14617 done # for ac_tag
14618
14619
14620 { (exit 0); exit 0; }
14621 _ACEOF
14622 chmod +x $CONFIG_STATUS
14623 ac_clean_files=$ac_clean_files_save
14624
14625 test $ac_write_fail = 0 ||
14626 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14627 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14628 { (exit 1); exit 1; }; }
14629
14630
14631 # configure is writing to config.log, and then calls config.status.
14632 # config.status does its own redirection, appending to config.log.
14633 # Unfortunately, on DOS this fails, as config.log is still kept open
14634 # by configure, so config.status won't be able to write to it; its
14635 # output is simply discarded. So we exec the FD to /dev/null,
14636 # effectively closing config.log, so it can be properly (re)opened and
14637 # appended to by config.status. When coming back to configure, we
14638 # need to make the FD available again.
14639 if test "$no_create" != yes; then
14640 ac_cs_success=:
14641 ac_config_status_args=
14642 test "$silent" = yes &&
14643 ac_config_status_args="$ac_config_status_args --quiet"
14644 exec 5>/dev/null
14645 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14646 exec 5>>config.log
14647 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14648 # would make configure fail if this is the last instruction.
14649 $ac_cs_success || { (exit 1); exit 1; }
14650 fi
14651 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14652 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14653 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14654 fi
14655