Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for libdjconsole 0.1.3.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 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 # Zsh 3.x and 4.x performs 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 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" "" $as_nl"
71
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84 ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89 as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109 do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
161 fi
162
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
166 }
167 as_func_success () {
168 as_func_return 0
169 }
170 as_func_failure () {
171 as_func_return 1
172 }
173 as_func_ret_success () {
174 return 0
175 }
176 as_func_ret_failure () {
177 return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182 :
183 else
184 exitcode=1
185 echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194 :
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207 else
208 exitcode=1
209 echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220 :
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
229 /*)
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280 (exit $1)
281 }
282 as_func_success () {
283 as_func_return 0
284 }
285 as_func_failure () {
286 as_func_return 1
287 }
288 as_func_ret_success () {
289 return 0
290 }
291 as_func_ret_failure () {
292 return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297 :
298 else
299 exitcode=1
300 echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309 :
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322 else
323 exitcode=1
324 echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337 break
338 fi
339
340 fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369 (exit \$1)
370 }
371 as_func_success () {
372 as_func_return 0
373 }
374 as_func_failure () {
375 as_func_return 1
376 }
377 as_func_ret_success () {
378 return 0
379 }
380 as_func_ret_failure () {
381 return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386 :
387 else
388 exitcode=1
389 echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398 :
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411 else
412 exitcode=1
413 echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell [email protected] about your system,
419 echo including any error possibly output before this
420 echo message
421 }
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
449 N
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481 *)
482 ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554 # Find the correct PATH separator. Usually this is `:', but
555 # DJGPP uses `;' like DOS.
556 if test "X${PATH_SEPARATOR+set}" != Xset; then
557 UNAME=${UNAME-`uname 2>/dev/null`}
558 case X$UNAME in
559 *-DOS) lt_cv_sys_path_separator=';' ;;
560 *) lt_cv_sys_path_separator=':' ;;
561 esac
562 PATH_SEPARATOR=$lt_cv_sys_path_separator
563 fi
564
565
566 # Check that we are running under the correct shell.
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569 case X$ECHO in
570 X*--fallback-echo)
571 # Remove one level of quotation (which was required for Make).
572 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
573 ;;
574 esac
575
576 echo=${ECHO-echo}
577 if test "X$1" = X--no-reexec; then
578 # Discard the --no-reexec flag, and continue.
579 shift
580 elif test "X$1" = X--fallback-echo; then
581 # Avoid inline document here, it may be left over
582 :
583 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
584 # Yippee, $echo works!
585 :
586 else
587 # Restart under the correct shell.
588 exec $SHELL "$0" --no-reexec ${1+"$@"}
589 fi
590
591 if test "X$1" = X--fallback-echo; then
592 # used as fallback echo
593 shift
594 cat <<EOF
595
596 EOF
597 exit 0
598 fi
599
600 # The HP-UX ksh and POSIX shell print the target directory to stdout
601 # if CDPATH is set.
602 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
603
604 if test -z "$ECHO"; then
605 if test "X${echo_test_string+set}" != Xset; then
606 # find a string as large as possible, as long as the shell can cope with it
607 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
608 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
609 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
610 echo_test_string="`eval $cmd`" &&
611 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
612 then
613 break
614 fi
615 done
616 fi
617
618 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
619 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
620 test "X$echo_testing_string" = "X$echo_test_string"; then
621 :
622 else
623 # The Solaris, AIX, and Digital Unix default echo programs unquote
624 # backslashes. This makes it impossible to quote backslashes using
625 # echo "$something" | sed 's/\\/\\\\/g'
626 #
627 # So, first we look for a working echo in the user's PATH.
628
629 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
630 for dir in $PATH /usr/ucb; do
631 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
632 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
633 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 echo="$dir/echo"
636 break
637 fi
638 done
639 IFS="$save_ifs"
640
641 if test "X$echo" = Xecho; then
642 # We didn't find a better echo, so look for alternatives.
643 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
644 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
645 test "X$echo_testing_string" = "X$echo_test_string"; then
646 # This shell has a builtin print -r that does the trick.
647 echo='print -r'
648 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
649 test "X$CONFIG_SHELL" != X/bin/ksh; then
650 # If we have ksh, try running configure again with it.
651 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
652 export ORIGINAL_CONFIG_SHELL
653 CONFIG_SHELL=/bin/ksh
654 export CONFIG_SHELL
655 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
656 else
657 # Try using printf.
658 echo='printf %s\n'
659 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
660 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
661 test "X$echo_testing_string" = "X$echo_test_string"; then
662 # Cool, printf works
663 :
664 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
665 test "X$echo_testing_string" = 'X\t' &&
666 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
667 test "X$echo_testing_string" = "X$echo_test_string"; then
668 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
669 export CONFIG_SHELL
670 SHELL="$CONFIG_SHELL"
671 export SHELL
672 echo="$CONFIG_SHELL $0 --fallback-echo"
673 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674 test "X$echo_testing_string" = 'X\t' &&
675 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676 test "X$echo_testing_string" = "X$echo_test_string"; then
677 echo="$CONFIG_SHELL $0 --fallback-echo"
678 else
679 # maybe with a smaller string...
680 prev=:
681
682 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
683 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
684 then
685 break
686 fi
687 prev="$cmd"
688 done
689
690 if test "$prev" != 'sed 50q "$0"'; then
691 echo_test_string=`eval $prev`
692 export echo_test_string
693 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
694 else
695 # Oops. We lost completely, so just stick with echo.
696 echo=echo
697 fi
698 fi
699 fi
700 fi
701 fi
702 fi
703
704 # Copy echo and quote the copy suitably for passing to libtool from
705 # the Makefile, instead of quoting the original, which is used later.
706 ECHO=$echo
707 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
708 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
709 fi
710
711
712
713 exec 7<&0 </dev/null 6>&1
714
715 # Name of the host.
716 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
717 # so uname gets run too.
718 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
719
720 #
721 # Initializations.
722 #
723 ac_default_prefix=/usr/local
724 ac_clean_files=
725 ac_config_libobj_dir=.
726 LIBOBJS=
727 cross_compiling=no
728 subdirs=
729 MFLAGS=
730 MAKEFLAGS=
731 SHELL=${CONFIG_SHELL-/bin/sh}
732
733 # Identity of this package.
734 PACKAGE_NAME='libdjconsole'
735 PACKAGE_TARNAME='libdjconsole'
736 PACKAGE_VERSION='0.1.3'
737 PACKAGE_STRING='libdjconsole 0.1.3'
738 PACKAGE_BUGREPORT='[email protected]'
739
740 # Factoring default headers for most tests.
741 ac_includes_default="\
742 #include <stdio.h>
743 #ifdef HAVE_SYS_TYPES_H
744 # include <sys/types.h>
745 #endif
746 #ifdef HAVE_SYS_STAT_H
747 # include <sys/stat.h>
748 #endif
749 #ifdef STDC_HEADERS
750 # include <stdlib.h>
751 # include <stddef.h>
752 #else
753 # ifdef HAVE_STDLIB_H
754 # include <stdlib.h>
755 # endif
756 #endif
757 #ifdef HAVE_STRING_H
758 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
759 # include <memory.h>
760 # endif
761 # include <string.h>
762 #endif
763 #ifdef HAVE_STRINGS_H
764 # include <strings.h>
765 #endif
766 #ifdef HAVE_INTTYPES_H
767 # include <inttypes.h>
768 #endif
769 #ifdef HAVE_STDINT_H
770 # include <stdint.h>
771 #endif
772 #ifdef HAVE_UNISTD_H
773 # include <unistd.h>
774 #endif"
775
776 ac_subst_vars='SHELL
777 PATH_SEPARATOR
778 PACKAGE_NAME
779 PACKAGE_TARNAME
780 PACKAGE_VERSION
781 PACKAGE_STRING
782 PACKAGE_BUGREPORT
783 exec_prefix
784 prefix
785 program_transform_name
786 bindir
787 sbindir
788 libexecdir
789 datarootdir
790 datadir
791 sysconfdir
792 sharedstatedir
793 localstatedir
794 includedir
795 oldincludedir
796 docdir
797 infodir
798 htmldir
799 dvidir
800 pdfdir
801 psdir
802 libdir
803 localedir
804 mandir
805 DEFS
806 ECHO_C
807 ECHO_N
808 ECHO_T
809 LIBS
810 build_alias
811 host_alias
812 target_alias
813 INSTALL_PROGRAM
814 INSTALL_SCRIPT
815 INSTALL_DATA
816 PACKAGE
817 VERSION
818 ACLOCAL
819 AUTOCONF
820 AUTOMAKE
821 AUTOHEADER
822 MAKEINFO
823 AMTAR
824 install_sh
825 STRIP
826 INSTALL_STRIP_PROGRAM
827 AWK
828 SET_MAKE
829 LIB_CURRENT
830 LIB_REVISION
831 LIB_AGE
832 CXX
833 CXXFLAGS
834 LDFLAGS
835 CPPFLAGS
836 ac_ct_CXX
837 EXEEXT
838 OBJEXT
839 DEPDIR
840 am__include
841 am__quote
842 AMDEP_TRUE
843 AMDEP_FALSE
844 AMDEPBACKSLASH
845 CXXDEPMODE
846 LN_S
847 CC
848 CFLAGS
849 ac_ct_CC
850 CCDEPMODE
851 CPP
852 build
853 build_cpu
854 build_vendor
855 build_os
856 host
857 host_cpu
858 host_vendor
859 host_os
860 ECHO
861 RANLIB
862 CXXCPP
863 GREP
864 EGREP
865 LIBTOOL
866 PKG_CONFIG
867 LIBUSB_CFLAGS
868 LIBUSB_LIBS
869 LIBOBJS
870 LTLIBOBJS'
871 ac_subst_files=''
872 ac_precious_vars='build_alias
873 host_alias
874 target_alias
875 CXX
876 CXXFLAGS
877 LDFLAGS
878 LIBS
879 CPPFLAGS
880 CCC
881 CC
882 CFLAGS
883 CPP
884 CXXCPP'
885
886
887 # Initialize some variables set by options.
888 ac_init_help=
889 ac_init_version=false
890 # The variables have the same names as the options, with
891 # dashes changed to underlines.
892 cache_file=/dev/null
893 exec_prefix=NONE
894 no_create=
895 no_recursion=
896 prefix=NONE
897 program_prefix=NONE
898 program_suffix=NONE
899 program_transform_name=s,x,x,
900 silent=
901 site=
902 srcdir=
903 verbose=
904 x_includes=NONE
905 x_libraries=NONE
906
907 # Installation directory options.
908 # These are left unexpanded so users can "make install exec_prefix=/foo"
909 # and all the variables that are supposed to be based on exec_prefix
910 # by default will actually change.
911 # Use braces instead of parens because sh, perl, etc. also accept them.
912 # (The list follows the same order as the GNU Coding Standards.)
913 bindir='${exec_prefix}/bin'
914 sbindir='${exec_prefix}/sbin'
915 libexecdir='${exec_prefix}/libexec'
916 datarootdir='${prefix}/share'
917 datadir='${datarootdir}'
918 sysconfdir='${prefix}/etc'
919 sharedstatedir='${prefix}/com'
920 localstatedir='${prefix}/var'
921 includedir='${prefix}/include'
922 oldincludedir='/usr/include'
923 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
924 infodir='${datarootdir}/info'
925 htmldir='${docdir}'
926 dvidir='${docdir}'
927 pdfdir='${docdir}'
928 psdir='${docdir}'
929 libdir='${exec_prefix}/lib'
930 localedir='${datarootdir}/locale'
931 mandir='${datarootdir}/man'
932
933 ac_prev=
934 ac_dashdash=
935 for ac_option
936 do
937 # If the previous option needs an argument, assign it.
938 if test -n "$ac_prev"; then
939 eval $ac_prev=\$ac_option
940 ac_prev=
941 continue
942 fi
943
944 case $ac_option in
945 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
946 *) ac_optarg=yes ;;
947 esac
948
949 # Accept the important Cygnus configure options, so we can diagnose typos.
950
951 case $ac_dashdash$ac_option in
952 --)
953 ac_dashdash=yes ;;
954
955 -bindir | --bindir | --bindi | --bind | --bin | --bi)
956 ac_prev=bindir ;;
957 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
958 bindir=$ac_optarg ;;
959
960 -build | --build | --buil | --bui | --bu)
961 ac_prev=build_alias ;;
962 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
963 build_alias=$ac_optarg ;;
964
965 -cache-file | --cache-file | --cache-fil | --cache-fi \
966 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
967 ac_prev=cache_file ;;
968 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
969 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
970 cache_file=$ac_optarg ;;
971
972 --config-cache | -C)
973 cache_file=config.cache ;;
974
975 -datadir | --datadir | --datadi | --datad)
976 ac_prev=datadir ;;
977 -datadir=* | --datadir=* | --datadi=* | --datad=*)
978 datadir=$ac_optarg ;;
979
980 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
981 | --dataroo | --dataro | --datar)
982 ac_prev=datarootdir ;;
983 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
984 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
985 datarootdir=$ac_optarg ;;
986
987 -disable-* | --disable-*)
988 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
989 # Reject names that are not valid shell variable names.
990 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
991 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
992 { (exit 1); exit 1; }; }
993 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
994 eval enable_$ac_feature=no ;;
995
996 -docdir | --docdir | --docdi | --doc | --do)
997 ac_prev=docdir ;;
998 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
999 docdir=$ac_optarg ;;
1000
1001 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1002 ac_prev=dvidir ;;
1003 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1004 dvidir=$ac_optarg ;;
1005
1006 -enable-* | --enable-*)
1007 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1008 # Reject names that are not valid shell variable names.
1009 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1010 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1011 { (exit 1); exit 1; }; }
1012 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1013 eval enable_$ac_feature=\$ac_optarg ;;
1014
1015 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1016 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1017 | --exec | --exe | --ex)
1018 ac_prev=exec_prefix ;;
1019 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1020 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1021 | --exec=* | --exe=* | --ex=*)
1022 exec_prefix=$ac_optarg ;;
1023
1024 -gas | --gas | --ga | --g)
1025 # Obsolete; use --with-gas.
1026 with_gas=yes ;;
1027
1028 -help | --help | --hel | --he | -h)
1029 ac_init_help=long ;;
1030 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1031 ac_init_help=recursive ;;
1032 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1033 ac_init_help=short ;;
1034
1035 -host | --host | --hos | --ho)
1036 ac_prev=host_alias ;;
1037 -host=* | --host=* | --hos=* | --ho=*)
1038 host_alias=$ac_optarg ;;
1039
1040 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1041 ac_prev=htmldir ;;
1042 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1043 | --ht=*)
1044 htmldir=$ac_optarg ;;
1045
1046 -includedir | --includedir | --includedi | --included | --include \
1047 | --includ | --inclu | --incl | --inc)
1048 ac_prev=includedir ;;
1049 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1050 | --includ=* | --inclu=* | --incl=* | --inc=*)
1051 includedir=$ac_optarg ;;
1052
1053 -infodir | --infodir | --infodi | --infod | --info | --inf)
1054 ac_prev=infodir ;;
1055 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1056 infodir=$ac_optarg ;;
1057
1058 -libdir | --libdir | --libdi | --libd)
1059 ac_prev=libdir ;;
1060 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1061 libdir=$ac_optarg ;;
1062
1063 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1064 | --libexe | --libex | --libe)
1065 ac_prev=libexecdir ;;
1066 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1067 | --libexe=* | --libex=* | --libe=*)
1068 libexecdir=$ac_optarg ;;
1069
1070 -localedir | --localedir | --localedi | --localed | --locale)
1071 ac_prev=localedir ;;
1072 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1073 localedir=$ac_optarg ;;
1074
1075 -localstatedir | --localstatedir | --localstatedi | --localstated \
1076 | --localstate | --localstat | --localsta | --localst | --locals)
1077 ac_prev=localstatedir ;;
1078 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1079 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1080 localstatedir=$ac_optarg ;;
1081
1082 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1083 ac_prev=mandir ;;
1084 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1085 mandir=$ac_optarg ;;
1086
1087 -nfp | --nfp | --nf)
1088 # Obsolete; use --without-fp.
1089 with_fp=no ;;
1090
1091 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1092 | --no-cr | --no-c | -n)
1093 no_create=yes ;;
1094
1095 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1096 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1097 no_recursion=yes ;;
1098
1099 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1100 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1101 | --oldin | --oldi | --old | --ol | --o)
1102 ac_prev=oldincludedir ;;
1103 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1104 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1105 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1106 oldincludedir=$ac_optarg ;;
1107
1108 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1109 ac_prev=prefix ;;
1110 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1111 prefix=$ac_optarg ;;
1112
1113 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1114 | --program-pre | --program-pr | --program-p)
1115 ac_prev=program_prefix ;;
1116 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1117 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1118 program_prefix=$ac_optarg ;;
1119
1120 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1121 | --program-suf | --program-su | --program-s)
1122 ac_prev=program_suffix ;;
1123 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1124 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1125 program_suffix=$ac_optarg ;;
1126
1127 -program-transform-name | --program-transform-name \
1128 | --program-transform-nam | --program-transform-na \
1129 | --program-transform-n | --program-transform- \
1130 | --program-transform | --program-transfor \
1131 | --program-transfo | --program-transf \
1132 | --program-trans | --program-tran \
1133 | --progr-tra | --program-tr | --program-t)
1134 ac_prev=program_transform_name ;;
1135 -program-transform-name=* | --program-transform-name=* \
1136 | --program-transform-nam=* | --program-transform-na=* \
1137 | --program-transform-n=* | --program-transform-=* \
1138 | --program-transform=* | --program-transfor=* \
1139 | --program-transfo=* | --program-transf=* \
1140 | --program-trans=* | --program-tran=* \
1141 | --progr-tra=* | --program-tr=* | --program-t=*)
1142 program_transform_name=$ac_optarg ;;
1143
1144 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1145 ac_prev=pdfdir ;;
1146 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1147 pdfdir=$ac_optarg ;;
1148
1149 -psdir | --psdir | --psdi | --psd | --ps)
1150 ac_prev=psdir ;;
1151 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1152 psdir=$ac_optarg ;;
1153
1154 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1155 | -silent | --silent | --silen | --sile | --sil)
1156 silent=yes ;;
1157
1158 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1159 ac_prev=sbindir ;;
1160 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1161 | --sbi=* | --sb=*)
1162 sbindir=$ac_optarg ;;
1163
1164 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1165 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1166 | --sharedst | --shareds | --shared | --share | --shar \
1167 | --sha | --sh)
1168 ac_prev=sharedstatedir ;;
1169 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1170 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1171 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1172 | --sha=* | --sh=*)
1173 sharedstatedir=$ac_optarg ;;
1174
1175 -site | --site | --sit)
1176 ac_prev=site ;;
1177 -site=* | --site=* | --sit=*)
1178 site=$ac_optarg ;;
1179
1180 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1181 ac_prev=srcdir ;;
1182 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1183 srcdir=$ac_optarg ;;
1184
1185 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1186 | --syscon | --sysco | --sysc | --sys | --sy)
1187 ac_prev=sysconfdir ;;
1188 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1189 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1190 sysconfdir=$ac_optarg ;;
1191
1192 -target | --target | --targe | --targ | --tar | --ta | --t)
1193 ac_prev=target_alias ;;
1194 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1195 target_alias=$ac_optarg ;;
1196
1197 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1198 verbose=yes ;;
1199
1200 -version | --version | --versio | --versi | --vers | -V)
1201 ac_init_version=: ;;
1202
1203 -with-* | --with-*)
1204 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1205 # Reject names that are not valid shell variable names.
1206 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1207 { echo "$as_me: error: invalid package name: $ac_package" >&2
1208 { (exit 1); exit 1; }; }
1209 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1210 eval with_$ac_package=\$ac_optarg ;;
1211
1212 -without-* | --without-*)
1213 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1214 # Reject names that are not valid shell variable names.
1215 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1216 { echo "$as_me: error: invalid package name: $ac_package" >&2
1217 { (exit 1); exit 1; }; }
1218 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1219 eval with_$ac_package=no ;;
1220
1221 --x)
1222 # Obsolete; use --with-x.
1223 with_x=yes ;;
1224
1225 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1226 | --x-incl | --x-inc | --x-in | --x-i)
1227 ac_prev=x_includes ;;
1228 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1229 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1230 x_includes=$ac_optarg ;;
1231
1232 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1233 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1234 ac_prev=x_libraries ;;
1235 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1236 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1237 x_libraries=$ac_optarg ;;
1238
1239 -*) { echo "$as_me: error: unrecognized option: $ac_option
1240 Try \`$0 --help' for more information." >&2
1241 { (exit 1); exit 1; }; }
1242 ;;
1243
1244 *=*)
1245 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1246 # Reject names that are not valid shell variable names.
1247 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1248 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1249 { (exit 1); exit 1; }; }
1250 eval $ac_envvar=\$ac_optarg
1251 export $ac_envvar ;;
1252
1253 *)
1254 # FIXME: should be removed in autoconf 3.0.
1255 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1256 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1257 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1258 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1259 ;;
1260
1261 esac
1262 done
1263
1264 if test -n "$ac_prev"; then
1265 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1266 { echo "$as_me: error: missing argument to $ac_option" >&2
1267 { (exit 1); exit 1; }; }
1268 fi
1269
1270 # Be sure to have absolute directory names.
1271 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1272 datadir sysconfdir sharedstatedir localstatedir includedir \
1273 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1274 libdir localedir mandir
1275 do
1276 eval ac_val=\$$ac_var
1277 case $ac_val in
1278 [\\/$]* | ?:[\\/]* ) continue;;
1279 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1280 esac
1281 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1282 { (exit 1); exit 1; }; }
1283 done
1284
1285 # There might be people who depend on the old broken behavior: `$host'
1286 # used to hold the argument of --host etc.
1287 # FIXME: To remove some day.
1288 build=$build_alias
1289 host=$host_alias
1290 target=$target_alias
1291
1292 # FIXME: To remove some day.
1293 if test "x$host_alias" != x; then
1294 if test "x$build_alias" = x; then
1295 cross_compiling=maybe
1296 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1297 If a cross compiler is detected then cross compile mode will be used." >&2
1298 elif test "x$build_alias" != "x$host_alias"; then
1299 cross_compiling=yes
1300 fi
1301 fi
1302
1303 ac_tool_prefix=
1304 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1305
1306 test "$silent" = yes && exec 6>/dev/null
1307
1308
1309 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1310 ac_ls_di=`ls -di .` &&
1311 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1312 { echo "$as_me: error: Working directory cannot be determined" >&2
1313 { (exit 1); exit 1; }; }
1314 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1315 { echo "$as_me: error: pwd does not report name of working directory" >&2
1316 { (exit 1); exit 1; }; }
1317
1318
1319 # Find the source files, if location was not specified.
1320 if test -z "$srcdir"; then
1321 ac_srcdir_defaulted=yes
1322 # Try the directory containing this script, then the parent directory.
1323 ac_confdir=`$as_dirname -- "$0" ||
1324 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1325 X"$0" : 'X\(//\)[^/]' \| \
1326 X"$0" : 'X\(//\)$' \| \
1327 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1328 echo X"$0" |
1329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1330 s//\1/
1331 q
1332 }
1333 /^X\(\/\/\)[^/].*/{
1334 s//\1/
1335 q
1336 }
1337 /^X\(\/\/\)$/{
1338 s//\1/
1339 q
1340 }
1341 /^X\(\/\).*/{
1342 s//\1/
1343 q
1344 }
1345 s/.*/./; q'`
1346 srcdir=$ac_confdir
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1348 srcdir=..
1349 fi
1350 else
1351 ac_srcdir_defaulted=no
1352 fi
1353 if test ! -r "$srcdir/$ac_unique_file"; then
1354 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1355 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1356 { (exit 1); exit 1; }; }
1357 fi
1358 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1359 ac_abs_confdir=`(
1360 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1361 { (exit 1); exit 1; }; }
1362 pwd)`
1363 # When building in place, set srcdir=.
1364 if test "$ac_abs_confdir" = "$ac_pwd"; then
1365 srcdir=.
1366 fi
1367 # Remove unnecessary trailing slashes from srcdir.
1368 # Double slashes in file names in object file debugging info
1369 # mess up M-x gdb in Emacs.
1370 case $srcdir in
1371 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1372 esac
1373 for ac_var in $ac_precious_vars; do
1374 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1375 eval ac_env_${ac_var}_value=\$${ac_var}
1376 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1377 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1378 done
1379
1380 #
1381 # Report the --help message.
1382 #
1383 if test "$ac_init_help" = "long"; then
1384 # Omit some internal or obsolete options to make the list less imposing.
1385 # This message is too long to be a string in the A/UX 3.1 sh.
1386 cat <<_ACEOF
1387 \`configure' configures libdjconsole 0.1.3 to adapt to many kinds of systems.
1388
1389 Usage: $0 [OPTION]... [VAR=VALUE]...
1390
1391 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1392 VAR=VALUE. See below for descriptions of some of the useful variables.
1393
1394 Defaults for the options are specified in brackets.
1395
1396 Configuration:
1397 -h, --help display this help and exit
1398 --help=short display options specific to this package
1399 --help=recursive display the short help of all the included packages
1400 -V, --version display version information and exit
1401 -q, --quiet, --silent do not print \`checking...' messages
1402 --cache-file=FILE cache test results in FILE [disabled]
1403 -C, --config-cache alias for \`--cache-file=config.cache'
1404 -n, --no-create do not create output files
1405 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1406
1407 Installation directories:
1408 --prefix=PREFIX install architecture-independent files in PREFIX
1409 [$ac_default_prefix]
1410 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1411 [PREFIX]
1412
1413 By default, \`make install' will install all the files in
1414 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1415 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1416 for instance \`--prefix=\$HOME'.
1417
1418 For better control, use the options below.
1419
1420 Fine tuning of the installation directories:
1421 --bindir=DIR user executables [EPREFIX/bin]
1422 --sbindir=DIR system admin executables [EPREFIX/sbin]
1423 --libexecdir=DIR program executables [EPREFIX/libexec]
1424 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1425 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1426 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1427 --libdir=DIR object code libraries [EPREFIX/lib]
1428 --includedir=DIR C header files [PREFIX/include]
1429 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1430 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1431 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1432 --infodir=DIR info documentation [DATAROOTDIR/info]
1433 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1434 --mandir=DIR man documentation [DATAROOTDIR/man]
1435 --docdir=DIR documentation root [DATAROOTDIR/doc/libdjconsole]
1436 --htmldir=DIR html documentation [DOCDIR]
1437 --dvidir=DIR dvi documentation [DOCDIR]
1438 --pdfdir=DIR pdf documentation [DOCDIR]
1439 --psdir=DIR ps documentation [DOCDIR]
1440 _ACEOF
1441
1442 cat <<\_ACEOF
1443
1444 Program names:
1445 --program-prefix=PREFIX prepend PREFIX to installed program names
1446 --program-suffix=SUFFIX append SUFFIX to installed program names
1447 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1448
1449 System types:
1450 --build=BUILD configure for building on BUILD [guessed]
1451 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1452 _ACEOF
1453 fi
1454
1455 if test -n "$ac_init_help"; then
1456 case $ac_init_help in
1457 short | recursive ) echo "Configuration of libdjconsole 0.1.3:";;
1458 esac
1459 cat <<\_ACEOF
1460
1461 Optional Features:
1462 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1463 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1464 --disable-dependency-tracking Speeds up one-time builds
1465 --enable-dependency-tracking Do not reject slow dependency extractors
1466 --enable-shared=PKGS build shared libraries default=yes
1467 --enable-static=PKGS build static libraries default=yes
1468 --enable-fast-install=PKGS optimize for fast installation default=yes
1469 --disable-libtool-lock avoid locking (might break parallel builds)
1470
1471 Optional Packages:
1472 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1473 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1474 --with-gnu-ld assume the C compiler uses GNU ld default=no
1475 --with-pic try to use only PIC/non-PIC objects default=use both
1476 --with-djdatadir Data dir for console definition files ($prefix/share/djconsole)
1477
1478 Some influential environment variables:
1479 CXX C++ compiler command
1480 CXXFLAGS C++ compiler flags
1481 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1482 nonstandard directory <lib dir>
1483 LIBS libraries to pass to the linker, e.g. -l<library>
1484 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1485 you have headers in a nonstandard directory <include dir>
1486 CC C compiler command
1487 CFLAGS C compiler flags
1488 CPP C preprocessor
1489 CXXCPP C++ preprocessor
1490
1491 Use these variables to override the choices made by `configure' or to help
1492 it to find libraries and programs with nonstandard names/locations.
1493
1494 Report bugs to <[email protected]>.
1495 _ACEOF
1496 ac_status=$?
1497 fi
1498
1499 if test "$ac_init_help" = "recursive"; then
1500 # If there are subdirs, report their specific --help.
1501 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1502 test -d "$ac_dir" || continue
1503 ac_builddir=.
1504
1505 case "$ac_dir" in
1506 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 *)
1508 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1509 # A ".." for each directory in $ac_dir_suffix.
1510 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1511 case $ac_top_builddir_sub in
1512 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1514 esac ;;
1515 esac
1516 ac_abs_top_builddir=$ac_pwd
1517 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1518 # for backward compatibility:
1519 ac_top_builddir=$ac_top_build_prefix
1520
1521 case $srcdir in
1522 .) # We are building in place.
1523 ac_srcdir=.
1524 ac_top_srcdir=$ac_top_builddir_sub
1525 ac_abs_top_srcdir=$ac_pwd ;;
1526 [\\/]* | ?:[\\/]* ) # Absolute name.
1527 ac_srcdir=$srcdir$ac_dir_suffix;
1528 ac_top_srcdir=$srcdir
1529 ac_abs_top_srcdir=$srcdir ;;
1530 *) # Relative name.
1531 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1532 ac_top_srcdir=$ac_top_build_prefix$srcdir
1533 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1534 esac
1535 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1536
1537 cd "$ac_dir" || { ac_status=$?; continue; }
1538 # Check for guested configure.
1539 if test -f "$ac_srcdir/configure.gnu"; then
1540 echo &&
1541 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1542 elif test -f "$ac_srcdir/configure"; then
1543 echo &&
1544 $SHELL "$ac_srcdir/configure" --help=recursive
1545 else
1546 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1547 fi || ac_status=$?
1548 cd "$ac_pwd" || { ac_status=$?; break; }
1549 done
1550 fi
1551
1552 test -n "$ac_init_help" && exit $ac_status
1553 if $ac_init_version; then
1554 cat <<\_ACEOF
1555 libdjconsole configure 0.1.3
1556 generated by GNU Autoconf 2.61
1557
1558 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1559 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1560 This configure script is free software; the Free Software Foundation
1561 gives unlimited permission to copy, distribute and modify it.
1562 _ACEOF
1563 exit
1564 fi
1565 cat >config.log <<_ACEOF
1566 This file contains any messages produced by compilers while
1567 running configure, to aid debugging if configure makes a mistake.
1568
1569 It was created by libdjconsole $as_me 0.1.3, which was
1570 generated by GNU Autoconf 2.61. Invocation command line was
1571
1572 $ $0 $@
1573
1574 _ACEOF
1575 exec 5>>config.log
1576 {
1577 cat <<_ASUNAME
1578 ## --------- ##
1579 ## Platform. ##
1580 ## --------- ##
1581
1582 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1583 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1584 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1585 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1586 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1587
1588 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1589 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1590
1591 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1592 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1593 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1594 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1595 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1596 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1597 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1598
1599 _ASUNAME
1600
1601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1602 for as_dir in $PATH
1603 do
1604 IFS=$as_save_IFS
1605 test -z "$as_dir" && as_dir=.
1606 echo "PATH: $as_dir"
1607 done
1608 IFS=$as_save_IFS
1609
1610 } >&5
1611
1612 cat >&5 <<_ACEOF
1613
1614
1615 ## ----------- ##
1616 ## Core tests. ##
1617 ## ----------- ##
1618
1619 _ACEOF
1620
1621
1622 # Keep a trace of the command line.
1623 # Strip out --no-create and --no-recursion so they do not pile up.
1624 # Strip out --silent because we don't want to record it for future runs.
1625 # Also quote any args containing shell meta-characters.
1626 # Make two passes to allow for proper duplicate-argument suppression.
1627 ac_configure_args=
1628 ac_configure_args0=
1629 ac_configure_args1=
1630 ac_must_keep_next=false
1631 for ac_pass in 1 2
1632 do
1633 for ac_arg
1634 do
1635 case $ac_arg in
1636 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1637 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1638 | -silent | --silent | --silen | --sile | --sil)
1639 continue ;;
1640 *\'*)
1641 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1642 esac
1643 case $ac_pass in
1644 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1645 2)
1646 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1647 if test $ac_must_keep_next = true; then
1648 ac_must_keep_next=false # Got value, back to normal.
1649 else
1650 case $ac_arg in
1651 *=* | --config-cache | -C | -disable-* | --disable-* \
1652 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1653 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1654 | -with-* | --with-* | -without-* | --without-* | --x)
1655 case "$ac_configure_args0 " in
1656 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1657 esac
1658 ;;
1659 -* ) ac_must_keep_next=true ;;
1660 esac
1661 fi
1662 ac_configure_args="$ac_configure_args '$ac_arg'"
1663 ;;
1664 esac
1665 done
1666 done
1667 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1668 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1669
1670 # When interrupted or exit'd, cleanup temporary files, and complete
1671 # config.log. We remove comments because anyway the quotes in there
1672 # would cause problems or look ugly.
1673 # WARNING: Use '\'' to represent an apostrophe within the trap.
1674 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1675 trap 'exit_status=$?
1676 # Save into config.log some information that might help in debugging.
1677 {
1678 echo
1679
1680 cat <<\_ASBOX
1681 ## ---------------- ##
1682 ## Cache variables. ##
1683 ## ---------------- ##
1684 _ASBOX
1685 echo
1686 # The following way of writing the cache mishandles newlines in values,
1687 (
1688 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1689 eval ac_val=\$$ac_var
1690 case $ac_val in #(
1691 *${as_nl}*)
1692 case $ac_var in #(
1693 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1694 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1695 esac
1696 case $ac_var in #(
1697 _ | IFS | as_nl) ;; #(
1698 *) $as_unset $ac_var ;;
1699 esac ;;
1700 esac
1701 done
1702 (set) 2>&1 |
1703 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1704 *${as_nl}ac_space=\ *)
1705 sed -n \
1706 "s/'\''/'\''\\\\'\'''\''/g;
1707 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1708 ;; #(
1709 *)
1710 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1711 ;;
1712 esac |
1713 sort
1714 )
1715 echo
1716
1717 cat <<\_ASBOX
1718 ## ----------------- ##
1719 ## Output variables. ##
1720 ## ----------------- ##
1721 _ASBOX
1722 echo
1723 for ac_var in $ac_subst_vars
1724 do
1725 eval ac_val=\$$ac_var
1726 case $ac_val in
1727 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1728 esac
1729 echo "$ac_var='\''$ac_val'\''"
1730 done | sort
1731 echo
1732
1733 if test -n "$ac_subst_files"; then
1734 cat <<\_ASBOX
1735 ## ------------------- ##
1736 ## File substitutions. ##
1737 ## ------------------- ##
1738 _ASBOX
1739 echo
1740 for ac_var in $ac_subst_files
1741 do
1742 eval ac_val=\$$ac_var
1743 case $ac_val in
1744 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1745 esac
1746 echo "$ac_var='\''$ac_val'\''"
1747 done | sort
1748 echo
1749 fi
1750
1751 if test -s confdefs.h; then
1752 cat <<\_ASBOX
1753 ## ----------- ##
1754 ## confdefs.h. ##
1755 ## ----------- ##
1756 _ASBOX
1757 echo
1758 cat confdefs.h
1759 echo
1760 fi
1761 test "$ac_signal" != 0 &&
1762 echo "$as_me: caught signal $ac_signal"
1763 echo "$as_me: exit $exit_status"
1764 } >&5
1765 rm -f core *.core core.conftest.* &&
1766 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1767 exit $exit_status
1768 ' 0
1769 for ac_signal in 1 2 13 15; do
1770 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1771 done
1772 ac_signal=0
1773
1774 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1775 rm -f -r conftest* confdefs.h
1776
1777 # Predefined preprocessor variables.
1778
1779 cat >>confdefs.h <<_ACEOF
1780 #define PACKAGE_NAME "$PACKAGE_NAME"
1781 _ACEOF
1782
1783
1784 cat >>confdefs.h <<_ACEOF
1785 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1786 _ACEOF
1787
1788
1789 cat >>confdefs.h <<_ACEOF
1790 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1791 _ACEOF
1792
1793
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_STRING "$PACKAGE_STRING"
1796 _ACEOF
1797
1798
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1801 _ACEOF
1802
1803
1804 # Let the site file select an alternate cache file if it wants to.
1805 # Prefer explicitly selected file to automatically selected ones.
1806 if test -n "$CONFIG_SITE"; then
1807 set x "$CONFIG_SITE"
1808 elif test "x$prefix" != xNONE; then
1809 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1810 else
1811 set x "$ac_default_prefix/share/config.site" \
1812 "$ac_default_prefix/etc/config.site"
1813 fi
1814 shift
1815 for ac_site_file
1816 do
1817 if test -r "$ac_site_file"; then
1818 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1819 echo "$as_me: loading site script $ac_site_file" >&6;}
1820 sed 's/^/| /' "$ac_site_file" >&5
1821 . "$ac_site_file"
1822 fi
1823 done
1824
1825 if test -r "$cache_file"; then
1826 # Some versions of bash will fail to source /dev/null (special
1827 # files actually), so we avoid doing that.
1828 if test -f "$cache_file"; then
1829 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1830 echo "$as_me: loading cache $cache_file" >&6;}
1831 case $cache_file in
1832 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1833 *) . "./$cache_file";;
1834 esac
1835 fi
1836 else
1837 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1838 echo "$as_me: creating cache $cache_file" >&6;}
1839 >$cache_file
1840 fi
1841
1842 # Check that the precious variables saved in the cache have kept the same
1843 # value.
1844 ac_cache_corrupted=false
1845 for ac_var in $ac_precious_vars; do
1846 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1847 eval ac_new_set=\$ac_env_${ac_var}_set
1848 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1849 eval ac_new_val=\$ac_env_${ac_var}_value
1850 case $ac_old_set,$ac_new_set in
1851 set,)
1852 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1853 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1854 ac_cache_corrupted=: ;;
1855 ,set)
1856 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1857 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1858 ac_cache_corrupted=: ;;
1859 ,);;
1860 *)
1861 if test "x$ac_old_val" != "x$ac_new_val"; then
1862 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1863 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1864 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1865 echo "$as_me: former value: $ac_old_val" >&2;}
1866 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1867 echo "$as_me: current value: $ac_new_val" >&2;}
1868 ac_cache_corrupted=:
1869 fi;;
1870 esac
1871 # Pass precious variables to config.status.
1872 if test "$ac_new_set" = set; then
1873 case $ac_new_val in
1874 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1875 *) ac_arg=$ac_var=$ac_new_val ;;
1876 esac
1877 case " $ac_configure_args " in
1878 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1879 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1880 esac
1881 fi
1882 done
1883 if $ac_cache_corrupted; then
1884 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1885 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1886 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1887 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1888 { (exit 1); exit 1; }; }
1889 fi
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915 ac_ext=c
1916 ac_cpp='$CPP $CPPFLAGS'
1917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1920
1921
1922 # Add the stamp file to the list of files AC keeps track of,
1923 # along with our hook.
1924 ac_config_headers="$ac_config_headers config.h"
1925
1926
1927
1928 am__api_version="1.6"
1929 ac_aux_dir=
1930 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1931 if test -f "$ac_dir/install-sh"; then
1932 ac_aux_dir=$ac_dir
1933 ac_install_sh="$ac_aux_dir/install-sh -c"
1934 break
1935 elif test -f "$ac_dir/install.sh"; then
1936 ac_aux_dir=$ac_dir
1937 ac_install_sh="$ac_aux_dir/install.sh -c"
1938 break
1939 elif test -f "$ac_dir/shtool"; then
1940 ac_aux_dir=$ac_dir
1941 ac_install_sh="$ac_aux_dir/shtool install -c"
1942 break
1943 fi
1944 done
1945 if test -z "$ac_aux_dir"; then
1946 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1947 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1948 { (exit 1); exit 1; }; }
1949 fi
1950
1951 # These three variables are undocumented and unsupported,
1952 # and are intended to be withdrawn in a future Autoconf release.
1953 # They can cause serious problems if a builder's source tree is in a directory
1954 # whose full name contains unusual characters.
1955 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1956 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1957 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1958
1959
1960 # Find a good install program. We prefer a C program (faster),
1961 # so one script is as good as another. But avoid the broken or
1962 # incompatible versions:
1963 # SysV /etc/install, /usr/sbin/install
1964 # SunOS /usr/etc/install
1965 # IRIX /sbin/install
1966 # AIX /bin/install
1967 # AmigaOS /C/install, which installs bootblocks on floppy discs
1968 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1969 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1970 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1971 # OS/2's system install, which has a completely different semantic
1972 # ./install, which can be erroneously created by make from ./install.sh.
1973 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1974 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1975 if test -z "$INSTALL"; then
1976 if test "${ac_cv_path_install+set}" = set; then
1977 echo $ECHO_N "(cached) $ECHO_C" >&6
1978 else
1979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1980 for as_dir in $PATH
1981 do
1982 IFS=$as_save_IFS
1983 test -z "$as_dir" && as_dir=.
1984 # Account for people who put trailing slashes in PATH elements.
1985 case $as_dir/ in
1986 ./ | .// | /cC/* | \
1987 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1988 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1989 /usr/ucb/* ) ;;
1990 *)
1991 # OSF1 and SCO ODT 3.0 have their own names for install.
1992 # Don't use installbsd from OSF since it installs stuff as root
1993 # by default.
1994 for ac_prog in ginstall scoinst install; do
1995 for ac_exec_ext in '' $ac_executable_extensions; do
1996 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1997 if test $ac_prog = install &&
1998 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1999 # AIX install. It has an incompatible calling convention.
2000 :
2001 elif test $ac_prog = install &&
2002 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2003 # program-specific install script used by HP pwplus--don't use.
2004 :
2005 else
2006 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2007 break 3
2008 fi
2009 fi
2010 done
2011 done
2012 ;;
2013 esac
2014 done
2015 IFS=$as_save_IFS
2016
2017
2018 fi
2019 if test "${ac_cv_path_install+set}" = set; then
2020 INSTALL=$ac_cv_path_install
2021 else
2022 # As a last resort, use the slow shell script. Don't cache a
2023 # value for INSTALL within a source directory, because that will
2024 # break other packages using the cache if that directory is
2025 # removed, or if the value is a relative name.
2026 INSTALL=$ac_install_sh
2027 fi
2028 fi
2029 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2030 echo "${ECHO_T}$INSTALL" >&6; }
2031
2032 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2033 # It thinks the first close brace ends the variable substitution.
2034 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2035
2036 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2037
2038 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2039
2040 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2041 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2042 # Just in case
2043 sleep 1
2044 echo timestamp > conftest.file
2045 # Do `set' in a subshell so we don't clobber the current shell's
2046 # arguments. Must try -L first in case configure is actually a
2047 # symlink; some systems play weird games with the mod time of symlinks
2048 # (eg FreeBSD returns the mod time of the symlink's containing
2049 # directory).
2050 if (
2051 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2052 if test "$*" = "X"; then
2053 # -L didn't work.
2054 set X `ls -t $srcdir/configure conftest.file`
2055 fi
2056 rm -f conftest.file
2057 if test "$*" != "X $srcdir/configure conftest.file" \
2058 && test "$*" != "X conftest.file $srcdir/configure"; then
2059
2060 # If neither matched, then we have a broken ls. This can happen
2061 # if, for instance, CONFIG_SHELL is bash and it inherits a
2062 # broken ls alias from the environment. This has actually
2063 # happened. Such a system could not be considered "sane".
2064 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2065 alias in your environment" >&5
2066 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2067 alias in your environment" >&2;}
2068 { (exit 1); exit 1; }; }
2069 fi
2070
2071 test "$2" = conftest.file
2072 )
2073 then
2074 # Ok.
2075 :
2076 else
2077 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2078 Check your system clock" >&5
2079 echo "$as_me: error: newly created file is older than distributed files!
2080 Check your system clock" >&2;}
2081 { (exit 1); exit 1; }; }
2082 fi
2083 { echo "$as_me:$LINENO: result: yes" >&5
2084 echo "${ECHO_T}yes" >&6; }
2085 test "$program_prefix" != NONE &&
2086 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2087 # Use a double $ so make ignores it.
2088 test "$program_suffix" != NONE &&
2089 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2090 # Double any \ or $. echo might interpret backslashes.
2091 # By default was `s,x,x', remove it if useless.
2092 cat <<\_ACEOF >conftest.sed
2093 s/[\\$]/&&/g;s/;s,x,x,$//
2094 _ACEOF
2095 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2096 rm -f conftest.sed
2097
2098
2099 # expand $ac_aux_dir to an absolute path
2100 am_aux_dir=`cd $ac_aux_dir && pwd`
2101
2102 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2103 # Use eval to expand $SHELL
2104 if eval "$MISSING --run true"; then
2105 am_missing_run="$MISSING --run "
2106 else
2107 am_missing_run=
2108 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2109 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2110 fi
2111
2112 for ac_prog in gawk mawk nawk awk
2113 do
2114 # Extract the first word of "$ac_prog", so it can be a program name with args.
2115 set dummy $ac_prog; ac_word=$2
2116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2118 if test "${ac_cv_prog_AWK+set}" = set; then
2119 echo $ECHO_N "(cached) $ECHO_C" >&6
2120 else
2121 if test -n "$AWK"; then
2122 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2123 else
2124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125 for as_dir in $PATH
2126 do
2127 IFS=$as_save_IFS
2128 test -z "$as_dir" && as_dir=.
2129 for ac_exec_ext in '' $ac_executable_extensions; do
2130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2131 ac_cv_prog_AWK="$ac_prog"
2132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2133 break 2
2134 fi
2135 done
2136 done
2137 IFS=$as_save_IFS
2138
2139 fi
2140 fi
2141 AWK=$ac_cv_prog_AWK
2142 if test -n "$AWK"; then
2143 { echo "$as_me:$LINENO: result: $AWK" >&5
2144 echo "${ECHO_T}$AWK" >&6; }
2145 else
2146 { echo "$as_me:$LINENO: result: no" >&5
2147 echo "${ECHO_T}no" >&6; }
2148 fi
2149
2150
2151 test -n "$AWK" && break
2152 done
2153
2154 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2155 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2156 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2157 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2158 echo $ECHO_N "(cached) $ECHO_C" >&6
2159 else
2160 cat >conftest.make <<\_ACEOF
2161 SHELL = /bin/sh
2162 all:
2163 @echo '@@@%%%=$(MAKE)=@@@%%%'
2164 _ACEOF
2165 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2166 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2167 *@@@%%%=?*=@@@%%%*)
2168 eval ac_cv_prog_make_${ac_make}_set=yes;;
2169 *)
2170 eval ac_cv_prog_make_${ac_make}_set=no;;
2171 esac
2172 rm -f conftest.make
2173 fi
2174 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2175 { echo "$as_me:$LINENO: result: yes" >&5
2176 echo "${ECHO_T}yes" >&6; }
2177 SET_MAKE=
2178 else
2179 { echo "$as_me:$LINENO: result: no" >&5
2180 echo "${ECHO_T}no" >&6; }
2181 SET_MAKE="MAKE=${MAKE-make}"
2182 fi
2183
2184 # test to see if srcdir already configured
2185 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2186 test -f $srcdir/config.status; then
2187 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2188 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2189 { (exit 1); exit 1; }; }
2190 fi
2191
2192 # Define the identity of the package.
2193 PACKAGE=libdjconsole
2194 VERSION=0.1.3
2195
2196
2197 cat >>confdefs.h <<_ACEOF
2198 #define PACKAGE "$PACKAGE"
2199 _ACEOF
2200
2201
2202 cat >>confdefs.h <<_ACEOF
2203 #define VERSION "$VERSION"
2204 _ACEOF
2205
2206 # Some tools Automake needs.
2207
2208 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2209
2210
2211 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2212
2213
2214 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2215
2216
2217 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2218
2219
2220 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2221
2222
2223 AMTAR=${AMTAR-"${am_missing_run}tar"}
2224
2225 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2226
2227 # Installed binaries are usually stripped using `strip' when the user
2228 # run `make install-strip'. However `strip' might not be the right
2229 # tool to use in cross-compilation environments, therefore Automake
2230 # will honor the `STRIP' environment variable to overrule this program.
2231 if test "$cross_compiling" != no; then
2232 if test -n "$ac_tool_prefix"; then
2233 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2234 set dummy ${ac_tool_prefix}strip; ac_word=$2
2235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2237 if test "${ac_cv_prog_STRIP+set}" = set; then
2238 echo $ECHO_N "(cached) $ECHO_C" >&6
2239 else
2240 if test -n "$STRIP"; then
2241 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2242 else
2243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2244 for as_dir in $PATH
2245 do
2246 IFS=$as_save_IFS
2247 test -z "$as_dir" && as_dir=.
2248 for ac_exec_ext in '' $ac_executable_extensions; do
2249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2250 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2252 break 2
2253 fi
2254 done
2255 done
2256 IFS=$as_save_IFS
2257
2258 fi
2259 fi
2260 STRIP=$ac_cv_prog_STRIP
2261 if test -n "$STRIP"; then
2262 { echo "$as_me:$LINENO: result: $STRIP" >&5
2263 echo "${ECHO_T}$STRIP" >&6; }
2264 else
2265 { echo "$as_me:$LINENO: result: no" >&5
2266 echo "${ECHO_T}no" >&6; }
2267 fi
2268
2269
2270 fi
2271 if test -z "$ac_cv_prog_STRIP"; then
2272 ac_ct_STRIP=$STRIP
2273 # Extract the first word of "strip", so it can be a program name with args.
2274 set dummy strip; ac_word=$2
2275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2277 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2278 echo $ECHO_N "(cached) $ECHO_C" >&6
2279 else
2280 if test -n "$ac_ct_STRIP"; then
2281 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2282 else
2283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284 for as_dir in $PATH
2285 do
2286 IFS=$as_save_IFS
2287 test -z "$as_dir" && as_dir=.
2288 for ac_exec_ext in '' $ac_executable_extensions; do
2289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2290 ac_cv_prog_ac_ct_STRIP="strip"
2291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2292 break 2
2293 fi
2294 done
2295 done
2296 IFS=$as_save_IFS
2297
2298 fi
2299 fi
2300 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2301 if test -n "$ac_ct_STRIP"; then
2302 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2303 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2304 else
2305 { echo "$as_me:$LINENO: result: no" >&5
2306 echo "${ECHO_T}no" >&6; }
2307 fi
2308
2309 if test "x$ac_ct_STRIP" = x; then
2310 STRIP=":"
2311 else
2312 case $cross_compiling:$ac_tool_warned in
2313 yes:)
2314 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2315 whose name does not start with the host triplet. If you think this
2316 configuration is useful to you, please write to [email protected]." >&5
2317 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2318 whose name does not start with the host triplet. If you think this
2319 configuration is useful to you, please write to [email protected]." >&2;}
2320 ac_tool_warned=yes ;;
2321 esac
2322 STRIP=$ac_ct_STRIP
2323 fi
2324 else
2325 STRIP="$ac_cv_prog_STRIP"
2326 fi
2327
2328 fi
2329 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2330
2331 # We need awk for the "check" target. The system "awk" is bad on
2332 # some platforms.
2333
2334
2335
2336 ac_ext=cpp
2337 ac_cpp='$CXXCPP $CPPFLAGS'
2338 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2339 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2340 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2341
2342
2343 LIB_CURRENT=0
2344 LIB_REVISION=0
2345 LIB_AGE=0
2346
2347
2348
2349
2350
2351 # Checks for programs.
2352 ac_ext=cpp
2353 ac_cpp='$CXXCPP $CPPFLAGS'
2354 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2355 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2356 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2357 if test -z "$CXX"; then
2358 if test -n "$CCC"; then
2359 CXX=$CCC
2360 else
2361 if test -n "$ac_tool_prefix"; then
2362 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2363 do
2364 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2365 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2368 if test "${ac_cv_prog_CXX+set}" = set; then
2369 echo $ECHO_N "(cached) $ECHO_C" >&6
2370 else
2371 if test -n "$CXX"; then
2372 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2373 else
2374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2375 for as_dir in $PATH
2376 do
2377 IFS=$as_save_IFS
2378 test -z "$as_dir" && as_dir=.
2379 for ac_exec_ext in '' $ac_executable_extensions; do
2380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2381 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2383 break 2
2384 fi
2385 done
2386 done
2387 IFS=$as_save_IFS
2388
2389 fi
2390 fi
2391 CXX=$ac_cv_prog_CXX
2392 if test -n "$CXX"; then
2393 { echo "$as_me:$LINENO: result: $CXX" >&5
2394 echo "${ECHO_T}$CXX" >&6; }
2395 else
2396 { echo "$as_me:$LINENO: result: no" >&5
2397 echo "${ECHO_T}no" >&6; }
2398 fi
2399
2400
2401 test -n "$CXX" && break
2402 done
2403 fi
2404 if test -z "$CXX"; then
2405 ac_ct_CXX=$CXX
2406 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2407 do
2408 # Extract the first word of "$ac_prog", so it can be a program name with args.
2409 set dummy $ac_prog; ac_word=$2
2410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2412 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2413 echo $ECHO_N "(cached) $ECHO_C" >&6
2414 else
2415 if test -n "$ac_ct_CXX"; then
2416 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2417 else
2418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2419 for as_dir in $PATH
2420 do
2421 IFS=$as_save_IFS
2422 test -z "$as_dir" && as_dir=.
2423 for ac_exec_ext in '' $ac_executable_extensions; do
2424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2425 ac_cv_prog_ac_ct_CXX="$ac_prog"
2426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2427 break 2
2428 fi
2429 done
2430 done
2431 IFS=$as_save_IFS
2432
2433 fi
2434 fi
2435 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2436 if test -n "$ac_ct_CXX"; then
2437 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2438 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2439 else
2440 { echo "$as_me:$LINENO: result: no" >&5
2441 echo "${ECHO_T}no" >&6; }
2442 fi
2443
2444
2445 test -n "$ac_ct_CXX" && break
2446 done
2447
2448 if test "x$ac_ct_CXX" = x; then
2449 CXX="g++"
2450 else
2451 case $cross_compiling:$ac_tool_warned in
2452 yes:)
2453 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2454 whose name does not start with the host triplet. If you think this
2455 configuration is useful to you, please write to [email protected]." >&5
2456 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2457 whose name does not start with the host triplet. If you think this
2458 configuration is useful to you, please write to [email protected]." >&2;}
2459 ac_tool_warned=yes ;;
2460 esac
2461 CXX=$ac_ct_CXX
2462 fi
2463 fi
2464
2465 fi
2466 fi
2467 # Provide some information about the compiler.
2468 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2469 ac_compiler=`set X $ac_compile; echo $2`
2470 { (ac_try="$ac_compiler --version >&5"
2471 case "(($ac_try" in
2472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473 *) ac_try_echo=$ac_try;;
2474 esac
2475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2476 (eval "$ac_compiler --version >&5") 2>&5
2477 ac_status=$?
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); }
2480 { (ac_try="$ac_compiler -v >&5"
2481 case "(($ac_try" in
2482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2483 *) ac_try_echo=$ac_try;;
2484 esac
2485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2486 (eval "$ac_compiler -v >&5") 2>&5
2487 ac_status=$?
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); }
2490 { (ac_try="$ac_compiler -V >&5"
2491 case "(($ac_try" in
2492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2493 *) ac_try_echo=$ac_try;;
2494 esac
2495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2496 (eval "$ac_compiler -V >&5") 2>&5
2497 ac_status=$?
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); }
2500
2501 cat >conftest.$ac_ext <<_ACEOF
2502 /* confdefs.h. */
2503 _ACEOF
2504 cat confdefs.h >>conftest.$ac_ext
2505 cat >>conftest.$ac_ext <<_ACEOF
2506 /* end confdefs.h. */
2507
2508 int
2509 main ()
2510 {
2511
2512 ;
2513 return 0;
2514 }
2515 _ACEOF
2516 ac_clean_files_save=$ac_clean_files
2517 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2518 # Try to create an executable without -o first, disregard a.out.
2519 # It will help us diagnose broken compilers, and finding out an intuition
2520 # of exeext.
2521 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2522 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2523 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2524 #
2525 # List of possible output files, starting from the most likely.
2526 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2527 # only as a last resort. b.out is created by i960 compilers.
2528 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2529 #
2530 # The IRIX 6 linker writes into existing files which may not be
2531 # executable, retaining their permissions. Remove them first so a
2532 # subsequent execution test works.
2533 ac_rmfiles=
2534 for ac_file in $ac_files
2535 do
2536 case $ac_file in
2537 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2538 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2539 esac
2540 done
2541 rm -f $ac_rmfiles
2542
2543 if { (ac_try="$ac_link_default"
2544 case "(($ac_try" in
2545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2546 *) ac_try_echo=$ac_try;;
2547 esac
2548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2549 (eval "$ac_link_default") 2>&5
2550 ac_status=$?
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }; then
2553 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2554 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2555 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2556 # so that the user can short-circuit this test for compilers unknown to
2557 # Autoconf.
2558 for ac_file in $ac_files ''
2559 do
2560 test -f "$ac_file" || continue
2561 case $ac_file in
2562 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2563 ;;
2564 [ab].out )
2565 # We found the default executable, but exeext='' is most
2566 # certainly right.
2567 break;;
2568 *.* )
2569 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2570 then :; else
2571 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2572 fi
2573 # We set ac_cv_exeext here because the later test for it is not
2574 # safe: cross compilers may not add the suffix if given an `-o'
2575 # argument, so we may need to know it at that point already.
2576 # Even if this section looks crufty: it has the advantage of
2577 # actually working.
2578 break;;
2579 * )
2580 break;;
2581 esac
2582 done
2583 test "$ac_cv_exeext" = no && ac_cv_exeext=
2584
2585 else
2586 ac_file=''
2587 fi
2588
2589 { echo "$as_me:$LINENO: result: $ac_file" >&5
2590 echo "${ECHO_T}$ac_file" >&6; }
2591 if test -z "$ac_file"; then
2592 echo "$as_me: failed program was:" >&5
2593 sed 's/^/| /' conftest.$ac_ext >&5
2594
2595 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2596 See \`config.log' for more details." >&5
2597 echo "$as_me: error: C++ compiler cannot create executables
2598 See \`config.log' for more details." >&2;}
2599 { (exit 77); exit 77; }; }
2600 fi
2601
2602 ac_exeext=$ac_cv_exeext
2603
2604 # Check that the compiler produces executables we can run. If not, either
2605 # the compiler is broken, or we cross compile.
2606 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2607 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2608 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2609 # If not cross compiling, check that we can run a simple program.
2610 if test "$cross_compiling" != yes; then
2611 if { ac_try='./$ac_file'
2612 { (case "(($ac_try" in
2613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2614 *) ac_try_echo=$ac_try;;
2615 esac
2616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2617 (eval "$ac_try") 2>&5
2618 ac_status=$?
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; }; then
2621 cross_compiling=no
2622 else
2623 if test "$cross_compiling" = maybe; then
2624 cross_compiling=yes
2625 else
2626 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2627 If you meant to cross compile, use \`--host'.
2628 See \`config.log' for more details." >&5
2629 echo "$as_me: error: cannot run C++ compiled programs.
2630 If you meant to cross compile, use \`--host'.
2631 See \`config.log' for more details." >&2;}
2632 { (exit 1); exit 1; }; }
2633 fi
2634 fi
2635 fi
2636 { echo "$as_me:$LINENO: result: yes" >&5
2637 echo "${ECHO_T}yes" >&6; }
2638
2639 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2640 ac_clean_files=$ac_clean_files_save
2641 # Check that the compiler produces executables we can run. If not, either
2642 # the compiler is broken, or we cross compile.
2643 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2644 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2645 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2646 echo "${ECHO_T}$cross_compiling" >&6; }
2647
2648 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2649 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2650 if { (ac_try="$ac_link"
2651 case "(($ac_try" in
2652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2653 *) ac_try_echo=$ac_try;;
2654 esac
2655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2656 (eval "$ac_link") 2>&5
2657 ac_status=$?
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); }; then
2660 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2661 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2662 # work properly (i.e., refer to `conftest.exe'), while it won't with
2663 # `rm'.
2664 for ac_file in conftest.exe conftest conftest.*; do
2665 test -f "$ac_file" || continue
2666 case $ac_file in
2667 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2668 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2669 break;;
2670 * ) break;;
2671 esac
2672 done
2673 else
2674 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2675 See \`config.log' for more details." >&5
2676 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2677 See \`config.log' for more details." >&2;}
2678 { (exit 1); exit 1; }; }
2679 fi
2680
2681 rm -f conftest$ac_cv_exeext
2682 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2683 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2684
2685 rm -f conftest.$ac_ext
2686 EXEEXT=$ac_cv_exeext
2687 ac_exeext=$EXEEXT
2688 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2689 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2690 if test "${ac_cv_objext+set}" = set; then
2691 echo $ECHO_N "(cached) $ECHO_C" >&6
2692 else
2693 cat >conftest.$ac_ext <<_ACEOF
2694 /* confdefs.h. */
2695 _ACEOF
2696 cat confdefs.h >>conftest.$ac_ext
2697 cat >>conftest.$ac_ext <<_ACEOF
2698 /* end confdefs.h. */
2699
2700 int
2701 main ()
2702 {
2703
2704 ;
2705 return 0;
2706 }
2707 _ACEOF
2708 rm -f conftest.o conftest.obj
2709 if { (ac_try="$ac_compile"
2710 case "(($ac_try" in
2711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712 *) ac_try_echo=$ac_try;;
2713 esac
2714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715 (eval "$ac_compile") 2>&5
2716 ac_status=$?
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }; then
2719 for ac_file in conftest.o conftest.obj conftest.*; do
2720 test -f "$ac_file" || continue;
2721 case $ac_file in
2722 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2723 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2724 break;;
2725 esac
2726 done
2727 else
2728 echo "$as_me: failed program was:" >&5
2729 sed 's/^/| /' conftest.$ac_ext >&5
2730
2731 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2732 See \`config.log' for more details." >&5
2733 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2734 See \`config.log' for more details." >&2;}
2735 { (exit 1); exit 1; }; }
2736 fi
2737
2738 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2739 fi
2740 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2741 echo "${ECHO_T}$ac_cv_objext" >&6; }
2742 OBJEXT=$ac_cv_objext
2743 ac_objext=$OBJEXT
2744 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2745 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2746 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2747 echo $ECHO_N "(cached) $ECHO_C" >&6
2748 else
2749 cat >conftest.$ac_ext <<_ACEOF
2750 /* confdefs.h. */
2751 _ACEOF
2752 cat confdefs.h >>conftest.$ac_ext
2753 cat >>conftest.$ac_ext <<_ACEOF
2754 /* end confdefs.h. */
2755
2756 int
2757 main ()
2758 {
2759 #ifndef __GNUC__
2760 choke me
2761 #endif
2762
2763 ;
2764 return 0;
2765 }
2766 _ACEOF
2767 rm -f conftest.$ac_objext
2768 if { (ac_try="$ac_compile"
2769 case "(($ac_try" in
2770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2771 *) ac_try_echo=$ac_try;;
2772 esac
2773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2774 (eval "$ac_compile") 2>conftest.er1
2775 ac_status=$?
2776 grep -v '^ *+' conftest.er1 >conftest.err
2777 rm -f conftest.er1
2778 cat conftest.err >&5
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); } && {
2781 test -z "$ac_cxx_werror_flag" ||
2782 test ! -s conftest.err
2783 } && test -s conftest.$ac_objext; then
2784 ac_compiler_gnu=yes
2785 else
2786 echo "$as_me: failed program was:" >&5
2787 sed 's/^/| /' conftest.$ac_ext >&5
2788
2789 ac_compiler_gnu=no
2790 fi
2791
2792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2793 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2794
2795 fi
2796 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2797 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2798 GXX=`test $ac_compiler_gnu = yes && echo yes`
2799 ac_test_CXXFLAGS=${CXXFLAGS+set}
2800 ac_save_CXXFLAGS=$CXXFLAGS
2801 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2802 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2803 if test "${ac_cv_prog_cxx_g+set}" = set; then
2804 echo $ECHO_N "(cached) $ECHO_C" >&6
2805 else
2806 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2807 ac_cxx_werror_flag=yes
2808 ac_cv_prog_cxx_g=no
2809 CXXFLAGS="-g"
2810 cat >conftest.$ac_ext <<_ACEOF
2811 /* confdefs.h. */
2812 _ACEOF
2813 cat confdefs.h >>conftest.$ac_ext
2814 cat >>conftest.$ac_ext <<_ACEOF
2815 /* end confdefs.h. */
2816
2817 int
2818 main ()
2819 {
2820
2821 ;
2822 return 0;
2823 }
2824 _ACEOF
2825 rm -f conftest.$ac_objext
2826 if { (ac_try="$ac_compile"
2827 case "(($ac_try" in
2828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2829 *) ac_try_echo=$ac_try;;
2830 esac
2831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2832 (eval "$ac_compile") 2>conftest.er1
2833 ac_status=$?
2834 grep -v '^ *+' conftest.er1 >conftest.err
2835 rm -f conftest.er1
2836 cat conftest.err >&5
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); } && {
2839 test -z "$ac_cxx_werror_flag" ||
2840 test ! -s conftest.err
2841 } && test -s conftest.$ac_objext; then
2842 ac_cv_prog_cxx_g=yes
2843 else
2844 echo "$as_me: failed program was:" >&5
2845 sed 's/^/| /' conftest.$ac_ext >&5
2846
2847 CXXFLAGS=""
2848 cat >conftest.$ac_ext <<_ACEOF
2849 /* confdefs.h. */
2850 _ACEOF
2851 cat confdefs.h >>conftest.$ac_ext
2852 cat >>conftest.$ac_ext <<_ACEOF
2853 /* end confdefs.h. */
2854
2855 int
2856 main ()
2857 {
2858
2859 ;
2860 return 0;
2861 }
2862 _ACEOF
2863 rm -f conftest.$ac_objext
2864 if { (ac_try="$ac_compile"
2865 case "(($ac_try" in
2866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2867 *) ac_try_echo=$ac_try;;
2868 esac
2869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2870 (eval "$ac_compile") 2>conftest.er1
2871 ac_status=$?
2872 grep -v '^ *+' conftest.er1 >conftest.err
2873 rm -f conftest.er1
2874 cat conftest.err >&5
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); } && {
2877 test -z "$ac_cxx_werror_flag" ||
2878 test ! -s conftest.err
2879 } && test -s conftest.$ac_objext; then
2880 :
2881 else
2882 echo "$as_me: failed program was:" >&5
2883 sed 's/^/| /' conftest.$ac_ext >&5
2884
2885 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2886 CXXFLAGS="-g"
2887 cat >conftest.$ac_ext <<_ACEOF
2888 /* confdefs.h. */
2889 _ACEOF
2890 cat confdefs.h >>conftest.$ac_ext
2891 cat >>conftest.$ac_ext <<_ACEOF
2892 /* end confdefs.h. */
2893
2894 int
2895 main ()
2896 {
2897
2898 ;
2899 return 0;
2900 }
2901 _ACEOF
2902 rm -f conftest.$ac_objext
2903 if { (ac_try="$ac_compile"
2904 case "(($ac_try" in
2905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906 *) ac_try_echo=$ac_try;;
2907 esac
2908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2909 (eval "$ac_compile") 2>conftest.er1
2910 ac_status=$?
2911 grep -v '^ *+' conftest.er1 >conftest.err
2912 rm -f conftest.er1
2913 cat conftest.err >&5
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); } && {
2916 test -z "$ac_cxx_werror_flag" ||
2917 test ! -s conftest.err
2918 } && test -s conftest.$ac_objext; then
2919 ac_cv_prog_cxx_g=yes
2920 else
2921 echo "$as_me: failed program was:" >&5
2922 sed 's/^/| /' conftest.$ac_ext >&5
2923
2924
2925 fi
2926
2927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2928 fi
2929
2930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2931 fi
2932
2933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2934 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2935 fi
2936 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2937 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
2938 if test "$ac_test_CXXFLAGS" = set; then
2939 CXXFLAGS=$ac_save_CXXFLAGS
2940 elif test $ac_cv_prog_cxx_g = yes; then
2941 if test "$GXX" = yes; then
2942 CXXFLAGS="-g -O2"
2943 else
2944 CXXFLAGS="-g"
2945 fi
2946 else
2947 if test "$GXX" = yes; then
2948 CXXFLAGS="-O2"
2949 else
2950 CXXFLAGS=
2951 fi
2952 fi
2953 ac_ext=cpp
2954 ac_cpp='$CXXCPP $CPPFLAGS'
2955 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2956 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2957 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2958 rm -f .deps 2>/dev/null
2959 mkdir .deps 2>/dev/null
2960 if test -d .deps; then
2961 DEPDIR=.deps
2962 else
2963 # MS-DOS does not allow filenames that begin with a dot.
2964 DEPDIR=_deps
2965 fi
2966 rmdir .deps 2>/dev/null
2967
2968
2969 ac_config_commands="$ac_config_commands depfiles"
2970
2971
2972 am_make=${MAKE-make}
2973 cat > confinc << 'END'
2974 doit:
2975 @echo done
2976 END
2977 # If we don't find an include directive, just comment out the code.
2978 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2979 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2980 am__include="#"
2981 am__quote=
2982 _am_result=none
2983 # First try GNU make style include.
2984 echo "include confinc" > confmf
2985 # We grep out `Entering directory' and `Leaving directory'
2986 # messages which can occur if `w' ends up in MAKEFLAGS.
2987 # In particular we don't look at `^make:' because GNU make might
2988 # be invoked under some other name (usually "gmake"), in which
2989 # case it prints its new name instead of `make'.
2990 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2991 am__include=include
2992 am__quote=
2993 _am_result=GNU
2994 fi
2995 # Now try BSD make style include.
2996 if test "$am__include" = "#"; then
2997 echo '.include "confinc"' > confmf
2998 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2999 am__include=.include
3000 am__quote="\""
3001 _am_result=BSD
3002 fi
3003 fi
3004
3005
3006 { echo "$as_me:$LINENO: result: $_am_result" >&5
3007 echo "${ECHO_T}$_am_result" >&6; }
3008 rm -f confinc confmf
3009
3010 # Check whether --enable-dependency-tracking was given.
3011 if test "${enable_dependency_tracking+set}" = set; then
3012 enableval=$enable_dependency_tracking;
3013 fi
3014
3015 if test "x$enable_dependency_tracking" != xno; then
3016 am_depcomp="$ac_aux_dir/depcomp"
3017 AMDEPBACKSLASH='\'
3018 fi
3019
3020
3021 if test "x$enable_dependency_tracking" != xno; then
3022 AMDEP_TRUE=
3023 AMDEP_FALSE='#'
3024 else
3025 AMDEP_TRUE='#'
3026 AMDEP_FALSE=
3027 fi
3028
3029
3030
3031
3032 depcc="$CXX" am_compiler_list=
3033
3034 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3035 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3036 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3037 echo $ECHO_N "(cached) $ECHO_C" >&6
3038 else
3039 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3040 # We make a subdir and do the tests there. Otherwise we can end up
3041 # making bogus files that we don't know about and never remove. For
3042 # instance it was reported that on HP-UX the gcc test will end up
3043 # making a dummy file named `D' -- because `-MD' means `put the output
3044 # in D'.
3045 mkdir conftest.dir
3046 # Copy depcomp to subdir because otherwise we won't find it if we're
3047 # using a relative directory.
3048 cp "$am_depcomp" conftest.dir
3049 cd conftest.dir
3050
3051 am_cv_CXX_dependencies_compiler_type=none
3052 if test "$am_compiler_list" = ""; then
3053 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3054 fi
3055 for depmode in $am_compiler_list; do
3056 # We need to recreate these files for each test, as the compiler may
3057 # overwrite some of them when testing with obscure command lines.
3058 # This happens at least with the AIX C compiler.
3059 echo '#include "conftest.h"' > conftest.c
3060 echo 'int i;' > conftest.h
3061 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3062
3063 case $depmode in
3064 nosideeffect)
3065 # after this tag, mechanisms are not by side-effect, so they'll
3066 # only be used when explicitly requested
3067 if test "x$enable_dependency_tracking" = xyes; then
3068 continue
3069 else
3070 break
3071 fi
3072 ;;
3073 none) break ;;
3074 esac
3075 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3076 # mode. It turns out that the SunPro C++ compiler does not properly
3077 # handle `-M -o', and we need to detect this.
3078 if depmode=$depmode \
3079 source=conftest.c object=conftest.o \
3080 depfile=conftest.Po tmpdepfile=conftest.TPo \
3081 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3082 grep conftest.h conftest.Po > /dev/null 2>&1 &&
3083 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3084 am_cv_CXX_dependencies_compiler_type=$depmode
3085 break
3086 fi
3087 done
3088
3089 cd ..
3090 rm -rf conftest.dir
3091 else
3092 am_cv_CXX_dependencies_compiler_type=none
3093 fi
3094
3095 fi
3096 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3097 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3098 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3099
3100
3101 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3102 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3103 LN_S=$as_ln_s
3104 if test "$LN_S" = "ln -s"; then
3105 { echo "$as_me:$LINENO: result: yes" >&5
3106 echo "${ECHO_T}yes" >&6; }
3107 else
3108 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3109 echo "${ECHO_T}no, using $LN_S" >&6; }
3110 fi
3111
3112 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3113 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3114 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3115 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3116 echo $ECHO_N "(cached) $ECHO_C" >&6
3117 else
3118 cat >conftest.make <<\_ACEOF
3119 SHELL = /bin/sh
3120 all:
3121 @echo '@@@%%%=$(MAKE)=@@@%%%'
3122 _ACEOF
3123 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3124 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3125 *@@@%%%=?*=@@@%%%*)
3126 eval ac_cv_prog_make_${ac_make}_set=yes;;
3127 *)
3128 eval ac_cv_prog_make_${ac_make}_set=no;;
3129 esac
3130 rm -f conftest.make
3131 fi
3132 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3133 { echo "$as_me:$LINENO: result: yes" >&5
3134 echo "${ECHO_T}yes" >&6; }
3135 SET_MAKE=
3136 else
3137 { echo "$as_me:$LINENO: result: no" >&5
3138 echo "${ECHO_T}no" >&6; }
3139 SET_MAKE="MAKE=${MAKE-make}"
3140 fi
3141
3142 ac_ext=c
3143 ac_cpp='$CPP $CPPFLAGS'
3144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3147 if test -n "$ac_tool_prefix"; then
3148 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3149 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3152 if test "${ac_cv_prog_CC+set}" = set; then
3153 echo $ECHO_N "(cached) $ECHO_C" >&6
3154 else
3155 if test -n "$CC"; then
3156 ac_cv_prog_CC="$CC" # Let the user override the test.
3157 else
3158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3159 for as_dir in $PATH
3160 do
3161 IFS=$as_save_IFS
3162 test -z "$as_dir" && as_dir=.
3163 for ac_exec_ext in '' $ac_executable_extensions; do
3164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3165 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3167 break 2
3168 fi
3169 done
3170 done
3171 IFS=$as_save_IFS
3172
3173 fi
3174 fi
3175 CC=$ac_cv_prog_CC
3176 if test -n "$CC"; then
3177 { echo "$as_me:$LINENO: result: $CC" >&5
3178 echo "${ECHO_T}$CC" >&6; }
3179 else
3180 { echo "$as_me:$LINENO: result: no" >&5
3181 echo "${ECHO_T}no" >&6; }
3182 fi
3183
3184
3185 fi
3186 if test -z "$ac_cv_prog_CC"; then
3187 ac_ct_CC=$CC
3188 # Extract the first word of "gcc", so it can be a program name with args.
3189 set dummy gcc; ac_word=$2
3190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3192 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3193 echo $ECHO_N "(cached) $ECHO_C" >&6
3194 else
3195 if test -n "$ac_ct_CC"; then
3196 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3197 else
3198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199 for as_dir in $PATH
3200 do
3201 IFS=$as_save_IFS
3202 test -z "$as_dir" && as_dir=.
3203 for ac_exec_ext in '' $ac_executable_extensions; do
3204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3205 ac_cv_prog_ac_ct_CC="gcc"
3206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3207 break 2
3208 fi
3209 done
3210 done
3211 IFS=$as_save_IFS
3212
3213 fi
3214 fi
3215 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3216 if test -n "$ac_ct_CC"; then
3217 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3218 echo "${ECHO_T}$ac_ct_CC" >&6; }
3219 else
3220 { echo "$as_me:$LINENO: result: no" >&5
3221 echo "${ECHO_T}no" >&6; }
3222 fi
3223
3224 if test "x$ac_ct_CC" = x; then
3225 CC=""
3226 else
3227 case $cross_compiling:$ac_tool_warned in
3228 yes:)
3229 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3230 whose name does not start with the host triplet. If you think this
3231 configuration is useful to you, please write to [email protected]." >&5
3232 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3233 whose name does not start with the host triplet. If you think this
3234 configuration is useful to you, please write to [email protected]." >&2;}
3235 ac_tool_warned=yes ;;
3236 esac
3237 CC=$ac_ct_CC
3238 fi
3239 else
3240 CC="$ac_cv_prog_CC"
3241 fi
3242
3243 if test -z "$CC"; then
3244 if test -n "$ac_tool_prefix"; then
3245 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3246 set dummy ${ac_tool_prefix}cc; ac_word=$2
3247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3249 if test "${ac_cv_prog_CC+set}" = set; then
3250 echo $ECHO_N "(cached) $ECHO_C" >&6
3251 else
3252 if test -n "$CC"; then
3253 ac_cv_prog_CC="$CC" # Let the user override the test.
3254 else
3255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256 for as_dir in $PATH
3257 do
3258 IFS=$as_save_IFS
3259 test -z "$as_dir" && as_dir=.
3260 for ac_exec_ext in '' $ac_executable_extensions; do
3261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3262 ac_cv_prog_CC="${ac_tool_prefix}cc"
3263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3264 break 2
3265 fi
3266 done
3267 done
3268 IFS=$as_save_IFS
3269
3270 fi
3271 fi
3272 CC=$ac_cv_prog_CC
3273 if test -n "$CC"; then
3274 { echo "$as_me:$LINENO: result: $CC" >&5
3275 echo "${ECHO_T}$CC" >&6; }
3276 else
3277 { echo "$as_me:$LINENO: result: no" >&5
3278 echo "${ECHO_T}no" >&6; }
3279 fi
3280
3281
3282 fi
3283 fi
3284 if test -z "$CC"; then
3285 # Extract the first word of "cc", so it can be a program name with args.
3286 set dummy cc; ac_word=$2
3287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3289 if test "${ac_cv_prog_CC+set}" = set; then
3290 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 else
3292 if test -n "$CC"; then
3293 ac_cv_prog_CC="$CC" # Let the user override the test.
3294 else
3295 ac_prog_rejected=no
3296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297 for as_dir in $PATH
3298 do
3299 IFS=$as_save_IFS
3300 test -z "$as_dir" && as_dir=.
3301 for ac_exec_ext in '' $ac_executable_extensions; do
3302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3303 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3304 ac_prog_rejected=yes
3305 continue
3306 fi
3307 ac_cv_prog_CC="cc"
3308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3309 break 2
3310 fi
3311 done
3312 done
3313 IFS=$as_save_IFS
3314
3315 if test $ac_prog_rejected = yes; then
3316 # We found a bogon in the path, so make sure we never use it.
3317 set dummy $ac_cv_prog_CC
3318 shift
3319 if test $# != 0; then
3320 # We chose a different compiler from the bogus one.
3321 # However, it has the same basename, so the bogon will be chosen
3322 # first if we set CC to just the basename; use the full file name.
3323 shift
3324 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3325 fi
3326 fi
3327 fi
3328 fi
3329 CC=$ac_cv_prog_CC
3330 if test -n "$CC"; then
3331 { echo "$as_me:$LINENO: result: $CC" >&5
3332 echo "${ECHO_T}$CC" >&6; }
3333 else
3334 { echo "$as_me:$LINENO: result: no" >&5
3335 echo "${ECHO_T}no" >&6; }
3336 fi
3337
3338
3339 fi
3340 if test -z "$CC"; then
3341 if test -n "$ac_tool_prefix"; then
3342 for ac_prog in cl.exe
3343 do
3344 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3345 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3348 if test "${ac_cv_prog_CC+set}" = set; then
3349 echo $ECHO_N "(cached) $ECHO_C" >&6
3350 else
3351 if test -n "$CC"; then
3352 ac_cv_prog_CC="$CC" # Let the user override the test.
3353 else
3354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3355 for as_dir in $PATH
3356 do
3357 IFS=$as_save_IFS
3358 test -z "$as_dir" && as_dir=.
3359 for ac_exec_ext in '' $ac_executable_extensions; do
3360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3361 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3363 break 2
3364 fi
3365 done
3366 done
3367 IFS=$as_save_IFS
3368
3369 fi
3370 fi
3371 CC=$ac_cv_prog_CC
3372 if test -n "$CC"; then
3373 { echo "$as_me:$LINENO: result: $CC" >&5
3374 echo "${ECHO_T}$CC" >&6; }
3375 else
3376 { echo "$as_me:$LINENO: result: no" >&5
3377 echo "${ECHO_T}no" >&6; }
3378 fi
3379
3380
3381 test -n "$CC" && break
3382 done
3383 fi
3384 if test -z "$CC"; then
3385 ac_ct_CC=$CC
3386 for ac_prog in cl.exe
3387 do
3388 # Extract the first word of "$ac_prog", so it can be a program name with args.
3389 set dummy $ac_prog; ac_word=$2
3390 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3392 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3393 echo $ECHO_N "(cached) $ECHO_C" >&6
3394 else
3395 if test -n "$ac_ct_CC"; then
3396 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3397 else
3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 for as_dir in $PATH
3400 do
3401 IFS=$as_save_IFS
3402 test -z "$as_dir" && as_dir=.
3403 for ac_exec_ext in '' $ac_executable_extensions; do
3404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3405 ac_cv_prog_ac_ct_CC="$ac_prog"
3406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3407 break 2
3408 fi
3409 done
3410 done
3411 IFS=$as_save_IFS
3412
3413 fi
3414 fi
3415 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3416 if test -n "$ac_ct_CC"; then
3417 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3418 echo "${ECHO_T}$ac_ct_CC" >&6; }
3419 else
3420 { echo "$as_me:$LINENO: result: no" >&5
3421 echo "${ECHO_T}no" >&6; }
3422 fi
3423
3424
3425 test -n "$ac_ct_CC" && break
3426 done
3427
3428 if test "x$ac_ct_CC" = x; then
3429 CC=""
3430 else
3431 case $cross_compiling:$ac_tool_warned in
3432 yes:)
3433 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3434 whose name does not start with the host triplet. If you think this
3435 configuration is useful to you, please write to [email protected]." >&5
3436 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3437 whose name does not start with the host triplet. If you think this
3438 configuration is useful to you, please write to [email protected]." >&2;}
3439 ac_tool_warned=yes ;;
3440 esac
3441 CC=$ac_ct_CC
3442 fi
3443 fi
3444
3445 fi
3446
3447
3448 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3449 See \`config.log' for more details." >&5
3450 echo "$as_me: error: no acceptable C compiler found in \$PATH
3451 See \`config.log' for more details." >&2;}
3452 { (exit 1); exit 1; }; }
3453
3454 # Provide some information about the compiler.
3455 echo "$as_me:$LINENO: checking for C compiler version" >&5
3456 ac_compiler=`set X $ac_compile; echo $2`
3457 { (ac_try="$ac_compiler --version >&5"
3458 case "(($ac_try" in
3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460 *) ac_try_echo=$ac_try;;
3461 esac
3462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3463 (eval "$ac_compiler --version >&5") 2>&5
3464 ac_status=$?
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); }
3467 { (ac_try="$ac_compiler -v >&5"
3468 case "(($ac_try" in
3469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470 *) ac_try_echo=$ac_try;;
3471 esac
3472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3473 (eval "$ac_compiler -v >&5") 2>&5
3474 ac_status=$?
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); }
3477 { (ac_try="$ac_compiler -V >&5"
3478 case "(($ac_try" in
3479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480 *) ac_try_echo=$ac_try;;
3481 esac
3482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3483 (eval "$ac_compiler -V >&5") 2>&5
3484 ac_status=$?
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); }
3487
3488 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3489 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3490 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3491 echo $ECHO_N "(cached) $ECHO_C" >&6
3492 else
3493 cat >conftest.$ac_ext <<_ACEOF
3494 /* confdefs.h. */
3495 _ACEOF
3496 cat confdefs.h >>conftest.$ac_ext
3497 cat >>conftest.$ac_ext <<_ACEOF
3498 /* end confdefs.h. */
3499
3500 int
3501 main ()
3502 {
3503 #ifndef __GNUC__
3504 choke me
3505 #endif
3506
3507 ;
3508 return 0;
3509 }
3510 _ACEOF
3511 rm -f conftest.$ac_objext
3512 if { (ac_try="$ac_compile"
3513 case "(($ac_try" in
3514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515 *) ac_try_echo=$ac_try;;
3516 esac
3517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3518 (eval "$ac_compile") 2>conftest.er1
3519 ac_status=$?
3520 grep -v '^ *+' conftest.er1 >conftest.err
3521 rm -f conftest.er1
3522 cat conftest.err >&5
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); } && {
3525 test -z "$ac_c_werror_flag" ||
3526 test ! -s conftest.err
3527 } && test -s conftest.$ac_objext; then
3528 ac_compiler_gnu=yes
3529 else
3530 echo "$as_me: failed program was:" >&5
3531 sed 's/^/| /' conftest.$ac_ext >&5
3532
3533 ac_compiler_gnu=no
3534 fi
3535
3536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3537 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3538
3539 fi
3540 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3541 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3542 GCC=`test $ac_compiler_gnu = yes && echo yes`
3543 ac_test_CFLAGS=${CFLAGS+set}
3544 ac_save_CFLAGS=$CFLAGS
3545 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3546 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3547 if test "${ac_cv_prog_cc_g+set}" = set; then
3548 echo $ECHO_N "(cached) $ECHO_C" >&6
3549 else
3550 ac_save_c_werror_flag=$ac_c_werror_flag
3551 ac_c_werror_flag=yes
3552 ac_cv_prog_cc_g=no
3553 CFLAGS="-g"
3554 cat >conftest.$ac_ext <<_ACEOF
3555 /* confdefs.h. */
3556 _ACEOF
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h. */
3560
3561 int
3562 main ()
3563 {
3564
3565 ;
3566 return 0;
3567 }
3568 _ACEOF
3569 rm -f conftest.$ac_objext
3570 if { (ac_try="$ac_compile"
3571 case "(($ac_try" in
3572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573 *) ac_try_echo=$ac_try;;
3574 esac
3575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3576 (eval "$ac_compile") 2>conftest.er1
3577 ac_status=$?
3578 grep -v '^ *+' conftest.er1 >conftest.err
3579 rm -f conftest.er1
3580 cat conftest.err >&5
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); } && {
3583 test -z "$ac_c_werror_flag" ||
3584 test ! -s conftest.err
3585 } && test -s conftest.$ac_objext; then
3586 ac_cv_prog_cc_g=yes
3587 else
3588 echo "$as_me: failed program was:" >&5
3589 sed 's/^/| /' conftest.$ac_ext >&5
3590
3591 CFLAGS=""
3592 cat >conftest.$ac_ext <<_ACEOF
3593 /* confdefs.h. */
3594 _ACEOF
3595 cat confdefs.h >>conftest.$ac_ext
3596 cat >>conftest.$ac_ext <<_ACEOF
3597 /* end confdefs.h. */
3598
3599 int
3600 main ()
3601 {
3602
3603 ;
3604 return 0;
3605 }
3606 _ACEOF
3607 rm -f conftest.$ac_objext
3608 if { (ac_try="$ac_compile"
3609 case "(($ac_try" in
3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3612 esac
3613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3614 (eval "$ac_compile") 2>conftest.er1
3615 ac_status=$?
3616 grep -v '^ *+' conftest.er1 >conftest.err
3617 rm -f conftest.er1
3618 cat conftest.err >&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); } && {
3621 test -z "$ac_c_werror_flag" ||
3622 test ! -s conftest.err
3623 } && test -s conftest.$ac_objext; then
3624 :
3625 else
3626 echo "$as_me: failed program was:" >&5
3627 sed 's/^/| /' conftest.$ac_ext >&5
3628
3629 ac_c_werror_flag=$ac_save_c_werror_flag
3630 CFLAGS="-g"
3631 cat >conftest.$ac_ext <<_ACEOF
3632 /* confdefs.h. */
3633 _ACEOF
3634 cat confdefs.h >>conftest.$ac_ext
3635 cat >>conftest.$ac_ext <<_ACEOF
3636 /* end confdefs.h. */
3637
3638 int
3639 main ()
3640 {
3641
3642 ;
3643 return 0;
3644 }
3645 _ACEOF
3646 rm -f conftest.$ac_objext
3647 if { (ac_try="$ac_compile"
3648 case "(($ac_try" in
3649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3650 *) ac_try_echo=$ac_try;;
3651 esac
3652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3653 (eval "$ac_compile") 2>conftest.er1
3654 ac_status=$?
3655 grep -v '^ *+' conftest.er1 >conftest.err
3656 rm -f conftest.er1
3657 cat conftest.err >&5
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); } && {
3660 test -z "$ac_c_werror_flag" ||
3661 test ! -s conftest.err
3662 } && test -s conftest.$ac_objext; then
3663 ac_cv_prog_cc_g=yes
3664 else
3665 echo "$as_me: failed program was:" >&5
3666 sed 's/^/| /' conftest.$ac_ext >&5
3667
3668
3669 fi
3670
3671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3672 fi
3673
3674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3675 fi
3676
3677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3678 ac_c_werror_flag=$ac_save_c_werror_flag
3679 fi
3680 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3681 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3682 if test "$ac_test_CFLAGS" = set; then
3683 CFLAGS=$ac_save_CFLAGS
3684 elif test $ac_cv_prog_cc_g = yes; then
3685 if test "$GCC" = yes; then
3686 CFLAGS="-g -O2"
3687 else
3688 CFLAGS="-g"
3689 fi
3690 else
3691 if test "$GCC" = yes; then
3692 CFLAGS="-O2"
3693 else
3694 CFLAGS=
3695 fi
3696 fi
3697 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3698 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3699 if test "${ac_cv_prog_cc_c89+set}" = set; then
3700 echo $ECHO_N "(cached) $ECHO_C" >&6
3701 else
3702 ac_cv_prog_cc_c89=no
3703 ac_save_CC=$CC
3704 cat >conftest.$ac_ext <<_ACEOF
3705 /* confdefs.h. */
3706 _ACEOF
3707 cat confdefs.h >>conftest.$ac_ext
3708 cat >>conftest.$ac_ext <<_ACEOF
3709 /* end confdefs.h. */
3710 #include <stdarg.h>
3711 #include <stdio.h>
3712 #include <sys/types.h>
3713 #include <sys/stat.h>
3714 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3715 struct buf { int x; };
3716 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3717 static char *e (p, i)
3718 char **p;
3719 int i;
3720 {
3721 return p[i];
3722 }
3723 static char *f (char * (*g) (char **, int), char **p, ...)
3724 {
3725 char *s;
3726 va_list v;
3727 va_start (v,p);
3728 s = g (p, va_arg (v,int));
3729 va_end (v);
3730 return s;
3731 }
3732
3733 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3734 function prototypes and stuff, but not '\xHH' hex character constants.
3735 These don't provoke an error unfortunately, instead are silently treated
3736 as 'x'. The following induces an error, until -std is added to get
3737 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3738 array size at least. It's necessary to write '\x00'==0 to get something
3739 that's true only with -std. */
3740 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3741
3742 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3743 inside strings and character constants. */
3744 #define FOO(x) 'x'
3745 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3746
3747 int test (int i, double x);
3748 struct s1 {int (*f) (int a);};
3749 struct s2 {int (*f) (double a);};
3750 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3751 int argc;
3752 char **argv;
3753 int
3754 main ()
3755 {
3756 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3757 ;
3758 return 0;
3759 }
3760 _ACEOF
3761 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3762 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3763 do
3764 CC="$ac_save_CC $ac_arg"
3765 rm -f conftest.$ac_objext
3766 if { (ac_try="$ac_compile"
3767 case "(($ac_try" in
3768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3769 *) ac_try_echo=$ac_try;;
3770 esac
3771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3772 (eval "$ac_compile") 2>conftest.er1
3773 ac_status=$?
3774 grep -v '^ *+' conftest.er1 >conftest.err
3775 rm -f conftest.er1
3776 cat conftest.err >&5
3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); } && {
3779 test -z "$ac_c_werror_flag" ||
3780 test ! -s conftest.err
3781 } && test -s conftest.$ac_objext; then
3782 ac_cv_prog_cc_c89=$ac_arg
3783 else
3784 echo "$as_me: failed program was:" >&5
3785 sed 's/^/| /' conftest.$ac_ext >&5
3786
3787
3788 fi
3789
3790 rm -f core conftest.err conftest.$ac_objext
3791 test "x$ac_cv_prog_cc_c89" != "xno" && break
3792 done
3793 rm -f conftest.$ac_ext
3794 CC=$ac_save_CC
3795
3796 fi
3797 # AC_CACHE_VAL
3798 case "x$ac_cv_prog_cc_c89" in
3799 x)
3800 { echo "$as_me:$LINENO: result: none needed" >&5
3801 echo "${ECHO_T}none needed" >&6; } ;;
3802 xno)
3803 { echo "$as_me:$LINENO: result: unsupported" >&5
3804 echo "${ECHO_T}unsupported" >&6; } ;;
3805 *)
3806 CC="$CC $ac_cv_prog_cc_c89"
3807 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3808 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3809 esac
3810
3811
3812 ac_ext=cpp
3813 ac_cpp='$CXXCPP $CPPFLAGS'
3814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3815 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3816 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3817
3818 depcc="$CC" am_compiler_list=
3819
3820 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3821 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3822 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3824 else
3825 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3826 # We make a subdir and do the tests there. Otherwise we can end up
3827 # making bogus files that we don't know about and never remove. For
3828 # instance it was reported that on HP-UX the gcc test will end up
3829 # making a dummy file named `D' -- because `-MD' means `put the output
3830 # in D'.
3831 mkdir conftest.dir
3832 # Copy depcomp to subdir because otherwise we won't find it if we're
3833 # using a relative directory.
3834 cp "$am_depcomp" conftest.dir
3835 cd conftest.dir
3836
3837 am_cv_CC_dependencies_compiler_type=none
3838 if test "$am_compiler_list" = ""; then
3839 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3840 fi
3841 for depmode in $am_compiler_list; do
3842 # We need to recreate these files for each test, as the compiler may
3843 # overwrite some of them when testing with obscure command lines.
3844 # This happens at least with the AIX C compiler.
3845 echo '#include "conftest.h"' > conftest.c
3846 echo 'int i;' > conftest.h
3847 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3848
3849 case $depmode in
3850 nosideeffect)
3851 # after this tag, mechanisms are not by side-effect, so they'll
3852 # only be used when explicitly requested
3853 if test "x$enable_dependency_tracking" = xyes; then
3854 continue
3855 else
3856 break
3857 fi
3858 ;;
3859 none) break ;;
3860 esac
3861 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3862 # mode. It turns out that the SunPro C++ compiler does not properly
3863 # handle `-M -o', and we need to detect this.
3864 if depmode=$depmode \
3865 source=conftest.c object=conftest.o \
3866 depfile=conftest.Po tmpdepfile=conftest.TPo \
3867 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3868 grep conftest.h conftest.Po > /dev/null 2>&1 &&
3869 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3870 am_cv_CC_dependencies_compiler_type=$depmode
3871 break
3872 fi
3873 done
3874
3875 cd ..
3876 rm -rf conftest.dir
3877 else
3878 am_cv_CC_dependencies_compiler_type=none
3879 fi
3880
3881 fi
3882 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3883 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3884 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3885
3886
3887 ac_ext=c
3888 ac_cpp='$CPP $CPPFLAGS'
3889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3892 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3893 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3894 # On Suns, sometimes $CPP names a directory.
3895 if test -n "$CPP" && test -d "$CPP"; then
3896 CPP=
3897 fi
3898 if test -z "$CPP"; then
3899 if test "${ac_cv_prog_CPP+set}" = set; then
3900 echo $ECHO_N "(cached) $ECHO_C" >&6
3901 else
3902 # Double quotes because CPP needs to be expanded
3903 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3904 do
3905 ac_preproc_ok=false
3906 for ac_c_preproc_warn_flag in '' yes
3907 do
3908 # Use a header file that comes with gcc, so configuring glibc
3909 # with a fresh cross-compiler works.
3910 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3911 # <limits.h> exists even on freestanding compilers.
3912 # On the NeXT, cc -E runs the code through the compiler's parser,
3913 # not just through cpp. "Syntax error" is here to catch this case.
3914 cat >conftest.$ac_ext <<_ACEOF
3915 /* confdefs.h. */
3916 _ACEOF
3917 cat confdefs.h >>conftest.$ac_ext
3918 cat >>conftest.$ac_ext <<_ACEOF
3919 /* end confdefs.h. */
3920 #ifdef __STDC__
3921 # include <limits.h>
3922 #else
3923 # include <assert.h>
3924 #endif
3925 Syntax error
3926 _ACEOF
3927 if { (ac_try="$ac_cpp conftest.$ac_ext"
3928 case "(($ac_try" in
3929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3930 *) ac_try_echo=$ac_try;;
3931 esac
3932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3934 ac_status=$?
3935 grep -v '^ *+' conftest.er1 >conftest.err
3936 rm -f conftest.er1
3937 cat conftest.err >&5
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); } >/dev/null && {
3940 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3941 test ! -s conftest.err
3942 }; then
3943 :
3944 else
3945 echo "$as_me: failed program was:" >&5
3946 sed 's/^/| /' conftest.$ac_ext >&5
3947
3948 # Broken: fails on valid input.
3949 continue
3950 fi
3951
3952 rm -f conftest.err conftest.$ac_ext
3953
3954 # OK, works on sane cases. Now check whether nonexistent headers
3955 # can be detected and how.
3956 cat >conftest.$ac_ext <<_ACEOF
3957 /* confdefs.h. */
3958 _ACEOF
3959 cat confdefs.h >>conftest.$ac_ext
3960 cat >>conftest.$ac_ext <<_ACEOF
3961 /* end confdefs.h. */
3962 #include <ac_nonexistent.h>
3963 _ACEOF
3964 if { (ac_try="$ac_cpp conftest.$ac_ext"
3965 case "(($ac_try" in
3966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3967 *) ac_try_echo=$ac_try;;
3968 esac
3969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3970 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3971 ac_status=$?
3972 grep -v '^ *+' conftest.er1 >conftest.err
3973 rm -f conftest.er1
3974 cat conftest.err >&5
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); } >/dev/null && {
3977 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3978 test ! -s conftest.err
3979 }; then
3980 # Broken: success on invalid input.
3981 continue
3982 else
3983 echo "$as_me: failed program was:" >&5
3984 sed 's/^/| /' conftest.$ac_ext >&5
3985
3986 # Passes both tests.
3987 ac_preproc_ok=:
3988 break
3989 fi
3990
3991 rm -f conftest.err conftest.$ac_ext
3992
3993 done
3994 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3995 rm -f conftest.err conftest.$ac_ext
3996 if $ac_preproc_ok; then
3997 break
3998 fi
3999
4000 done
4001 ac_cv_prog_CPP=$CPP
4002
4003 fi
4004 CPP=$ac_cv_prog_CPP
4005 else
4006 ac_cv_prog_CPP=$CPP
4007 fi
4008 { echo "$as_me:$LINENO: result: $CPP" >&5
4009 echo "${ECHO_T}$CPP" >&6; }
4010 ac_preproc_ok=false
4011 for ac_c_preproc_warn_flag in '' yes
4012 do
4013 # Use a header file that comes with gcc, so configuring glibc
4014 # with a fresh cross-compiler works.
4015 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4016 # <limits.h> exists even on freestanding compilers.
4017 # On the NeXT, cc -E runs the code through the compiler's parser,
4018 # not just through cpp. "Syntax error" is here to catch this case.
4019 cat >conftest.$ac_ext <<_ACEOF
4020 /* confdefs.h. */
4021 _ACEOF
4022 cat confdefs.h >>conftest.$ac_ext
4023 cat >>conftest.$ac_ext <<_ACEOF
4024 /* end confdefs.h. */
4025 #ifdef __STDC__
4026 # include <limits.h>
4027 #else
4028 # include <assert.h>
4029 #endif
4030 Syntax error
4031 _ACEOF
4032 if { (ac_try="$ac_cpp conftest.$ac_ext"
4033 case "(($ac_try" in
4034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4035 *) ac_try_echo=$ac_try;;
4036 esac
4037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4039 ac_status=$?
4040 grep -v '^ *+' conftest.er1 >conftest.err
4041 rm -f conftest.er1
4042 cat conftest.err >&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); } >/dev/null && {
4045 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4046 test ! -s conftest.err
4047 }; then
4048 :
4049 else
4050 echo "$as_me: failed program was:" >&5
4051 sed 's/^/| /' conftest.$ac_ext >&5
4052
4053 # Broken: fails on valid input.
4054 continue
4055 fi
4056
4057 rm -f conftest.err conftest.$ac_ext
4058
4059 # OK, works on sane cases. Now check whether nonexistent headers
4060 # can be detected and how.
4061 cat >conftest.$ac_ext <<_ACEOF
4062 /* confdefs.h. */
4063 _ACEOF
4064 cat confdefs.h >>conftest.$ac_ext
4065 cat >>conftest.$ac_ext <<_ACEOF
4066 /* end confdefs.h. */
4067 #include <ac_nonexistent.h>
4068 _ACEOF
4069 if { (ac_try="$ac_cpp conftest.$ac_ext"
4070 case "(($ac_try" in
4071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4072 *) ac_try_echo=$ac_try;;
4073 esac
4074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4075 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4076 ac_status=$?
4077 grep -v '^ *+' conftest.er1 >conftest.err
4078 rm -f conftest.er1
4079 cat conftest.err >&5
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); } >/dev/null && {
4082 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4083 test ! -s conftest.err
4084 }; then
4085 # Broken: success on invalid input.
4086 continue
4087 else
4088 echo "$as_me: failed program was:" >&5
4089 sed 's/^/| /' conftest.$ac_ext >&5
4090
4091 # Passes both tests.
4092 ac_preproc_ok=:
4093 break
4094 fi
4095
4096 rm -f conftest.err conftest.$ac_ext
4097
4098 done
4099 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4100 rm -f conftest.err conftest.$ac_ext
4101 if $ac_preproc_ok; then
4102 :
4103 else
4104 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4105 See \`config.log' for more details." >&5
4106 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4107 See \`config.log' for more details." >&2;}
4108 { (exit 1); exit 1; }; }
4109 fi
4110
4111 ac_ext=cpp
4112 ac_cpp='$CXXCPP $CPPFLAGS'
4113 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4114 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4115 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4116
4117 # Check whether --enable-shared was given.
4118 if test "${enable_shared+set}" = set; then
4119 enableval=$enable_shared; p=${PACKAGE-default}
4120 case $enableval in
4121 yes) enable_shared=yes ;;
4122 no) enable_shared=no ;;
4123 *)
4124 enable_shared=no
4125 # Look at the argument we got. We use all the common list separators.
4126 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4127 for pkg in $enableval; do
4128 if test "X$pkg" = "X$p"; then
4129 enable_shared=yes
4130 fi
4131 done
4132 IFS="$ac_save_ifs"
4133 ;;
4134 esac
4135 else
4136 enable_shared=yes
4137 fi
4138
4139 # Check whether --enable-static was given.
4140 if test "${enable_static+set}" = set; then
4141 enableval=$enable_static; p=${PACKAGE-default}
4142 case $enableval in
4143 yes) enable_static=yes ;;
4144 no) enable_static=no ;;
4145 *)
4146 enable_static=no
4147 # Look at the argument we got. We use all the common list separators.
4148 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4149 for pkg in $enableval; do
4150 if test "X$pkg" = "X$p"; then
4151 enable_static=yes
4152 fi
4153 done
4154 IFS="$ac_save_ifs"
4155 ;;
4156 esac
4157 else
4158 enable_static=yes
4159 fi
4160
4161 # Check whether --enable-fast-install was given.
4162 if test "${enable_fast_install+set}" = set; then
4163 enableval=$enable_fast_install; p=${PACKAGE-default}
4164 case $enableval in
4165 yes) enable_fast_install=yes ;;
4166 no) enable_fast_install=no ;;
4167 *)
4168 enable_fast_install=no
4169 # Look at the argument we got. We use all the common list separators.
4170 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4171 for pkg in $enableval; do
4172 if test "X$pkg" = "X$p"; then
4173 enable_fast_install=yes
4174 fi
4175 done
4176 IFS="$ac_save_ifs"
4177 ;;
4178 esac
4179 else
4180 enable_fast_install=yes
4181 fi
4182
4183 # Make sure we can run config.sub.
4184 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4185 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4186 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4187 { (exit 1); exit 1; }; }
4188
4189 { echo "$as_me:$LINENO: checking build system type" >&5
4190 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4191 if test "${ac_cv_build+set}" = set; then
4192 echo $ECHO_N "(cached) $ECHO_C" >&6
4193 else
4194 ac_build_alias=$build_alias
4195 test "x$ac_build_alias" = x &&
4196 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4197 test "x$ac_build_alias" = x &&
4198 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4199 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4200 { (exit 1); exit 1; }; }
4201 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4202 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4203 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4204 { (exit 1); exit 1; }; }
4205
4206 fi
4207 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4208 echo "${ECHO_T}$ac_cv_build" >&6; }
4209 case $ac_cv_build in
4210 *-*-*) ;;
4211 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4212 echo "$as_me: error: invalid value of canonical build" >&2;}
4213 { (exit 1); exit 1; }; };;
4214 esac
4215 build=$ac_cv_build
4216 ac_save_IFS=$IFS; IFS='-'
4217 set x $ac_cv_build
4218 shift
4219 build_cpu=$1
4220 build_vendor=$2
4221 shift; shift
4222 # Remember, the first character of IFS is used to create $*,
4223 # except with old shells:
4224 build_os=$*
4225 IFS=$ac_save_IFS
4226 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4227
4228
4229 { echo "$as_me:$LINENO: checking host system type" >&5
4230 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4231 if test "${ac_cv_host+set}" = set; then
4232 echo $ECHO_N "(cached) $ECHO_C" >&6
4233 else
4234 if test "x$host_alias" = x; then
4235 ac_cv_host=$ac_cv_build
4236 else
4237 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4238 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4239 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4240 { (exit 1); exit 1; }; }
4241 fi
4242
4243 fi
4244 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4245 echo "${ECHO_T}$ac_cv_host" >&6; }
4246 case $ac_cv_host in
4247 *-*-*) ;;
4248 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4249 echo "$as_me: error: invalid value of canonical host" >&2;}
4250 { (exit 1); exit 1; }; };;
4251 esac
4252 host=$ac_cv_host
4253 ac_save_IFS=$IFS; IFS='-'
4254 set x $ac_cv_host
4255 shift
4256 host_cpu=$1
4257 host_vendor=$2
4258 shift; shift
4259 # Remember, the first character of IFS is used to create $*,
4260 # except with old shells:
4261 host_os=$*
4262 IFS=$ac_save_IFS
4263 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4264
4265
4266 # Find the correct PATH separator. Usually this is `:', but
4267 # DJGPP uses `;' like DOS.
4268 if test "X${PATH_SEPARATOR+set}" != Xset; then
4269 UNAME=${UNAME-`uname 2>/dev/null`}
4270 case X$UNAME in
4271 *-DOS) lt_cv_sys_path_separator=';' ;;
4272 *) lt_cv_sys_path_separator=':' ;;
4273 esac
4274 PATH_SEPARATOR=$lt_cv_sys_path_separator
4275 fi
4276
4277
4278 # Check whether --with-gnu-ld was given.
4279 if test "${with_gnu_ld+set}" = set; then
4280 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4281 else
4282 with_gnu_ld=no
4283 fi
4284
4285 ac_prog=ld
4286 if test "$GCC" = yes; then
4287 # Check if gcc -print-prog-name=ld gives a path.
4288 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4289 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
4290 case $host in
4291 *-*-mingw*)
4292 # gcc leaves a trailing carriage return which upsets mingw
4293 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4294 *)
4295 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4296 esac
4297 case $ac_prog in
4298 # Accept absolute paths.
4299 [\\/]* | [A-Za-z]:[\\/]*)
4300 re_direlt='/[^/][^/]*/\.\./'
4301 # Canonicalize the path of ld
4302 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4303 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4304 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4305 done
4306 test -z "$LD" && LD="$ac_prog"
4307 ;;
4308 "")
4309 # If it fails, then pretend we aren't using GCC.
4310 ac_prog=ld
4311 ;;
4312 *)
4313 # If it is relative, then search for the first ld in PATH.
4314 with_gnu_ld=unknown
4315 ;;
4316 esac
4317 elif test "$with_gnu_ld" = yes; then
4318 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4319 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4320 else
4321 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4322 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4323 fi
4324 if test "${lt_cv_path_LD+set}" = set; then
4325 echo $ECHO_N "(cached) $ECHO_C" >&6
4326 else
4327 if test -z "$LD"; then
4328 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4329 for ac_dir in $PATH; do
4330 test -z "$ac_dir" && ac_dir=.
4331 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4332 lt_cv_path_LD="$ac_dir/$ac_prog"
4333 # Check to see if the program is GNU ld. I'd rather use --version,
4334 # but apparently some GNU ld's only accept -v.
4335 # Break only if it was the GNU/non-GNU ld that we prefer.
4336 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4337 test "$with_gnu_ld" != no && break
4338 else
4339 test "$with_gnu_ld" != yes && break
4340 fi
4341 fi
4342 done
4343 IFS="$ac_save_ifs"
4344 else
4345 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4346 fi
4347 fi
4348
4349 LD="$lt_cv_path_LD"
4350 if test -n "$LD"; then
4351 { echo "$as_me:$LINENO: result: $LD" >&5
4352 echo "${ECHO_T}$LD" >&6; }
4353 else
4354 { echo "$as_me:$LINENO: result: no" >&5
4355 echo "${ECHO_T}no" >&6; }
4356 fi
4357 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4358 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4359 { (exit 1); exit 1; }; }
4360 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4361 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4362 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4363 echo $ECHO_N "(cached) $ECHO_C" >&6
4364 else
4365 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4366 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4367 lt_cv_prog_gnu_ld=yes
4368 else
4369 lt_cv_prog_gnu_ld=no
4370 fi
4371 fi
4372 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4373 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4374 with_gnu_ld=$lt_cv_prog_gnu_ld
4375
4376
4377 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4378 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4379 if test "${lt_cv_ld_reload_flag+set}" = set; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
4381 else
4382 lt_cv_ld_reload_flag='-r'
4383 fi
4384 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4385 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4386 reload_flag=$lt_cv_ld_reload_flag
4387 test -n "$reload_flag" && reload_flag=" $reload_flag"
4388
4389 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4390 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4391 if test "${lt_cv_path_NM+set}" = set; then
4392 echo $ECHO_N "(cached) $ECHO_C" >&6
4393 else
4394 if test -n "$NM"; then
4395 # Let the user override the test.
4396 lt_cv_path_NM="$NM"
4397 else
4398 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4399 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4400 test -z "$ac_dir" && ac_dir=.
4401 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4402 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4403 # Check to see if the nm accepts a BSD-compat flag.
4404 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4405 # nm: unknown option "B" ignored
4406 # Tru64's nm complains that /dev/null is an invalid object file
4407 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4408 lt_cv_path_NM="$tmp_nm -B"
4409 break
4410 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4411 lt_cv_path_NM="$tmp_nm -p"
4412 break
4413 else
4414 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4415 continue # so that we can try to find one that supports BSD flags
4416 fi
4417 fi
4418 done
4419 IFS="$ac_save_ifs"
4420 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4421 fi
4422 fi
4423
4424 NM="$lt_cv_path_NM"
4425 { echo "$as_me:$LINENO: result: $NM" >&5
4426 echo "${ECHO_T}$NM" >&6; }
4427
4428 { echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4429 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6; }
4430 if test "${lt_cv_deplibs_check_method+set}" = set; then
4431 echo $ECHO_N "(cached) $ECHO_C" >&6
4432 else
4433 lt_cv_file_magic_cmd='$MAGIC_CMD'
4434 lt_cv_file_magic_test_file=
4435 lt_cv_deplibs_check_method='unknown'
4436 # Need to set the preceding variable on all platforms that support
4437 # interlibrary dependencies.
4438 # 'none' -- dependencies not supported.
4439 # `unknown' -- same as none, but documents that we really don't know.
4440 # 'pass_all' -- all dependencies passed with no checks.
4441 # 'test_compile' -- check by making test program.
4442 # 'file_magic [[regex]]' -- check by looking for files in library path
4443 # which responds to the $file_magic_cmd with a given egrep regex.
4444 # If you have `file' or equivalent on your system and you're not sure
4445 # whether `pass_all' will *always* work, you probably want this one.
4446
4447 case $host_os in
4448 aix4* | aix5*)
4449 lt_cv_deplibs_check_method=pass_all
4450 ;;
4451
4452 beos*)
4453 lt_cv_deplibs_check_method=pass_all
4454 ;;
4455
4456 bsdi4*)
4457 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4458 lt_cv_file_magic_cmd='/usr/bin/file -L'
4459 lt_cv_file_magic_test_file=/shlib/libc.so
4460 ;;
4461
4462 cygwin* | mingw* | pw32*)
4463 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4464 lt_cv_file_magic_cmd='$OBJDUMP -f'
4465 ;;
4466
4467 darwin* | rhapsody*)
4468 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4469 lt_cv_file_magic_cmd='/usr/bin/file -L'
4470 case "$host_os" in
4471 rhapsody* | darwin1.[012])
4472 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
4473 ;;
4474 *) # Darwin 1.3 on
4475 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4476 ;;
4477 esac
4478 ;;
4479
4480 freebsd*)
4481 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4482 case $host_cpu in
4483 i*86 )
4484 # Not sure whether the presence of OpenBSD here was a mistake.
4485 # Let's accept both of them until this is cleared up.
4486 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4487 lt_cv_file_magic_cmd=/usr/bin/file
4488 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4489 ;;
4490 esac
4491 else
4492 lt_cv_deplibs_check_method=pass_all
4493 fi
4494 ;;
4495
4496 gnu*)
4497 lt_cv_deplibs_check_method=pass_all
4498 ;;
4499
4500 hpux10.20*|hpux11*)
4501 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4502 lt_cv_file_magic_cmd=/usr/bin/file
4503 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4504 ;;
4505
4506 irix5* | irix6*)
4507 case $host_os in
4508 irix5*)
4509 # this will be overridden with pass_all, but let us keep it just in case
4510 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4511 ;;
4512 *)
4513 case $LD in
4514 *-32|*"-32 ") libmagic=32-bit;;
4515 *-n32|*"-n32 ") libmagic=N32;;
4516 *-64|*"-64 ") libmagic=64-bit;;
4517 *) libmagic=never-match;;
4518 esac
4519 # this will be overridden with pass_all, but let us keep it just in case
4520 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4521 ;;
4522 esac
4523 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4524 lt_cv_deplibs_check_method=pass_all
4525 ;;
4526
4527 # This must be Linux ELF.
4528 linux-gnu*)
4529 case $host_cpu in
4530 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | s390* )
4531 lt_cv_deplibs_check_method=pass_all ;;
4532 *)
4533 # glibc up to 2.1.1 does not perform some relocations on ARM
4534 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4535 esac
4536 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4537 ;;
4538
4539 netbsd*)
4540 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4541 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4542 else
4543 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4544 fi
4545 ;;
4546
4547 newos6*)
4548 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4549 lt_cv_file_magic_cmd=/usr/bin/file
4550 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4551 ;;
4552
4553 openbsd*)
4554 lt_cv_file_magic_cmd=/usr/bin/file
4555 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4556 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4557 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4558 else
4559 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4560 fi
4561 ;;
4562
4563 osf3* | osf4* | osf5*)
4564 # this will be overridden with pass_all, but let us keep it just in case
4565 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4566 lt_cv_file_magic_test_file=/shlib/libc.so
4567 lt_cv_deplibs_check_method=pass_all
4568 ;;
4569
4570 sco3.2v5*)
4571 lt_cv_deplibs_check_method=pass_all
4572 ;;
4573
4574 solaris*)
4575 lt_cv_deplibs_check_method=pass_all
4576 lt_cv_file_magic_test_file=/lib/libc.so
4577 ;;
4578
4579 sysv5uw[78]* | sysv4*uw2*)
4580 lt_cv_deplibs_check_method=pass_all
4581 ;;
4582
4583 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4584 case $host_vendor in
4585 motorola)
4586 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]'
4587 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4588 ;;
4589 ncr)
4590 lt_cv_deplibs_check_method=pass_all
4591 ;;
4592 sequent)
4593 lt_cv_file_magic_cmd='/bin/file'
4594 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4595 ;;
4596 sni)
4597 lt_cv_file_magic_cmd='/bin/file'
4598 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4599 lt_cv_file_magic_test_file=/lib/libc.so
4600 ;;
4601 esac
4602 ;;
4603 esac
4604
4605 fi
4606 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4607 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4608 file_magic_cmd=$lt_cv_file_magic_cmd
4609 deplibs_check_method=$lt_cv_deplibs_check_method
4610
4611
4612
4613
4614
4615
4616
4617
4618 # Check for command to grab the raw symbol name followed by C symbol from nm.
4619 { echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4620 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6; }
4621 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4623 else
4624
4625 # These are sane defaults that work on at least a few old systems.
4626 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4627
4628 # Character class describing NM global symbol codes.
4629 symcode='[BCDEGRST]'
4630
4631 # Regexp to match symbols that can be accessed directly from C.
4632 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4633
4634 # Transform the above into a raw symbol and a C symbol.
4635 symxfrm='\1 \2\3 \3'
4636
4637 # Transform an extracted symbol line into a proper C declaration
4638 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4639
4640 # Transform an extracted symbol line into symbol name and symbol address
4641 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4642
4643 # Define system-specific variables.
4644 case $host_os in
4645 aix*)
4646 symcode='[BCDT]'
4647 ;;
4648 cygwin* | mingw* | pw32*)
4649 symcode='[ABCDGISTW]'
4650 ;;
4651 hpux*) # Its linker distinguishes data from code symbols
4652 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4653 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4654 ;;
4655 irix*)
4656 symcode='[BCDEGRST]'
4657 ;;
4658 solaris* | sysv5*)
4659 symcode='[BDT]'
4660 ;;
4661 sysv4)
4662 symcode='[DFNSTU]'
4663 ;;
4664 esac
4665
4666 # Handle CRLF in mingw tool chain
4667 opt_cr=
4668 case $host_os in
4669 mingw*)
4670 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4671 ;;
4672 esac
4673
4674 # If we're using GNU nm, then use its standard symbol codes.
4675 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4676 symcode='[ABCDGISTW]'
4677 fi
4678
4679 # Try without a prefix undercore, then with it.
4680 for ac_symprfx in "" "_"; do
4681
4682 # Write the raw and C identifiers.
4683 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4684
4685 # Check to see that the pipe works correctly.
4686 pipe_works=no
4687 rm -f conftest*
4688 cat > conftest.$ac_ext <<EOF
4689 #ifdef __cplusplus
4690 extern "C" {
4691 #endif
4692 char nm_test_var;
4693 void nm_test_func(){}
4694 #ifdef __cplusplus
4695 }
4696 #endif
4697 int main(){nm_test_var='a';nm_test_func();return(0);}
4698 EOF
4699
4700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4701 (eval $ac_compile) 2>&5
4702 ac_status=$?
4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 (exit $ac_status); }; then
4705 # Now try to grab the symbols.
4706 nlist=conftest.nm
4707 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4708 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4709 ac_status=$?
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); } && test -s "$nlist"; then
4712 # Try sorting and uniquifying the output.
4713 if sort "$nlist" | uniq > "$nlist"T; then
4714 mv -f "$nlist"T "$nlist"
4715 else
4716 rm -f "$nlist"T
4717 fi
4718
4719 # Make sure that we snagged all the symbols we need.
4720 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4721 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4722 cat <<EOF > conftest.$ac_ext
4723 #ifdef __cplusplus
4724 extern "C" {
4725 #endif
4726
4727 EOF
4728 # Now generate the symbol file.
4729 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4730
4731 cat <<EOF >> conftest.$ac_ext
4732 #if defined (__STDC__) && __STDC__
4733 # define lt_ptr void *
4734 #else
4735 # define lt_ptr char *
4736 # define const
4737 #endif
4738
4739 /* The mapping between symbol names and symbols. */
4740 const struct {
4741 const char *name;
4742 lt_ptr address;
4743 }
4744 lt_preloaded_symbols[] =
4745 {
4746 EOF
4747 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4748 cat <<\EOF >> conftest.$ac_ext
4749 {0, (lt_ptr) 0}
4750 };
4751
4752 #ifdef __cplusplus
4753 }
4754 #endif
4755 EOF
4756 # Now try linking the two files.
4757 mv conftest.$ac_objext conftstm.$ac_objext
4758 save_LIBS="$LIBS"
4759 save_CFLAGS="$CFLAGS"
4760 LIBS="conftstm.$ac_objext"
4761 CFLAGS="$CFLAGS$no_builtin_flag"
4762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4763 (eval $ac_link) 2>&5
4764 ac_status=$?
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); } && test -s conftest; then
4767 pipe_works=yes
4768 fi
4769 LIBS="$save_LIBS"
4770 CFLAGS="$save_CFLAGS"
4771 else
4772 echo "cannot find nm_test_func in $nlist" >&5
4773 fi
4774 else
4775 echo "cannot find nm_test_var in $nlist" >&5
4776 fi
4777 else
4778 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4779 fi
4780 else
4781 echo "$progname: failed program was:" >&5
4782 cat conftest.$ac_ext >&5
4783 fi
4784 rm -f conftest* conftst*
4785
4786 # Do not use the global_symbol_pipe unless it works.
4787 if test "$pipe_works" = yes; then
4788 break
4789 else
4790 lt_cv_sys_global_symbol_pipe=
4791 fi
4792 done
4793
4794 fi
4795
4796 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4797 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4798 global_symbol_to_cdecl=
4799 global_symbol_to_c_name_address=
4800 else
4801 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4802 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4803 fi
4804 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4805 then
4806 { echo "$as_me:$LINENO: result: failed" >&5
4807 echo "${ECHO_T}failed" >&6; }
4808 else
4809 { echo "$as_me:$LINENO: result: ok" >&5
4810 echo "${ECHO_T}ok" >&6; }
4811 fi
4812
4813
4814 ac_ext=cpp
4815 ac_cpp='$CXXCPP $CPPFLAGS'
4816 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4817 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4818 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4819 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4820 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4821 if test -z "$CXXCPP"; then
4822 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4823 echo $ECHO_N "(cached) $ECHO_C" >&6
4824 else
4825 # Double quotes because CXXCPP needs to be expanded
4826 for CXXCPP in "$CXX -E" "/lib/cpp"
4827 do
4828 ac_preproc_ok=false
4829 for ac_cxx_preproc_warn_flag in '' yes
4830 do
4831 # Use a header file that comes with gcc, so configuring glibc
4832 # with a fresh cross-compiler works.
4833 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4834 # <limits.h> exists even on freestanding compilers.
4835 # On the NeXT, cc -E runs the code through the compiler's parser,
4836 # not just through cpp. "Syntax error" is here to catch this case.
4837 cat >conftest.$ac_ext <<_ACEOF
4838 /* confdefs.h. */
4839 _ACEOF
4840 cat confdefs.h >>conftest.$ac_ext
4841 cat >>conftest.$ac_ext <<_ACEOF
4842 /* end confdefs.h. */
4843 #ifdef __STDC__
4844 # include <limits.h>
4845 #else
4846 # include <assert.h>
4847 #endif
4848 Syntax error
4849 _ACEOF
4850 if { (ac_try="$ac_cpp conftest.$ac_ext"
4851 case "(($ac_try" in
4852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4853 *) ac_try_echo=$ac_try;;
4854 esac
4855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4857 ac_status=$?
4858 grep -v '^ *+' conftest.er1 >conftest.err
4859 rm -f conftest.er1
4860 cat conftest.err >&5
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); } >/dev/null && {
4863 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4864 test ! -s conftest.err
4865 }; then
4866 :
4867 else
4868 echo "$as_me: failed program was:" >&5
4869 sed 's/^/| /' conftest.$ac_ext >&5
4870
4871 # Broken: fails on valid input.
4872 continue
4873 fi
4874
4875 rm -f conftest.err conftest.$ac_ext
4876
4877 # OK, works on sane cases. Now check whether nonexistent headers
4878 # can be detected and how.
4879 cat >conftest.$ac_ext <<_ACEOF
4880 /* confdefs.h. */
4881 _ACEOF
4882 cat confdefs.h >>conftest.$ac_ext
4883 cat >>conftest.$ac_ext <<_ACEOF
4884 /* end confdefs.h. */
4885 #include <ac_nonexistent.h>
4886 _ACEOF
4887 if { (ac_try="$ac_cpp conftest.$ac_ext"
4888 case "(($ac_try" in
4889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4890 *) ac_try_echo=$ac_try;;
4891 esac
4892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4894 ac_status=$?
4895 grep -v '^ *+' conftest.er1 >conftest.err
4896 rm -f conftest.er1
4897 cat conftest.err >&5
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); } >/dev/null && {
4900 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4901 test ! -s conftest.err
4902 }; then
4903 # Broken: success on invalid input.
4904 continue
4905 else
4906 echo "$as_me: failed program was:" >&5
4907 sed 's/^/| /' conftest.$ac_ext >&5
4908
4909 # Passes both tests.
4910 ac_preproc_ok=:
4911 break
4912 fi
4913
4914 rm -f conftest.err conftest.$ac_ext
4915
4916 done
4917 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4918 rm -f conftest.err conftest.$ac_ext
4919 if $ac_preproc_ok; then
4920 break
4921 fi
4922
4923 done
4924 ac_cv_prog_CXXCPP=$CXXCPP
4925
4926 fi
4927 CXXCPP=$ac_cv_prog_CXXCPP
4928 else
4929 ac_cv_prog_CXXCPP=$CXXCPP
4930 fi
4931 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
4932 echo "${ECHO_T}$CXXCPP" >&6; }
4933 ac_preproc_ok=false
4934 for ac_cxx_preproc_warn_flag in '' yes
4935 do
4936 # Use a header file that comes with gcc, so configuring glibc
4937 # with a fresh cross-compiler works.
4938 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4939 # <limits.h> exists even on freestanding compilers.
4940 # On the NeXT, cc -E runs the code through the compiler's parser,
4941 # not just through cpp. "Syntax error" is here to catch this case.
4942 cat >conftest.$ac_ext <<_ACEOF
4943 /* confdefs.h. */
4944 _ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h. */
4948 #ifdef __STDC__
4949 # include <limits.h>
4950 #else
4951 # include <assert.h>
4952 #endif
4953 Syntax error
4954 _ACEOF
4955 if { (ac_try="$ac_cpp conftest.$ac_ext"
4956 case "(($ac_try" in
4957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4958 *) ac_try_echo=$ac_try;;
4959 esac
4960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4962 ac_status=$?
4963 grep -v '^ *+' conftest.er1 >conftest.err
4964 rm -f conftest.er1
4965 cat conftest.err >&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); } >/dev/null && {
4968 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4969 test ! -s conftest.err
4970 }; then
4971 :
4972 else
4973 echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4975
4976 # Broken: fails on valid input.
4977 continue
4978 fi
4979
4980 rm -f conftest.err conftest.$ac_ext
4981
4982 # OK, works on sane cases. Now check whether nonexistent headers
4983 # can be detected and how.
4984 cat >conftest.$ac_ext <<_ACEOF
4985 /* confdefs.h. */
4986 _ACEOF
4987 cat confdefs.h >>conftest.$ac_ext
4988 cat >>conftest.$ac_ext <<_ACEOF
4989 /* end confdefs.h. */
4990 #include <ac_nonexistent.h>
4991 _ACEOF
4992 if { (ac_try="$ac_cpp conftest.$ac_ext"
4993 case "(($ac_try" in
4994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4995 *) ac_try_echo=$ac_try;;
4996 esac
4997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4999 ac_status=$?
5000 grep -v '^ *+' conftest.er1 >conftest.err
5001 rm -f conftest.er1
5002 cat conftest.err >&5
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); } >/dev/null && {
5005 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5006 test ! -s conftest.err
5007 }; then
5008 # Broken: success on invalid input.
5009 continue
5010 else
5011 echo "$as_me: failed program was:" >&5
5012 sed 's/^/| /' conftest.$ac_ext >&5
5013
5014 # Passes both tests.
5015 ac_preproc_ok=:
5016 break
5017 fi
5018
5019 rm -f conftest.err conftest.$ac_ext
5020
5021 done
5022 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5023 rm -f conftest.err conftest.$ac_ext
5024 if $ac_preproc_ok; then
5025 :
5026 else
5027 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5028 See \`config.log' for more details." >&5
5029 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5030 See \`config.log' for more details." >&2;}
5031 { (exit 1); exit 1; }; }
5032 fi
5033
5034 ac_ext=cpp
5035 ac_cpp='$CXXCPP $CPPFLAGS'
5036 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5037 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5038 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5039
5040
5041 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5042 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5043 if test "${ac_cv_path_GREP+set}" = set; then
5044 echo $ECHO_N "(cached) $ECHO_C" >&6
5045 else
5046 # Extract the first word of "grep ggrep" to use in msg output
5047 if test -z "$GREP"; then
5048 set dummy grep ggrep; ac_prog_name=$2
5049 if test "${ac_cv_path_GREP+set}" = set; then
5050 echo $ECHO_N "(cached) $ECHO_C" >&6
5051 else
5052 ac_path_GREP_found=false
5053 # Loop through the user's path and test for each of PROGNAME-LIST
5054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5056 do
5057 IFS=$as_save_IFS
5058 test -z "$as_dir" && as_dir=.
5059 for ac_prog in grep ggrep; do
5060 for ac_exec_ext in '' $ac_executable_extensions; do
5061 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5062 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5063 # Check for GNU ac_path_GREP and select it if it is found.
5064 # Check for GNU $ac_path_GREP
5065 case `"$ac_path_GREP" --version 2>&1` in
5066 *GNU*)
5067 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5068 *)
5069 ac_count=0
5070 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5071 while :
5072 do
5073 cat "conftest.in" "conftest.in" >"conftest.tmp"
5074 mv "conftest.tmp" "conftest.in"
5075 cp "conftest.in" "conftest.nl"
5076 echo 'GREP' >> "conftest.nl"
5077 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5078 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5079 ac_count=`expr $ac_count + 1`
5080 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5081 # Best one so far, save it but keep looking for a better one
5082 ac_cv_path_GREP="$ac_path_GREP"
5083 ac_path_GREP_max=$ac_count
5084 fi
5085 # 10*(2^10) chars as input seems more than enough
5086 test $ac_count -gt 10 && break
5087 done
5088 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5089 esac
5090
5091
5092 $ac_path_GREP_found && break 3
5093 done
5094 done
5095
5096 done
5097 IFS=$as_save_IFS
5098
5099
5100 fi
5101
5102 GREP="$ac_cv_path_GREP"
5103 if test -z "$GREP"; then
5104 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5105 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5106 { (exit 1); exit 1; }; }
5107 fi
5108
5109 else
5110 ac_cv_path_GREP=$GREP
5111 fi
5112
5113
5114 fi
5115 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5116 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5117 GREP="$ac_cv_path_GREP"
5118
5119
5120 { echo "$as_me:$LINENO: checking for egrep" >&5
5121 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5122 if test "${ac_cv_path_EGREP+set}" = set; then
5123 echo $ECHO_N "(cached) $ECHO_C" >&6
5124 else
5125 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5126 then ac_cv_path_EGREP="$GREP -E"
5127 else
5128 # Extract the first word of "egrep" to use in msg output
5129 if test -z "$EGREP"; then
5130 set dummy egrep; ac_prog_name=$2
5131 if test "${ac_cv_path_EGREP+set}" = set; then
5132 echo $ECHO_N "(cached) $ECHO_C" >&6
5133 else
5134 ac_path_EGREP_found=false
5135 # Loop through the user's path and test for each of PROGNAME-LIST
5136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5138 do
5139 IFS=$as_save_IFS
5140 test -z "$as_dir" && as_dir=.
5141 for ac_prog in egrep; do
5142 for ac_exec_ext in '' $ac_executable_extensions; do
5143 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5144 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5145 # Check for GNU ac_path_EGREP and select it if it is found.
5146 # Check for GNU $ac_path_EGREP
5147 case `"$ac_path_EGREP" --version 2>&1` in
5148 *GNU*)
5149 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5150 *)
5151 ac_count=0
5152 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5153 while :
5154 do
5155 cat "conftest.in" "conftest.in" >"conftest.tmp"
5156 mv "conftest.tmp" "conftest.in"
5157 cp "conftest.in" "conftest.nl"
5158 echo 'EGREP' >> "conftest.nl"
5159 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5160 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5161 ac_count=`expr $ac_count + 1`
5162 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5163 # Best one so far, save it but keep looking for a better one
5164 ac_cv_path_EGREP="$ac_path_EGREP"
5165 ac_path_EGREP_max=$ac_count
5166 fi
5167 # 10*(2^10) chars as input seems more than enough
5168 test $ac_count -gt 10 && break
5169 done
5170 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5171 esac
5172
5173
5174 $ac_path_EGREP_found && break 3
5175 done
5176 done
5177
5178 done
5179 IFS=$as_save_IFS
5180
5181
5182 fi
5183
5184 EGREP="$ac_cv_path_EGREP"
5185 if test -z "$EGREP"; then
5186 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5187 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5188 { (exit 1); exit 1; }; }
5189 fi
5190
5191 else
5192 ac_cv_path_EGREP=$EGREP
5193 fi
5194
5195
5196 fi
5197 fi
5198 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5199 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5200 EGREP="$ac_cv_path_EGREP"
5201
5202
5203 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5204 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5205 if test "${ac_cv_header_stdc+set}" = set; then
5206 echo $ECHO_N "(cached) $ECHO_C" >&6
5207 else
5208 cat >conftest.$ac_ext <<_ACEOF
5209 /* confdefs.h. */
5210 _ACEOF
5211 cat confdefs.h >>conftest.$ac_ext
5212 cat >>conftest.$ac_ext <<_ACEOF
5213 /* end confdefs.h. */
5214 #include <stdlib.h>
5215 #include <stdarg.h>
5216 #include <string.h>
5217 #include <float.h>
5218
5219 int
5220 main ()
5221 {
5222
5223 ;
5224 return 0;
5225 }
5226 _ACEOF
5227 rm -f conftest.$ac_objext
5228 if { (ac_try="$ac_compile"
5229 case "(($ac_try" in
5230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5231 *) ac_try_echo=$ac_try;;
5232 esac
5233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5234 (eval "$ac_compile") 2>conftest.er1
5235 ac_status=$?
5236 grep -v '^ *+' conftest.er1 >conftest.err
5237 rm -f conftest.er1
5238 cat conftest.err >&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); } && {
5241 test -z "$ac_cxx_werror_flag" ||
5242 test ! -s conftest.err
5243 } && test -s conftest.$ac_objext; then
5244 ac_cv_header_stdc=yes
5245 else
5246 echo "$as_me: failed program was:" >&5
5247 sed 's/^/| /' conftest.$ac_ext >&5
5248
5249 ac_cv_header_stdc=no
5250 fi
5251
5252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5253
5254 if test $ac_cv_header_stdc = yes; then
5255 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5256 cat >conftest.$ac_ext <<_ACEOF
5257 /* confdefs.h. */
5258 _ACEOF
5259 cat confdefs.h >>conftest.$ac_ext
5260 cat >>conftest.$ac_ext <<_ACEOF
5261 /* end confdefs.h. */
5262 #include <string.h>
5263
5264 _ACEOF
5265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5266 $EGREP "memchr" >/dev/null 2>&1; then
5267 :
5268 else
5269 ac_cv_header_stdc=no
5270 fi
5271 rm -f conftest*
5272
5273 fi
5274
5275 if test $ac_cv_header_stdc = yes; then
5276 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5277 cat >conftest.$ac_ext <<_ACEOF
5278 /* confdefs.h. */
5279 _ACEOF
5280 cat confdefs.h >>conftest.$ac_ext
5281 cat >>conftest.$ac_ext <<_ACEOF
5282 /* end confdefs.h. */
5283 #include <stdlib.h>
5284
5285 _ACEOF
5286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5287 $EGREP "free" >/dev/null 2>&1; then
5288 :
5289 else
5290 ac_cv_header_stdc=no
5291 fi
5292 rm -f conftest*
5293
5294 fi
5295
5296 if test $ac_cv_header_stdc = yes; then
5297 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5298 if test "$cross_compiling" = yes; then
5299 :
5300 else
5301 cat >conftest.$ac_ext <<_ACEOF
5302 /* confdefs.h. */
5303 _ACEOF
5304 cat confdefs.h >>conftest.$ac_ext
5305 cat >>conftest.$ac_ext <<_ACEOF
5306 /* end confdefs.h. */
5307 #include <ctype.h>
5308 #include <stdlib.h>
5309 #if ((' ' & 0x0FF) == 0x020)
5310 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5311 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5312 #else
5313 # define ISLOWER(c) \
5314 (('a' <= (c) && (c) <= 'i') \
5315 || ('j' <= (c) && (c) <= 'r') \
5316 || ('s' <= (c) && (c) <= 'z'))
5317 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5318 #endif
5319
5320 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5321 int
5322 main ()
5323 {
5324 int i;
5325 for (i = 0; i < 256; i++)
5326 if (XOR (islower (i), ISLOWER (i))
5327 || toupper (i) != TOUPPER (i))
5328 return 2;
5329 return 0;
5330 }
5331 _ACEOF
5332 rm -f conftest$ac_exeext
5333 if { (ac_try="$ac_link"
5334 case "(($ac_try" in
5335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5336 *) ac_try_echo=$ac_try;;
5337 esac
5338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5339 (eval "$ac_link") 2>&5
5340 ac_status=$?
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5343 { (case "(($ac_try" in
5344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5345 *) ac_try_echo=$ac_try;;
5346 esac
5347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5348 (eval "$ac_try") 2>&5
5349 ac_status=$?
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); }; }; then
5352 :
5353 else
5354 echo "$as_me: program exited with status $ac_status" >&5
5355 echo "$as_me: failed program was:" >&5
5356 sed 's/^/| /' conftest.$ac_ext >&5
5357
5358 ( exit $ac_status )
5359 ac_cv_header_stdc=no
5360 fi
5361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5362 fi
5363
5364
5365 fi
5366 fi
5367 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5368 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5369 if test $ac_cv_header_stdc = yes; then
5370
5371 cat >>confdefs.h <<\_ACEOF
5372 #define STDC_HEADERS 1
5373 _ACEOF
5374
5375 fi
5376
5377 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5388 inttypes.h stdint.h unistd.h
5389 do
5390 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5391 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5393 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5394 echo $ECHO_N "(cached) $ECHO_C" >&6
5395 else
5396 cat >conftest.$ac_ext <<_ACEOF
5397 /* confdefs.h. */
5398 _ACEOF
5399 cat confdefs.h >>conftest.$ac_ext
5400 cat >>conftest.$ac_ext <<_ACEOF
5401 /* end confdefs.h. */
5402 $ac_includes_default
5403
5404 #include <$ac_header>
5405 _ACEOF
5406 rm -f conftest.$ac_objext
5407 if { (ac_try="$ac_compile"
5408 case "(($ac_try" in
5409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5410 *) ac_try_echo=$ac_try;;
5411 esac
5412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5413 (eval "$ac_compile") 2>conftest.er1
5414 ac_status=$?
5415 grep -v '^ *+' conftest.er1 >conftest.err
5416 rm -f conftest.er1
5417 cat conftest.err >&5
5418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419 (exit $ac_status); } && {
5420 test -z "$ac_cxx_werror_flag" ||
5421 test ! -s conftest.err
5422 } && test -s conftest.$ac_objext; then
5423 eval "$as_ac_Header=yes"
5424 else
5425 echo "$as_me: failed program was:" >&5
5426 sed 's/^/| /' conftest.$ac_ext >&5
5427
5428 eval "$as_ac_Header=no"
5429 fi
5430
5431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5432 fi
5433 ac_res=`eval echo '${'$as_ac_Header'}'`
5434 { echo "$as_me:$LINENO: result: $ac_res" >&5
5435 echo "${ECHO_T}$ac_res" >&6; }
5436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5437 cat >>confdefs.h <<_ACEOF
5438 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5439 _ACEOF
5440
5441 fi
5442
5443 done
5444
5445
5446
5447 for ac_header in dlfcn.h
5448 do
5449 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5451 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5454 echo $ECHO_N "(cached) $ECHO_C" >&6
5455 fi
5456 ac_res=`eval echo '${'$as_ac_Header'}'`
5457 { echo "$as_me:$LINENO: result: $ac_res" >&5
5458 echo "${ECHO_T}$ac_res" >&6; }
5459 else
5460 # Is the header compilable?
5461 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5463 cat >conftest.$ac_ext <<_ACEOF
5464 /* confdefs.h. */
5465 _ACEOF
5466 cat confdefs.h >>conftest.$ac_ext
5467 cat >>conftest.$ac_ext <<_ACEOF
5468 /* end confdefs.h. */
5469 $ac_includes_default
5470 #include <$ac_header>
5471 _ACEOF
5472 rm -f conftest.$ac_objext
5473 if { (ac_try="$ac_compile"
5474 case "(($ac_try" in
5475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5476 *) ac_try_echo=$ac_try;;
5477 esac
5478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5479 (eval "$ac_compile") 2>conftest.er1
5480 ac_status=$?
5481 grep -v '^ *+' conftest.er1 >conftest.err
5482 rm -f conftest.er1
5483 cat conftest.err >&5
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); } && {
5486 test -z "$ac_cxx_werror_flag" ||
5487 test ! -s conftest.err
5488 } && test -s conftest.$ac_objext; then
5489 ac_header_compiler=yes
5490 else
5491 echo "$as_me: failed program was:" >&5
5492 sed 's/^/| /' conftest.$ac_ext >&5
5493
5494 ac_header_compiler=no
5495 fi
5496
5497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5498 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5499 echo "${ECHO_T}$ac_header_compiler" >&6; }
5500
5501 # Is the header present?
5502 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5503 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5504 cat >conftest.$ac_ext <<_ACEOF
5505 /* confdefs.h. */
5506 _ACEOF
5507 cat confdefs.h >>conftest.$ac_ext
5508 cat >>conftest.$ac_ext <<_ACEOF
5509 /* end confdefs.h. */
5510 #include <$ac_header>
5511 _ACEOF
5512 if { (ac_try="$ac_cpp conftest.$ac_ext"
5513 case "(($ac_try" in
5514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5515 *) ac_try_echo=$ac_try;;
5516 esac
5517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5519 ac_status=$?
5520 grep -v '^ *+' conftest.er1 >conftest.err
5521 rm -f conftest.er1
5522 cat conftest.err >&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); } >/dev/null && {
5525 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5526 test ! -s conftest.err
5527 }; then
5528 ac_header_preproc=yes
5529 else
5530 echo "$as_me: failed program was:" >&5
5531 sed 's/^/| /' conftest.$ac_ext >&5
5532
5533 ac_header_preproc=no
5534 fi
5535
5536 rm -f conftest.err conftest.$ac_ext
5537 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5538 echo "${ECHO_T}$ac_header_preproc" >&6; }
5539
5540 # So? What about this header?
5541 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5542 yes:no: )
5543 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5544 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5546 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5547 ac_header_preproc=yes
5548 ;;
5549 no:yes:* )
5550 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5551 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5552 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5553 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5554 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5555 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5556 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5557 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5559 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5560 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5561 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5562 ( cat <<\_ASBOX
5563 ## ------------------------------------------------ ##
5564 ## Report this to [email protected] ##
5565 ## ------------------------------------------------ ##
5566 _ASBOX
5567 ) | sed "s/^/$as_me: WARNING: /" >&2
5568 ;;
5569 esac
5570 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5573 echo $ECHO_N "(cached) $ECHO_C" >&6
5574 else
5575 eval "$as_ac_Header=\$ac_header_preproc"
5576 fi
5577 ac_res=`eval echo '${'$as_ac_Header'}'`
5578 { echo "$as_me:$LINENO: result: $ac_res" >&5
5579 echo "${ECHO_T}$ac_res" >&6; }
5580
5581 fi
5582 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5583 cat >>confdefs.h <<_ACEOF
5584 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5585 _ACEOF
5586
5587 fi
5588
5589 done
5590
5591
5592
5593
5594
5595 # Only perform the check for file, if the check method requires it
5596 case $deplibs_check_method in
5597 file_magic*)
5598 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5599 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5600 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
5601 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5602 echo $ECHO_N "(cached) $ECHO_C" >&6
5603 else
5604 case $MAGIC_CMD in
5605 /*)
5606 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5607 ;;
5608 ?:/*)
5609 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5610 ;;
5611 *)
5612 ac_save_MAGIC_CMD="$MAGIC_CMD"
5613 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5614 ac_dummy="/usr/bin:$PATH"
5615 for ac_dir in $ac_dummy; do
5616 test -z "$ac_dir" && ac_dir=.
5617 if test -f $ac_dir/${ac_tool_prefix}file; then
5618 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5619 if test -n "$file_magic_test_file"; then
5620 case $deplibs_check_method in
5621 "file_magic "*)
5622 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5623 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5624 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5625 egrep "$file_magic_regex" > /dev/null; then
5626 :
5627 else
5628 cat <<EOF 1>&2
5629
5630 *** Warning: the command libtool uses to detect shared libraries,
5631 *** $file_magic_cmd, produces output that libtool cannot recognize.
5632 *** The result is that libtool may fail to recognize shared libraries
5633 *** as such. This will affect the creation of libtool libraries that
5634 *** depend on shared libraries, but programs linked with such libtool
5635 *** libraries will work regardless of this problem. Nevertheless, you
5636 *** may want to report the problem to your system manager and/or to
5637 *** [email protected]
5638
5639 EOF
5640 fi ;;
5641 esac
5642 fi
5643 break
5644 fi
5645 done
5646 IFS="$ac_save_ifs"
5647 MAGIC_CMD="$ac_save_MAGIC_CMD"
5648 ;;
5649 esac
5650 fi
5651
5652 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5653 if test -n "$MAGIC_CMD"; then
5654 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5655 echo "${ECHO_T}$MAGIC_CMD" >&6; }
5656 else
5657 { echo "$as_me:$LINENO: result: no" >&5
5658 echo "${ECHO_T}no" >&6; }
5659 fi
5660
5661 if test -z "$lt_cv_path_MAGIC_CMD"; then
5662 if test -n "$ac_tool_prefix"; then
5663 { echo "$as_me:$LINENO: checking for file" >&5
5664 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
5665 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5666 echo $ECHO_N "(cached) $ECHO_C" >&6
5667 else
5668 case $MAGIC_CMD in
5669 /*)
5670 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5671 ;;
5672 ?:/*)
5673 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5674 ;;
5675 *)
5676 ac_save_MAGIC_CMD="$MAGIC_CMD"
5677 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5678 ac_dummy="/usr/bin:$PATH"
5679 for ac_dir in $ac_dummy; do
5680 test -z "$ac_dir" && ac_dir=.
5681 if test -f $ac_dir/file; then
5682 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5683 if test -n "$file_magic_test_file"; then
5684 case $deplibs_check_method in
5685 "file_magic "*)
5686 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5687 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5688 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5689 egrep "$file_magic_regex" > /dev/null; then
5690 :
5691 else
5692 cat <<EOF 1>&2
5693
5694 *** Warning: the command libtool uses to detect shared libraries,
5695 *** $file_magic_cmd, produces output that libtool cannot recognize.
5696 *** The result is that libtool may fail to recognize shared libraries
5697 *** as such. This will affect the creation of libtool libraries that
5698 *** depend on shared libraries, but programs linked with such libtool
5699 *** libraries will work regardless of this problem. Nevertheless, you
5700 *** may want to report the problem to your system manager and/or to
5701 *** [email protected]
5702
5703 EOF
5704 fi ;;
5705 esac
5706 fi
5707 break
5708 fi
5709 done
5710 IFS="$ac_save_ifs"
5711 MAGIC_CMD="$ac_save_MAGIC_CMD"
5712 ;;
5713 esac
5714 fi
5715
5716 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5717 if test -n "$MAGIC_CMD"; then
5718 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5719 echo "${ECHO_T}$MAGIC_CMD" >&6; }
5720 else
5721 { echo "$as_me:$LINENO: result: no" >&5
5722 echo "${ECHO_T}no" >&6; }
5723 fi
5724
5725 else
5726 MAGIC_CMD=:
5727 fi
5728 fi
5729
5730 fi
5731 ;;
5732 esac
5733
5734 if test -n "$ac_tool_prefix"; then
5735 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5736 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5739 if test "${ac_cv_prog_RANLIB+set}" = set; then
5740 echo $ECHO_N "(cached) $ECHO_C" >&6
5741 else
5742 if test -n "$RANLIB"; then
5743 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5744 else
5745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5746 for as_dir in $PATH
5747 do
5748 IFS=$as_save_IFS
5749 test -z "$as_dir" && as_dir=.
5750 for ac_exec_ext in '' $ac_executable_extensions; do
5751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5752 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5754 break 2
5755 fi
5756 done
5757 done
5758 IFS=$as_save_IFS
5759
5760 fi
5761 fi
5762 RANLIB=$ac_cv_prog_RANLIB
5763 if test -n "$RANLIB"; then
5764 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5765 echo "${ECHO_T}$RANLIB" >&6; }
5766 else
5767 { echo "$as_me:$LINENO: result: no" >&5
5768 echo "${ECHO_T}no" >&6; }
5769 fi
5770
5771
5772 fi
5773 if test -z "$ac_cv_prog_RANLIB"; then
5774 ac_ct_RANLIB=$RANLIB
5775 # Extract the first word of "ranlib", so it can be a program name with args.
5776 set dummy ranlib; ac_word=$2
5777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5779 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5780 echo $ECHO_N "(cached) $ECHO_C" >&6
5781 else
5782 if test -n "$ac_ct_RANLIB"; then
5783 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5784 else
5785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5786 for as_dir in $PATH
5787 do
5788 IFS=$as_save_IFS
5789 test -z "$as_dir" && as_dir=.
5790 for ac_exec_ext in '' $ac_executable_extensions; do
5791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5792 ac_cv_prog_ac_ct_RANLIB="ranlib"
5793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5794 break 2
5795 fi
5796 done
5797 done
5798 IFS=$as_save_IFS
5799
5800 fi
5801 fi
5802 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5803 if test -n "$ac_ct_RANLIB"; then
5804 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5805 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5806 else
5807 { echo "$as_me:$LINENO: result: no" >&5
5808 echo "${ECHO_T}no" >&6; }
5809 fi
5810
5811 if test "x$ac_ct_RANLIB" = x; then
5812 RANLIB=":"
5813 else
5814 case $cross_compiling:$ac_tool_warned in
5815 yes:)
5816 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5817 whose name does not start with the host triplet. If you think this
5818 configuration is useful to you, please write to [email protected]." >&5
5819 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5820 whose name does not start with the host triplet. If you think this
5821 configuration is useful to you, please write to [email protected]." >&2;}
5822 ac_tool_warned=yes ;;
5823 esac
5824 RANLIB=$ac_ct_RANLIB
5825 fi
5826 else
5827 RANLIB="$ac_cv_prog_RANLIB"
5828 fi
5829
5830 if test -n "$ac_tool_prefix"; then
5831 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5832 set dummy ${ac_tool_prefix}strip; ac_word=$2
5833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5835 if test "${ac_cv_prog_STRIP+set}" = set; then
5836 echo $ECHO_N "(cached) $ECHO_C" >&6
5837 else
5838 if test -n "$STRIP"; then
5839 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5840 else
5841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5842 for as_dir in $PATH
5843 do
5844 IFS=$as_save_IFS
5845 test -z "$as_dir" && as_dir=.
5846 for ac_exec_ext in '' $ac_executable_extensions; do
5847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5848 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5850 break 2
5851 fi
5852 done
5853 done
5854 IFS=$as_save_IFS
5855
5856 fi
5857 fi
5858 STRIP=$ac_cv_prog_STRIP
5859 if test -n "$STRIP"; then
5860 { echo "$as_me:$LINENO: result: $STRIP" >&5
5861 echo "${ECHO_T}$STRIP" >&6; }
5862 else
5863 { echo "$as_me:$LINENO: result: no" >&5
5864 echo "${ECHO_T}no" >&6; }
5865 fi
5866
5867
5868 fi
5869 if test -z "$ac_cv_prog_STRIP"; then
5870 ac_ct_STRIP=$STRIP
5871 # Extract the first word of "strip", so it can be a program name with args.
5872 set dummy strip; ac_word=$2
5873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5875 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5876 echo $ECHO_N "(cached) $ECHO_C" >&6
5877 else
5878 if test -n "$ac_ct_STRIP"; then
5879 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5880 else
5881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882 for as_dir in $PATH
5883 do
5884 IFS=$as_save_IFS
5885 test -z "$as_dir" && as_dir=.
5886 for ac_exec_ext in '' $ac_executable_extensions; do
5887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5888 ac_cv_prog_ac_ct_STRIP="strip"
5889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5890 break 2
5891 fi
5892 done
5893 done
5894 IFS=$as_save_IFS
5895
5896 fi
5897 fi
5898 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5899 if test -n "$ac_ct_STRIP"; then
5900 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5901 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5902 else
5903 { echo "$as_me:$LINENO: result: no" >&5
5904 echo "${ECHO_T}no" >&6; }
5905 fi
5906
5907 if test "x$ac_ct_STRIP" = x; then
5908 STRIP=":"
5909 else
5910 case $cross_compiling:$ac_tool_warned in
5911 yes:)
5912 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5913 whose name does not start with the host triplet. If you think this
5914 configuration is useful to you, please write to [email protected]." >&5
5915 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5916 whose name does not start with the host triplet. If you think this
5917 configuration is useful to you, please write to [email protected]." >&2;}
5918 ac_tool_warned=yes ;;
5919 esac
5920 STRIP=$ac_ct_STRIP
5921 fi
5922 else
5923 STRIP="$ac_cv_prog_STRIP"
5924 fi
5925
5926
5927 enable_dlopen=no
5928 enable_win32_dll=no
5929
5930 # Check whether --enable-libtool-lock was given.
5931 if test "${enable_libtool_lock+set}" = set; then
5932 enableval=$enable_libtool_lock;
5933 fi
5934
5935 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5936
5937 # Some flags need to be propagated to the compiler or linker for good
5938 # libtool support.
5939 case $host in
5940 *-*-irix6*)
5941 # Find out which ABI we are using.
5942 echo '#line 5942 "configure"' > conftest.$ac_ext
5943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5944 (eval $ac_compile) 2>&5
5945 ac_status=$?
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); }; then
5948 case `/usr/bin/file conftest.$ac_objext` in
5949 *32-bit*)
5950 LD="${LD-ld} -32"
5951 ;;
5952 *N32*)
5953 LD="${LD-ld} -n32"
5954 ;;
5955 *64-bit*)
5956 LD="${LD-ld} -64"
5957 ;;
5958 esac
5959 fi
5960 rm -rf conftest*
5961 ;;
5962
5963 *-*-sco3.2v5*)
5964 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5965 SAVE_CFLAGS="$CFLAGS"
5966 CFLAGS="$CFLAGS -belf"
5967 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5968 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5969 if test "${lt_cv_cc_needs_belf+set}" = set; then
5970 echo $ECHO_N "(cached) $ECHO_C" >&6
5971 else
5972
5973 ac_ext=c
5974 ac_cpp='$CPP $CPPFLAGS'
5975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5978
5979 cat >conftest.$ac_ext <<_ACEOF
5980 /* confdefs.h. */
5981 _ACEOF
5982 cat confdefs.h >>conftest.$ac_ext
5983 cat >>conftest.$ac_ext <<_ACEOF
5984 /* end confdefs.h. */
5985
5986 int
5987 main ()
5988 {
5989
5990 ;
5991 return 0;
5992 }
5993 _ACEOF
5994 rm -f conftest.$ac_objext conftest$ac_exeext
5995 if { (ac_try="$ac_link"
5996 case "(($ac_try" in
5997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5998 *) ac_try_echo=$ac_try;;
5999 esac
6000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6001 (eval "$ac_link") 2>conftest.er1
6002 ac_status=$?
6003 grep -v '^ *+' conftest.er1 >conftest.err
6004 rm -f conftest.er1
6005 cat conftest.err >&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); } && {
6008 test -z "$ac_c_werror_flag" ||
6009 test ! -s conftest.err
6010 } && test -s conftest$ac_exeext &&
6011 $as_test_x conftest$ac_exeext; then
6012 lt_cv_cc_needs_belf=yes
6013 else
6014 echo "$as_me: failed program was:" >&5
6015 sed 's/^/| /' conftest.$ac_ext >&5
6016
6017 lt_cv_cc_needs_belf=no
6018 fi
6019
6020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6021 conftest$ac_exeext conftest.$ac_ext
6022 ac_ext=cpp
6023 ac_cpp='$CXXCPP $CPPFLAGS'
6024 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6025 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6026 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6027
6028 fi
6029 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6030 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6031 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6032 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6033 CFLAGS="$SAVE_CFLAGS"
6034 fi
6035 ;;
6036
6037
6038 esac
6039
6040 # Sed substitution that helps us do robust quoting. It backslashifies
6041 # metacharacters that are still active within double-quoted strings.
6042 Xsed='sed -e s/^X//'
6043 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6044
6045 # Same as above, but do not quote variable references.
6046 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6047
6048 # Sed substitution to delay expansion of an escaped shell variable in a
6049 # double_quote_subst'ed string.
6050 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6051
6052 # Constants:
6053 rm="rm -f"
6054
6055 # Global variables:
6056 default_ofile=libtool
6057 can_build_shared=yes
6058
6059 # All known linkers require a `.a' archive for static linking (except M$VC,
6060 # which needs '.lib').
6061 libext=a
6062 ltmain="$ac_aux_dir/ltmain.sh"
6063 ofile="$default_ofile"
6064 with_gnu_ld="$lt_cv_prog_gnu_ld"
6065 need_locks="$enable_libtool_lock"
6066
6067 old_CC="$CC"
6068 old_CFLAGS="$CFLAGS"
6069
6070 # Set sane defaults for various variables
6071 test -z "$AR" && AR=ar
6072 test -z "$AR_FLAGS" && AR_FLAGS=cru
6073 test -z "$AS" && AS=as
6074 test -z "$CC" && CC=cc
6075 test -z "$DLLTOOL" && DLLTOOL=dlltool
6076 test -z "$LD" && LD=ld
6077 test -z "$LN_S" && LN_S="ln -s"
6078 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6079 test -z "$NM" && NM=nm
6080 test -z "$OBJDUMP" && OBJDUMP=objdump
6081 test -z "$RANLIB" && RANLIB=:
6082 test -z "$STRIP" && STRIP=:
6083 test -z "$ac_objext" && ac_objext=o
6084
6085 if test x"$host" != x"$build"; then
6086 ac_tool_prefix=${host_alias}-
6087 else
6088 ac_tool_prefix=
6089 fi
6090
6091 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
6092 case $host_os in
6093 linux-gnu*) ;;
6094 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
6095 esac
6096
6097 case $host_os in
6098 aix3*)
6099 # AIX sometimes has problems with the GCC collect2 program. For some
6100 # reason, if we set the COLLECT_NAMES environment variable, the problems
6101 # vanish in a puff of smoke.
6102 if test "X${COLLECT_NAMES+set}" != Xset; then
6103 COLLECT_NAMES=
6104 export COLLECT_NAMES
6105 fi
6106 ;;
6107 esac
6108
6109 # Determine commands to create old-style static archives.
6110 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6111 old_postinstall_cmds='chmod 644 $oldlib'
6112 old_postuninstall_cmds=
6113
6114 if test -n "$RANLIB"; then
6115 case $host_os in
6116 openbsd*)
6117 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6118 ;;
6119 *)
6120 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6121 ;;
6122 esac
6123 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6124 fi
6125
6126 # Allow CC to be a program name with arguments.
6127 set dummy $CC
6128 compiler="$2"
6129
6130 { echo "$as_me:$LINENO: checking for objdir" >&5
6131 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6132 rm -f .libs 2>/dev/null
6133 mkdir .libs 2>/dev/null
6134 if test -d .libs; then
6135 objdir=.libs
6136 else
6137 # MS-DOS does not allow filenames that begin with a dot.
6138 objdir=_libs
6139 fi
6140 rmdir .libs 2>/dev/null
6141 { echo "$as_me:$LINENO: result: $objdir" >&5
6142 echo "${ECHO_T}$objdir" >&6; }
6143
6144
6145
6146 # Check whether --with-pic was given.
6147 if test "${with_pic+set}" = set; then
6148 withval=$with_pic; pic_mode="$withval"
6149 else
6150 pic_mode=default
6151 fi
6152
6153 test -z "$pic_mode" && pic_mode=default
6154
6155 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
6156 # in isolation, and that seeing it set (from the cache) indicates that
6157 # the associated values are set (in the cache) correctly too.
6158 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6159 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6160 if test "${lt_cv_prog_cc_pic+set}" = set; then
6161 echo $ECHO_N "(cached) $ECHO_C" >&6
6162 else
6163 lt_cv_prog_cc_pic=
6164 lt_cv_prog_cc_shlib=
6165 lt_cv_prog_cc_wl=
6166 lt_cv_prog_cc_static=
6167 lt_cv_prog_cc_no_builtin=
6168 lt_cv_prog_cc_can_build_shared=$can_build_shared
6169
6170 if test "$GCC" = yes; then
6171 lt_cv_prog_cc_wl='-Wl,'
6172 lt_cv_prog_cc_static='-static'
6173
6174 case $host_os in
6175 aix*)
6176 # Below there is a dirty hack to force normal static linking with -ldl
6177 # The problem is because libdl dynamically linked with both libc and
6178 # libC (AIX C++ library), which obviously doesn't included in libraries
6179 # list by gcc. This cause undefined symbols with -static flags.
6180 # This hack allows C programs to be linked with "-static -ldl", but
6181 # not sure about C++ programs.
6182 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
6183 ;;
6184 amigaos*)
6185 # FIXME: we need at least 68020 code to build shared libraries, but
6186 # adding the `-m68020' flag to GCC prevents building anything better,
6187 # like `-m68040'.
6188 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
6189 ;;
6190 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
6191 # PIC is the default for these OSes.
6192 ;;
6193 darwin* | rhapsody*)
6194 # PIC is the default on this platform
6195 # Common symbols not allowed in MH_DYLIB files
6196 lt_cv_prog_cc_pic='-fno-common'
6197 ;;
6198 cygwin* | mingw* | pw32* | os2*)
6199 # This hack is so that the source file can tell whether it is being
6200 # built for inclusion in a dll (and should export symbols for example).
6201 lt_cv_prog_cc_pic='-DDLL_EXPORT'
6202 ;;
6203 sysv4*MP*)
6204 if test -d /usr/nec; then
6205 lt_cv_prog_cc_pic=-Kconform_pic
6206 fi
6207 ;;
6208 *)
6209 lt_cv_prog_cc_pic='-fPIC'
6210 ;;
6211 esac
6212 else
6213 # PORTME Check for PIC flags for the system compiler.
6214 case $host_os in
6215 aix3* | aix4* | aix5*)
6216 lt_cv_prog_cc_wl='-Wl,'
6217 # All AIX code is PIC.
6218 if test "$host_cpu" = ia64; then
6219 # AIX 5 now supports IA64 processor
6220 lt_cv_prog_cc_static='-Bstatic'
6221 else
6222 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
6223 fi
6224 ;;
6225
6226 hpux9* | hpux10* | hpux11*)
6227 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
6228 lt_cv_prog_cc_wl='-Wl,'
6229 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
6230 lt_cv_prog_cc_pic='+Z'
6231 ;;
6232
6233 irix5* | irix6*)
6234 lt_cv_prog_cc_wl='-Wl,'
6235 lt_cv_prog_cc_static='-non_shared'
6236 # PIC (with -KPIC) is the default.
6237 ;;
6238
6239 cygwin* | mingw* | pw32* | os2*)
6240 # This hack is so that the source file can tell whether it is being
6241 # built for inclusion in a dll (and should export symbols for example).
6242 lt_cv_prog_cc_pic='-DDLL_EXPORT'
6243 ;;
6244
6245 newsos6)
6246 lt_cv_prog_cc_pic='-KPIC'
6247 lt_cv_prog_cc_static='-Bstatic'
6248 ;;
6249
6250 osf3* | osf4* | osf5*)
6251 # All OSF/1 code is PIC.
6252 lt_cv_prog_cc_wl='-Wl,'
6253 lt_cv_prog_cc_static='-non_shared'
6254 ;;
6255
6256 sco3.2v5*)
6257 lt_cv_prog_cc_pic='-Kpic'
6258 lt_cv_prog_cc_static='-dn'
6259 lt_cv_prog_cc_shlib='-belf'
6260 ;;
6261
6262 solaris*)
6263 lt_cv_prog_cc_pic='-KPIC'
6264 lt_cv_prog_cc_static='-Bstatic'
6265 lt_cv_prog_cc_wl='-Wl,'
6266 ;;
6267
6268 sunos4*)
6269 lt_cv_prog_cc_pic='-PIC'
6270 lt_cv_prog_cc_static='-Bstatic'
6271 lt_cv_prog_cc_wl='-Qoption ld '
6272 ;;
6273
6274 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6275 lt_cv_prog_cc_pic='-KPIC'
6276 lt_cv_prog_cc_static='-Bstatic'
6277 if test "x$host_vendor" = xsni; then
6278 lt_cv_prog_cc_wl='-LD'
6279 else
6280 lt_cv_prog_cc_wl='-Wl,'
6281 fi
6282 ;;
6283
6284 uts4*)
6285 lt_cv_prog_cc_pic='-pic'
6286 lt_cv_prog_cc_static='-Bstatic'
6287 ;;
6288
6289 sysv4*MP*)
6290 if test -d /usr/nec ;then
6291 lt_cv_prog_cc_pic='-Kconform_pic'
6292 lt_cv_prog_cc_static='-Bstatic'
6293 fi
6294 ;;
6295
6296 *)
6297 lt_cv_prog_cc_can_build_shared=no
6298 ;;
6299 esac
6300 fi
6301
6302 fi
6303
6304 if test -z "$lt_cv_prog_cc_pic"; then
6305 { echo "$as_me:$LINENO: result: none" >&5
6306 echo "${ECHO_T}none" >&6; }
6307 else
6308 { echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
6309 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6; }
6310
6311 # Check to make sure the pic_flag actually works.
6312 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
6313 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6; }
6314 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
6315 echo $ECHO_N "(cached) $ECHO_C" >&6
6316 else
6317 save_CFLAGS="$CFLAGS"
6318 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
6319 cat >conftest.$ac_ext <<_ACEOF
6320 /* confdefs.h. */
6321 _ACEOF
6322 cat confdefs.h >>conftest.$ac_ext
6323 cat >>conftest.$ac_ext <<_ACEOF
6324 /* end confdefs.h. */
6325
6326 int
6327 main ()
6328 {
6329
6330 ;
6331 return 0;
6332 }
6333 _ACEOF
6334 rm -f conftest.$ac_objext
6335 if { (ac_try="$ac_compile"
6336 case "(($ac_try" in
6337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6338 *) ac_try_echo=$ac_try;;
6339 esac
6340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6341 (eval "$ac_compile") 2>conftest.er1
6342 ac_status=$?
6343 grep -v '^ *+' conftest.er1 >conftest.err
6344 rm -f conftest.er1
6345 cat conftest.err >&5
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); } && {
6348 test -z "$ac_cxx_werror_flag" ||
6349 test ! -s conftest.err
6350 } && test -s conftest.$ac_objext; then
6351 case $host_os in
6352 hpux9* | hpux10* | hpux11*)
6353 # On HP-UX, both CC and GCC only warn that PIC is supported... then
6354 # they create non-PIC objects. So, if there were any warnings, we
6355 # assume that PIC is not supported.
6356 if test -s conftest.err; then
6357 lt_cv_prog_cc_pic_works=no
6358 else
6359 lt_cv_prog_cc_pic_works=yes
6360 fi
6361 ;;
6362 *)
6363 lt_cv_prog_cc_pic_works=yes
6364 ;;
6365 esac
6366
6367 else
6368 echo "$as_me: failed program was:" >&5
6369 sed 's/^/| /' conftest.$ac_ext >&5
6370
6371 lt_cv_prog_cc_pic_works=no
6372
6373 fi
6374
6375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6376 CFLAGS="$save_CFLAGS"
6377
6378 fi
6379
6380
6381 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
6382 lt_cv_prog_cc_pic=
6383 lt_cv_prog_cc_can_build_shared=no
6384 else
6385 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
6386 fi
6387
6388 { echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
6389 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6; }
6390 fi
6391
6392 # Check for any special shared library compilation flags.
6393 if test -n "$lt_cv_prog_cc_shlib"; then
6394 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
6395 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
6396 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
6397 else
6398 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6399 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6400 lt_cv_prog_cc_can_build_shared=no
6401 fi
6402 fi
6403
6404 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
6405 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6; }
6406 if test "${lt_cv_prog_cc_static_works+set}" = set; then
6407 echo $ECHO_N "(cached) $ECHO_C" >&6
6408 else
6409 lt_cv_prog_cc_static_works=no
6410 save_LDFLAGS="$LDFLAGS"
6411 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
6412 cat >conftest.$ac_ext <<_ACEOF
6413 /* confdefs.h. */
6414 _ACEOF
6415 cat confdefs.h >>conftest.$ac_ext
6416 cat >>conftest.$ac_ext <<_ACEOF
6417 /* end confdefs.h. */
6418
6419 int
6420 main ()
6421 {
6422
6423 ;
6424 return 0;
6425 }
6426 _ACEOF
6427 rm -f conftest.$ac_objext conftest$ac_exeext
6428 if { (ac_try="$ac_link"
6429 case "(($ac_try" in
6430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6431 *) ac_try_echo=$ac_try;;
6432 esac
6433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6434 (eval "$ac_link") 2>conftest.er1
6435 ac_status=$?
6436 grep -v '^ *+' conftest.er1 >conftest.err
6437 rm -f conftest.er1
6438 cat conftest.err >&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } && {
6441 test -z "$ac_cxx_werror_flag" ||
6442 test ! -s conftest.err
6443 } && test -s conftest$ac_exeext &&
6444 $as_test_x conftest$ac_exeext; then
6445 lt_cv_prog_cc_static_works=yes
6446 else
6447 echo "$as_me: failed program was:" >&5
6448 sed 's/^/| /' conftest.$ac_ext >&5
6449
6450
6451 fi
6452
6453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6454 conftest$ac_exeext conftest.$ac_ext
6455 LDFLAGS="$save_LDFLAGS"
6456
6457 fi
6458
6459
6460 # Belt *and* braces to stop my trousers falling down:
6461 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
6462 { echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
6463 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6; }
6464
6465 pic_flag="$lt_cv_prog_cc_pic"
6466 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
6467 wl="$lt_cv_prog_cc_wl"
6468 link_static_flag="$lt_cv_prog_cc_static"
6469 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
6470 can_build_shared="$lt_cv_prog_cc_can_build_shared"
6471
6472
6473 # Check to see if options -o and -c are simultaneously supported by compiler
6474 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6475 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
6476 if test "${lt_cv_compiler_c_o+set}" = set; then
6477 echo $ECHO_N "(cached) $ECHO_C" >&6
6478 else
6479
6480 $rm -r conftest 2>/dev/null
6481 mkdir conftest
6482 cd conftest
6483 echo "int some_variable = 0;" > conftest.$ac_ext
6484 mkdir out
6485 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6486 # that will create temporary files in the current directory regardless of
6487 # the output directory. Thus, making CWD read-only will cause this test
6488 # to fail, enabling locking or at least warning the user not to do parallel
6489 # builds.
6490 chmod -w .
6491 save_CFLAGS="$CFLAGS"
6492 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
6493 compiler_c_o=no
6494 if { (eval echo configure:6494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
6495 # The compiler can only warn and ignore the option if not recognized
6496 # So say no if there are warnings
6497 if test -s out/conftest.err; then
6498 lt_cv_compiler_c_o=no
6499 else
6500 lt_cv_compiler_c_o=yes
6501 fi
6502 else
6503 # Append any errors to the config.log.
6504 cat out/conftest.err 1>&5
6505 lt_cv_compiler_c_o=no
6506 fi
6507 CFLAGS="$save_CFLAGS"
6508 chmod u+w .
6509 $rm conftest* out/*
6510 rmdir out
6511 cd ..
6512 rmdir conftest
6513 $rm -r conftest 2>/dev/null
6514
6515 fi
6516
6517 compiler_c_o=$lt_cv_compiler_c_o
6518 { echo "$as_me:$LINENO: result: $compiler_c_o" >&5
6519 echo "${ECHO_T}$compiler_c_o" >&6; }
6520
6521 if test x"$compiler_c_o" = x"yes"; then
6522 # Check to see if we can write to a .lo
6523 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
6524 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6; }
6525 if test "${lt_cv_compiler_o_lo+set}" = set; then
6526 echo $ECHO_N "(cached) $ECHO_C" >&6
6527 else
6528
6529 lt_cv_compiler_o_lo=no
6530 save_CFLAGS="$CFLAGS"
6531 CFLAGS="$CFLAGS -c -o conftest.lo"
6532 save_objext="$ac_objext"
6533 ac_objext=lo
6534 cat >conftest.$ac_ext <<_ACEOF
6535 /* confdefs.h. */
6536 _ACEOF
6537 cat confdefs.h >>conftest.$ac_ext
6538 cat >>conftest.$ac_ext <<_ACEOF
6539 /* end confdefs.h. */
6540
6541 int
6542 main ()
6543 {
6544 int some_variable = 0;
6545 ;
6546 return 0;
6547 }
6548 _ACEOF
6549 rm -f conftest.$ac_objext
6550 if { (ac_try="$ac_compile"
6551 case "(($ac_try" in
6552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6553 *) ac_try_echo=$ac_try;;
6554 esac
6555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6556 (eval "$ac_compile") 2>conftest.er1
6557 ac_status=$?
6558 grep -v '^ *+' conftest.er1 >conftest.err
6559 rm -f conftest.er1
6560 cat conftest.err >&5
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); } && {
6563 test -z "$ac_cxx_werror_flag" ||
6564 test ! -s conftest.err
6565 } && test -s conftest.$ac_objext; then
6566 # The compiler can only warn and ignore the option if not recognized
6567 # So say no if there are warnings
6568 if test -s conftest.err; then
6569 lt_cv_compiler_o_lo=no
6570 else
6571 lt_cv_compiler_o_lo=yes
6572 fi
6573
6574 else
6575 echo "$as_me: failed program was:" >&5
6576 sed 's/^/| /' conftest.$ac_ext >&5
6577
6578
6579 fi
6580
6581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6582 ac_objext="$save_objext"
6583 CFLAGS="$save_CFLAGS"
6584
6585 fi
6586
6587 compiler_o_lo=$lt_cv_compiler_o_lo
6588 { echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
6589 echo "${ECHO_T}$compiler_o_lo" >&6; }
6590 else
6591 compiler_o_lo=no
6592 fi
6593
6594 # Check to see if we can do hard links to lock some files if needed
6595 hard_links="nottested"
6596 if test "$compiler_c_o" = no && test "$need_locks" != no; then
6597 # do not overwrite the value of need_locks provided by the user
6598 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6599 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
6600 hard_links=yes
6601 $rm conftest*
6602 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6603 touch conftest.a
6604 ln conftest.a conftest.b 2>&5 || hard_links=no
6605 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6606 { echo "$as_me:$LINENO: result: $hard_links" >&5
6607 echo "${ECHO_T}$hard_links" >&6; }
6608 if test "$hard_links" = no; then
6609 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6610 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6611 need_locks=warn
6612 fi
6613 else
6614 need_locks=no
6615 fi
6616
6617 if test "$GCC" = yes; then
6618 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
6619 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6620 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6621 echo "int some_variable = 0;" > conftest.$ac_ext
6622 save_CFLAGS="$CFLAGS"
6623 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
6624 compiler_rtti_exceptions=no
6625 cat >conftest.$ac_ext <<_ACEOF
6626 /* confdefs.h. */
6627 _ACEOF
6628 cat confdefs.h >>conftest.$ac_ext
6629 cat >>conftest.$ac_ext <<_ACEOF
6630 /* end confdefs.h. */
6631
6632 int
6633 main ()
6634 {
6635 int some_variable = 0;
6636 ;
6637 return 0;
6638 }
6639 _ACEOF
6640 rm -f conftest.$ac_objext
6641 if { (ac_try="$ac_compile"
6642 case "(($ac_try" in
6643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6644 *) ac_try_echo=$ac_try;;
6645 esac
6646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6647 (eval "$ac_compile") 2>conftest.er1
6648 ac_status=$?
6649 grep -v '^ *+' conftest.er1 >conftest.err
6650 rm -f conftest.er1
6651 cat conftest.err >&5
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); } && {
6654 test -z "$ac_cxx_werror_flag" ||
6655 test ! -s conftest.err
6656 } && test -s conftest.$ac_objext; then
6657 # The compiler can only warn and ignore the option if not recognized
6658 # So say no if there are warnings
6659 if test -s conftest.err; then
6660 compiler_rtti_exceptions=no
6661 else
6662 compiler_rtti_exceptions=yes
6663 fi
6664
6665 else
6666 echo "$as_me: failed program was:" >&5
6667 sed 's/^/| /' conftest.$ac_ext >&5
6668
6669
6670 fi
6671
6672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6673 CFLAGS="$save_CFLAGS"
6674 { echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
6675 echo "${ECHO_T}$compiler_rtti_exceptions" >&6; }
6676
6677 if test "$compiler_rtti_exceptions" = "yes"; then
6678 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
6679 else
6680 no_builtin_flag=' -fno-builtin'
6681 fi
6682 fi
6683
6684 # See if the linker supports building shared libraries.
6685 { echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
6686 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6; }
6687
6688 allow_undefined_flag=
6689 no_undefined_flag=
6690 need_lib_prefix=unknown
6691 need_version=unknown
6692 # when you set need_version to no, make sure it does not cause -set_version
6693 # flags to be left without arguments
6694 archive_cmds=
6695 archive_expsym_cmds=
6696 old_archive_from_new_cmds=
6697 old_archive_from_expsyms_cmds=
6698 export_dynamic_flag_spec=
6699 whole_archive_flag_spec=
6700 thread_safe_flag_spec=
6701 hardcode_into_libs=no
6702 hardcode_libdir_flag_spec=
6703 hardcode_libdir_separator=
6704 hardcode_direct=no
6705 hardcode_minus_L=no
6706 hardcode_shlibpath_var=unsupported
6707 runpath_var=
6708 link_all_deplibs=unknown
6709 always_export_symbols=no
6710 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
6711 # include_expsyms should be a list of space-separated symbols to be *always*
6712 # included in the symbol list
6713 include_expsyms=
6714 # exclude_expsyms can be an egrep regular expression of symbols to exclude
6715 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6716 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6717 # as well as any symbol that contains `d'.
6718 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6719 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6720 # platforms (ab)use it in PIC code, but their linkers get confused if
6721 # the symbol is explicitly referenced. Since portable code cannot
6722 # rely on this symbol name, it's probably fine to never include it in
6723 # preloaded symbol tables.
6724 extract_expsyms_cmds=
6725
6726 case $host_os in
6727 cygwin* | mingw* | pw32*)
6728 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6729 # When not using gcc, we currently assume that we are using
6730 # Microsoft Visual C++.
6731 if test "$GCC" != yes; then
6732 with_gnu_ld=no
6733 fi
6734 ;;
6735 openbsd*)
6736 with_gnu_ld=no
6737 ;;
6738 esac
6739
6740 ld_shlibs=yes
6741 if test "$with_gnu_ld" = yes; then
6742 # If archive_cmds runs LD, not CC, wlarc should be empty
6743 wlarc='${wl}'
6744
6745 # See if GNU ld supports shared libraries.
6746 case $host_os in
6747 aix3* | aix4* | aix5*)
6748 # On AIX, the GNU linker is very broken
6749 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
6750 ld_shlibs=no
6751 cat <<EOF 1>&2
6752
6753 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6754 *** to be unable to reliably create shared libraries on AIX.
6755 *** Therefore, libtool is disabling shared libraries support. If you
6756 *** really care for shared libraries, you may want to modify your PATH
6757 *** so that a non-GNU linker is found, and then restart.
6758
6759 EOF
6760 ;;
6761
6762 amigaos*)
6763 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)'
6764 hardcode_libdir_flag_spec='-L$libdir'
6765 hardcode_minus_L=yes
6766
6767 # Samuel A. Falvo II <[email protected]> reports
6768 # that the semantics of dynamic libraries on AmigaOS, at least up
6769 # to version 4, is to share data among multiple programs linked
6770 # with the same dynamic library. Since this doesn't match the
6771 # behavior of shared libraries on other platforms, we can use
6772 # them.
6773 ld_shlibs=no
6774 ;;
6775
6776 beos*)
6777 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6778 allow_undefined_flag=unsupported
6779 # Joseph Beckenbach <[email protected]> says some releases of gcc
6780 # support --undefined. This deserves some investigation. FIXME
6781 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6782 else
6783 ld_shlibs=no
6784 fi
6785 ;;
6786
6787 cygwin* | mingw* | pw32*)
6788 # hardcode_libdir_flag_spec is actually meaningless, as there is
6789 # no search path for DLLs.
6790 hardcode_libdir_flag_spec='-L$libdir'
6791 allow_undefined_flag=unsupported
6792 always_export_symbols=yes
6793
6794 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6795 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6796 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6797 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6798 else $CC -o impgen impgen.c ; fi)~
6799 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
6800
6801 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6802
6803 # cygwin and mingw dlls have different entry points and sets of symbols
6804 # to exclude.
6805 # FIXME: what about values for MSVC?
6806 dll_entry=__cygwin_dll_entry@12
6807 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6808 case $host_os in
6809 mingw*)
6810 # mingw values
6811 dll_entry=_DllMainCRTStartup@12
6812 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6813 ;;
6814 esac
6815
6816 # mingw and cygwin differ, and it's simplest to just exclude the union
6817 # of the two symbol sets.
6818 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6819
6820 # recent cygwin and mingw systems supply a stub DllMain which the user
6821 # can override, but on older systems we have to supply one (in ltdll.c)
6822 if test "x$lt_cv_need_dllmain" = "xyes"; then
6823 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6824 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
6825 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6826 else
6827 ltdll_obj=
6828 ltdll_cmds=
6829 fi
6830
6831 # Extract the symbol export list from an `--export-all' def file,
6832 # then regenerate the def file from the symbol export list, so that
6833 # the compiled dll only exports the symbol export list.
6834 # Be careful not to strip the DATA tag left be newer dlltools.
6835 export_symbols_cmds="$ltdll_cmds"'
6836 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6837 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6838
6839 # If the export-symbols file already is a .def file (1st line
6840 # is EXPORTS), use it as is.
6841 # If DATA tags from a recent dlltool are present, honour them!
6842 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
6843 cp $export_symbols $output_objdir/$soname-def;
6844 else
6845 echo EXPORTS > $output_objdir/$soname-def;
6846 _lt_hint=1;
6847 cat $export_symbols | while read symbol; do
6848 set dummy \$symbol;
6849 case \$# in
6850 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6851 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6852 esac;
6853 _lt_hint=`expr 1 + \$_lt_hint`;
6854 done;
6855 fi~
6856 '"$ltdll_cmds"'
6857 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6858 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
6859 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6860 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
6861 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6862 ;;
6863
6864 netbsd*)
6865 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6866 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6867 wlarc=
6868 else
6869 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6870 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6871 fi
6872 ;;
6873
6874 solaris* | sysv5*)
6875 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6876 ld_shlibs=no
6877 cat <<EOF 1>&2
6878
6879 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6880 *** create shared libraries on Solaris systems. Therefore, libtool
6881 *** is disabling shared libraries support. We urge you to upgrade GNU
6882 *** binutils to release 2.9.1 or newer. Another option is to modify
6883 *** your PATH or compiler configuration so that the native linker is
6884 *** used, and then restart.
6885
6886 EOF
6887 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6888 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6889 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6890 else
6891 ld_shlibs=no
6892 fi
6893 ;;
6894
6895 sunos4*)
6896 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6897 wlarc=
6898 hardcode_direct=yes
6899 hardcode_shlibpath_var=no
6900 ;;
6901
6902 *)
6903 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6904 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6905 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6906 else
6907 ld_shlibs=no
6908 fi
6909 ;;
6910 esac
6911
6912 if test "$ld_shlibs" = yes; then
6913 runpath_var=LD_RUN_PATH
6914 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6915 export_dynamic_flag_spec='${wl}--export-dynamic'
6916 case $host_os in
6917 cygwin* | mingw* | pw32*)
6918 # dlltool doesn't understand --whole-archive et. al.
6919 whole_archive_flag_spec=
6920 ;;
6921 *)
6922 # ancient GNU ld didn't support --whole-archive et. al.
6923 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6924 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6925 else
6926 whole_archive_flag_spec=
6927 fi
6928 ;;
6929 esac
6930 fi
6931 else
6932 # PORTME fill in a description of your system's linker (not GNU ld)
6933 case $host_os in
6934 aix3*)
6935 allow_undefined_flag=unsupported
6936 always_export_symbols=yes
6937 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'
6938 # Note: this linker hardcodes the directories in LIBPATH if there
6939 # are no directories specified by -L.
6940 hardcode_minus_L=yes
6941 if test "$GCC" = yes && test -z "$link_static_flag"; then
6942 # Neither direct hardcoding nor static linking is supported with a
6943 # broken collect2.
6944 hardcode_direct=unsupported
6945 fi
6946 ;;
6947
6948 aix4* | aix5*)
6949 if test "$host_cpu" = ia64; then
6950 # On IA64, the linker does run time linking by default, so we don't
6951 # have to do anything special.
6952 aix_use_runtimelinking=no
6953 exp_sym_flag='-Bexport'
6954 no_entry_flag=""
6955 else
6956 aix_use_runtimelinking=no
6957
6958 # Test if we are trying to use run time linking or normal
6959 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6960 # need to do runtime linking.
6961 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6962 for ld_flag in $LDFLAGS; do
6963 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6964 aix_use_runtimelinking=yes
6965 break
6966 fi
6967 done
6968 esac
6969
6970 exp_sym_flag='-bexport'
6971 no_entry_flag='-bnoentry'
6972 fi
6973
6974 # When large executables or shared objects are built, AIX ld can
6975 # have problems creating the table of contents. If linking a library
6976 # or program results in "error TOC overflow" add -mminimal-toc to
6977 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6978 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6979
6980 hardcode_direct=yes
6981 archive_cmds=''
6982 hardcode_libdir_separator=':'
6983 if test "$GCC" = yes; then
6984 case $host_os in aix4.[012]|aix4.[012].*)
6985 collect2name=`${CC} -print-prog-name=collect2`
6986 if test -f "$collect2name" && \
6987 strings "$collect2name" | grep resolve_lib_name >/dev/null
6988 then
6989 # We have reworked collect2
6990 hardcode_direct=yes
6991 else
6992 # We have old collect2
6993 hardcode_direct=unsupported
6994 # It fails to find uninstalled libraries when the uninstalled
6995 # path is not listed in the libpath. Setting hardcode_minus_L
6996 # to unsupported forces relinking
6997 hardcode_minus_L=yes
6998 hardcode_libdir_flag_spec='-L$libdir'
6999 hardcode_libdir_separator=
7000 fi
7001 esac
7002
7003 shared_flag='-shared'
7004 else
7005 # not using gcc
7006 if test "$host_cpu" = ia64; then
7007 shared_flag='${wl}-G'
7008 else
7009 if test "$aix_use_runtimelinking" = yes; then
7010 shared_flag='${wl}-G'
7011 else
7012 shared_flag='${wl}-bM:SRE'
7013 fi
7014 fi
7015 fi
7016
7017 # It seems that -bexpall can do strange things, so it is better to
7018 # generate a list of symbols to export.
7019 always_export_symbols=yes
7020 if test "$aix_use_runtimelinking" = yes; then
7021 # Warning - without using the other runtime loading flags (-brtl),
7022 # -berok will link without error, but may produce a broken library.
7023 allow_undefined_flag='-berok'
7024 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
7025 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7026 else
7027 if test "$host_cpu" = ia64; then
7028 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7029 allow_undefined_flag="-z nodefs"
7030 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7031 else
7032 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
7033 # Warning - without using the other run time loading flags,
7034 # -berok will link without error, but may produce a broken library.
7035 allow_undefined_flag='${wl}-berok'
7036 # This is a bit strange, but is similar to how AIX traditionally builds
7037 # it's shared libraries.
7038 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
7039 fi
7040 fi
7041 ;;
7042
7043 amigaos*)
7044 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)'
7045 hardcode_libdir_flag_spec='-L$libdir'
7046 hardcode_minus_L=yes
7047 # see comment about different semantics on the GNU ld section
7048 ld_shlibs=no
7049 ;;
7050
7051 cygwin* | mingw* | pw32*)
7052 # When not using gcc, we currently assume that we are using
7053 # Microsoft Visual C++.
7054 # hardcode_libdir_flag_spec is actually meaningless, as there is
7055 # no search path for DLLs.
7056 hardcode_libdir_flag_spec=' '
7057 allow_undefined_flag=unsupported
7058 # Tell ltmain to make .lib files, not .a files.
7059 libext=lib
7060 # FIXME: Setting linknames here is a bad hack.
7061 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7062 # The linker will automatically build a .lib file if we build a DLL.
7063 old_archive_from_new_cmds='true'
7064 # FIXME: Should let the user specify the lib program.
7065 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7066 fix_srcfile_path='`cygpath -w "$srcfile"`'
7067 ;;
7068
7069 darwin* | rhapsody*)
7070 case "$host_os" in
7071 rhapsody* | darwin1.[012])
7072 allow_undefined_flag='-undefined suppress'
7073 ;;
7074 *) # Darwin 1.3 on
7075 allow_undefined_flag='-flat_namespace -undefined suppress'
7076 ;;
7077 esac
7078 # FIXME: Relying on posixy $() will cause problems for
7079 # cross-compilation, but unfortunately the echo tests do not
7080 # yet detect zsh echo's removal of \ escapes.
7081 archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
7082 # We need to add '_' to the symbols in $export_symbols first
7083 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
7084 hardcode_direct=yes
7085 hardcode_shlibpath_var=no
7086 whole_archive_flag_spec='-all_load $convenience'
7087 ;;
7088
7089 freebsd1*)
7090 ld_shlibs=no
7091 ;;
7092
7093 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7094 # support. Future versions do this automatically, but an explicit c++rt0.o
7095 # does not break anything, and helps significantly (at the cost of a little
7096 # extra space).
7097 freebsd2.2*)
7098 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7099 hardcode_libdir_flag_spec='-R$libdir'
7100 hardcode_direct=yes
7101 hardcode_shlibpath_var=no
7102 ;;
7103
7104 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7105 freebsd2*)
7106 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7107 hardcode_direct=yes
7108 hardcode_minus_L=yes
7109 hardcode_shlibpath_var=no
7110 ;;
7111
7112 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7113 freebsd*)
7114 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7115 hardcode_libdir_flag_spec='-R$libdir'
7116 hardcode_direct=yes
7117 hardcode_shlibpath_var=no
7118 ;;
7119
7120 hpux9* | hpux10* | hpux11*)
7121 case $host_os in
7122 hpux9*) 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' ;;
7123 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
7124 esac
7125 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7126 hardcode_libdir_separator=:
7127 hardcode_direct=yes
7128 hardcode_minus_L=yes # Not in the search PATH, but as the default
7129 # location of the library.
7130 export_dynamic_flag_spec='${wl}-E'
7131 ;;
7132
7133 irix5* | irix6*)
7134 if test "$GCC" = yes; then
7135 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7136 else
7137 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7138 fi
7139 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7140 hardcode_libdir_separator=:
7141 link_all_deplibs=yes
7142 ;;
7143
7144 netbsd*)
7145 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7146 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7147 else
7148 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7149 fi
7150 hardcode_libdir_flag_spec='-R$libdir'
7151 hardcode_direct=yes
7152 hardcode_shlibpath_var=no
7153 ;;
7154
7155 newsos6)
7156 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7157 hardcode_direct=yes
7158 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7159 hardcode_libdir_separator=:
7160 hardcode_shlibpath_var=no
7161 ;;
7162
7163 openbsd*)
7164 hardcode_direct=yes
7165 hardcode_shlibpath_var=no
7166 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7167 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
7168 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7169 export_dynamic_flag_spec='${wl}-E'
7170 else
7171 case "$host_os" in
7172 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7173 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7174 hardcode_libdir_flag_spec='-R$libdir'
7175 ;;
7176 *)
7177 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
7178 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7179 ;;
7180 esac
7181 fi
7182 ;;
7183
7184 os2*)
7185 hardcode_libdir_flag_spec='-L$libdir'
7186 hardcode_minus_L=yes
7187 allow_undefined_flag=unsupported
7188 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'
7189 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7190 ;;
7191
7192 osf3*)
7193 if test "$GCC" = yes; then
7194 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7195 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7196 else
7197 allow_undefined_flag=' -expect_unresolved \*'
7198 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7199 fi
7200 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7201 hardcode_libdir_separator=:
7202 ;;
7203
7204 osf4* | osf5*) # as osf3* with the addition of -msym flag
7205 if test "$GCC" = yes; then
7206 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7207 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7208 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7209 else
7210 allow_undefined_flag=' -expect_unresolved \*'
7211 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7212 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7213 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7214
7215 #Both c and cxx compiler support -rpath directly
7216 hardcode_libdir_flag_spec='-rpath $libdir'
7217 fi
7218 hardcode_libdir_separator=:
7219 ;;
7220
7221 sco3.2v5*)
7222 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7223 hardcode_shlibpath_var=no
7224 runpath_var=LD_RUN_PATH
7225 hardcode_runpath_var=yes
7226 export_dynamic_flag_spec='${wl}-Bexport'
7227 ;;
7228
7229 solaris*)
7230 # gcc --version < 3.0 without binutils cannot create self contained
7231 # shared libraries reliably, requiring libgcc.a to resolve some of
7232 # the object symbols generated in some cases. Libraries that use
7233 # assert need libgcc.a to resolve __eprintf, for example. Linking
7234 # a copy of libgcc.a into every shared library to guarantee resolving
7235 # such symbols causes other problems: According to Tim Van Holder
7236 # <[email protected]>, C++ libraries end up with a separate
7237 # (to the application) exception stack for one thing.
7238 no_undefined_flag=' -z defs'
7239 if test "$GCC" = yes; then
7240 case `$CC --version 2>/dev/null` in
7241 [12].*)
7242 cat <<EOF 1>&2
7243
7244 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
7245 *** create self contained shared libraries on Solaris systems, without
7246 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
7247 *** -no-undefined support, which will at least allow you to build shared
7248 *** libraries. However, you may find that when you link such libraries
7249 *** into an application without using GCC, you have to manually add
7250 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
7251 *** upgrade to a newer version of GCC. Another option is to rebuild your
7252 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
7253
7254 EOF
7255 no_undefined_flag=
7256 ;;
7257 esac
7258 fi
7259 # $CC -shared without GNU ld will not create a library from C++
7260 # object files and a static libstdc++, better avoid it by now
7261 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7262 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7263 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7264 hardcode_libdir_flag_spec='-R$libdir'
7265 hardcode_shlibpath_var=no
7266 case $host_os in
7267 solaris2.[0-5] | solaris2.[0-5].*) ;;
7268 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7269 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7270 esac
7271 link_all_deplibs=yes
7272 ;;
7273
7274 sunos4*)
7275 if test "x$host_vendor" = xsequent; then
7276 # Use $CC to link under sequent, because it throws in some extra .o
7277 # files that make .init and .fini sections work.
7278 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7279 else
7280 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7281 fi
7282 hardcode_libdir_flag_spec='-L$libdir'
7283 hardcode_direct=yes
7284 hardcode_minus_L=yes
7285 hardcode_shlibpath_var=no
7286 ;;
7287
7288 sysv4)
7289 if test "x$host_vendor" = xsno; then
7290 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
7291 hardcode_direct=yes # is this really true???
7292 else
7293 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7294 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7295 fi
7296 runpath_var='LD_RUN_PATH'
7297 hardcode_shlibpath_var=no
7298 ;;
7299
7300 sysv4.3*)
7301 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7302 hardcode_shlibpath_var=no
7303 export_dynamic_flag_spec='-Bexport'
7304 ;;
7305
7306 sysv5*)
7307 no_undefined_flag=' -z text'
7308 # $CC -shared without GNU ld will not create a library from C++
7309 # object files and a static libstdc++, better avoid it by now
7310 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7311 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7312 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7313 hardcode_libdir_flag_spec=
7314 hardcode_shlibpath_var=no
7315 runpath_var='LD_RUN_PATH'
7316 ;;
7317
7318 uts4*)
7319 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7320 hardcode_libdir_flag_spec='-L$libdir'
7321 hardcode_shlibpath_var=no
7322 ;;
7323
7324 dgux*)
7325 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7326 hardcode_libdir_flag_spec='-L$libdir'
7327 hardcode_shlibpath_var=no
7328 ;;
7329
7330 sysv4*MP*)
7331 if test -d /usr/nec; then
7332 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7333 hardcode_shlibpath_var=no
7334 runpath_var=LD_RUN_PATH
7335 hardcode_runpath_var=yes
7336 ld_shlibs=yes
7337 fi
7338 ;;
7339
7340 sysv4.2uw2*)
7341 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7342 hardcode_direct=yes
7343 hardcode_minus_L=no
7344 hardcode_shlibpath_var=no
7345 hardcode_runpath_var=yes
7346 runpath_var=LD_RUN_PATH
7347 ;;
7348
7349 sysv5uw7* | unixware7*)
7350 no_undefined_flag='${wl}-z ${wl}text'
7351 if test "$GCC" = yes; then
7352 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7353 else
7354 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7355 fi
7356 runpath_var='LD_RUN_PATH'
7357 hardcode_shlibpath_var=no
7358 ;;
7359
7360 *)
7361 ld_shlibs=no
7362 ;;
7363 esac
7364 fi
7365 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7366 echo "${ECHO_T}$ld_shlibs" >&6; }
7367 test "$ld_shlibs" = no && can_build_shared=no
7368
7369 # Check hardcoding attributes.
7370 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7371 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
7372 hardcode_action=
7373 if test -n "$hardcode_libdir_flag_spec" || \
7374 test -n "$runpath_var"; then
7375
7376 # We can hardcode non-existant directories.
7377 if test "$hardcode_direct" != no &&
7378 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7379 # have to relink, otherwise we might link with an installed library
7380 # when we should be linking with a yet-to-be-installed one
7381 ## test "$hardcode_shlibpath_var" != no &&
7382 test "$hardcode_minus_L" != no; then
7383 # Linking always hardcodes the temporary library directory.
7384 hardcode_action=relink
7385 else
7386 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7387 hardcode_action=immediate
7388 fi
7389 else
7390 # We cannot hardcode anything, or else we can only hardcode existing
7391 # directories.
7392 hardcode_action=unsupported
7393 fi
7394 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
7395 echo "${ECHO_T}$hardcode_action" >&6; }
7396
7397 striplib=
7398 old_striplib=
7399 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7400 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
7401 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7402 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7403 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7404 { echo "$as_me:$LINENO: result: yes" >&5
7405 echo "${ECHO_T}yes" >&6; }
7406 else
7407 { echo "$as_me:$LINENO: result: no" >&5
7408 echo "${ECHO_T}no" >&6; }
7409 fi
7410
7411 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7412 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7413
7414 # PORTME Fill in your ld.so characteristics
7415 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7416 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
7417 library_names_spec=
7418 libname_spec='lib$name'
7419 soname_spec=
7420 postinstall_cmds=
7421 postuninstall_cmds=
7422 finish_cmds=
7423 finish_eval=
7424 shlibpath_var=
7425 shlibpath_overrides_runpath=unknown
7426 version_type=none
7427 dynamic_linker="$host_os ld.so"
7428 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7429 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7430
7431 case $host_os in
7432 aix3*)
7433 version_type=linux
7434 library_names_spec='${libname}${release}.so$versuffix $libname.a'
7435 shlibpath_var=LIBPATH
7436
7437 # AIX has no versioning support, so we append a major version to the name.
7438 soname_spec='${libname}${release}.so$major'
7439 ;;
7440
7441 aix4* | aix5*)
7442 version_type=linux
7443 if test "$host_cpu" = ia64; then
7444 # AIX 5 supports IA64
7445 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
7446 shlibpath_var=LD_LIBRARY_PATH
7447 else
7448 # With GCC up to 2.95.x, collect2 would create an import file
7449 # for dependence libraries. The import file would start with
7450 # the line `#! .'. This would cause the generated library to
7451 # depend on `.', always an invalid library. This was fixed in
7452 # development snapshots of GCC prior to 3.0.
7453 case $host_os in
7454 aix4 | aix4.[01] | aix4.[01].*)
7455 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7456 echo ' yes '
7457 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7458 :
7459 else
7460 can_build_shared=no
7461 fi
7462 ;;
7463 esac
7464 # AIX (on Power*) has no versioning support, so currently we can
7465 # not hardcode correct soname into executable. Probably we can
7466 # add versioning support to collect2, so additional links can
7467 # be useful in future.
7468 if test "$aix_use_runtimelinking" = yes; then
7469 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7470 # instead of lib<name>.a to let people know that these are not
7471 # typical AIX shared libraries.
7472 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7473 else
7474 # We preserve .a as extension for shared libraries through AIX4.2
7475 # and later when we are not doing run time linking.
7476 library_names_spec='${libname}${release}.a $libname.a'
7477 soname_spec='${libname}${release}.so$major'
7478 fi
7479 shlibpath_var=LIBPATH
7480 fi
7481 ;;
7482
7483 amigaos*)
7484 library_names_spec='$libname.ixlibrary $libname.a'
7485 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7486 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'
7487 ;;
7488
7489 beos*)
7490 library_names_spec='${libname}.so'
7491 dynamic_linker="$host_os ld.so"
7492 shlibpath_var=LIBRARY_PATH
7493 ;;
7494
7495 bsdi4*)
7496 version_type=linux
7497 need_version=no
7498 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7499 soname_spec='${libname}${release}.so$major'
7500 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7501 shlibpath_var=LD_LIBRARY_PATH
7502 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7503 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7504 export_dynamic_flag_spec=-rdynamic
7505 # the default ld.so.conf also contains /usr/contrib/lib and
7506 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7507 # libtool to hard-code these into programs
7508 ;;
7509
7510 cygwin* | mingw* | pw32*)
7511 version_type=windows
7512 need_version=no
7513 need_lib_prefix=no
7514 case $GCC,$host_os in
7515 yes,cygwin*)
7516 library_names_spec='$libname.dll.a'
7517 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7518 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
7519 dldir=$destdir/`dirname \$dlpath`~
7520 test -d \$dldir || mkdir -p \$dldir~
7521 $install_prog .libs/$dlname \$dldir/$dlname'
7522 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
7523 dlpath=$dir/\$dldll~
7524 $rm \$dlpath'
7525 ;;
7526 yes,mingw*)
7527 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7528 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
7529 ;;
7530 yes,pw32*)
7531 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
7532 ;;
7533 *)
7534 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
7535 ;;
7536 esac
7537 dynamic_linker='Win32 ld.exe'
7538 # FIXME: first we should search . and the directory the executable is in
7539 shlibpath_var=PATH
7540 ;;
7541
7542 darwin* | rhapsody*)
7543 dynamic_linker="$host_os dyld"
7544 version_type=darwin
7545 need_lib_prefix=no
7546 need_version=no
7547 # FIXME: Relying on posixy $() will cause problems for
7548 # cross-compilation, but unfortunately the echo tests do not
7549 # yet detect zsh echo's removal of \ escapes.
7550 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
7551 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
7552 shlibpath_overrides_runpath=yes
7553 shlibpath_var=DYLD_LIBRARY_PATH
7554 ;;
7555
7556 freebsd1*)
7557 dynamic_linker=no
7558 ;;
7559
7560 freebsd*)
7561 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7562 version_type=freebsd-$objformat
7563 case $version_type in
7564 freebsd-elf*)
7565 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7566 need_version=no
7567 need_lib_prefix=no
7568 ;;
7569 freebsd-*)
7570 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
7571 need_version=yes
7572 ;;
7573 esac
7574 shlibpath_var=LD_LIBRARY_PATH
7575 case $host_os in
7576 freebsd2*)
7577 shlibpath_overrides_runpath=yes
7578 ;;
7579 *)
7580 shlibpath_overrides_runpath=no
7581 hardcode_into_libs=yes
7582 ;;
7583 esac
7584 ;;
7585
7586 gnu*)
7587 version_type=linux
7588 need_lib_prefix=no
7589 need_version=no
7590 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
7591 soname_spec='${libname}${release}.so$major'
7592 shlibpath_var=LD_LIBRARY_PATH
7593 hardcode_into_libs=yes
7594 ;;
7595
7596 hpux9* | hpux10* | hpux11*)
7597 # Give a soname corresponding to the major version so that dld.sl refuses to
7598 # link against other versions.
7599 dynamic_linker="$host_os dld.sl"
7600 version_type=sunos
7601 need_lib_prefix=no
7602 need_version=no
7603 shlibpath_var=SHLIB_PATH
7604 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7605 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
7606 soname_spec='${libname}${release}.sl$major'
7607 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7608 postinstall_cmds='chmod 555 $lib'
7609 ;;
7610
7611 irix5* | irix6*)
7612 version_type=irix
7613 need_lib_prefix=no
7614 need_version=no
7615 soname_spec='${libname}${release}.so$major'
7616 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
7617 case $host_os in
7618 irix5*)
7619 libsuff= shlibsuff=
7620 ;;
7621 *)
7622 case $LD in # libtool.m4 will add one of these switches to LD
7623 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
7624 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
7625 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
7626 *) libsuff= shlibsuff= libmagic=never-match;;
7627 esac
7628 ;;
7629 esac
7630 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7631 shlibpath_overrides_runpath=no
7632 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7633 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7634 ;;
7635
7636 # No shared lib support for Linux oldld, aout, or coff.
7637 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
7638 dynamic_linker=no
7639 ;;
7640
7641 # This must be Linux ELF.
7642 linux-gnu*)
7643 version_type=linux
7644 need_lib_prefix=no
7645 need_version=no
7646 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7647 soname_spec='${libname}${release}.so$major'
7648 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7649 shlibpath_var=LD_LIBRARY_PATH
7650 shlibpath_overrides_runpath=no
7651 # This implies no fast_install, which is unacceptable.
7652 # Some rework will be needed to allow for fast_install
7653 # before this can be enabled.
7654 hardcode_into_libs=yes
7655
7656 # We used to test for /lib/ld.so.1 and disable shared libraries on
7657 # powerpc, because MkLinux only supported shared libraries with the
7658 # GNU dynamic linker. Since this was broken with cross compilers,
7659 # most powerpc-linux boxes support dynamic linking these days and
7660 # people can always --disable-shared, the test was removed, and we
7661 # assume the GNU/Linux dynamic linker is in use.
7662 dynamic_linker='GNU/Linux ld.so'
7663 ;;
7664
7665 netbsd*)
7666 version_type=sunos
7667 need_lib_prefix=no
7668 need_version=no
7669 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7670 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7671 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7672 dynamic_linker='NetBSD (a.out) ld.so'
7673 else
7674 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
7675 soname_spec='${libname}${release}.so$major'
7676 dynamic_linker='NetBSD ld.elf_so'
7677 fi
7678 shlibpath_var=LD_LIBRARY_PATH
7679 shlibpath_overrides_runpath=yes
7680 hardcode_into_libs=yes
7681 ;;
7682
7683 newsos6)
7684 version_type=linux
7685 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7686 shlibpath_var=LD_LIBRARY_PATH
7687 shlibpath_overrides_runpath=yes
7688 ;;
7689
7690 openbsd*)
7691 version_type=sunos
7692 need_lib_prefix=no
7693 need_version=no
7694 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7695 case "$host_os" in
7696 openbsd2.[89] | openbsd2.[89].*)
7697 shlibpath_overrides_runpath=no
7698 ;;
7699 *)
7700 shlibpath_overrides_runpath=yes
7701 ;;
7702 esac
7703 else
7704 shlibpath_overrides_runpath=yes
7705 fi
7706 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7707 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7708 shlibpath_var=LD_LIBRARY_PATH
7709 ;;
7710
7711 os2*)
7712 libname_spec='$name'
7713 need_lib_prefix=no
7714 library_names_spec='$libname.dll $libname.a'
7715 dynamic_linker='OS/2 ld.exe'
7716 shlibpath_var=LIBPATH
7717 ;;
7718
7719 osf3* | osf4* | osf5*)
7720 version_type=osf
7721 need_version=no
7722 soname_spec='${libname}${release}.so'
7723 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7724 shlibpath_var=LD_LIBRARY_PATH
7725 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7726 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7727 ;;
7728
7729 sco3.2v5*)
7730 version_type=osf
7731 soname_spec='${libname}${release}.so$major'
7732 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7733 shlibpath_var=LD_LIBRARY_PATH
7734 ;;
7735
7736 solaris*)
7737 version_type=linux
7738 need_lib_prefix=no
7739 need_version=no
7740 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7741 soname_spec='${libname}${release}.so$major'
7742 shlibpath_var=LD_LIBRARY_PATH
7743 shlibpath_overrides_runpath=yes
7744 hardcode_into_libs=yes
7745 # ldd complains unless libraries are executable
7746 postinstall_cmds='chmod +x $lib'
7747 ;;
7748
7749 sunos4*)
7750 version_type=sunos
7751 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7752 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7753 shlibpath_var=LD_LIBRARY_PATH
7754 shlibpath_overrides_runpath=yes
7755 if test "$with_gnu_ld" = yes; then
7756 need_lib_prefix=no
7757 fi
7758 need_version=yes
7759 ;;
7760
7761 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7762 version_type=linux
7763 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7764 soname_spec='${libname}${release}.so$major'
7765 shlibpath_var=LD_LIBRARY_PATH
7766 case $host_vendor in
7767 sni)
7768 shlibpath_overrides_runpath=no
7769 ;;
7770 motorola)
7771 need_lib_prefix=no
7772 need_version=no
7773 shlibpath_overrides_runpath=no
7774 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7775 ;;
7776 esac
7777 ;;
7778
7779 uts4*)
7780 version_type=linux
7781 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7782 soname_spec='${libname}${release}.so$major'
7783 shlibpath_var=LD_LIBRARY_PATH
7784 ;;
7785
7786 dgux*)
7787 version_type=linux
7788 need_lib_prefix=no
7789 need_version=no
7790 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7791 soname_spec='${libname}${release}.so$major'
7792 shlibpath_var=LD_LIBRARY_PATH
7793 ;;
7794
7795 sysv4*MP*)
7796 if test -d /usr/nec ;then
7797 version_type=linux
7798 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7799 soname_spec='$libname.so.$major'
7800 shlibpath_var=LD_LIBRARY_PATH
7801 fi
7802 ;;
7803
7804 *)
7805 dynamic_linker=no
7806 ;;
7807 esac
7808 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7809 echo "${ECHO_T}$dynamic_linker" >&6; }
7810 test "$dynamic_linker" = no && can_build_shared=no
7811
7812 # Report the final consequences.
7813 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
7814 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
7815 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
7816 echo "${ECHO_T}$can_build_shared" >&6; }
7817
7818 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
7819 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
7820 test "$can_build_shared" = "no" && enable_shared=no
7821
7822 # On AIX, shared libraries and static libraries use the same namespace, and
7823 # are all built from PIC.
7824 case "$host_os" in
7825 aix3*)
7826 test "$enable_shared" = yes && enable_static=no
7827 if test -n "$RANLIB"; then
7828 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7829 postinstall_cmds='$RANLIB $lib'
7830 fi
7831 ;;
7832
7833 aix4*)
7834 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7835 test "$enable_shared" = yes && enable_static=no
7836 fi
7837 ;;
7838 esac
7839 { echo "$as_me:$LINENO: result: $enable_shared" >&5
7840 echo "${ECHO_T}$enable_shared" >&6; }
7841
7842 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
7843 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
7844 # Make sure either enable_shared or enable_static is yes.
7845 test "$enable_shared" = yes || enable_static=yes
7846 { echo "$as_me:$LINENO: result: $enable_static" >&5
7847 echo "${ECHO_T}$enable_static" >&6; }
7848
7849 if test "$hardcode_action" = relink; then
7850 # Fast installation is not supported
7851 enable_fast_install=no
7852 elif test "$shlibpath_overrides_runpath" = yes ||
7853 test "$enable_shared" = no; then
7854 # Fast installation is not necessary
7855 enable_fast_install=needless
7856 fi
7857
7858 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7859 if test "$GCC" = yes; then
7860 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7861 fi
7862
7863 if test "x$enable_dlopen" != xyes; then
7864 enable_dlopen=unknown
7865 enable_dlopen_self=unknown
7866 enable_dlopen_self_static=unknown
7867 else
7868 lt_cv_dlopen=no
7869 lt_cv_dlopen_libs=
7870
7871 case $host_os in
7872 beos*)
7873 lt_cv_dlopen="load_add_on"
7874 lt_cv_dlopen_libs=
7875 lt_cv_dlopen_self=yes
7876 ;;
7877
7878 cygwin* | mingw* | pw32*)
7879 lt_cv_dlopen="LoadLibrary"
7880 lt_cv_dlopen_libs=
7881 ;;
7882
7883 *)
7884 { echo "$as_me:$LINENO: checking for shl_load" >&5
7885 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
7886 if test "${ac_cv_func_shl_load+set}" = set; then
7887 echo $ECHO_N "(cached) $ECHO_C" >&6
7888 else
7889 cat >conftest.$ac_ext <<_ACEOF
7890 /* confdefs.h. */
7891 _ACEOF
7892 cat confdefs.h >>conftest.$ac_ext
7893 cat >>conftest.$ac_ext <<_ACEOF
7894 /* end confdefs.h. */
7895 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7897 #define shl_load innocuous_shl_load
7898
7899 /* System header to define __stub macros and hopefully few prototypes,
7900 which can conflict with char shl_load (); below.
7901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7902 <limits.h> exists even on freestanding compilers. */
7903
7904 #ifdef __STDC__
7905 # include <limits.h>
7906 #else
7907 # include <assert.h>
7908 #endif
7909
7910 #undef shl_load
7911
7912 /* Override any GCC internal prototype to avoid an error.
7913 Use char because int might match the return type of a GCC
7914 builtin and then its argument prototype would still apply. */
7915 #ifdef __cplusplus
7916 extern "C"
7917 #endif
7918 char shl_load ();
7919 /* The GNU C library defines this for functions which it implements
7920 to always fail with ENOSYS. Some functions are actually named
7921 something starting with __ and the normal name is an alias. */
7922 #if defined __stub_shl_load || defined __stub___shl_load
7923 choke me
7924 #endif
7925
7926 int
7927 main ()
7928 {
7929 return shl_load ();
7930 ;
7931 return 0;
7932 }
7933 _ACEOF
7934 rm -f conftest.$ac_objext conftest$ac_exeext
7935 if { (ac_try="$ac_link"
7936 case "(($ac_try" in
7937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7938 *) ac_try_echo=$ac_try;;
7939 esac
7940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7941 (eval "$ac_link") 2>conftest.er1
7942 ac_status=$?
7943 grep -v '^ *+' conftest.er1 >conftest.err
7944 rm -f conftest.er1
7945 cat conftest.err >&5
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); } && {
7948 test -z "$ac_cxx_werror_flag" ||
7949 test ! -s conftest.err
7950 } && test -s conftest$ac_exeext &&
7951 $as_test_x conftest$ac_exeext; then
7952 ac_cv_func_shl_load=yes
7953 else
7954 echo "$as_me: failed program was:" >&5
7955 sed 's/^/| /' conftest.$ac_ext >&5
7956
7957 ac_cv_func_shl_load=no
7958 fi
7959
7960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7961 conftest$ac_exeext conftest.$ac_ext
7962 fi
7963 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7964 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
7965 if test $ac_cv_func_shl_load = yes; then
7966 lt_cv_dlopen="shl_load"
7967 else
7968 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7969 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
7970 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7971 echo $ECHO_N "(cached) $ECHO_C" >&6
7972 else
7973 ac_check_lib_save_LIBS=$LIBS
7974 LIBS="-ldld $LIBS"
7975 cat >conftest.$ac_ext <<_ACEOF
7976 /* confdefs.h. */
7977 _ACEOF
7978 cat confdefs.h >>conftest.$ac_ext
7979 cat >>conftest.$ac_ext <<_ACEOF
7980 /* end confdefs.h. */
7981
7982 /* Override any GCC internal prototype to avoid an error.
7983 Use char because int might match the return type of a GCC
7984 builtin and then its argument prototype would still apply. */
7985 #ifdef __cplusplus
7986 extern "C"
7987 #endif
7988 char shl_load ();
7989 int
7990 main ()
7991 {
7992 return shl_load ();
7993 ;
7994 return 0;
7995 }
7996 _ACEOF
7997 rm -f conftest.$ac_objext conftest$ac_exeext
7998 if { (ac_try="$ac_link"
7999 case "(($ac_try" in
8000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8001 *) ac_try_echo=$ac_try;;
8002 esac
8003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8004 (eval "$ac_link") 2>conftest.er1
8005 ac_status=$?
8006 grep -v '^ *+' conftest.er1 >conftest.err
8007 rm -f conftest.er1
8008 cat conftest.err >&5
8009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010 (exit $ac_status); } && {
8011 test -z "$ac_cxx_werror_flag" ||
8012 test ! -s conftest.err
8013 } && test -s conftest$ac_exeext &&
8014 $as_test_x conftest$ac_exeext; then
8015 ac_cv_lib_dld_shl_load=yes
8016 else
8017 echo "$as_me: failed program was:" >&5
8018 sed 's/^/| /' conftest.$ac_ext >&5
8019
8020 ac_cv_lib_dld_shl_load=no
8021 fi
8022
8023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8024 conftest$ac_exeext conftest.$ac_ext
8025 LIBS=$ac_check_lib_save_LIBS
8026 fi
8027 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8028 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
8029 if test $ac_cv_lib_dld_shl_load = yes; then
8030 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8031 else
8032 { echo "$as_me:$LINENO: checking for dlopen" >&5
8033 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
8034 if test "${ac_cv_func_dlopen+set}" = set; then
8035 echo $ECHO_N "(cached) $ECHO_C" >&6
8036 else
8037 cat >conftest.$ac_ext <<_ACEOF
8038 /* confdefs.h. */
8039 _ACEOF
8040 cat confdefs.h >>conftest.$ac_ext
8041 cat >>conftest.$ac_ext <<_ACEOF
8042 /* end confdefs.h. */
8043 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8045 #define dlopen innocuous_dlopen
8046
8047 /* System header to define __stub macros and hopefully few prototypes,
8048 which can conflict with char dlopen (); below.
8049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8050 <limits.h> exists even on freestanding compilers. */
8051
8052 #ifdef __STDC__
8053 # include <limits.h>
8054 #else
8055 # include <assert.h>
8056 #endif
8057
8058 #undef dlopen
8059
8060 /* Override any GCC internal prototype to avoid an error.
8061 Use char because int might match the return type of a GCC
8062 builtin and then its argument prototype would still apply. */
8063 #ifdef __cplusplus
8064 extern "C"
8065 #endif
8066 char dlopen ();
8067 /* The GNU C library defines this for functions which it implements
8068 to always fail with ENOSYS. Some functions are actually named
8069 something starting with __ and the normal name is an alias. */
8070 #if defined __stub_dlopen || defined __stub___dlopen
8071 choke me
8072 #endif
8073
8074 int
8075 main ()
8076 {
8077 return dlopen ();
8078 ;
8079 return 0;
8080 }
8081 _ACEOF
8082 rm -f conftest.$ac_objext conftest$ac_exeext
8083 if { (ac_try="$ac_link"
8084 case "(($ac_try" in
8085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8086 *) ac_try_echo=$ac_try;;
8087 esac
8088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8089 (eval "$ac_link") 2>conftest.er1
8090 ac_status=$?
8091 grep -v '^ *+' conftest.er1 >conftest.err
8092 rm -f conftest.er1
8093 cat conftest.err >&5
8094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095 (exit $ac_status); } && {
8096 test -z "$ac_cxx_werror_flag" ||
8097 test ! -s conftest.err
8098 } && test -s conftest$ac_exeext &&
8099 $as_test_x conftest$ac_exeext; then
8100 ac_cv_func_dlopen=yes
8101 else
8102 echo "$as_me: failed program was:" >&5
8103 sed 's/^/| /' conftest.$ac_ext >&5
8104
8105 ac_cv_func_dlopen=no
8106 fi
8107
8108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8109 conftest$ac_exeext conftest.$ac_ext
8110 fi
8111 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8112 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
8113 if test $ac_cv_func_dlopen = yes; then
8114 lt_cv_dlopen="dlopen"
8115 else
8116 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8117 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8118 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8119 echo $ECHO_N "(cached) $ECHO_C" >&6
8120 else
8121 ac_check_lib_save_LIBS=$LIBS
8122 LIBS="-ldl $LIBS"
8123 cat >conftest.$ac_ext <<_ACEOF
8124 /* confdefs.h. */
8125 _ACEOF
8126 cat confdefs.h >>conftest.$ac_ext
8127 cat >>conftest.$ac_ext <<_ACEOF
8128 /* end confdefs.h. */
8129
8130 /* Override any GCC internal prototype to avoid an error.
8131 Use char because int might match the return type of a GCC
8132 builtin and then its argument prototype would still apply. */
8133 #ifdef __cplusplus
8134 extern "C"
8135 #endif
8136 char dlopen ();
8137 int
8138 main ()
8139 {
8140 return dlopen ();
8141 ;
8142 return 0;
8143 }
8144 _ACEOF
8145 rm -f conftest.$ac_objext conftest$ac_exeext
8146 if { (ac_try="$ac_link"
8147 case "(($ac_try" in
8148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8149 *) ac_try_echo=$ac_try;;
8150 esac
8151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8152 (eval "$ac_link") 2>conftest.er1
8153 ac_status=$?
8154 grep -v '^ *+' conftest.er1 >conftest.err
8155 rm -f conftest.er1
8156 cat conftest.err >&5
8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158 (exit $ac_status); } && {
8159 test -z "$ac_cxx_werror_flag" ||
8160 test ! -s conftest.err
8161 } && test -s conftest$ac_exeext &&
8162 $as_test_x conftest$ac_exeext; then
8163 ac_cv_lib_dl_dlopen=yes
8164 else
8165 echo "$as_me: failed program was:" >&5
8166 sed 's/^/| /' conftest.$ac_ext >&5
8167
8168 ac_cv_lib_dl_dlopen=no
8169 fi
8170
8171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8172 conftest$ac_exeext conftest.$ac_ext
8173 LIBS=$ac_check_lib_save_LIBS
8174 fi
8175 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8176 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8177 if test $ac_cv_lib_dl_dlopen = yes; then
8178 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8179 else
8180 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8181 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
8182 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8183 echo $ECHO_N "(cached) $ECHO_C" >&6
8184 else
8185 ac_check_lib_save_LIBS=$LIBS
8186 LIBS="-lsvld $LIBS"
8187 cat >conftest.$ac_ext <<_ACEOF
8188 /* confdefs.h. */
8189 _ACEOF
8190 cat confdefs.h >>conftest.$ac_ext
8191 cat >>conftest.$ac_ext <<_ACEOF
8192 /* end confdefs.h. */
8193
8194 /* Override any GCC internal prototype to avoid an error.
8195 Use char because int might match the return type of a GCC
8196 builtin and then its argument prototype would still apply. */
8197 #ifdef __cplusplus
8198 extern "C"
8199 #endif
8200 char dlopen ();
8201 int
8202 main ()
8203 {
8204 return dlopen ();
8205 ;
8206 return 0;
8207 }
8208 _ACEOF
8209 rm -f conftest.$ac_objext conftest$ac_exeext
8210 if { (ac_try="$ac_link"
8211 case "(($ac_try" in
8212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8213 *) ac_try_echo=$ac_try;;
8214 esac
8215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8216 (eval "$ac_link") 2>conftest.er1
8217 ac_status=$?
8218 grep -v '^ *+' conftest.er1 >conftest.err
8219 rm -f conftest.er1
8220 cat conftest.err >&5
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); } && {
8223 test -z "$ac_cxx_werror_flag" ||
8224 test ! -s conftest.err
8225 } && test -s conftest$ac_exeext &&
8226 $as_test_x conftest$ac_exeext; then
8227 ac_cv_lib_svld_dlopen=yes
8228 else
8229 echo "$as_me: failed program was:" >&5
8230 sed 's/^/| /' conftest.$ac_ext >&5
8231
8232 ac_cv_lib_svld_dlopen=no
8233 fi
8234
8235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8236 conftest$ac_exeext conftest.$ac_ext
8237 LIBS=$ac_check_lib_save_LIBS
8238 fi
8239 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8240 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
8241 if test $ac_cv_lib_svld_dlopen = yes; then
8242 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8243 else
8244 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8245 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
8246 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8247 echo $ECHO_N "(cached) $ECHO_C" >&6
8248 else
8249 ac_check_lib_save_LIBS=$LIBS
8250 LIBS="-ldld $LIBS"
8251 cat >conftest.$ac_ext <<_ACEOF
8252 /* confdefs.h. */
8253 _ACEOF
8254 cat confdefs.h >>conftest.$ac_ext
8255 cat >>conftest.$ac_ext <<_ACEOF
8256 /* end confdefs.h. */
8257
8258 /* Override any GCC internal prototype to avoid an error.
8259 Use char because int might match the return type of a GCC
8260 builtin and then its argument prototype would still apply. */
8261 #ifdef __cplusplus
8262 extern "C"
8263 #endif
8264 char dld_link ();
8265 int
8266 main ()
8267 {
8268 return dld_link ();
8269 ;
8270 return 0;
8271 }
8272 _ACEOF
8273 rm -f conftest.$ac_objext conftest$ac_exeext
8274 if { (ac_try="$ac_link"
8275 case "(($ac_try" in
8276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8277 *) ac_try_echo=$ac_try;;
8278 esac
8279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8280 (eval "$ac_link") 2>conftest.er1
8281 ac_status=$?
8282 grep -v '^ *+' conftest.er1 >conftest.err
8283 rm -f conftest.er1
8284 cat conftest.err >&5
8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); } && {
8287 test -z "$ac_cxx_werror_flag" ||
8288 test ! -s conftest.err
8289 } && test -s conftest$ac_exeext &&
8290 $as_test_x conftest$ac_exeext; then
8291 ac_cv_lib_dld_dld_link=yes
8292 else
8293 echo "$as_me: failed program was:" >&5
8294 sed 's/^/| /' conftest.$ac_ext >&5
8295
8296 ac_cv_lib_dld_dld_link=no
8297 fi
8298
8299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8300 conftest$ac_exeext conftest.$ac_ext
8301 LIBS=$ac_check_lib_save_LIBS
8302 fi
8303 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8304 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
8305 if test $ac_cv_lib_dld_dld_link = yes; then
8306 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8307 fi
8308
8309
8310 fi
8311
8312
8313 fi
8314
8315
8316 fi
8317
8318
8319 fi
8320
8321
8322 fi
8323
8324 ;;
8325 esac
8326
8327 if test "x$lt_cv_dlopen" != xno; then
8328 enable_dlopen=yes
8329 else
8330 enable_dlopen=no
8331 fi
8332
8333 case $lt_cv_dlopen in
8334 dlopen)
8335 save_CPPFLAGS="$CPPFLAGS"
8336 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8337
8338 save_LDFLAGS="$LDFLAGS"
8339 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8340
8341 save_LIBS="$LIBS"
8342 LIBS="$lt_cv_dlopen_libs $LIBS"
8343
8344 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8345 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
8346 if test "${lt_cv_dlopen_self+set}" = set; then
8347 echo $ECHO_N "(cached) $ECHO_C" >&6
8348 else
8349 if test "$cross_compiling" = yes; then :
8350 lt_cv_dlopen_self=cross
8351 else
8352 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8353 lt_status=$lt_dlunknown
8354 cat > conftest.$ac_ext <<EOF
8355 #line 8355 "configure"
8356 #include "confdefs.h"
8357
8358 #if HAVE_DLFCN_H
8359 #include <dlfcn.h>
8360 #endif
8361
8362 #include <stdio.h>
8363
8364 #ifdef RTLD_GLOBAL
8365 # define LT_DLGLOBAL RTLD_GLOBAL
8366 #else
8367 # ifdef DL_GLOBAL
8368 # define LT_DLGLOBAL DL_GLOBAL
8369 # else
8370 # define LT_DLGLOBAL 0
8371 # endif
8372 #endif
8373
8374 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8375 find out it does not work in some platform. */
8376 #ifndef LT_DLLAZY_OR_NOW
8377 # ifdef RTLD_LAZY
8378 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8379 # else
8380 # ifdef DL_LAZY
8381 # define LT_DLLAZY_OR_NOW DL_LAZY
8382 # else
8383 # ifdef RTLD_NOW
8384 # define LT_DLLAZY_OR_NOW RTLD_NOW
8385 # else
8386 # ifdef DL_NOW
8387 # define LT_DLLAZY_OR_NOW DL_NOW
8388 # else
8389 # define LT_DLLAZY_OR_NOW 0
8390 # endif
8391 # endif
8392 # endif
8393 # endif
8394 #endif
8395
8396 #ifdef __cplusplus
8397 extern "C" void exit (int);
8398 #endif
8399
8400 void fnord() { int i=42;}
8401 int main ()
8402 {
8403 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8404 int status = $lt_dlunknown;
8405
8406 if (self)
8407 {
8408 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8409 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8410 /* dlclose (self); */
8411 }
8412
8413 exit (status);
8414 }
8415 EOF
8416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8417 (eval $ac_link) 2>&5
8418 ac_status=$?
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8421 (./conftest; exit; ) 2>/dev/null
8422 lt_status=$?
8423 case x$lt_status in
8424 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8425 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8426 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8427 esac
8428 else :
8429 # compilation failed
8430 lt_cv_dlopen_self=no
8431 fi
8432 fi
8433 rm -fr conftest*
8434
8435
8436 fi
8437 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8438 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
8439
8440 if test "x$lt_cv_dlopen_self" = xyes; then
8441 LDFLAGS="$LDFLAGS $link_static_flag"
8442 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8443 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
8444 if test "${lt_cv_dlopen_self_static+set}" = set; then
8445 echo $ECHO_N "(cached) $ECHO_C" >&6
8446 else
8447 if test "$cross_compiling" = yes; then :
8448 lt_cv_dlopen_self_static=cross
8449 else
8450 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8451 lt_status=$lt_dlunknown
8452 cat > conftest.$ac_ext <<EOF
8453 #line 8453 "configure"
8454 #include "confdefs.h"
8455
8456 #if HAVE_DLFCN_H
8457 #include <dlfcn.h>
8458 #endif
8459
8460 #include <stdio.h>
8461
8462 #ifdef RTLD_GLOBAL
8463 # define LT_DLGLOBAL RTLD_GLOBAL
8464 #else
8465 # ifdef DL_GLOBAL
8466 # define LT_DLGLOBAL DL_GLOBAL
8467 # else
8468 # define LT_DLGLOBAL 0
8469 # endif
8470 #endif
8471
8472 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8473 find out it does not work in some platform. */
8474 #ifndef LT_DLLAZY_OR_NOW
8475 # ifdef RTLD_LAZY
8476 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8477 # else
8478 # ifdef DL_LAZY
8479 # define LT_DLLAZY_OR_NOW DL_LAZY
8480 # else
8481 # ifdef RTLD_NOW
8482 # define LT_DLLAZY_OR_NOW RTLD_NOW
8483 # else
8484 # ifdef DL_NOW
8485 # define LT_DLLAZY_OR_NOW DL_NOW
8486 # else
8487 # define LT_DLLAZY_OR_NOW 0
8488 # endif
8489 # endif
8490 # endif
8491 # endif
8492 #endif
8493
8494 #ifdef __cplusplus
8495 extern "C" void exit (int);
8496 #endif
8497
8498 void fnord() { int i=42;}
8499 int main ()
8500 {
8501 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8502 int status = $lt_dlunknown;
8503
8504 if (self)
8505 {
8506 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8507 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8508 /* dlclose (self); */
8509 }
8510
8511 exit (status);
8512 }
8513 EOF
8514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8515 (eval $ac_link) 2>&5
8516 ac_status=$?
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8519 (./conftest; exit; ) 2>/dev/null
8520 lt_status=$?
8521 case x$lt_status in
8522 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8523 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8524 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8525 esac
8526 else :
8527 # compilation failed
8528 lt_cv_dlopen_self_static=no
8529 fi
8530 fi
8531 rm -fr conftest*
8532
8533
8534 fi
8535 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8536 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
8537 fi
8538
8539 CPPFLAGS="$save_CPPFLAGS"
8540 LDFLAGS="$save_LDFLAGS"
8541 LIBS="$save_LIBS"
8542 ;;
8543 esac
8544
8545 case $lt_cv_dlopen_self in
8546 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8547 *) enable_dlopen_self=unknown ;;
8548 esac
8549
8550 case $lt_cv_dlopen_self_static in
8551 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8552 *) enable_dlopen_self_static=unknown ;;
8553 esac
8554 fi
8555
8556
8557 if test "$enable_shared" = yes && test "$GCC" = yes; then
8558 case $archive_cmds in
8559 *'~'*)
8560 # FIXME: we may have to deal with multi-command sequences.
8561 ;;
8562 '$CC '*)
8563 # Test whether the compiler implicitly links with -lc since on some
8564 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8565 # to ld, don't add -lc before -lgcc.
8566 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8567 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8568 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
8569 echo $ECHO_N "(cached) $ECHO_C" >&6
8570 else
8571 $rm conftest*
8572 echo 'static int dummy;' > conftest.$ac_ext
8573
8574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8575 (eval $ac_compile) 2>&5
8576 ac_status=$?
8577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 (exit $ac_status); }; then
8579 soname=conftest
8580 lib=conftest
8581 libobjs=conftest.$ac_objext
8582 deplibs=
8583 wl=$lt_cv_prog_cc_wl
8584 compiler_flags=-v
8585 linker_flags=-v
8586 verstring=
8587 output_objdir=.
8588 libname=conftest
8589 save_allow_undefined_flag=$allow_undefined_flag
8590 allow_undefined_flag=
8591 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8592 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8593 ac_status=$?
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); }
8596 then
8597 lt_cv_archive_cmds_need_lc=no
8598 else
8599 lt_cv_archive_cmds_need_lc=yes
8600 fi
8601 allow_undefined_flag=$save_allow_undefined_flag
8602 else
8603 cat conftest.err 1>&5
8604 fi
8605 fi
8606
8607 { echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
8608 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6; }
8609 ;;
8610 esac
8611 fi
8612 need_lc=${lt_cv_archive_cmds_need_lc-yes}
8613
8614 # The second clause should only fire when bootstrapping the
8615 # libtool distribution, otherwise you forgot to ship ltmain.sh
8616 # with your package, and you will get complaints that there are
8617 # no rules to generate ltmain.sh.
8618 if test -f "$ltmain"; then
8619 :
8620 else
8621 # If there is no Makefile yet, we rely on a make rule to execute
8622 # `config.status --recheck' to rerun these tests and create the
8623 # libtool script then.
8624 test -f Makefile && make "$ltmain"
8625 fi
8626
8627 if test -f "$ltmain"; then
8628 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
8629 $rm -f "${ofile}T"
8630
8631 echo creating $ofile
8632
8633 # Now quote all the things that may contain metacharacters while being
8634 # careful not to overquote the AC_SUBSTed values. We take copies of the
8635 # variables and quote the copies for generation of the libtool script.
8636 for var in echo old_CC old_CFLAGS \
8637 AR AR_FLAGS CC LD LN_S NM SHELL \
8638 reload_flag reload_cmds wl \
8639 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
8640 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
8641 library_names_spec soname_spec \
8642 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
8643 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
8644 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
8645 old_striplib striplib file_magic_cmd export_symbols_cmds \
8646 deplibs_check_method allow_undefined_flag no_undefined_flag \
8647 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
8648 global_symbol_to_c_name_address \
8649 hardcode_libdir_flag_spec hardcode_libdir_separator \
8650 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8651 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
8652
8653 case $var in
8654 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
8655 old_postinstall_cmds | old_postuninstall_cmds | \
8656 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
8657 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
8658 postinstall_cmds | postuninstall_cmds | \
8659 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8660 # Double-quote double-evaled strings.
8661 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8662 ;;
8663 *)
8664 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8665 ;;
8666 esac
8667 done
8668
8669 cat <<__EOF__ > "${ofile}T"
8670 #! $SHELL
8671
8672 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8673 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8674 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8675 #
8676 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
8677 # Originally by Gordon Matzigkeit <[email protected]>, 1996
8678 #
8679 # This program is free software; you can redistribute it and/or modify
8680 # it under the terms of the GNU General Public License as published by
8681 # the Free Software Foundation; either version 2 of the License, or
8682 # (at your option) any later version.
8683 #
8684 # This program is distributed in the hope that it will be useful, but
8685 # WITHOUT ANY WARRANTY; without even the implied warranty of
8686 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8687 # General Public License for more details.
8688 #
8689 # You should have received a copy of the GNU General Public License
8690 # along with this program; if not, write to the Free Software
8691 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8692 #
8693 # As a special exception to the GNU General Public License, if you
8694 # distribute this file as part of a program that contains a
8695 # configuration script generated by Autoconf, you may include it under
8696 # the same distribution terms that you use for the rest of that program.
8697
8698 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8699 Xsed="sed -e s/^X//"
8700
8701 # The HP-UX ksh and POSIX shell print the target directory to stdout
8702 # if CDPATH is set.
8703 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8704
8705 # ### BEGIN LIBTOOL CONFIG
8706
8707 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8708
8709 # Shell to use when invoking shell scripts.
8710 SHELL=$lt_SHELL
8711
8712 # Whether or not to build shared libraries.
8713 build_libtool_libs=$enable_shared
8714
8715 # Whether or not to build static libraries.
8716 build_old_libs=$enable_static
8717
8718 # Whether or not to add -lc for building shared libraries.
8719 build_libtool_need_lc=$need_lc
8720
8721 # Whether or not to optimize for fast installation.
8722 fast_install=$enable_fast_install
8723
8724 # The host system.
8725 host_alias=$host_alias
8726 host=$host
8727
8728 # An echo program that does not interpret backslashes.
8729 echo=$lt_echo
8730
8731 # The archiver.
8732 AR=$lt_AR
8733 AR_FLAGS=$lt_AR_FLAGS
8734
8735 # The default C compiler.
8736 CC=$lt_CC
8737
8738 # Is the compiler the GNU C compiler?
8739 with_gcc=$GCC
8740
8741 # The linker used to build libraries.
8742 LD=$lt_LD
8743
8744 # Whether we need hard or soft links.
8745 LN_S=$lt_LN_S
8746
8747 # A BSD-compatible nm program.
8748 NM=$lt_NM
8749
8750 # A symbol stripping program
8751 STRIP=$STRIP
8752
8753 # Used to examine libraries when file_magic_cmd begins "file"
8754 MAGIC_CMD=$MAGIC_CMD
8755
8756 # Used on cygwin: DLL creation program.
8757 DLLTOOL="$DLLTOOL"
8758
8759 # Used on cygwin: object dumper.
8760 OBJDUMP="$OBJDUMP"
8761
8762 # Used on cygwin: assembler.
8763 AS="$AS"
8764
8765 # The name of the directory that contains temporary libtool files.
8766 objdir=$objdir
8767
8768 # How to create reloadable object files.
8769 reload_flag=$lt_reload_flag
8770 reload_cmds=$lt_reload_cmds
8771
8772 # How to pass a linker flag through the compiler.
8773 wl=$lt_wl
8774
8775 # Object file suffix (normally "o").
8776 objext="$ac_objext"
8777
8778 # Old archive suffix (normally "a").
8779 libext="$libext"
8780
8781 # Executable file suffix (normally "").
8782 exeext="$exeext"
8783
8784 # Additional compiler flags for building library objects.
8785 pic_flag=$lt_pic_flag
8786 pic_mode=$pic_mode
8787
8788 # Does compiler simultaneously support -c and -o options?
8789 compiler_c_o=$lt_compiler_c_o
8790
8791 # Can we write directly to a .lo ?
8792 compiler_o_lo=$lt_compiler_o_lo
8793
8794 # Must we lock files when doing compilation ?
8795 need_locks=$lt_need_locks
8796
8797 # Do we need the lib prefix for modules?
8798 need_lib_prefix=$need_lib_prefix
8799
8800 # Do we need a version for libraries?
8801 need_version=$need_version
8802
8803 # Whether dlopen is supported.
8804 dlopen_support=$enable_dlopen
8805
8806 # Whether dlopen of programs is supported.
8807 dlopen_self=$enable_dlopen_self
8808
8809 # Whether dlopen of statically linked programs is supported.
8810 dlopen_self_static=$enable_dlopen_self_static
8811
8812 # Compiler flag to prevent dynamic linking.
8813 link_static_flag=$lt_link_static_flag
8814
8815 # Compiler flag to turn off builtin functions.
8816 no_builtin_flag=$lt_no_builtin_flag
8817
8818 # Compiler flag to allow reflexive dlopens.
8819 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8820
8821 # Compiler flag to generate shared objects directly from archives.
8822 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8823
8824 # Compiler flag to generate thread-safe objects.
8825 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8826
8827 # Library versioning type.
8828 version_type=$version_type
8829
8830 # Format of library name prefix.
8831 libname_spec=$lt_libname_spec
8832
8833 # List of archive names. First name is the real one, the rest are links.
8834 # The last name is the one that the linker finds with -lNAME.
8835 library_names_spec=$lt_library_names_spec
8836
8837 # The coded name of the library, if different from the real name.
8838 soname_spec=$lt_soname_spec
8839
8840 # Commands used to build and install an old-style archive.
8841 RANLIB=$lt_RANLIB
8842 old_archive_cmds=$lt_old_archive_cmds
8843 old_postinstall_cmds=$lt_old_postinstall_cmds
8844 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8845
8846 # Create an old-style archive from a shared archive.
8847 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8848
8849 # Create a temporary old-style archive to link instead of a shared archive.
8850 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8851
8852 # Commands used to build and install a shared archive.
8853 archive_cmds=$lt_archive_cmds
8854 archive_expsym_cmds=$lt_archive_expsym_cmds
8855 postinstall_cmds=$lt_postinstall_cmds
8856 postuninstall_cmds=$lt_postuninstall_cmds
8857
8858 # Commands to strip libraries.
8859 old_striplib=$lt_old_striplib
8860 striplib=$lt_striplib
8861
8862 # Method to check whether dependent libraries are shared objects.
8863 deplibs_check_method=$lt_deplibs_check_method
8864
8865 # Command to use when deplibs_check_method == file_magic.
8866 file_magic_cmd=$lt_file_magic_cmd
8867
8868 # Flag that allows shared libraries with undefined symbols to be built.
8869 allow_undefined_flag=$lt_allow_undefined_flag
8870
8871 # Flag that forces no undefined symbols.
8872 no_undefined_flag=$lt_no_undefined_flag
8873
8874 # Commands used to finish a libtool library installation in a directory.
8875 finish_cmds=$lt_finish_cmds
8876
8877 # Same as above, but a single script fragment to be evaled but not shown.
8878 finish_eval=$lt_finish_eval
8879
8880 # Take the output of nm and produce a listing of raw symbols and C names.
8881 global_symbol_pipe=$lt_global_symbol_pipe
8882
8883 # Transform the output of nm in a proper C declaration
8884 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
8885
8886 # Transform the output of nm in a C name address pair
8887 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
8888
8889 # This is the shared library runtime path variable.
8890 runpath_var=$runpath_var
8891
8892 # This is the shared library path variable.
8893 shlibpath_var=$shlibpath_var
8894
8895 # Is shlibpath searched before the hard-coded library search path?
8896 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8897
8898 # How to hardcode a shared library path into an executable.
8899 hardcode_action=$hardcode_action
8900
8901 # Whether we should hardcode library paths into libraries.
8902 hardcode_into_libs=$hardcode_into_libs
8903
8904 # Flag to hardcode \$libdir into a binary during linking.
8905 # This must work even if \$libdir does not exist.
8906 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8907
8908 # Whether we need a single -rpath flag with a separated argument.
8909 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8910
8911 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8912 # resulting binary.
8913 hardcode_direct=$hardcode_direct
8914
8915 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8916 # resulting binary.
8917 hardcode_minus_L=$hardcode_minus_L
8918
8919 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8920 # the resulting binary.
8921 hardcode_shlibpath_var=$hardcode_shlibpath_var
8922
8923 # Variables whose values should be saved in libtool wrapper scripts and
8924 # restored at relink time.
8925 variables_saved_for_relink="$variables_saved_for_relink"
8926
8927 # Whether libtool must link a program against all its dependency libraries.
8928 link_all_deplibs=$link_all_deplibs
8929
8930 # Compile-time system search path for libraries
8931 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8932
8933 # Run-time system search path for libraries
8934 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8935
8936 # Fix the shell variable \$srcfile for the compiler.
8937 fix_srcfile_path="$fix_srcfile_path"
8938
8939 # Set to yes if exported symbols are required.
8940 always_export_symbols=$always_export_symbols
8941
8942 # The commands to list exported symbols.
8943 export_symbols_cmds=$lt_export_symbols_cmds
8944
8945 # The commands to extract the exported symbol list from a shared archive.
8946 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8947
8948 # Symbols that should not be listed in the preloaded symbols.
8949 exclude_expsyms=$lt_exclude_expsyms
8950
8951 # Symbols that must always be exported.
8952 include_expsyms=$lt_include_expsyms
8953
8954 # ### END LIBTOOL CONFIG
8955
8956 __EOF__
8957
8958 case $host_os in
8959 aix3*)
8960 cat <<\EOF >> "${ofile}T"
8961
8962 # AIX sometimes has problems with the GCC collect2 program. For some
8963 # reason, if we set the COLLECT_NAMES environment variable, the problems
8964 # vanish in a puff of smoke.
8965 if test "X${COLLECT_NAMES+set}" != Xset; then
8966 COLLECT_NAMES=
8967 export COLLECT_NAMES
8968 fi
8969 EOF
8970 ;;
8971 esac
8972
8973 case $host_os in
8974 cygwin* | mingw* | pw32* | os2*)
8975 cat <<'EOF' >> "${ofile}T"
8976 # This is a source program that is used to create dlls on Windows
8977 # Don't remove nor modify the starting and closing comments
8978 # /* ltdll.c starts here */
8979 # #define WIN32_LEAN_AND_MEAN
8980 # #include <windows.h>
8981 # #undef WIN32_LEAN_AND_MEAN
8982 # #include <stdio.h>
8983 #
8984 # #ifndef __CYGWIN__
8985 # # ifdef __CYGWIN32__
8986 # # define __CYGWIN__ __CYGWIN32__
8987 # # endif
8988 # #endif
8989 #
8990 # #ifdef __cplusplus
8991 # extern "C" {
8992 # #endif
8993 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8994 # #ifdef __cplusplus
8995 # }
8996 # #endif
8997 #
8998 # #ifdef __CYGWIN__
8999 # #include <cygwin/cygwin_dll.h>
9000 # DECLARE_CYGWIN_DLL( DllMain );
9001 # #endif
9002 # HINSTANCE __hDllInstance_base;
9003 #
9004 # BOOL APIENTRY
9005 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
9006 # {
9007 # __hDllInstance_base = hInst;
9008 # return TRUE;
9009 # }
9010 # /* ltdll.c ends here */
9011 # This is a source program that is used to create import libraries
9012 # on Windows for dlls which lack them. Don't remove nor modify the
9013 # starting and closing comments
9014 # /* impgen.c starts here */
9015 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
9016 #
9017 # This file is part of GNU libtool.
9018 #
9019 # This program is free software; you can redistribute it and/or modify
9020 # it under the terms of the GNU General Public License as published by
9021 # the Free Software Foundation; either version 2 of the License, or
9022 # (at your option) any later version.
9023 #
9024 # This program is distributed in the hope that it will be useful,
9025 # but WITHOUT ANY WARRANTY; without even the implied warranty of
9026 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9027 # GNU General Public License for more details.
9028 #
9029 # You should have received a copy of the GNU General Public License
9030 # along with this program; if not, write to the Free Software
9031 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9032 # */
9033 #
9034 # #include <stdio.h> /* for printf() */
9035 # #include <unistd.h> /* for open(), lseek(), read() */
9036 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
9037 # #include <string.h> /* for strdup() */
9038 #
9039 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
9040 # #ifndef O_BINARY
9041 # #define O_BINARY 0
9042 # #endif
9043 #
9044 # static unsigned int
9045 # pe_get16 (fd, offset)
9046 # int fd;
9047 # int offset;
9048 # {
9049 # unsigned char b[2];
9050 # lseek (fd, offset, SEEK_SET);
9051 # read (fd, b, 2);
9052 # return b[0] + (b[1]<<8);
9053 # }
9054 #
9055 # static unsigned int
9056 # pe_get32 (fd, offset)
9057 # int fd;
9058 # int offset;
9059 # {
9060 # unsigned char b[4];
9061 # lseek (fd, offset, SEEK_SET);
9062 # read (fd, b, 4);
9063 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
9064 # }
9065 #
9066 # static unsigned int
9067 # pe_as32 (ptr)
9068 # void *ptr;
9069 # {
9070 # unsigned char *b = ptr;
9071 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
9072 # }
9073 #
9074 # int
9075 # main (argc, argv)
9076 # int argc;
9077 # char *argv[];
9078 # {
9079 # int dll;
9080 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
9081 # unsigned long export_rva, export_size, nsections, secptr, expptr;
9082 # unsigned long name_rvas, nexp;
9083 # unsigned char *expdata, *erva;
9084 # char *filename, *dll_name;
9085 #
9086 # filename = argv[1];
9087 #
9088 # dll = open(filename, O_RDONLY|O_BINARY);
9089 # if (dll < 1)
9090 # return 1;
9091 #
9092 # dll_name = filename;
9093 #
9094 # for (i=0; filename[i]; i++)
9095 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
9096 # dll_name = filename + i +1;
9097 #
9098 # pe_header_offset = pe_get32 (dll, 0x3c);
9099 # opthdr_ofs = pe_header_offset + 4 + 20;
9100 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
9101 #
9102 # if (num_entries < 1) /* no exports */
9103 # return 1;
9104 #
9105 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
9106 # export_size = pe_get32 (dll, opthdr_ofs + 100);
9107 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
9108 # secptr = (pe_header_offset + 4 + 20 +
9109 # pe_get16 (dll, pe_header_offset + 4 + 16));
9110 #
9111 # expptr = 0;
9112 # for (i = 0; i < nsections; i++)
9113 # {
9114 # char sname[8];
9115 # unsigned long secptr1 = secptr + 40 * i;
9116 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
9117 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
9118 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
9119 # lseek(dll, secptr1, SEEK_SET);
9120 # read(dll, sname, 8);
9121 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
9122 # {
9123 # expptr = fptr + (export_rva - vaddr);
9124 # if (export_rva + export_size > vaddr + vsize)
9125 # export_size = vsize - (export_rva - vaddr);
9126 # break;
9127 # }
9128 # }
9129 #
9130 # expdata = (unsigned char*)malloc(export_size);
9131 # lseek (dll, expptr, SEEK_SET);
9132 # read (dll, expdata, export_size);
9133 # erva = expdata - export_rva;
9134 #
9135 # nexp = pe_as32 (expdata+24);
9136 # name_rvas = pe_as32 (expdata+32);
9137 #
9138 # printf ("EXPORTS\n");
9139 # for (i = 0; i<nexp; i++)
9140 # {
9141 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
9142 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
9143 # }
9144 #
9145 # return 0;
9146 # }
9147 # /* impgen.c ends here */
9148
9149 EOF
9150 ;;
9151 esac
9152
9153 # We use sed instead of cat because bash on DJGPP gets confused if
9154 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9155 # text mode, it properly converts lines to CR/LF. This bash problem
9156 # is reportedly fixed, but why not run on old versions too?
9157 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
9158
9159 mv -f "${ofile}T" "$ofile" || \
9160 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
9161 chmod +x "$ofile"
9162 fi
9163
9164
9165
9166
9167
9168 # This can be used to rebuild libtool when needed
9169 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
9170
9171 # Always use our own libtool.
9172 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9173
9174 # Prevent multiple expansion
9175
9176
9177
9178
9179 succeeded=no
9180
9181 if test -z "$PKG_CONFIG"; then
9182 # Extract the first word of "pkg-config", so it can be a program name with args.
9183 set dummy pkg-config; ac_word=$2
9184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9186 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9187 echo $ECHO_N "(cached) $ECHO_C" >&6
9188 else
9189 case $PKG_CONFIG in
9190 [\\/]* | ?:[\\/]*)
9191 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9192 ;;
9193 *)
9194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9195 for as_dir in $PATH
9196 do
9197 IFS=$as_save_IFS
9198 test -z "$as_dir" && as_dir=.
9199 for ac_exec_ext in '' $ac_executable_extensions; do
9200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9201 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9203 break 2
9204 fi
9205 done
9206 done
9207 IFS=$as_save_IFS
9208
9209 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9210 ;;
9211 esac
9212 fi
9213 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9214 if test -n "$PKG_CONFIG"; then
9215 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9216 echo "${ECHO_T}$PKG_CONFIG" >&6; }
9217 else
9218 { echo "$as_me:$LINENO: result: no" >&5
9219 echo "${ECHO_T}no" >&6; }
9220 fi
9221
9222
9223 fi
9224
9225 if test "$PKG_CONFIG" = "no" ; then
9226 echo "*** The pkg-config script could not be found. Make sure it is"
9227 echo "*** in your path, or set the PKG_CONFIG environment variable"
9228 echo "*** to the full path to pkg-config."
9229 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9230 else
9231 PKG_CONFIG_MIN_VERSION=0.9.0
9232 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9233 { echo "$as_me:$LINENO: checking for libusb >= 0.1.11" >&5
9234 echo $ECHO_N "checking for libusb >= 0.1.11... $ECHO_C" >&6; }
9235
9236 if $PKG_CONFIG --exists "libusb >= 0.1.11" ; then
9237 { echo "$as_me:$LINENO: result: yes" >&5
9238 echo "${ECHO_T}yes" >&6; }
9239 succeeded=yes
9240
9241 { echo "$as_me:$LINENO: checking LIBUSB_CFLAGS" >&5
9242 echo $ECHO_N "checking LIBUSB_CFLAGS... $ECHO_C" >&6; }
9243 LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb >= 0.1.11"`
9244 { echo "$as_me:$LINENO: result: $LIBUSB_CFLAGS" >&5
9245 echo "${ECHO_T}$LIBUSB_CFLAGS" >&6; }
9246
9247 { echo "$as_me:$LINENO: checking LIBUSB_LIBS" >&5
9248 echo $ECHO_N "checking LIBUSB_LIBS... $ECHO_C" >&6; }
9249 LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb >= 0.1.11"`
9250 { echo "$as_me:$LINENO: result: $LIBUSB_LIBS" >&5
9251 echo "${ECHO_T}$LIBUSB_LIBS" >&6; }
9252 else
9253 LIBUSB_CFLAGS=""
9254 LIBUSB_LIBS=""
9255 ## If we have a custom action on failure, don't print errors, but
9256 ## do set a variable so people can do so.
9257 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libusb >= 0.1.11"`
9258 echo $LIBUSB_PKG_ERRORS
9259 fi
9260
9261
9262
9263 else
9264 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9265 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9266 fi
9267 fi
9268
9269 if test $succeeded = yes; then
9270 :
9271 else
9272 { { echo "$as_me:$LINENO: error: Library requirements (libusb >= 0.1.11) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
9273 echo "$as_me: error: Library requirements (libusb >= 0.1.11) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
9274 { (exit 1); exit 1; }; }
9275 fi
9276
9277 CXXFLAGS="$CXXFLAGS $LIBUSB_CFLAGS"
9278
9279 DATAFLAGS="-DDATADIR=\\\"\$(pkgdatadir)\\\""
9280
9281
9282 # Check whether --with-djdatadir was given.
9283 if test "${with_djdatadir+set}" = set; then
9284 withval=$with_djdatadir;
9285 DATAFLAGS="-DDATADIR=\\\"$withval\\\""
9286
9287 fi
9288
9289 CXXFLAGS="$CXXFLAGS $LIBUSB_CFLAGS $DATAFLAGS"
9290 LIBS="$LIBUSB_LIBS $LIBS"
9291
9292
9293 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
9294 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
9295 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
9296 echo $ECHO_N "(cached) $ECHO_C" >&6
9297 else
9298 ac_check_lib_save_LIBS=$LIBS
9299 LIBS="-lpthread $LIBS"
9300 cat >conftest.$ac_ext <<_ACEOF
9301 /* confdefs.h. */
9302 _ACEOF
9303 cat confdefs.h >>conftest.$ac_ext
9304 cat >>conftest.$ac_ext <<_ACEOF
9305 /* end confdefs.h. */
9306
9307 /* Override any GCC internal prototype to avoid an error.
9308 Use char because int might match the return type of a GCC
9309 builtin and then its argument prototype would still apply. */
9310 #ifdef __cplusplus
9311 extern "C"
9312 #endif
9313 char pthread_create ();
9314 int
9315 main ()
9316 {
9317 return pthread_create ();
9318 ;
9319 return 0;
9320 }
9321 _ACEOF
9322 rm -f conftest.$ac_objext conftest$ac_exeext
9323 if { (ac_try="$ac_link"
9324 case "(($ac_try" in
9325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9326 *) ac_try_echo=$ac_try;;
9327 esac
9328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9329 (eval "$ac_link") 2>conftest.er1
9330 ac_status=$?
9331 grep -v '^ *+' conftest.er1 >conftest.err
9332 rm -f conftest.er1
9333 cat conftest.err >&5
9334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335 (exit $ac_status); } && {
9336 test -z "$ac_cxx_werror_flag" ||
9337 test ! -s conftest.err
9338 } && test -s conftest$ac_exeext &&
9339 $as_test_x conftest$ac_exeext; then
9340 ac_cv_lib_pthread_pthread_create=yes
9341 else
9342 echo "$as_me: failed program was:" >&5
9343 sed 's/^/| /' conftest.$ac_ext >&5
9344
9345 ac_cv_lib_pthread_pthread_create=no
9346 fi
9347
9348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9349 conftest$ac_exeext conftest.$ac_ext
9350 LIBS=$ac_check_lib_save_LIBS
9351 fi
9352 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
9353 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
9354 if test $ac_cv_lib_pthread_pthread_create = yes; then
9355 cat >>confdefs.h <<_ACEOF
9356 #define HAVE_LIBPTHREAD 1
9357 _ACEOF
9358
9359 LIBS="-lpthread $LIBS"
9360
9361 fi
9362
9363
9364 # Checks for header files.
9365 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9366 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
9367 if test "${ac_cv_header_stdc+set}" = set; then
9368 echo $ECHO_N "(cached) $ECHO_C" >&6
9369 else
9370 cat >conftest.$ac_ext <<_ACEOF
9371 /* confdefs.h. */
9372 _ACEOF
9373 cat confdefs.h >>conftest.$ac_ext
9374 cat >>conftest.$ac_ext <<_ACEOF
9375 /* end confdefs.h. */
9376 #include <stdlib.h>
9377 #include <stdarg.h>
9378 #include <string.h>
9379 #include <float.h>
9380
9381 int
9382 main ()
9383 {
9384
9385 ;
9386 return 0;
9387 }
9388 _ACEOF
9389 rm -f conftest.$ac_objext
9390 if { (ac_try="$ac_compile"
9391 case "(($ac_try" in
9392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9393 *) ac_try_echo=$ac_try;;
9394 esac
9395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9396 (eval "$ac_compile") 2>conftest.er1
9397 ac_status=$?
9398 grep -v '^ *+' conftest.er1 >conftest.err
9399 rm -f conftest.er1
9400 cat conftest.err >&5
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); } && {
9403 test -z "$ac_cxx_werror_flag" ||
9404 test ! -s conftest.err
9405 } && test -s conftest.$ac_objext; then
9406 ac_cv_header_stdc=yes
9407 else
9408 echo "$as_me: failed program was:" >&5
9409 sed 's/^/| /' conftest.$ac_ext >&5
9410
9411 ac_cv_header_stdc=no
9412 fi
9413
9414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9415
9416 if test $ac_cv_header_stdc = yes; then
9417 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9418 cat >conftest.$ac_ext <<_ACEOF
9419 /* confdefs.h. */
9420 _ACEOF
9421 cat confdefs.h >>conftest.$ac_ext
9422 cat >>conftest.$ac_ext <<_ACEOF
9423 /* end confdefs.h. */
9424 #include <string.h>
9425
9426 _ACEOF
9427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9428 $EGREP "memchr" >/dev/null 2>&1; then
9429 :
9430 else
9431 ac_cv_header_stdc=no
9432 fi
9433 rm -f conftest*
9434
9435 fi
9436
9437 if test $ac_cv_header_stdc = yes; then
9438 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9439 cat >conftest.$ac_ext <<_ACEOF
9440 /* confdefs.h. */
9441 _ACEOF
9442 cat confdefs.h >>conftest.$ac_ext
9443 cat >>conftest.$ac_ext <<_ACEOF
9444 /* end confdefs.h. */
9445 #include <stdlib.h>
9446
9447 _ACEOF
9448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9449 $EGREP "free" >/dev/null 2>&1; then
9450 :
9451 else
9452 ac_cv_header_stdc=no
9453 fi
9454 rm -f conftest*
9455
9456 fi
9457
9458 if test $ac_cv_header_stdc = yes; then
9459 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9460 if test "$cross_compiling" = yes; then
9461 :
9462 else
9463 cat >conftest.$ac_ext <<_ACEOF
9464 /* confdefs.h. */
9465 _ACEOF
9466 cat confdefs.h >>conftest.$ac_ext
9467 cat >>conftest.$ac_ext <<_ACEOF
9468 /* end confdefs.h. */
9469 #include <ctype.h>
9470 #include <stdlib.h>
9471 #if ((' ' & 0x0FF) == 0x020)
9472 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9473 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9474 #else
9475 # define ISLOWER(c) \
9476 (('a' <= (c) && (c) <= 'i') \
9477 || ('j' <= (c) && (c) <= 'r') \
9478 || ('s' <= (c) && (c) <= 'z'))
9479 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9480 #endif
9481
9482 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9483 int
9484 main ()
9485 {
9486 int i;
9487 for (i = 0; i < 256; i++)
9488 if (XOR (islower (i), ISLOWER (i))
9489 || toupper (i) != TOUPPER (i))
9490 return 2;
9491 return 0;
9492 }
9493 _ACEOF
9494 rm -f conftest$ac_exeext
9495 if { (ac_try="$ac_link"
9496 case "(($ac_try" in
9497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9498 *) ac_try_echo=$ac_try;;
9499 esac
9500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9501 (eval "$ac_link") 2>&5
9502 ac_status=$?
9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9505 { (case "(($ac_try" in
9506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9507 *) ac_try_echo=$ac_try;;
9508 esac
9509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9510 (eval "$ac_try") 2>&5
9511 ac_status=$?
9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 (exit $ac_status); }; }; then
9514 :
9515 else
9516 echo "$as_me: program exited with status $ac_status" >&5
9517 echo "$as_me: failed program was:" >&5
9518 sed 's/^/| /' conftest.$ac_ext >&5
9519
9520 ( exit $ac_status )
9521 ac_cv_header_stdc=no
9522 fi
9523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9524 fi
9525
9526
9527 fi
9528 fi
9529 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9530 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
9531 if test $ac_cv_header_stdc = yes; then
9532
9533 cat >>confdefs.h <<\_ACEOF
9534 #define STDC_HEADERS 1
9535 _ACEOF
9536
9537 fi
9538
9539
9540 # Checks for typedefs, structures, and compiler characteristics.
9541 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
9542 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
9543 if test "${ac_cv_header_stdbool_h+set}" = set; then
9544 echo $ECHO_N "(cached) $ECHO_C" >&6
9545 else
9546 cat >conftest.$ac_ext <<_ACEOF
9547 /* confdefs.h. */
9548 _ACEOF
9549 cat confdefs.h >>conftest.$ac_ext
9550 cat >>conftest.$ac_ext <<_ACEOF
9551 /* end confdefs.h. */
9552
9553 #include <stdbool.h>
9554 #ifndef bool
9555 "error: bool is not defined"
9556 #endif
9557 #ifndef false
9558 "error: false is not defined"
9559 #endif
9560 #if false
9561 "error: false is not 0"
9562 #endif
9563 #ifndef true
9564 "error: true is not defined"
9565 #endif
9566 #if true != 1
9567 "error: true is not 1"
9568 #endif
9569 #ifndef __bool_true_false_are_defined
9570 "error: __bool_true_false_are_defined is not defined"
9571 #endif
9572
9573 struct s { _Bool s: 1; _Bool t; } s;
9574
9575 char a[true == 1 ? 1 : -1];
9576 char b[false == 0 ? 1 : -1];
9577 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9578 char d[(bool) 0.5 == true ? 1 : -1];
9579 bool e = &s;
9580 char f[(_Bool) 0.0 == false ? 1 : -1];
9581 char g[true];
9582 char h[sizeof (_Bool)];
9583 char i[sizeof s.t];
9584 enum { j = false, k = true, l = false * true, m = true * 256 };
9585 _Bool n[m];
9586 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
9587 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9588 # if defined __xlc__ || defined __GNUC__
9589 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
9590 reported by James Lemley on 2005-10-05; see
9591 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
9592 This test is not quite right, since xlc is allowed to
9593 reject this program, as the initializer for xlcbug is
9594 not one of the forms that C requires support for.
9595 However, doing the test right would require a runtime
9596 test, and that would make cross-compilation harder.
9597 Let us hope that IBM fixes the xlc bug, and also adds
9598 support for this kind of constant expression. In the
9599 meantime, this test will reject xlc, which is OK, since
9600 our stdbool.h substitute should suffice. We also test
9601 this with GCC, where it should work, to detect more
9602 quickly whether someone messes up the test in the
9603 future. */
9604 char digs[] = "0123456789";
9605 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
9606 # endif
9607 /* Catch a bug in an HP-UX C compiler. See
9608 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
9609 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
9610 */
9611 _Bool q = true;
9612 _Bool *pq = &q;
9613
9614 int
9615 main ()
9616 {
9617
9618 *pq |= q;
9619 *pq |= ! q;
9620 /* Refer to every declared value, to avoid compiler optimizations. */
9621 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
9622 + !m + !n + !o + !p + !q + !pq);
9623
9624 ;
9625 return 0;
9626 }
9627 _ACEOF
9628 rm -f conftest.$ac_objext
9629 if { (ac_try="$ac_compile"
9630 case "(($ac_try" in
9631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9632 *) ac_try_echo=$ac_try;;
9633 esac
9634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9635 (eval "$ac_compile") 2>conftest.er1
9636 ac_status=$?
9637 grep -v '^ *+' conftest.er1 >conftest.err
9638 rm -f conftest.er1
9639 cat conftest.err >&5
9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); } && {
9642 test -z "$ac_cxx_werror_flag" ||
9643 test ! -s conftest.err
9644 } && test -s conftest.$ac_objext; then
9645 ac_cv_header_stdbool_h=yes
9646 else
9647 echo "$as_me: failed program was:" >&5
9648 sed 's/^/| /' conftest.$ac_ext >&5
9649
9650 ac_cv_header_stdbool_h=no
9651 fi
9652
9653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9654 fi
9655 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
9656 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
9657 { echo "$as_me:$LINENO: checking for _Bool" >&5
9658 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
9659 if test "${ac_cv_type__Bool+set}" = set; then
9660 echo $ECHO_N "(cached) $ECHO_C" >&6
9661 else
9662 cat >conftest.$ac_ext <<_ACEOF
9663 /* confdefs.h. */
9664 _ACEOF
9665 cat confdefs.h >>conftest.$ac_ext
9666 cat >>conftest.$ac_ext <<_ACEOF
9667 /* end confdefs.h. */
9668 $ac_includes_default
9669 typedef _Bool ac__type_new_;
9670 int
9671 main ()
9672 {
9673 if ((ac__type_new_ *) 0)
9674 return 0;
9675 if (sizeof (ac__type_new_))
9676 return 0;
9677 ;
9678 return 0;
9679 }
9680 _ACEOF
9681 rm -f conftest.$ac_objext
9682 if { (ac_try="$ac_compile"
9683 case "(($ac_try" in
9684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9685 *) ac_try_echo=$ac_try;;
9686 esac
9687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9688 (eval "$ac_compile") 2>conftest.er1
9689 ac_status=$?
9690 grep -v '^ *+' conftest.er1 >conftest.err
9691 rm -f conftest.er1
9692 cat conftest.err >&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); } && {
9695 test -z "$ac_cxx_werror_flag" ||
9696 test ! -s conftest.err
9697 } && test -s conftest.$ac_objext; then
9698 ac_cv_type__Bool=yes
9699 else
9700 echo "$as_me: failed program was:" >&5
9701 sed 's/^/| /' conftest.$ac_ext >&5
9702
9703 ac_cv_type__Bool=no
9704 fi
9705
9706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9707 fi
9708 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
9709 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
9710 if test $ac_cv_type__Bool = yes; then
9711
9712 cat >>confdefs.h <<_ACEOF
9713 #define HAVE__BOOL 1
9714 _ACEOF
9715
9716
9717 fi
9718
9719 if test $ac_cv_header_stdbool_h = yes; then
9720
9721 cat >>confdefs.h <<\_ACEOF
9722 #define HAVE_STDBOOL_H 1
9723 _ACEOF
9724
9725 fi
9726
9727 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9728 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9729 if test "${ac_cv_c_const+set}" = set; then
9730 echo $ECHO_N "(cached) $ECHO_C" >&6
9731 else
9732 cat >conftest.$ac_ext <<_ACEOF
9733 /* confdefs.h. */
9734 _ACEOF
9735 cat confdefs.h >>conftest.$ac_ext
9736 cat >>conftest.$ac_ext <<_ACEOF
9737 /* end confdefs.h. */
9738
9739 int
9740 main ()
9741 {
9742 /* FIXME: Include the comments suggested by Paul. */
9743 #ifndef __cplusplus
9744 /* Ultrix mips cc rejects this. */
9745 typedef int charset[2];
9746 const charset cs;
9747 /* SunOS 4.1.1 cc rejects this. */
9748 char const *const *pcpcc;
9749 char **ppc;
9750 /* NEC SVR4.0.2 mips cc rejects this. */
9751 struct point {int x, y;};
9752 static struct point const zero = {0,0};
9753 /* AIX XL C 1.02.0.0 rejects this.
9754 It does not let you subtract one const X* pointer from another in
9755 an arm of an if-expression whose if-part is not a constant
9756 expression */
9757 const char *g = "string";
9758 pcpcc = &g + (g ? g-g : 0);
9759 /* HPUX 7.0 cc rejects these. */
9760 ++pcpcc;
9761 ppc = (char**) pcpcc;
9762 pcpcc = (char const *const *) ppc;
9763 { /* SCO 3.2v4 cc rejects this. */
9764 char *t;
9765 char const *s = 0 ? (char *) 0 : (char const *) 0;
9766
9767 *t++ = 0;
9768 if (s) return 0;
9769 }
9770 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9771 int x[] = {25, 17};
9772 const int *foo = &x[0];
9773 ++foo;
9774 }
9775 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9776 typedef const int *iptr;
9777 iptr p = 0;
9778 ++p;
9779 }
9780 { /* AIX XL C 1.02.0.0 rejects this saying
9781 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9782 struct s { int j; const int *ap[3]; };
9783 struct s *b; b->j = 5;
9784 }
9785 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9786 const int foo = 10;
9787 if (!foo) return 0;
9788 }
9789 return !cs[0] && !zero.x;
9790 #endif
9791
9792 ;
9793 return 0;
9794 }
9795 _ACEOF
9796 rm -f conftest.$ac_objext
9797 if { (ac_try="$ac_compile"
9798 case "(($ac_try" in
9799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9800 *) ac_try_echo=$ac_try;;
9801 esac
9802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9803 (eval "$ac_compile") 2>conftest.er1
9804 ac_status=$?
9805 grep -v '^ *+' conftest.er1 >conftest.err
9806 rm -f conftest.er1
9807 cat conftest.err >&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); } && {
9810 test -z "$ac_cxx_werror_flag" ||
9811 test ! -s conftest.err
9812 } && test -s conftest.$ac_objext; then
9813 ac_cv_c_const=yes
9814 else
9815 echo "$as_me: failed program was:" >&5
9816 sed 's/^/| /' conftest.$ac_ext >&5
9817
9818 ac_cv_c_const=no
9819 fi
9820
9821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9822 fi
9823 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9824 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9825 if test $ac_cv_c_const = no; then
9826
9827 cat >>confdefs.h <<\_ACEOF
9828 #define const
9829 _ACEOF
9830
9831 fi
9832
9833
9834 # Checks for library functions.
9835 { echo "$as_me:$LINENO: checking for error_at_line" >&5
9836 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
9837 if test "${ac_cv_lib_error_at_line+set}" = set; then
9838 echo $ECHO_N "(cached) $ECHO_C" >&6
9839 else
9840 cat >conftest.$ac_ext <<_ACEOF
9841 /* confdefs.h. */
9842 _ACEOF
9843 cat confdefs.h >>conftest.$ac_ext
9844 cat >>conftest.$ac_ext <<_ACEOF
9845 /* end confdefs.h. */
9846 #include <error.h>
9847 int
9848 main ()
9849 {
9850 error_at_line (0, 0, "", 0, "an error occurred");
9851 ;
9852 return 0;
9853 }
9854 _ACEOF
9855 rm -f conftest.$ac_objext conftest$ac_exeext
9856 if { (ac_try="$ac_link"
9857 case "(($ac_try" in
9858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9859 *) ac_try_echo=$ac_try;;
9860 esac
9861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9862 (eval "$ac_link") 2>conftest.er1
9863 ac_status=$?
9864 grep -v '^ *+' conftest.er1 >conftest.err
9865 rm -f conftest.er1
9866 cat conftest.err >&5
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); } && {
9869 test -z "$ac_cxx_werror_flag" ||
9870 test ! -s conftest.err
9871 } && test -s conftest$ac_exeext &&
9872 $as_test_x conftest$ac_exeext; then
9873 ac_cv_lib_error_at_line=yes
9874 else
9875 echo "$as_me: failed program was:" >&5
9876 sed 's/^/| /' conftest.$ac_ext >&5
9877
9878 ac_cv_lib_error_at_line=no
9879 fi
9880
9881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9882 conftest$ac_exeext conftest.$ac_ext
9883 fi
9884 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
9885 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
9886 if test $ac_cv_lib_error_at_line = no; then
9887 case " $LIBOBJS " in
9888 *" error.$ac_objext "* ) ;;
9889 *) LIBOBJS="$LIBOBJS error.$ac_objext"
9890 ;;
9891 esac
9892
9893 fi
9894
9895
9896 ac_config_files="$ac_config_files libdjconsole.pc"
9897
9898 cat >confcache <<\_ACEOF
9899 # This file is a shell script that caches the results of configure
9900 # tests run on this system so they can be shared between configure
9901 # scripts and configure runs, see configure's option --config-cache.
9902 # It is not useful on other systems. If it contains results you don't
9903 # want to keep, you may remove or edit it.
9904 #
9905 # config.status only pays attention to the cache file if you give it
9906 # the --recheck option to rerun configure.
9907 #
9908 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9909 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9910 # following values.
9911
9912 _ACEOF
9913
9914 # The following way of writing the cache mishandles newlines in values,
9915 # but we know of no workaround that is simple, portable, and efficient.
9916 # So, we kill variables containing newlines.
9917 # Ultrix sh set writes to stderr and can't be redirected directly,
9918 # and sets the high bit in the cache file unless we assign to the vars.
9919 (
9920 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9921 eval ac_val=\$$ac_var
9922 case $ac_val in #(
9923 *${as_nl}*)
9924 case $ac_var in #(
9925 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
9926 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
9927 esac
9928 case $ac_var in #(
9929 _ | IFS | as_nl) ;; #(
9930 *) $as_unset $ac_var ;;
9931 esac ;;
9932 esac
9933 done
9934
9935 (set) 2>&1 |
9936 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9937 *${as_nl}ac_space=\ *)
9938 # `set' does not quote correctly, so add quotes (double-quote
9939 # substitution turns \\\\ into \\, and sed turns \\ into \).
9940 sed -n \
9941 "s/'/'\\\\''/g;
9942 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9943 ;; #(
9944 *)
9945 # `set' quotes correctly as required by POSIX, so do not add quotes.
9946 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9947 ;;
9948 esac |
9949 sort
9950 ) |
9951 sed '
9952 /^ac_cv_env_/b end
9953 t clear
9954 :clear
9955 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9956 t end
9957 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9958 :end' >>confcache
9959 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9960 if test -w "$cache_file"; then
9961 test "x$cache_file" != "x/dev/null" &&
9962 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
9963 echo "$as_me: updating cache $cache_file" >&6;}
9964 cat confcache >$cache_file
9965 else
9966 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
9967 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9968 fi
9969 fi
9970 rm -f confcache
9971
9972 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9973 # Let make expand exec_prefix.
9974 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9975
9976 DEFS=-DHAVE_CONFIG_H
9977
9978 ac_libobjs=
9979 ac_ltlibobjs=
9980 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9981 # 1. Remove the extension, and $U if already installed.
9982 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9983 ac_i=`echo "$ac_i" | sed "$ac_script"`
9984 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9985 # will be set to the directory where LIBOBJS objects are built.
9986 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9987 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
9988 done
9989 LIBOBJS=$ac_libobjs
9990
9991 LTLIBOBJS=$ac_ltlibobjs
9992
9993
9994 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9995 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9996 Usually this means the macro was only invoked conditionally." >&5
9997 echo "$as_me: error: conditional \"AMDEP\" was never defined.
9998 Usually this means the macro was only invoked conditionally." >&2;}
9999 { (exit 1); exit 1; }; }
10000 fi
10001
10002 : ${CONFIG_STATUS=./config.status}
10003 ac_clean_files_save=$ac_clean_files
10004 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10005 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10006 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10007 cat >$CONFIG_STATUS <<_ACEOF
10008 #! $SHELL
10009 # Generated by $as_me.
10010 # Run this file to recreate the current configuration.
10011 # Compiler output produced by configure, useful for debugging
10012 # configure, is in config.log if it exists.
10013
10014 debug=false
10015 ac_cs_recheck=false
10016 ac_cs_silent=false
10017 SHELL=\${CONFIG_SHELL-$SHELL}
10018 _ACEOF
10019
10020 cat >>$CONFIG_STATUS <<\_ACEOF
10021 ## --------------------- ##
10022 ## M4sh Initialization. ##
10023 ## --------------------- ##
10024
10025 # Be more Bourne compatible
10026 DUALCASE=1; export DUALCASE # for MKS sh
10027 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10028 emulate sh
10029 NULLCMD=:
10030 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10031 # is contrary to our usage. Disable this feature.
10032 alias -g '${1+"$@"}'='"$@"'
10033 setopt NO_GLOB_SUBST
10034 else
10035 case `(set -o) 2>/dev/null` in
10036 *posix*) set -o posix ;;
10037 esac
10038
10039 fi
10040
10041
10042
10043
10044 # PATH needs CR
10045 # Avoid depending upon Character Ranges.
10046 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10047 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10048 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10049 as_cr_digits='0123456789'
10050 as_cr_alnum=$as_cr_Letters$as_cr_digits
10051
10052 # The user is always right.
10053 if test "${PATH_SEPARATOR+set}" != set; then
10054 echo "#! /bin/sh" >conf$$.sh
10055 echo "exit 0" >>conf$$.sh
10056 chmod +x conf$$.sh
10057 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10058 PATH_SEPARATOR=';'
10059 else
10060 PATH_SEPARATOR=:
10061 fi
10062 rm -f conf$$.sh
10063 fi
10064
10065 # Support unset when possible.
10066 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10067 as_unset=unset
10068 else
10069 as_unset=false
10070 fi
10071
10072
10073 # IFS
10074 # We need space, tab and new line, in precisely that order. Quoting is
10075 # there to prevent editors from complaining about space-tab.
10076 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10077 # splitting by setting IFS to empty value.)
10078 as_nl='
10079 '
10080 IFS=" "" $as_nl"
10081
10082 # Find who we are. Look in the path if we contain no directory separator.
10083 case $0 in
10084 *[\\/]* ) as_myself=$0 ;;
10085 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10086 for as_dir in $PATH
10087 do
10088 IFS=$as_save_IFS
10089 test -z "$as_dir" && as_dir=.
10090 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10091 done
10092 IFS=$as_save_IFS
10093
10094 ;;
10095 esac
10096 # We did not find ourselves, most probably we were run as `sh COMMAND'
10097 # in which case we are not to be found in the path.
10098 if test "x$as_myself" = x; then
10099 as_myself=$0
10100 fi
10101 if test ! -f "$as_myself"; then
10102 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10103 { (exit 1); exit 1; }
10104 fi
10105
10106 # Work around bugs in pre-3.0 UWIN ksh.
10107 for as_var in ENV MAIL MAILPATH
10108 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10109 done
10110 PS1='$ '
10111 PS2='> '
10112 PS4='+ '
10113
10114 # NLS nuisances.
10115 for as_var in \
10116 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10117 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10118 LC_TELEPHONE LC_TIME
10119 do
10120 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10121 eval $as_var=C; export $as_var
10122 else
10123 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10124 fi
10125 done
10126
10127 # Required to use basename.
10128 if expr a : '\(a\)' >/dev/null 2>&1 &&
10129 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10130 as_expr=expr
10131 else
10132 as_expr=false
10133 fi
10134
10135 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10136 as_basename=basename
10137 else
10138 as_basename=false
10139 fi
10140
10141
10142 # Name of the executable.
10143 as_me=`$as_basename -- "$0" ||
10144 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10145 X"$0" : 'X\(//\)$' \| \
10146 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10147 echo X/"$0" |
10148 sed '/^.*\/\([^/][^/]*\)\/*$/{
10149 s//\1/
10150 q
10151 }
10152 /^X\/\(\/\/\)$/{
10153 s//\1/
10154 q
10155 }
10156 /^X\/\(\/\).*/{
10157 s//\1/
10158 q
10159 }
10160 s/.*/./; q'`
10161
10162 # CDPATH.
10163 $as_unset CDPATH
10164
10165
10166
10167 as_lineno_1=$LINENO
10168 as_lineno_2=$LINENO
10169 test "x$as_lineno_1" != "x$as_lineno_2" &&
10170 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10171
10172 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10173 # uniformly replaced by the line number. The first 'sed' inserts a
10174 # line-number line after each line using $LINENO; the second 'sed'
10175 # does the real work. The second script uses 'N' to pair each
10176 # line-number line with the line containing $LINENO, and appends
10177 # trailing '-' during substitution so that $LINENO is not a special
10178 # case at line end.
10179 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10180 # scripts with optimization help from Paolo Bonzini. Blame Lee
10181 # E. McMahon (1931-1989) for sed's syntax. :-)
10182 sed -n '
10183 p
10184 /[$]LINENO/=
10185 ' <$as_myself |
10186 sed '
10187 s/[$]LINENO.*/&-/
10188 t lineno
10189 b
10190 :lineno
10191 N
10192 :loop
10193 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10194 t loop
10195 s/-\n.*//
10196 ' >$as_me.lineno &&
10197 chmod +x "$as_me.lineno" ||
10198 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10199 { (exit 1); exit 1; }; }
10200
10201 # Don't try to exec as it changes $[0], causing all sort of problems
10202 # (the dirname of $[0] is not the place where we might find the
10203 # original and so on. Autoconf is especially sensitive to this).
10204 . "./$as_me.lineno"
10205 # Exit status is that of the last command.
10206 exit
10207 }
10208
10209
10210 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10211 as_dirname=dirname
10212 else
10213 as_dirname=false
10214 fi
10215
10216 ECHO_C= ECHO_N= ECHO_T=
10217 case `echo -n x` in
10218 -n*)
10219 case `echo 'x\c'` in
10220 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10221 *) ECHO_C='\c';;
10222 esac;;
10223 *)
10224 ECHO_N='-n';;
10225 esac
10226
10227 if expr a : '\(a\)' >/dev/null 2>&1 &&
10228 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10229 as_expr=expr
10230 else
10231 as_expr=false
10232 fi
10233
10234 rm -f conf$$ conf$$.exe conf$$.file
10235 if test -d conf$$.dir; then
10236 rm -f conf$$.dir/conf$$.file
10237 else
10238 rm -f conf$$.dir
10239 mkdir conf$$.dir
10240 fi
10241 echo >conf$$.file
10242 if ln -s conf$$.file conf$$ 2>/dev/null; then
10243 as_ln_s='ln -s'
10244 # ... but there are two gotchas:
10245 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10246 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10247 # In both cases, we have to default to `cp -p'.
10248 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10249 as_ln_s='cp -p'
10250 elif ln conf$$.file conf$$ 2>/dev/null; then
10251 as_ln_s=ln
10252 else
10253 as_ln_s='cp -p'
10254 fi
10255 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10256 rmdir conf$$.dir 2>/dev/null
10257
10258 if mkdir -p . 2>/dev/null; then
10259 as_mkdir_p=:
10260 else
10261 test -d ./-p && rmdir ./-p
10262 as_mkdir_p=false
10263 fi
10264
10265 if test -x / >/dev/null 2>&1; then
10266 as_test_x='test -x'
10267 else
10268 if ls -dL / >/dev/null 2>&1; then
10269 as_ls_L_option=L
10270 else
10271 as_ls_L_option=
10272 fi
10273 as_test_x='
10274 eval sh -c '\''
10275 if test -d "$1"; then
10276 test -d "$1/.";
10277 else
10278 case $1 in
10279 -*)set "./$1";;
10280 esac;
10281 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10282 ???[sx]*):;;*)false;;esac;fi
10283 '\'' sh
10284 '
10285 fi
10286 as_executable_p=$as_test_x
10287
10288 # Sed expression to map a string onto a valid CPP name.
10289 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10290
10291 # Sed expression to map a string onto a valid variable name.
10292 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10293
10294
10295 exec 6>&1
10296
10297 # Save the log message, to keep $[0] and so on meaningful, and to
10298 # report actual input values of CONFIG_FILES etc. instead of their
10299 # values after options handling.
10300 ac_log="
10301 This file was extended by libdjconsole $as_me 0.1.3, which was
10302 generated by GNU Autoconf 2.61. Invocation command line was
10303
10304 CONFIG_FILES = $CONFIG_FILES
10305 CONFIG_HEADERS = $CONFIG_HEADERS
10306 CONFIG_LINKS = $CONFIG_LINKS
10307 CONFIG_COMMANDS = $CONFIG_COMMANDS
10308 $ $0 $@
10309
10310 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10311 "
10312
10313 _ACEOF
10314
10315 cat >>$CONFIG_STATUS <<_ACEOF
10316 # Files that config.status was made for.
10317 config_files="$ac_config_files"
10318 config_headers="$ac_config_headers"
10319 config_commands="$ac_config_commands"
10320
10321 _ACEOF
10322
10323 cat >>$CONFIG_STATUS <<\_ACEOF
10324 ac_cs_usage="\
10325 \`$as_me' instantiates files from templates according to the
10326 current configuration.
10327
10328 Usage: $0 [OPTIONS] [FILE]...
10329
10330 -h, --help print this help, then exit
10331 -V, --version print version number and configuration settings, then exit
10332 -q, --quiet do not print progress messages
10333 -d, --debug don't remove temporary files
10334 --recheck update $as_me by reconfiguring in the same conditions
10335 --file=FILE[:TEMPLATE]
10336 instantiate the configuration file FILE
10337 --header=FILE[:TEMPLATE]
10338 instantiate the configuration header FILE
10339
10340 Configuration files:
10341 $config_files
10342
10343 Configuration headers:
10344 $config_headers
10345
10346 Configuration commands:
10347 $config_commands
10348
10349 Report bugs to <[email protected]>."
10350
10351 _ACEOF
10352 cat >>$CONFIG_STATUS <<_ACEOF
10353 ac_cs_version="\\
10354 libdjconsole config.status 0.1.3
10355 configured by $0, generated by GNU Autoconf 2.61,
10356 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10357
10358 Copyright (C) 2006 Free Software Foundation, Inc.
10359 This config.status script is free software; the Free Software Foundation
10360 gives unlimited permission to copy, distribute and modify it."
10361
10362 ac_pwd='$ac_pwd'
10363 srcdir='$srcdir'
10364 INSTALL='$INSTALL'
10365 _ACEOF
10366
10367 cat >>$CONFIG_STATUS <<\_ACEOF
10368 # If no file are specified by the user, then we need to provide default
10369 # value. By we need to know if files were specified by the user.
10370 ac_need_defaults=:
10371 while test $# != 0
10372 do
10373 case $1 in
10374 --*=*)
10375 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10376 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10377 ac_shift=:
10378 ;;
10379 *)
10380 ac_option=$1
10381 ac_optarg=$2
10382 ac_shift=shift
10383 ;;
10384 esac
10385
10386 case $ac_option in
10387 # Handling of the options.
10388 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10389 ac_cs_recheck=: ;;
10390 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10391 echo "$ac_cs_version"; exit ;;
10392 --debug | --debu | --deb | --de | --d | -d )
10393 debug=: ;;
10394 --file | --fil | --fi | --f )
10395 $ac_shift
10396 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10397 ac_need_defaults=false;;
10398 --header | --heade | --head | --hea )
10399 $ac_shift
10400 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10401 ac_need_defaults=false;;
10402 --he | --h)
10403 # Conflict between --help and --header
10404 { echo "$as_me: error: ambiguous option: $1
10405 Try \`$0 --help' for more information." >&2
10406 { (exit 1); exit 1; }; };;
10407 --help | --hel | -h )
10408 echo "$ac_cs_usage"; exit ;;
10409 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10410 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10411 ac_cs_silent=: ;;
10412
10413 # This is an error.
10414 -*) { echo "$as_me: error: unrecognized option: $1
10415 Try \`$0 --help' for more information." >&2
10416 { (exit 1); exit 1; }; } ;;
10417
10418 *) ac_config_targets="$ac_config_targets $1"
10419 ac_need_defaults=false ;;
10420
10421 esac
10422 shift
10423 done
10424
10425 ac_configure_extra_args=
10426
10427 if $ac_cs_silent; then
10428 exec 6>/dev/null
10429 ac_configure_extra_args="$ac_configure_extra_args --silent"
10430 fi
10431
10432 _ACEOF
10433 cat >>$CONFIG_STATUS <<_ACEOF
10434 if \$ac_cs_recheck; then
10435 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10436 CONFIG_SHELL=$SHELL
10437 export CONFIG_SHELL
10438 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10439 fi
10440
10441 _ACEOF
10442 cat >>$CONFIG_STATUS <<\_ACEOF
10443 exec 5>>config.log
10444 {
10445 echo
10446 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10447 ## Running $as_me. ##
10448 _ASBOX
10449 echo "$ac_log"
10450 } >&5
10451
10452 _ACEOF
10453 cat >>$CONFIG_STATUS <<_ACEOF
10454 #
10455 # INIT-COMMANDS
10456 #
10457 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10458
10459 _ACEOF
10460
10461 cat >>$CONFIG_STATUS <<\_ACEOF
10462
10463 # Handling of arguments.
10464 for ac_config_target in $ac_config_targets
10465 do
10466 case $ac_config_target in
10467 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10468 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10469 "libdjconsole.pc") CONFIG_FILES="$CONFIG_FILES libdjconsole.pc" ;;
10470
10471 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10472 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10473 { (exit 1); exit 1; }; };;
10474 esac
10475 done
10476
10477
10478 # If the user did not use the arguments to specify the items to instantiate,
10479 # then the envvar interface is used. Set only those that are not.
10480 # We use the long form for the default assignment because of an extremely
10481 # bizarre bug on SunOS 4.1.3.
10482 if $ac_need_defaults; then
10483 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10484 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10485 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10486 fi
10487
10488 # Have a temporary directory for convenience. Make it in the build tree
10489 # simply because there is no reason against having it here, and in addition,
10490 # creating and moving files from /tmp can sometimes cause problems.
10491 # Hook for its removal unless debugging.
10492 # Note that there is a small window in which the directory will not be cleaned:
10493 # after its creation but before its name has been assigned to `$tmp'.
10494 $debug ||
10495 {
10496 tmp=
10497 trap 'exit_status=$?
10498 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10499 ' 0
10500 trap '{ (exit 1); exit 1; }' 1 2 13 15
10501 }
10502 # Create a (secure) tmp directory for tmp files.
10503
10504 {
10505 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10506 test -n "$tmp" && test -d "$tmp"
10507 } ||
10508 {
10509 tmp=./conf$$-$RANDOM
10510 (umask 077 && mkdir "$tmp")
10511 } ||
10512 {
10513 echo "$me: cannot create a temporary directory in ." >&2
10514 { (exit 1); exit 1; }
10515 }
10516
10517 #
10518 # Set up the sed scripts for CONFIG_FILES section.
10519 #
10520
10521 # No need to generate the scripts if there are no CONFIG_FILES.
10522 # This happens for instance when ./config.status config.h
10523 if test -n "$CONFIG_FILES"; then
10524
10525 _ACEOF
10526
10527
10528
10529 ac_delim='%!_!# '
10530 for ac_last_try in false false false false false :; do
10531 cat >conf$$subs.sed <<_ACEOF
10532 SHELL!$SHELL$ac_delim
10533 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10534 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10535 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10536 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10537 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10538 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10539 exec_prefix!$exec_prefix$ac_delim
10540 prefix!$prefix$ac_delim
10541 program_transform_name!$program_transform_name$ac_delim
10542 bindir!$bindir$ac_delim
10543 sbindir!$sbindir$ac_delim
10544 libexecdir!$libexecdir$ac_delim
10545 datarootdir!$datarootdir$ac_delim
10546 datadir!$datadir$ac_delim
10547 sysconfdir!$sysconfdir$ac_delim
10548 sharedstatedir!$sharedstatedir$ac_delim
10549 localstatedir!$localstatedir$ac_delim
10550 includedir!$includedir$ac_delim
10551 oldincludedir!$oldincludedir$ac_delim
10552 docdir!$docdir$ac_delim
10553 infodir!$infodir$ac_delim
10554 htmldir!$htmldir$ac_delim
10555 dvidir!$dvidir$ac_delim
10556 pdfdir!$pdfdir$ac_delim
10557 psdir!$psdir$ac_delim
10558 libdir!$libdir$ac_delim
10559 localedir!$localedir$ac_delim
10560 mandir!$mandir$ac_delim
10561 DEFS!$DEFS$ac_delim
10562 ECHO_C!$ECHO_C$ac_delim
10563 ECHO_N!$ECHO_N$ac_delim
10564 ECHO_T!$ECHO_T$ac_delim
10565 LIBS!$LIBS$ac_delim
10566 build_alias!$build_alias$ac_delim
10567 host_alias!$host_alias$ac_delim
10568 target_alias!$target_alias$ac_delim
10569 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
10570 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
10571 INSTALL_DATA!$INSTALL_DATA$ac_delim
10572 PACKAGE!$PACKAGE$ac_delim
10573 VERSION!$VERSION$ac_delim
10574 ACLOCAL!$ACLOCAL$ac_delim
10575 AUTOCONF!$AUTOCONF$ac_delim
10576 AUTOMAKE!$AUTOMAKE$ac_delim
10577 AUTOHEADER!$AUTOHEADER$ac_delim
10578 MAKEINFO!$MAKEINFO$ac_delim
10579 AMTAR!$AMTAR$ac_delim
10580 install_sh!$install_sh$ac_delim
10581 STRIP!$STRIP$ac_delim
10582 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
10583 AWK!$AWK$ac_delim
10584 SET_MAKE!$SET_MAKE$ac_delim
10585 LIB_CURRENT!$LIB_CURRENT$ac_delim
10586 LIB_REVISION!$LIB_REVISION$ac_delim
10587 LIB_AGE!$LIB_AGE$ac_delim
10588 CXX!$CXX$ac_delim
10589 CXXFLAGS!$CXXFLAGS$ac_delim
10590 LDFLAGS!$LDFLAGS$ac_delim
10591 CPPFLAGS!$CPPFLAGS$ac_delim
10592 ac_ct_CXX!$ac_ct_CXX$ac_delim
10593 EXEEXT!$EXEEXT$ac_delim
10594 OBJEXT!$OBJEXT$ac_delim
10595 DEPDIR!$DEPDIR$ac_delim
10596 am__include!$am__include$ac_delim
10597 am__quote!$am__quote$ac_delim
10598 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
10599 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
10600 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
10601 CXXDEPMODE!$CXXDEPMODE$ac_delim
10602 LN_S!$LN_S$ac_delim
10603 CC!$CC$ac_delim
10604 CFLAGS!$CFLAGS$ac_delim
10605 ac_ct_CC!$ac_ct_CC$ac_delim
10606 CCDEPMODE!$CCDEPMODE$ac_delim
10607 CPP!$CPP$ac_delim
10608 build!$build$ac_delim
10609 build_cpu!$build_cpu$ac_delim
10610 build_vendor!$build_vendor$ac_delim
10611 build_os!$build_os$ac_delim
10612 host!$host$ac_delim
10613 host_cpu!$host_cpu$ac_delim
10614 host_vendor!$host_vendor$ac_delim
10615 host_os!$host_os$ac_delim
10616 ECHO!$ECHO$ac_delim
10617 RANLIB!$RANLIB$ac_delim
10618 CXXCPP!$CXXCPP$ac_delim
10619 GREP!$GREP$ac_delim
10620 EGREP!$EGREP$ac_delim
10621 LIBTOOL!$LIBTOOL$ac_delim
10622 PKG_CONFIG!$PKG_CONFIG$ac_delim
10623 LIBUSB_CFLAGS!$LIBUSB_CFLAGS$ac_delim
10624 LIBUSB_LIBS!$LIBUSB_LIBS$ac_delim
10625 LIBOBJS!$LIBOBJS$ac_delim
10626 LTLIBOBJS!$LTLIBOBJS$ac_delim
10627 _ACEOF
10628
10629 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then
10630 break
10631 elif $ac_last_try; then
10632 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10633 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10634 { (exit 1); exit 1; }; }
10635 else
10636 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10637 fi
10638 done
10639
10640 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10641 if test -n "$ac_eof"; then
10642 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10643 ac_eof=`expr $ac_eof + 1`
10644 fi
10645
10646 cat >>$CONFIG_STATUS <<_ACEOF
10647 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10648 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
10649 _ACEOF
10650 sed '
10651 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10652 s/^/s,@/; s/!/@,|#_!!_#|/
10653 :n
10654 t n
10655 s/'"$ac_delim"'$/,g/; t
10656 s/$/\\/; p
10657 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10658 ' >>$CONFIG_STATUS <conf$$subs.sed
10659 rm -f conf$$subs.sed
10660 cat >>$CONFIG_STATUS <<_ACEOF
10661 :end
10662 s/|#_!!_#|//g
10663 CEOF$ac_eof
10664 _ACEOF
10665
10666
10667 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10668 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10669 # trailing colons and then remove the whole line if VPATH becomes empty
10670 # (actually we leave an empty line to preserve line numbers).
10671 if test "x$srcdir" = x.; then
10672 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10673 s/:*\$(srcdir):*/:/
10674 s/:*\${srcdir}:*/:/
10675 s/:*@srcdir@:*/:/
10676 s/^\([^=]*=[ ]*\):*/\1/
10677 s/:*$//
10678 s/^[^=]*=[ ]*$//
10679 }'
10680 fi
10681
10682 cat >>$CONFIG_STATUS <<\_ACEOF
10683 fi # test -n "$CONFIG_FILES"
10684
10685
10686 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
10687 do
10688 case $ac_tag in
10689 :[FHLC]) ac_mode=$ac_tag; continue;;
10690 esac
10691 case $ac_mode$ac_tag in
10692 :[FHL]*:*);;
10693 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
10694 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
10695 { (exit 1); exit 1; }; };;
10696 :[FH]-) ac_tag=-:-;;
10697 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10698 esac
10699 ac_save_IFS=$IFS
10700 IFS=:
10701 set x $ac_tag
10702 IFS=$ac_save_IFS
10703 shift
10704 ac_file=$1
10705 shift
10706
10707 case $ac_mode in
10708 :L) ac_source=$1;;
10709 :[FH])
10710 ac_file_inputs=
10711 for ac_f
10712 do
10713 case $ac_f in
10714 -) ac_f="$tmp/stdin";;
10715 *) # Look for the file first in the build tree, then in the source tree
10716 # (if the path is not absolute). The absolute path cannot be DOS-style,
10717 # because $ac_f cannot contain `:'.
10718 test -f "$ac_f" ||
10719 case $ac_f in
10720 [\\/$]*) false;;
10721 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10722 esac ||
10723 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10724 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10725 { (exit 1); exit 1; }; };;
10726 esac
10727 ac_file_inputs="$ac_file_inputs $ac_f"
10728 done
10729
10730 # Let's still pretend it is `configure' which instantiates (i.e., don't
10731 # use $as_me), people would be surprised to read:
10732 # /* config.h. Generated by config.status. */
10733 configure_input="Generated from "`IFS=:
10734 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
10735 if test x"$ac_file" != x-; then
10736 configure_input="$ac_file. $configure_input"
10737 { echo "$as_me:$LINENO: creating $ac_file" >&5
10738 echo "$as_me: creating $ac_file" >&6;}
10739 fi
10740
10741 case $ac_tag in
10742 *:-:* | *:-) cat >"$tmp/stdin";;
10743 esac
10744 ;;
10745 esac
10746
10747 ac_dir=`$as_dirname -- "$ac_file" ||
10748 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10749 X"$ac_file" : 'X\(//\)[^/]' \| \
10750 X"$ac_file" : 'X\(//\)$' \| \
10751 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10752 echo X"$ac_file" |
10753 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10754 s//\1/
10755 q
10756 }
10757 /^X\(\/\/\)[^/].*/{
10758 s//\1/
10759 q
10760 }
10761 /^X\(\/\/\)$/{
10762 s//\1/
10763 q
10764 }
10765 /^X\(\/\).*/{
10766 s//\1/
10767 q
10768 }
10769 s/.*/./; q'`
10770 { as_dir="$ac_dir"
10771 case $as_dir in #(
10772 -*) as_dir=./$as_dir;;
10773 esac
10774 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10775 as_dirs=
10776 while :; do
10777 case $as_dir in #(
10778 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
10779 *) as_qdir=$as_dir;;
10780 esac
10781 as_dirs="'$as_qdir' $as_dirs"
10782 as_dir=`$as_dirname -- "$as_dir" ||
10783 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10784 X"$as_dir" : 'X\(//\)[^/]' \| \
10785 X"$as_dir" : 'X\(//\)$' \| \
10786 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10787 echo X"$as_dir" |
10788 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10789 s//\1/
10790 q
10791 }
10792 /^X\(\/\/\)[^/].*/{
10793 s//\1/
10794 q
10795 }
10796 /^X\(\/\/\)$/{
10797 s//\1/
10798 q
10799 }
10800 /^X\(\/\).*/{
10801 s//\1/
10802 q
10803 }
10804 s/.*/./; q'`
10805 test -d "$as_dir" && break
10806 done
10807 test -z "$as_dirs" || eval "mkdir $as_dirs"
10808 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10809 echo "$as_me: error: cannot create directory $as_dir" >&2;}
10810 { (exit 1); exit 1; }; }; }
10811 ac_builddir=.
10812
10813 case "$ac_dir" in
10814 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10815 *)
10816 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10817 # A ".." for each directory in $ac_dir_suffix.
10818 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
10819 case $ac_top_builddir_sub in
10820 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10821 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10822 esac ;;
10823 esac
10824 ac_abs_top_builddir=$ac_pwd
10825 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10826 # for backward compatibility:
10827 ac_top_builddir=$ac_top_build_prefix
10828
10829 case $srcdir in
10830 .) # We are building in place.
10831 ac_srcdir=.
10832 ac_top_srcdir=$ac_top_builddir_sub
10833 ac_abs_top_srcdir=$ac_pwd ;;
10834 [\\/]* | ?:[\\/]* ) # Absolute name.
10835 ac_srcdir=$srcdir$ac_dir_suffix;
10836 ac_top_srcdir=$srcdir
10837 ac_abs_top_srcdir=$srcdir ;;
10838 *) # Relative name.
10839 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10840 ac_top_srcdir=$ac_top_build_prefix$srcdir
10841 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10842 esac
10843 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10844
10845
10846 case $ac_mode in
10847 :F)
10848 #
10849 # CONFIG_FILE
10850 #
10851
10852 case $INSTALL in
10853 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10854 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10855 esac
10856 _ACEOF
10857
10858 cat >>$CONFIG_STATUS <<\_ACEOF
10859 # If the template does not know about datarootdir, expand it.
10860 # FIXME: This hack should be removed a few years after 2.60.
10861 ac_datarootdir_hack=; ac_datarootdir_seen=
10862
10863 case `sed -n '/datarootdir/ {
10864 p
10865 q
10866 }
10867 /@datadir@/p
10868 /@docdir@/p
10869 /@infodir@/p
10870 /@localedir@/p
10871 /@mandir@/p
10872 ' $ac_file_inputs` in
10873 *datarootdir*) ac_datarootdir_seen=yes;;
10874 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10875 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10876 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10877 _ACEOF
10878 cat >>$CONFIG_STATUS <<_ACEOF
10879 ac_datarootdir_hack='
10880 s&@datadir@&$datadir&g
10881 s&@docdir@&$docdir&g
10882 s&@infodir@&$infodir&g
10883 s&@localedir@&$localedir&g
10884 s&@mandir@&$mandir&g
10885 s&\\\${datarootdir}&$datarootdir&g' ;;
10886 esac
10887 _ACEOF
10888
10889 # Neutralize VPATH when `$srcdir' = `.'.
10890 # Shell code in configure.ac might set extrasub.
10891 # FIXME: do we really want to maintain this feature?
10892 cat >>$CONFIG_STATUS <<_ACEOF
10893 sed "$ac_vpsub
10894 $extrasub
10895 _ACEOF
10896 cat >>$CONFIG_STATUS <<\_ACEOF
10897 :t
10898 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10899 s&@configure_input@&$configure_input&;t t
10900 s&@top_builddir@&$ac_top_builddir_sub&;t t
10901 s&@srcdir@&$ac_srcdir&;t t
10902 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10903 s&@top_srcdir@&$ac_top_srcdir&;t t
10904 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10905 s&@builddir@&$ac_builddir&;t t
10906 s&@abs_builddir@&$ac_abs_builddir&;t t
10907 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10908 s&@INSTALL@&$ac_INSTALL&;t t
10909 $ac_datarootdir_hack
10910 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
10911
10912 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10913 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10914 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10915 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10916 which seems to be undefined. Please make sure it is defined." >&5
10917 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10918 which seems to be undefined. Please make sure it is defined." >&2;}
10919
10920 rm -f "$tmp/stdin"
10921 case $ac_file in
10922 -) cat "$tmp/out"; rm -f "$tmp/out";;
10923 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
10924 esac
10925 ;;
10926 :H)
10927 #
10928 # CONFIG_HEADER
10929 #
10930 _ACEOF
10931
10932 # Transform confdefs.h into a sed script `conftest.defines', that
10933 # substitutes the proper values into config.h.in to produce config.h.
10934 rm -f conftest.defines conftest.tail
10935 # First, append a space to every undef/define line, to ease matching.
10936 echo 's/$/ /' >conftest.defines
10937 # Then, protect against being on the right side of a sed subst, or in
10938 # an unquoted here document, in config.status. If some macros were
10939 # called several times there might be several #defines for the same
10940 # symbol, which is useless. But do not sort them, since the last
10941 # AC_DEFINE must be honored.
10942 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10943 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
10944 # NAME is the cpp macro being defined, VALUE is the value it is being given.
10945 # PARAMS is the parameter list in the macro definition--in most cases, it's
10946 # just an empty string.
10947 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
10948 ac_dB='\\)[ (].*,\\1define\\2'
10949 ac_dC=' '
10950 ac_dD=' ,'
10951
10952 uniq confdefs.h |
10953 sed -n '
10954 t rset
10955 :rset
10956 s/^[ ]*#[ ]*define[ ][ ]*//
10957 t ok
10958 d
10959 :ok
10960 s/[\\&,]/\\&/g
10961 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
10962 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
10963 ' >>conftest.defines
10964
10965 # Remove the space that was appended to ease matching.
10966 # Then replace #undef with comments. This is necessary, for
10967 # example, in the case of _POSIX_SOURCE, which is predefined and required
10968 # on some systems where configure will not decide to define it.
10969 # (The regexp can be short, since the line contains either #define or #undef.)
10970 echo 's/ $//
10971 s,^[ #]*u.*,/* & */,' >>conftest.defines
10972
10973 # Break up conftest.defines:
10974 ac_max_sed_lines=50
10975
10976 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
10977 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
10978 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
10979 # et cetera.
10980 ac_in='$ac_file_inputs'
10981 ac_out='"$tmp/out1"'
10982 ac_nxt='"$tmp/out2"'
10983
10984 while :
10985 do
10986 # Write a here document:
10987 cat >>$CONFIG_STATUS <<_ACEOF
10988 # First, check the format of the line:
10989 cat >"\$tmp/defines.sed" <<\\CEOF
10990 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
10991 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
10992 b
10993 :def
10994 _ACEOF
10995 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
10996 echo 'CEOF
10997 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
10998 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
10999 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
11000 grep . conftest.tail >/dev/null || break
11001 rm -f conftest.defines
11002 mv conftest.tail conftest.defines
11003 done
11004 rm -f conftest.defines conftest.tail
11005
11006 echo "ac_result=$ac_in" >>$CONFIG_STATUS
11007 cat >>$CONFIG_STATUS <<\_ACEOF
11008 if test x"$ac_file" != x-; then
11009 echo "/* $configure_input */" >"$tmp/config.h"
11010 cat "$ac_result" >>"$tmp/config.h"
11011 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
11012 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11013 echo "$as_me: $ac_file is unchanged" >&6;}
11014 else
11015 rm -f $ac_file
11016 mv "$tmp/config.h" $ac_file
11017 fi
11018 else
11019 echo "/* $configure_input */"
11020 cat "$ac_result"
11021 fi
11022 rm -f "$tmp/out12"
11023 ;;
11024
11025 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
11026 echo "$as_me: executing $ac_file commands" >&6;}
11027 ;;
11028 esac
11029
11030
11031 case $ac_file$ac_mode in
11032 "config.h":H) # update the timestamp
11033 echo 'timestamp for config.h' >"./stamp-h1"
11034 ;;
11035 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11036 # Strip MF so we end up with the name of the file.
11037 mf=`echo "$mf" | sed -e 's/:.*$//'`
11038 # Check whether this is an Automake generated Makefile or not.
11039 # We used to match only the files named `Makefile.in', but
11040 # some people rename them; so instead we look at the file content.
11041 # Grep'ing the first line is not enough: some people post-process
11042 # each Makefile.in and add a new line on top of each file to say so.
11043 # So let's grep whole file.
11044 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11045 dirpart=`$as_dirname -- "$mf" ||
11046 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11047 X"$mf" : 'X\(//\)[^/]' \| \
11048 X"$mf" : 'X\(//\)$' \| \
11049 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11050 echo X"$mf" |
11051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11052 s//\1/
11053 q
11054 }
11055 /^X\(\/\/\)[^/].*/{
11056 s//\1/
11057 q
11058 }
11059 /^X\(\/\/\)$/{
11060 s//\1/
11061 q
11062 }
11063 /^X\(\/\).*/{
11064 s//\1/
11065 q
11066 }
11067 s/.*/./; q'`
11068 else
11069 continue
11070 fi
11071 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
11072 # Extract the definition of DEP_FILES from the Makefile without
11073 # running `make'.
11074 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
11075 test -z "$DEPDIR" && continue
11076 # When using ansi2knr, U may be empty or an underscore; expand it
11077 U=`sed -n -e '/^U = / s///p' < "$mf"`
11078 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
11079 # We invoke sed twice because it is the simplest approach to
11080 # changing $(DEPDIR) to its actual value in the expansion.
11081 for file in `sed -n -e '
11082 /^DEP_FILES = .*\\\\$/ {
11083 s/^DEP_FILES = //
11084 :loop
11085 s/\\\\$//
11086 p
11087 n
11088 /\\\\$/ b loop
11089 p
11090 }
11091 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
11092 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11093 # Make sure the directory exists.
11094 test -f "$dirpart/$file" && continue
11095 fdir=`$as_dirname -- "$file" ||
11096 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11097 X"$file" : 'X\(//\)[^/]' \| \
11098 X"$file" : 'X\(//\)$' \| \
11099 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11100 echo X"$file" |
11101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11102 s//\1/
11103 q
11104 }
11105 /^X\(\/\/\)[^/].*/{
11106 s//\1/
11107 q
11108 }
11109 /^X\(\/\/\)$/{
11110 s//\1/
11111 q
11112 }
11113 /^X\(\/\).*/{
11114 s//\1/
11115 q
11116 }
11117 s/.*/./; q'`
11118 { as_dir=$dirpart/$fdir
11119 case $as_dir in #(
11120 -*) as_dir=./$as_dir;;
11121 esac
11122 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11123 as_dirs=
11124 while :; do
11125 case $as_dir in #(
11126 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11127 *) as_qdir=$as_dir;;
11128 esac
11129 as_dirs="'$as_qdir' $as_dirs"
11130 as_dir=`$as_dirname -- "$as_dir" ||
11131 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11132 X"$as_dir" : 'X\(//\)[^/]' \| \
11133 X"$as_dir" : 'X\(//\)$' \| \
11134 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11135 echo X"$as_dir" |
11136 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11137 s//\1/
11138 q
11139 }
11140 /^X\(\/\/\)[^/].*/{
11141 s//\1/
11142 q
11143 }
11144 /^X\(\/\/\)$/{
11145 s//\1/
11146 q
11147 }
11148 /^X\(\/\).*/{
11149 s//\1/
11150 q
11151 }
11152 s/.*/./; q'`
11153 test -d "$as_dir" && break
11154 done
11155 test -z "$as_dirs" || eval "mkdir $as_dirs"
11156 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11157 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11158 { (exit 1); exit 1; }; }; }
11159 # echo "creating $dirpart/$file"
11160 echo '# dummy' > "$dirpart/$file"
11161 done
11162 done
11163 ;;
11164
11165 esac
11166 done # for ac_tag
11167
11168
11169 { (exit 0); exit 0; }
11170 _ACEOF
11171 chmod +x $CONFIG_STATUS
11172 ac_clean_files=$ac_clean_files_save
11173
11174
11175 # configure is writing to config.log, and then calls config.status.
11176 # config.status does its own redirection, appending to config.log.
11177 # Unfortunately, on DOS this fails, as config.log is still kept open
11178 # by configure, so config.status won't be able to write to it; its
11179 # output is simply discarded. So we exec the FD to /dev/null,
11180 # effectively closing config.log, so it can be properly (re)opened and
11181 # appended to by config.status. When coming back to configure, we
11182 # need to make the FD available again.
11183 if test "$no_create" != yes; then
11184 ac_cs_success=:
11185 ac_config_status_args=
11186 test "$silent" = yes &&
11187 ac_config_status_args="$ac_config_status_args --quiet"
11188 exec 5>/dev/null
11189 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11190 exec 5>>config.log
11191 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11192 # would make configure fail if this is the last instruction.
11193 $ac_cs_success || { (exit 1); exit 1; }
11194 fi
11195
11196 ac_config_files="$ac_config_files Makefile"
11197
11198 cat >confcache <<\_ACEOF
11199 # This file is a shell script that caches the results of configure
11200 # tests run on this system so they can be shared between configure
11201 # scripts and configure runs, see configure's option --config-cache.
11202 # It is not useful on other systems. If it contains results you don't
11203 # want to keep, you may remove or edit it.
11204 #
11205 # config.status only pays attention to the cache file if you give it
11206 # the --recheck option to rerun configure.
11207 #
11208 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11209 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11210 # following values.
11211
11212 _ACEOF
11213
11214 # The following way of writing the cache mishandles newlines in values,
11215 # but we know of no workaround that is simple, portable, and efficient.
11216 # So, we kill variables containing newlines.
11217 # Ultrix sh set writes to stderr and can't be redirected directly,
11218 # and sets the high bit in the cache file unless we assign to the vars.
11219 (
11220 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11221 eval ac_val=\$$ac_var
11222 case $ac_val in #(
11223 *${as_nl}*)
11224 case $ac_var in #(
11225 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11226 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11227 esac
11228 case $ac_var in #(
11229 _ | IFS | as_nl) ;; #(
11230 *) $as_unset $ac_var ;;
11231 esac ;;
11232 esac
11233 done
11234
11235 (set) 2>&1 |
11236 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11237 *${as_nl}ac_space=\ *)
11238 # `set' does not quote correctly, so add quotes (double-quote
11239 # substitution turns \\\\ into \\, and sed turns \\ into \).
11240 sed -n \
11241 "s/'/'\\\\''/g;
11242 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11243 ;; #(
11244 *)
11245 # `set' quotes correctly as required by POSIX, so do not add quotes.
11246 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11247 ;;
11248 esac |
11249 sort
11250 ) |
11251 sed '
11252 /^ac_cv_env_/b end
11253 t clear
11254 :clear
11255 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11256 t end
11257 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11258 :end' >>confcache
11259 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11260 if test -w "$cache_file"; then
11261 test "x$cache_file" != "x/dev/null" &&
11262 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11263 echo "$as_me: updating cache $cache_file" >&6;}
11264 cat confcache >$cache_file
11265 else
11266 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11267 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11268 fi
11269 fi
11270 rm -f confcache
11271
11272 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11273 # Let make expand exec_prefix.
11274 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11275
11276 DEFS=-DHAVE_CONFIG_H
11277
11278 ac_libobjs=
11279 ac_ltlibobjs=
11280 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11281 # 1. Remove the extension, and $U if already installed.
11282 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11283 ac_i=`echo "$ac_i" | sed "$ac_script"`
11284 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11285 # will be set to the directory where LIBOBJS objects are built.
11286 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11287 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11288 done
11289 LIBOBJS=$ac_libobjs
11290
11291 LTLIBOBJS=$ac_ltlibobjs
11292
11293
11294 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11295 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11296 Usually this means the macro was only invoked conditionally." >&5
11297 echo "$as_me: error: conditional \"AMDEP\" was never defined.
11298 Usually this means the macro was only invoked conditionally." >&2;}
11299 { (exit 1); exit 1; }; }
11300 fi
11301
11302 : ${CONFIG_STATUS=./config.status}
11303 ac_clean_files_save=$ac_clean_files
11304 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11305 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11306 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11307 cat >$CONFIG_STATUS <<_ACEOF
11308 #! $SHELL
11309 # Generated by $as_me.
11310 # Run this file to recreate the current configuration.
11311 # Compiler output produced by configure, useful for debugging
11312 # configure, is in config.log if it exists.
11313
11314 debug=false
11315 ac_cs_recheck=false
11316 ac_cs_silent=false
11317 SHELL=\${CONFIG_SHELL-$SHELL}
11318 _ACEOF
11319
11320 cat >>$CONFIG_STATUS <<\_ACEOF
11321 ## --------------------- ##
11322 ## M4sh Initialization. ##
11323 ## --------------------- ##
11324
11325 # Be more Bourne compatible
11326 DUALCASE=1; export DUALCASE # for MKS sh
11327 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11328 emulate sh
11329 NULLCMD=:
11330 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11331 # is contrary to our usage. Disable this feature.
11332 alias -g '${1+"$@"}'='"$@"'
11333 setopt NO_GLOB_SUBST
11334 else
11335 case `(set -o) 2>/dev/null` in
11336 *posix*) set -o posix ;;
11337 esac
11338
11339 fi
11340
11341
11342
11343
11344 # PATH needs CR
11345 # Avoid depending upon Character Ranges.
11346 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11347 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11348 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11349 as_cr_digits='0123456789'
11350 as_cr_alnum=$as_cr_Letters$as_cr_digits
11351
11352 # The user is always right.
11353 if test "${PATH_SEPARATOR+set}" != set; then
11354 echo "#! /bin/sh" >conf$$.sh
11355 echo "exit 0" >>conf$$.sh
11356 chmod +x conf$$.sh
11357 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11358 PATH_SEPARATOR=';'
11359 else
11360 PATH_SEPARATOR=:
11361 fi
11362 rm -f conf$$.sh
11363 fi
11364
11365 # Support unset when possible.
11366 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11367 as_unset=unset
11368 else
11369 as_unset=false
11370 fi
11371
11372
11373 # IFS
11374 # We need space, tab and new line, in precisely that order. Quoting is
11375 # there to prevent editors from complaining about space-tab.
11376 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11377 # splitting by setting IFS to empty value.)
11378 as_nl='
11379 '
11380 IFS=" "" $as_nl"
11381
11382 # Find who we are. Look in the path if we contain no directory separator.
11383 case $0 in
11384 *[\\/]* ) as_myself=$0 ;;
11385 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11386 for as_dir in $PATH
11387 do
11388 IFS=$as_save_IFS
11389 test -z "$as_dir" && as_dir=.
11390 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11391 done
11392 IFS=$as_save_IFS
11393
11394 ;;
11395 esac
11396 # We did not find ourselves, most probably we were run as `sh COMMAND'
11397 # in which case we are not to be found in the path.
11398 if test "x$as_myself" = x; then
11399 as_myself=$0
11400 fi
11401 if test ! -f "$as_myself"; then
11402 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11403 { (exit 1); exit 1; }
11404 fi
11405
11406 # Work around bugs in pre-3.0 UWIN ksh.
11407 for as_var in ENV MAIL MAILPATH
11408 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11409 done
11410 PS1='$ '
11411 PS2='> '
11412 PS4='+ '
11413
11414 # NLS nuisances.
11415 for as_var in \
11416 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11417 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11418 LC_TELEPHONE LC_TIME
11419 do
11420 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11421 eval $as_var=C; export $as_var
11422 else
11423 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11424 fi
11425 done
11426
11427 # Required to use basename.
11428 if expr a : '\(a\)' >/dev/null 2>&1 &&
11429 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11430 as_expr=expr
11431 else
11432 as_expr=false
11433 fi
11434
11435 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11436 as_basename=basename
11437 else
11438 as_basename=false
11439 fi
11440
11441
11442 # Name of the executable.
11443 as_me=`$as_basename -- "$0" ||
11444 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11445 X"$0" : 'X\(//\)$' \| \
11446 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11447 echo X/"$0" |
11448 sed '/^.*\/\([^/][^/]*\)\/*$/{
11449 s//\1/
11450 q
11451 }
11452 /^X\/\(\/\/\)$/{
11453 s//\1/
11454 q
11455 }
11456 /^X\/\(\/\).*/{
11457 s//\1/
11458 q
11459 }
11460 s/.*/./; q'`
11461
11462 # CDPATH.
11463 $as_unset CDPATH
11464
11465
11466
11467 as_lineno_1=$LINENO
11468 as_lineno_2=$LINENO
11469 test "x$as_lineno_1" != "x$as_lineno_2" &&
11470 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11471
11472 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11473 # uniformly replaced by the line number. The first 'sed' inserts a
11474 # line-number line after each line using $LINENO; the second 'sed'
11475 # does the real work. The second script uses 'N' to pair each
11476 # line-number line with the line containing $LINENO, and appends
11477 # trailing '-' during substitution so that $LINENO is not a special
11478 # case at line end.
11479 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11480 # scripts with optimization help from Paolo Bonzini. Blame Lee
11481 # E. McMahon (1931-1989) for sed's syntax. :-)
11482 sed -n '
11483 p
11484 /[$]LINENO/=
11485 ' <$as_myself |
11486 sed '
11487 s/[$]LINENO.*/&-/
11488 t lineno
11489 b
11490 :lineno
11491 N
11492 :loop
11493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11494 t loop
11495 s/-\n.*//
11496 ' >$as_me.lineno &&
11497 chmod +x "$as_me.lineno" ||
11498 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11499 { (exit 1); exit 1; }; }
11500
11501 # Don't try to exec as it changes $[0], causing all sort of problems
11502 # (the dirname of $[0] is not the place where we might find the
11503 # original and so on. Autoconf is especially sensitive to this).
11504 . "./$as_me.lineno"
11505 # Exit status is that of the last command.
11506 exit
11507 }
11508
11509
11510 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11511 as_dirname=dirname
11512 else
11513 as_dirname=false
11514 fi
11515
11516 ECHO_C= ECHO_N= ECHO_T=
11517 case `echo -n x` in
11518 -n*)
11519 case `echo 'x\c'` in
11520 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11521 *) ECHO_C='\c';;
11522 esac;;
11523 *)
11524 ECHO_N='-n';;
11525 esac
11526
11527 if expr a : '\(a\)' >/dev/null 2>&1 &&
11528 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11529 as_expr=expr
11530 else
11531 as_expr=false
11532 fi
11533
11534 rm -f conf$$ conf$$.exe conf$$.file
11535 if test -d conf$$.dir; then
11536 rm -f conf$$.dir/conf$$.file
11537 else
11538 rm -f conf$$.dir
11539 mkdir conf$$.dir
11540 fi
11541 echo >conf$$.file
11542 if ln -s conf$$.file conf$$ 2>/dev/null; then
11543 as_ln_s='ln -s'
11544 # ... but there are two gotchas:
11545 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11546 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11547 # In both cases, we have to default to `cp -p'.
11548 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11549 as_ln_s='cp -p'
11550 elif ln conf$$.file conf$$ 2>/dev/null; then
11551 as_ln_s=ln
11552 else
11553 as_ln_s='cp -p'
11554 fi
11555 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11556 rmdir conf$$.dir 2>/dev/null
11557
11558 if mkdir -p . 2>/dev/null; then
11559 as_mkdir_p=:
11560 else
11561 test -d ./-p && rmdir ./-p
11562 as_mkdir_p=false
11563 fi
11564
11565 if test -x / >/dev/null 2>&1; then
11566 as_test_x='test -x'
11567 else
11568 if ls -dL / >/dev/null 2>&1; then
11569 as_ls_L_option=L
11570 else
11571 as_ls_L_option=
11572 fi
11573 as_test_x='
11574 eval sh -c '\''
11575 if test -d "$1"; then
11576 test -d "$1/.";
11577 else
11578 case $1 in
11579 -*)set "./$1";;
11580 esac;
11581 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11582 ???[sx]*):;;*)false;;esac;fi
11583 '\'' sh
11584 '
11585 fi
11586 as_executable_p=$as_test_x
11587
11588 # Sed expression to map a string onto a valid CPP name.
11589 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11590
11591 # Sed expression to map a string onto a valid variable name.
11592 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11593
11594
11595 exec 6>&1
11596
11597 # Save the log message, to keep $[0] and so on meaningful, and to
11598 # report actual input values of CONFIG_FILES etc. instead of their
11599 # values after options handling.
11600 ac_log="
11601 This file was extended by libdjconsole $as_me 0.1.3, which was
11602 generated by GNU Autoconf 2.61. Invocation command line was
11603
11604 CONFIG_FILES = $CONFIG_FILES
11605 CONFIG_HEADERS = $CONFIG_HEADERS
11606 CONFIG_LINKS = $CONFIG_LINKS
11607 CONFIG_COMMANDS = $CONFIG_COMMANDS
11608 $ $0 $@
11609
11610 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11611 "
11612
11613 _ACEOF
11614
11615 cat >>$CONFIG_STATUS <<_ACEOF
11616 # Files that config.status was made for.
11617 config_files="$ac_config_files"
11618 config_headers="$ac_config_headers"
11619 config_commands="$ac_config_commands"
11620
11621 _ACEOF
11622
11623 cat >>$CONFIG_STATUS <<\_ACEOF
11624 ac_cs_usage="\
11625 \`$as_me' instantiates files from templates according to the
11626 current configuration.
11627
11628 Usage: $0 [OPTIONS] [FILE]...
11629
11630 -h, --help print this help, then exit
11631 -V, --version print version number and configuration settings, then exit
11632 -q, --quiet do not print progress messages
11633 -d, --debug don't remove temporary files
11634 --recheck update $as_me by reconfiguring in the same conditions
11635 --file=FILE[:TEMPLATE]
11636 instantiate the configuration file FILE
11637 --header=FILE[:TEMPLATE]
11638 instantiate the configuration header FILE
11639
11640 Configuration files:
11641 $config_files
11642
11643 Configuration headers:
11644 $config_headers
11645
11646 Configuration commands:
11647 $config_commands
11648
11649 Report bugs to <[email protected]>."
11650
11651 _ACEOF
11652 cat >>$CONFIG_STATUS <<_ACEOF
11653 ac_cs_version="\\
11654 libdjconsole config.status 0.1.3
11655 configured by $0, generated by GNU Autoconf 2.61,
11656 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11657
11658 Copyright (C) 2006 Free Software Foundation, Inc.
11659 This config.status script is free software; the Free Software Foundation
11660 gives unlimited permission to copy, distribute and modify it."
11661
11662 ac_pwd='$ac_pwd'
11663 srcdir='$srcdir'
11664 INSTALL='$INSTALL'
11665 _ACEOF
11666
11667 cat >>$CONFIG_STATUS <<\_ACEOF
11668 # If no file are specified by the user, then we need to provide default
11669 # value. By we need to know if files were specified by the user.
11670 ac_need_defaults=:
11671 while test $# != 0
11672 do
11673 case $1 in
11674 --*=*)
11675 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11676 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11677 ac_shift=:
11678 ;;
11679 *)
11680 ac_option=$1
11681 ac_optarg=$2
11682 ac_shift=shift
11683 ;;
11684 esac
11685
11686 case $ac_option in
11687 # Handling of the options.
11688 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11689 ac_cs_recheck=: ;;
11690 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11691 echo "$ac_cs_version"; exit ;;
11692 --debug | --debu | --deb | --de | --d | -d )
11693 debug=: ;;
11694 --file | --fil | --fi | --f )
11695 $ac_shift
11696 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11697 ac_need_defaults=false;;
11698 --header | --heade | --head | --hea )
11699 $ac_shift
11700 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11701 ac_need_defaults=false;;
11702 --he | --h)
11703 # Conflict between --help and --header
11704 { echo "$as_me: error: ambiguous option: $1
11705 Try \`$0 --help' for more information." >&2
11706 { (exit 1); exit 1; }; };;
11707 --help | --hel | -h )
11708 echo "$ac_cs_usage"; exit ;;
11709 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11710 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11711 ac_cs_silent=: ;;
11712
11713 # This is an error.
11714 -*) { echo "$as_me: error: unrecognized option: $1
11715 Try \`$0 --help' for more information." >&2
11716 { (exit 1); exit 1; }; } ;;
11717
11718 *) ac_config_targets="$ac_config_targets $1"
11719 ac_need_defaults=false ;;
11720
11721 esac
11722 shift
11723 done
11724
11725 ac_configure_extra_args=
11726
11727 if $ac_cs_silent; then
11728 exec 6>/dev/null
11729 ac_configure_extra_args="$ac_configure_extra_args --silent"
11730 fi
11731
11732 _ACEOF
11733 cat >>$CONFIG_STATUS <<_ACEOF
11734 if \$ac_cs_recheck; then
11735 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11736 CONFIG_SHELL=$SHELL
11737 export CONFIG_SHELL
11738 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11739 fi
11740
11741 _ACEOF
11742 cat >>$CONFIG_STATUS <<\_ACEOF
11743 exec 5>>config.log
11744 {
11745 echo
11746 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11747 ## Running $as_me. ##
11748 _ASBOX
11749 echo "$ac_log"
11750 } >&5
11751
11752 _ACEOF
11753 cat >>$CONFIG_STATUS <<_ACEOF
11754 #
11755 # INIT-COMMANDS
11756 #
11757 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11758
11759 _ACEOF
11760
11761 cat >>$CONFIG_STATUS <<\_ACEOF
11762
11763 # Handling of arguments.
11764 for ac_config_target in $ac_config_targets
11765 do
11766 case $ac_config_target in
11767 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11768 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11769 "libdjconsole.pc") CONFIG_FILES="$CONFIG_FILES libdjconsole.pc" ;;
11770 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11771
11772 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11773 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11774 { (exit 1); exit 1; }; };;
11775 esac
11776 done
11777
11778
11779 # If the user did not use the arguments to specify the items to instantiate,
11780 # then the envvar interface is used. Set only those that are not.
11781 # We use the long form for the default assignment because of an extremely
11782 # bizarre bug on SunOS 4.1.3.
11783 if $ac_need_defaults; then
11784 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11785 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11786 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11787 fi
11788
11789 # Have a temporary directory for convenience. Make it in the build tree
11790 # simply because there is no reason against having it here, and in addition,
11791 # creating and moving files from /tmp can sometimes cause problems.
11792 # Hook for its removal unless debugging.
11793 # Note that there is a small window in which the directory will not be cleaned:
11794 # after its creation but before its name has been assigned to `$tmp'.
11795 $debug ||
11796 {
11797 tmp=
11798 trap 'exit_status=$?
11799 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11800 ' 0
11801 trap '{ (exit 1); exit 1; }' 1 2 13 15
11802 }
11803 # Create a (secure) tmp directory for tmp files.
11804
11805 {
11806 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11807 test -n "$tmp" && test -d "$tmp"
11808 } ||
11809 {
11810 tmp=./conf$$-$RANDOM
11811 (umask 077 && mkdir "$tmp")
11812 } ||
11813 {
11814 echo "$me: cannot create a temporary directory in ." >&2
11815 { (exit 1); exit 1; }
11816 }
11817
11818 #
11819 # Set up the sed scripts for CONFIG_FILES section.
11820 #
11821
11822 # No need to generate the scripts if there are no CONFIG_FILES.
11823 # This happens for instance when ./config.status config.h
11824 if test -n "$CONFIG_FILES"; then
11825
11826 _ACEOF
11827
11828
11829
11830 ac_delim='%!_!# '
11831 for ac_last_try in false false false false false :; do
11832 cat >conf$$subs.sed <<_ACEOF
11833 SHELL!$SHELL$ac_delim
11834 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
11835 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
11836 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
11837 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
11838 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
11839 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
11840 exec_prefix!$exec_prefix$ac_delim
11841 prefix!$prefix$ac_delim
11842 program_transform_name!$program_transform_name$ac_delim
11843 bindir!$bindir$ac_delim
11844 sbindir!$sbindir$ac_delim
11845 libexecdir!$libexecdir$ac_delim
11846 datarootdir!$datarootdir$ac_delim
11847 datadir!$datadir$ac_delim
11848 sysconfdir!$sysconfdir$ac_delim
11849 sharedstatedir!$sharedstatedir$ac_delim
11850 localstatedir!$localstatedir$ac_delim
11851 includedir!$includedir$ac_delim
11852 oldincludedir!$oldincludedir$ac_delim
11853 docdir!$docdir$ac_delim
11854 infodir!$infodir$ac_delim
11855 htmldir!$htmldir$ac_delim
11856 dvidir!$dvidir$ac_delim
11857 pdfdir!$pdfdir$ac_delim
11858 psdir!$psdir$ac_delim
11859 libdir!$libdir$ac_delim
11860 localedir!$localedir$ac_delim
11861 mandir!$mandir$ac_delim
11862 DEFS!$DEFS$ac_delim
11863 ECHO_C!$ECHO_C$ac_delim
11864 ECHO_N!$ECHO_N$ac_delim
11865 ECHO_T!$ECHO_T$ac_delim
11866 LIBS!$LIBS$ac_delim
11867 build_alias!$build_alias$ac_delim
11868 host_alias!$host_alias$ac_delim
11869 target_alias!$target_alias$ac_delim
11870 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
11871 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
11872 INSTALL_DATA!$INSTALL_DATA$ac_delim
11873 PACKAGE!$PACKAGE$ac_delim
11874 VERSION!$VERSION$ac_delim
11875 ACLOCAL!$ACLOCAL$ac_delim
11876 AUTOCONF!$AUTOCONF$ac_delim
11877 AUTOMAKE!$AUTOMAKE$ac_delim
11878 AUTOHEADER!$AUTOHEADER$ac_delim
11879 MAKEINFO!$MAKEINFO$ac_delim
11880 AMTAR!$AMTAR$ac_delim
11881 install_sh!$install_sh$ac_delim
11882 STRIP!$STRIP$ac_delim
11883 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
11884 AWK!$AWK$ac_delim
11885 SET_MAKE!$SET_MAKE$ac_delim
11886 LIB_CURRENT!$LIB_CURRENT$ac_delim
11887 LIB_REVISION!$LIB_REVISION$ac_delim
11888 LIB_AGE!$LIB_AGE$ac_delim
11889 CXX!$CXX$ac_delim
11890 CXXFLAGS!$CXXFLAGS$ac_delim
11891 LDFLAGS!$LDFLAGS$ac_delim
11892 CPPFLAGS!$CPPFLAGS$ac_delim
11893 ac_ct_CXX!$ac_ct_CXX$ac_delim
11894 EXEEXT!$EXEEXT$ac_delim
11895 OBJEXT!$OBJEXT$ac_delim
11896 DEPDIR!$DEPDIR$ac_delim
11897 am__include!$am__include$ac_delim
11898 am__quote!$am__quote$ac_delim
11899 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
11900 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
11901 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
11902 CXXDEPMODE!$CXXDEPMODE$ac_delim
11903 LN_S!$LN_S$ac_delim
11904 CC!$CC$ac_delim
11905 CFLAGS!$CFLAGS$ac_delim
11906 ac_ct_CC!$ac_ct_CC$ac_delim
11907 CCDEPMODE!$CCDEPMODE$ac_delim
11908 CPP!$CPP$ac_delim
11909 build!$build$ac_delim
11910 build_cpu!$build_cpu$ac_delim
11911 build_vendor!$build_vendor$ac_delim
11912 build_os!$build_os$ac_delim
11913 host!$host$ac_delim
11914 host_cpu!$host_cpu$ac_delim
11915 host_vendor!$host_vendor$ac_delim
11916 host_os!$host_os$ac_delim
11917 ECHO!$ECHO$ac_delim
11918 RANLIB!$RANLIB$ac_delim
11919 CXXCPP!$CXXCPP$ac_delim
11920 GREP!$GREP$ac_delim
11921 EGREP!$EGREP$ac_delim
11922 LIBTOOL!$LIBTOOL$ac_delim
11923 PKG_CONFIG!$PKG_CONFIG$ac_delim
11924 LIBUSB_CFLAGS!$LIBUSB_CFLAGS$ac_delim
11925 LIBUSB_LIBS!$LIBUSB_LIBS$ac_delim
11926 LIBOBJS!$LIBOBJS$ac_delim
11927 LTLIBOBJS!$LTLIBOBJS$ac_delim
11928 _ACEOF
11929
11930 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then
11931 break
11932 elif $ac_last_try; then
11933 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11934 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11935 { (exit 1); exit 1; }; }
11936 else
11937 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11938 fi
11939 done
11940
11941 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11942 if test -n "$ac_eof"; then
11943 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11944 ac_eof=`expr $ac_eof + 1`
11945 fi
11946
11947 cat >>$CONFIG_STATUS <<_ACEOF
11948 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
11949 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
11950 _ACEOF
11951 sed '
11952 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11953 s/^/s,@/; s/!/@,|#_!!_#|/
11954 :n
11955 t n
11956 s/'"$ac_delim"'$/,g/; t
11957 s/$/\\/; p
11958 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11959 ' >>$CONFIG_STATUS <conf$$subs.sed
11960 rm -f conf$$subs.sed
11961 cat >>$CONFIG_STATUS <<_ACEOF
11962 :end
11963 s/|#_!!_#|//g
11964 CEOF$ac_eof
11965 _ACEOF
11966
11967
11968 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11969 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11970 # trailing colons and then remove the whole line if VPATH becomes empty
11971 # (actually we leave an empty line to preserve line numbers).
11972 if test "x$srcdir" = x.; then
11973 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11974 s/:*\$(srcdir):*/:/
11975 s/:*\${srcdir}:*/:/
11976 s/:*@srcdir@:*/:/
11977 s/^\([^=]*=[ ]*\):*/\1/
11978 s/:*$//
11979 s/^[^=]*=[ ]*$//
11980 }'
11981 fi
11982
11983 cat >>$CONFIG_STATUS <<\_ACEOF
11984 fi # test -n "$CONFIG_FILES"
11985
11986
11987 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
11988 do
11989 case $ac_tag in
11990 :[FHLC]) ac_mode=$ac_tag; continue;;
11991 esac
11992 case $ac_mode$ac_tag in
11993 :[FHL]*:*);;
11994 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11995 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11996 { (exit 1); exit 1; }; };;
11997 :[FH]-) ac_tag=-:-;;
11998 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11999 esac
12000 ac_save_IFS=$IFS
12001 IFS=:
12002 set x $ac_tag
12003 IFS=$ac_save_IFS
12004 shift
12005 ac_file=$1
12006 shift
12007
12008 case $ac_mode in
12009 :L) ac_source=$1;;
12010 :[FH])
12011 ac_file_inputs=
12012 for ac_f
12013 do
12014 case $ac_f in
12015 -) ac_f="$tmp/stdin";;
12016 *) # Look for the file first in the build tree, then in the source tree
12017 # (if the path is not absolute). The absolute path cannot be DOS-style,
12018 # because $ac_f cannot contain `:'.
12019 test -f "$ac_f" ||
12020 case $ac_f in
12021 [\\/$]*) false;;
12022 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12023 esac ||
12024 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12025 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12026 { (exit 1); exit 1; }; };;
12027 esac
12028 ac_file_inputs="$ac_file_inputs $ac_f"
12029 done
12030
12031 # Let's still pretend it is `configure' which instantiates (i.e., don't
12032 # use $as_me), people would be surprised to read:
12033 # /* config.h. Generated by config.status. */
12034 configure_input="Generated from "`IFS=:
12035 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12036 if test x"$ac_file" != x-; then
12037 configure_input="$ac_file. $configure_input"
12038 { echo "$as_me:$LINENO: creating $ac_file" >&5
12039 echo "$as_me: creating $ac_file" >&6;}
12040 fi
12041
12042 case $ac_tag in
12043 *:-:* | *:-) cat >"$tmp/stdin";;
12044 esac
12045 ;;
12046 esac
12047
12048 ac_dir=`$as_dirname -- "$ac_file" ||
12049 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12050 X"$ac_file" : 'X\(//\)[^/]' \| \
12051 X"$ac_file" : 'X\(//\)$' \| \
12052 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12053 echo X"$ac_file" |
12054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12055 s//\1/
12056 q
12057 }
12058 /^X\(\/\/\)[^/].*/{
12059 s//\1/
12060 q
12061 }
12062 /^X\(\/\/\)$/{
12063 s//\1/
12064 q
12065 }
12066 /^X\(\/\).*/{
12067 s//\1/
12068 q
12069 }
12070 s/.*/./; q'`
12071 { as_dir="$ac_dir"
12072 case $as_dir in #(
12073 -*) as_dir=./$as_dir;;
12074 esac
12075 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12076 as_dirs=
12077 while :; do
12078 case $as_dir in #(
12079 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12080 *) as_qdir=$as_dir;;
12081 esac
12082 as_dirs="'$as_qdir' $as_dirs"
12083 as_dir=`$as_dirname -- "$as_dir" ||
12084 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12085 X"$as_dir" : 'X\(//\)[^/]' \| \
12086 X"$as_dir" : 'X\(//\)$' \| \
12087 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12088 echo X"$as_dir" |
12089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12090 s//\1/
12091 q
12092 }
12093 /^X\(\/\/\)[^/].*/{
12094 s//\1/
12095 q
12096 }
12097 /^X\(\/\/\)$/{
12098 s//\1/
12099 q
12100 }
12101 /^X\(\/\).*/{
12102 s//\1/
12103 q
12104 }
12105 s/.*/./; q'`
12106 test -d "$as_dir" && break
12107 done
12108 test -z "$as_dirs" || eval "mkdir $as_dirs"
12109 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12110 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12111 { (exit 1); exit 1; }; }; }
12112 ac_builddir=.
12113
12114 case "$ac_dir" in
12115 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12116 *)
12117 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12118 # A ".." for each directory in $ac_dir_suffix.
12119 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12120 case $ac_top_builddir_sub in
12121 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12122 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12123 esac ;;
12124 esac
12125 ac_abs_top_builddir=$ac_pwd
12126 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12127 # for backward compatibility:
12128 ac_top_builddir=$ac_top_build_prefix
12129
12130 case $srcdir in
12131 .) # We are building in place.
12132 ac_srcdir=.
12133 ac_top_srcdir=$ac_top_builddir_sub
12134 ac_abs_top_srcdir=$ac_pwd ;;
12135 [\\/]* | ?:[\\/]* ) # Absolute name.
12136 ac_srcdir=$srcdir$ac_dir_suffix;
12137 ac_top_srcdir=$srcdir
12138 ac_abs_top_srcdir=$srcdir ;;
12139 *) # Relative name.
12140 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12141 ac_top_srcdir=$ac_top_build_prefix$srcdir
12142 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12143 esac
12144 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12145
12146
12147 case $ac_mode in
12148 :F)
12149 #
12150 # CONFIG_FILE
12151 #
12152
12153 case $INSTALL in
12154 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12155 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12156 esac
12157 _ACEOF
12158
12159 cat >>$CONFIG_STATUS <<\_ACEOF
12160 # If the template does not know about datarootdir, expand it.
12161 # FIXME: This hack should be removed a few years after 2.60.
12162 ac_datarootdir_hack=; ac_datarootdir_seen=
12163
12164 case `sed -n '/datarootdir/ {
12165 p
12166 q
12167 }
12168 /@datadir@/p
12169 /@docdir@/p
12170 /@infodir@/p
12171 /@localedir@/p
12172 /@mandir@/p
12173 ' $ac_file_inputs` in
12174 *datarootdir*) ac_datarootdir_seen=yes;;
12175 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12176 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12177 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12178 _ACEOF
12179 cat >>$CONFIG_STATUS <<_ACEOF
12180 ac_datarootdir_hack='
12181 s&@datadir@&$datadir&g
12182 s&@docdir@&$docdir&g
12183 s&@infodir@&$infodir&g
12184 s&@localedir@&$localedir&g
12185 s&@mandir@&$mandir&g
12186 s&\\\${datarootdir}&$datarootdir&g' ;;
12187 esac
12188 _ACEOF
12189
12190 # Neutralize VPATH when `$srcdir' = `.'.
12191 # Shell code in configure.ac might set extrasub.
12192 # FIXME: do we really want to maintain this feature?
12193 cat >>$CONFIG_STATUS <<_ACEOF
12194 sed "$ac_vpsub
12195 $extrasub
12196 _ACEOF
12197 cat >>$CONFIG_STATUS <<\_ACEOF
12198 :t
12199 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12200 s&@configure_input@&$configure_input&;t t
12201 s&@top_builddir@&$ac_top_builddir_sub&;t t
12202 s&@srcdir@&$ac_srcdir&;t t
12203 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12204 s&@top_srcdir@&$ac_top_srcdir&;t t
12205 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12206 s&@builddir@&$ac_builddir&;t t
12207 s&@abs_builddir@&$ac_abs_builddir&;t t
12208 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12209 s&@INSTALL@&$ac_INSTALL&;t t
12210 $ac_datarootdir_hack
12211 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
12212
12213 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12214 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12215 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12216 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12217 which seems to be undefined. Please make sure it is defined." >&5
12218 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12219 which seems to be undefined. Please make sure it is defined." >&2;}
12220
12221 rm -f "$tmp/stdin"
12222 case $ac_file in
12223 -) cat "$tmp/out"; rm -f "$tmp/out";;
12224 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12225 esac
12226 ;;
12227 :H)
12228 #
12229 # CONFIG_HEADER
12230 #
12231 _ACEOF
12232
12233 # Transform confdefs.h into a sed script `conftest.defines', that
12234 # substitutes the proper values into config.h.in to produce config.h.
12235 rm -f conftest.defines conftest.tail
12236 # First, append a space to every undef/define line, to ease matching.
12237 echo 's/$/ /' >conftest.defines
12238 # Then, protect against being on the right side of a sed subst, or in
12239 # an unquoted here document, in config.status. If some macros were
12240 # called several times there might be several #defines for the same
12241 # symbol, which is useless. But do not sort them, since the last
12242 # AC_DEFINE must be honored.
12243 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12244 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12245 # NAME is the cpp macro being defined, VALUE is the value it is being given.
12246 # PARAMS is the parameter list in the macro definition--in most cases, it's
12247 # just an empty string.
12248 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12249 ac_dB='\\)[ (].*,\\1define\\2'
12250 ac_dC=' '
12251 ac_dD=' ,'
12252
12253 uniq confdefs.h |
12254 sed -n '
12255 t rset
12256 :rset
12257 s/^[ ]*#[ ]*define[ ][ ]*//
12258 t ok
12259 d
12260 :ok
12261 s/[\\&,]/\\&/g
12262 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12263 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12264 ' >>conftest.defines
12265
12266 # Remove the space that was appended to ease matching.
12267 # Then replace #undef with comments. This is necessary, for
12268 # example, in the case of _POSIX_SOURCE, which is predefined and required
12269 # on some systems where configure will not decide to define it.
12270 # (The regexp can be short, since the line contains either #define or #undef.)
12271 echo 's/ $//
12272 s,^[ #]*u.*,/* & */,' >>conftest.defines
12273
12274 # Break up conftest.defines:
12275 ac_max_sed_lines=50
12276
12277 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12278 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12279 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12280 # et cetera.
12281 ac_in='$ac_file_inputs'
12282 ac_out='"$tmp/out1"'
12283 ac_nxt='"$tmp/out2"'
12284
12285 while :
12286 do
12287 # Write a here document:
12288 cat >>$CONFIG_STATUS <<_ACEOF
12289 # First, check the format of the line:
12290 cat >"\$tmp/defines.sed" <<\\CEOF
12291 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
12292 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
12293 b
12294 :def
12295 _ACEOF
12296 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
12297 echo 'CEOF
12298 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12299 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12300 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12301 grep . conftest.tail >/dev/null || break
12302 rm -f conftest.defines
12303 mv conftest.tail conftest.defines
12304 done
12305 rm -f conftest.defines conftest.tail
12306
12307 echo "ac_result=$ac_in" >>$CONFIG_STATUS
12308 cat >>$CONFIG_STATUS <<\_ACEOF
12309 if test x"$ac_file" != x-; then
12310 echo "/* $configure_input */" >"$tmp/config.h"
12311 cat "$ac_result" >>"$tmp/config.h"
12312 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
12313 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12314 echo "$as_me: $ac_file is unchanged" >&6;}
12315 else
12316 rm -f $ac_file
12317 mv "$tmp/config.h" $ac_file
12318 fi
12319 else
12320 echo "/* $configure_input */"
12321 cat "$ac_result"
12322 fi
12323 rm -f "$tmp/out12"
12324 ;;
12325
12326 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
12327 echo "$as_me: executing $ac_file commands" >&6;}
12328 ;;
12329 esac
12330
12331
12332 case $ac_file$ac_mode in
12333 "config.h":H) # update the timestamp
12334 echo 'timestamp for config.h' >"./stamp-h2"
12335 ;;
12336 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12337 # Strip MF so we end up with the name of the file.
12338 mf=`echo "$mf" | sed -e 's/:.*$//'`
12339 # Check whether this is an Automake generated Makefile or not.
12340 # We used to match only the files named `Makefile.in', but
12341 # some people rename them; so instead we look at the file content.
12342 # Grep'ing the first line is not enough: some people post-process
12343 # each Makefile.in and add a new line on top of each file to say so.
12344 # So let's grep whole file.
12345 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12346 dirpart=`$as_dirname -- "$mf" ||
12347 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12348 X"$mf" : 'X\(//\)[^/]' \| \
12349 X"$mf" : 'X\(//\)$' \| \
12350 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12351 echo X"$mf" |
12352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12353 s//\1/
12354 q
12355 }
12356 /^X\(\/\/\)[^/].*/{
12357 s//\1/
12358 q
12359 }
12360 /^X\(\/\/\)$/{
12361 s//\1/
12362 q
12363 }
12364 /^X\(\/\).*/{
12365 s//\1/
12366 q
12367 }
12368 s/.*/./; q'`
12369 else
12370 continue
12371 fi
12372 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
12373 # Extract the definition of DEP_FILES from the Makefile without
12374 # running `make'.
12375 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
12376 test -z "$DEPDIR" && continue
12377 # When using ansi2knr, U may be empty or an underscore; expand it
12378 U=`sed -n -e '/^U = / s///p' < "$mf"`
12379 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
12380 # We invoke sed twice because it is the simplest approach to
12381 # changing $(DEPDIR) to its actual value in the expansion.
12382 for file in `sed -n -e '
12383 /^DEP_FILES = .*\\\\$/ {
12384 s/^DEP_FILES = //
12385 :loop
12386 s/\\\\$//
12387 p
12388 n
12389 /\\\\$/ b loop
12390 p
12391 }
12392 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
12393 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12394 # Make sure the directory exists.
12395 test -f "$dirpart/$file" && continue
12396 fdir=`$as_dirname -- "$file" ||
12397 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12398 X"$file" : 'X\(//\)[^/]' \| \
12399 X"$file" : 'X\(//\)$' \| \
12400 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12401 echo X"$file" |
12402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12403 s//\1/
12404 q
12405 }
12406 /^X\(\/\/\)[^/].*/{
12407 s//\1/
12408 q
12409 }
12410 /^X\(\/\/\)$/{
12411 s//\1/
12412 q
12413 }
12414 /^X\(\/\).*/{
12415 s//\1/
12416 q
12417 }
12418 s/.*/./; q'`
12419 { as_dir=$dirpart/$fdir
12420 case $as_dir in #(
12421 -*) as_dir=./$as_dir;;
12422 esac
12423 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12424 as_dirs=
12425 while :; do
12426 case $as_dir in #(
12427 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12428 *) as_qdir=$as_dir;;
12429 esac
12430 as_dirs="'$as_qdir' $as_dirs"
12431 as_dir=`$as_dirname -- "$as_dir" ||
12432 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12433 X"$as_dir" : 'X\(//\)[^/]' \| \
12434 X"$as_dir" : 'X\(//\)$' \| \
12435 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12436 echo X"$as_dir" |
12437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12438 s//\1/
12439 q
12440 }
12441 /^X\(\/\/\)[^/].*/{
12442 s//\1/
12443 q
12444 }
12445 /^X\(\/\/\)$/{
12446 s//\1/
12447 q
12448 }
12449 /^X\(\/\).*/{
12450 s//\1/
12451 q
12452 }
12453 s/.*/./; q'`
12454 test -d "$as_dir" && break
12455 done
12456 test -z "$as_dirs" || eval "mkdir $as_dirs"
12457 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12458 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12459 { (exit 1); exit 1; }; }; }
12460 # echo "creating $dirpart/$file"
12461 echo '# dummy' > "$dirpart/$file"
12462 done
12463 done
12464 ;;
12465
12466 esac
12467 done # for ac_tag
12468
12469
12470 { (exit 0); exit 0; }
12471 _ACEOF
12472 chmod +x $CONFIG_STATUS
12473 ac_clean_files=$ac_clean_files_save
12474
12475
12476 # configure is writing to config.log, and then calls config.status.
12477 # config.status does its own redirection, appending to config.log.
12478 # Unfortunately, on DOS this fails, as config.log is still kept open
12479 # by configure, so config.status won't be able to write to it; its
12480 # output is simply discarded. So we exec the FD to /dev/null,
12481 # effectively closing config.log, so it can be properly (re)opened and
12482 # appended to by config.status. When coming back to configure, we
12483 # need to make the FD available again.
12484 if test "$no_create" != yes; then
12485 ac_cs_success=:
12486 ac_config_status_args=
12487 test "$silent" = yes &&
12488 ac_config_status_args="$ac_config_status_args --quiet"
12489 exec 5>/dev/null
12490 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12491 exec 5>>config.log
12492 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12493 # would make configure fail if this is the last instruction.
12494 $ac_cs_success || { (exit 1); exit 1; }
12495 fi
12496
12497