Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for FluidSynth-DSSI 1.0.0.
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, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86 else
87 as_unset=false
88 fi
89
90
91 # IFS
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" "" $as_nl"
97
98 # Find who we are. Look in the path if we contain no directory separator.
99 case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
109
110 ;;
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115 as_myself=$0
116 fi
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
120 fi
121
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140 else
141 as_expr=false
142 fi
143
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146 else
147 as_basename=false
148 fi
149
150
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
159 q
160 }
161 /^X\/\(\/\/\)$/{
162 s//\1/
163 q
164 }
165 /^X\/\(\/\).*/{
166 s//\1/
167 q
168 }
169 s/.*/./; q'`
170
171 # CDPATH.
172 $as_unset CDPATH
173
174
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178 else
179 as_have_required=no
180 fi
181
182 if test $as_have_required = yes && (eval ":
183 (as_func_return () {
184 (exit \$1)
185 }
186 as_func_success () {
187 as_func_return 0
188 }
189 as_func_failure () {
190 as_func_return 1
191 }
192 as_func_ret_success () {
193 return 0
194 }
195 as_func_ret_failure () {
196 return 1
197 }
198
199 exitcode=0
200 if as_func_success; then
201 :
202 else
203 exitcode=1
204 echo as_func_success failed.
205 fi
206
207 if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
210 fi
211
212 if as_func_ret_success; then
213 :
214 else
215 exitcode=1
216 echo as_func_ret_success failed.
217 fi
218
219 if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
222 fi
223
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 :
226 else
227 exitcode=1
228 echo positional parameters were not saved.
229 fi
230
231 test \$exitcode = 0) || { (exit 1); exit 1; }
232
233 (
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
239 :
240 else
241 as_candidate_shells=
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 do
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
247 case $as_dir in
248 /*)
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253 done
254 IFS=$as_save_IFS
255
256
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 _ASEOF
278 }; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289 else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292 esac
293
294 fi
295
296
297 :
298 (as_func_return () {
299 (exit $1)
300 }
301 as_func_success () {
302 as_func_return 0
303 }
304 as_func_failure () {
305 as_func_return 1
306 }
307 as_func_ret_success () {
308 return 0
309 }
310 as_func_ret_failure () {
311 return 1
312 }
313
314 exitcode=0
315 if as_func_success; then
316 :
317 else
318 exitcode=1
319 echo as_func_success failed.
320 fi
321
322 if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
325 fi
326
327 if as_func_ret_success; then
328 :
329 else
330 exitcode=1
331 echo as_func_ret_success failed.
332 fi
333
334 if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
337 fi
338
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
340 :
341 else
342 exitcode=1
343 echo positional parameters were not saved.
344 fi
345
346 test $exitcode = 0) || { (exit 1); exit 1; }
347
348 (
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354 _ASEOF
355 }; then
356 break
357 fi
358
359 fi
360
361 done
362
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369 fi
370
371
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
378 fi
379
380
381 fi
382
383 fi
384
385
386
387 (eval "as_func_return () {
388 (exit \$1)
389 }
390 as_func_success () {
391 as_func_return 0
392 }
393 as_func_failure () {
394 as_func_return 1
395 }
396 as_func_ret_success () {
397 return 0
398 }
399 as_func_ret_failure () {
400 return 1
401 }
402
403 exitcode=0
404 if as_func_success; then
405 :
406 else
407 exitcode=1
408 echo as_func_success failed.
409 fi
410
411 if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
414 fi
415
416 if as_func_ret_success; then
417 :
418 else
419 exitcode=1
420 echo as_func_ret_success failed.
421 fi
422
423 if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
426 fi
427
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 :
430 else
431 exitcode=1
432 echo positional parameters were not saved.
433 fi
434
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell [email protected] about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
441 }
442
443
444
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
461 p
462 /[$]LINENO/=
463 ' <$as_myself |
464 sed '
465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
469 N
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 t loop
473 s/-\n.*//
474 ' >$as_me.lineno &&
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
478
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
483 # Exit status is that of the last command.
484 exit
485 }
486
487
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490 else
491 as_dirname=false
492 fi
493
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
501 *)
502 ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507 else
508 as_expr=false
509 fi
510
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514 else
515 rm -f conf$$.dir
516 mkdir conf$$.dir 2>/dev/null
517 fi
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
530 as_ln_s='cp -p'
531 fi
532 else
533 as_ln_s='cp -p'
534 fi
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
537
538 if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540 else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
543 fi
544
545 if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547 else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
552 fi
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
556 test -d "$1/.";
557 else
558 case $1 in
559 -*)set "./$1";;
560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
564 '
565 fi
566 as_executable_p=$as_test_x
567
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
579
580 case X$lt_ECHO in
581 X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
584 ;;
585 esac
586
587 ECHO=${lt_ECHO-echo}
588 if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
590 shift
591 elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
593 :
594 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $ECHO works!
596 :
597 else
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
600 fi
601
602 if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
604 shift
605 cat <<_LT_EOF
606 $*
607 _LT_EOF
608 exit 0
609 fi
610
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
612 # if CDPATH is set.
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615 if test -z "$lt_ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622 then
623 break
624 fi
625 done
626 fi
627
628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
631 :
632 else
633 # The Solaris, AIX, and Digital Unix default echo programs unquote
634 # backslashes. This makes it impossible to quote backslashes using
635 # echo "$something" | sed 's/\\/\\\\/g'
636 #
637 # So, first we look for a working echo in the user's PATH.
638
639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640 for dir in $PATH /usr/ucb; do
641 IFS="$lt_save_ifs"
642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645 test "X$echo_testing_string" = "X$echo_test_string"; then
646 ECHO="$dir/echo"
647 break
648 fi
649 done
650 IFS="$lt_save_ifs"
651
652 if test "X$ECHO" = Xecho; then
653 # We didn't find a better echo, so look for alternatives.
654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 # This shell has a builtin print -r that does the trick.
658 ECHO='print -r'
659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660 test "X$CONFIG_SHELL" != X/bin/ksh; then
661 # If we have ksh, try running configure again with it.
662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663 export ORIGINAL_CONFIG_SHELL
664 CONFIG_SHELL=/bin/ksh
665 export CONFIG_SHELL
666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
667 else
668 # Try using printf.
669 ECHO='printf %s\n'
670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
673 # Cool, printf works
674 :
675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676 test "X$echo_testing_string" = 'X\t' &&
677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678 test "X$echo_testing_string" = "X$echo_test_string"; then
679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680 export CONFIG_SHELL
681 SHELL="$CONFIG_SHELL"
682 export SHELL
683 ECHO="$CONFIG_SHELL $0 --fallback-echo"
684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685 test "X$echo_testing_string" = 'X\t' &&
686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687 test "X$echo_testing_string" = "X$echo_test_string"; then
688 ECHO="$CONFIG_SHELL $0 --fallback-echo"
689 else
690 # maybe with a smaller string...
691 prev=:
692
693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695 then
696 break
697 fi
698 prev="$cmd"
699 done
700
701 if test "$prev" != 'sed 50q "$0"'; then
702 echo_test_string=`eval $prev`
703 export echo_test_string
704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705 else
706 # Oops. We lost completely, so just stick with echo.
707 ECHO=echo
708 fi
709 fi
710 fi
711 fi
712 fi
713 fi
714
715 # Copy echo and quote the copy suitably for passing to libtool from
716 # the Makefile, instead of quoting the original, which is used later.
717 lt_ECHO=$ECHO
718 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
720 fi
721
722
723
724
725 exec 7<&0 </dev/null 6>&1
726
727 # Name of the host.
728 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729 # so uname gets run too.
730 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731
732 #
733 # Initializations.
734 #
735 ac_default_prefix=/usr/local
736 ac_clean_files=
737 ac_config_libobj_dir=.
738 LIBOBJS=
739 cross_compiling=no
740 subdirs=
741 MFLAGS=
742 MAKEFLAGS=
743 SHELL=${CONFIG_SHELL-/bin/sh}
744
745 # Identity of this package.
746 PACKAGE_NAME='FluidSynth-DSSI'
747 PACKAGE_TARNAME='fluidsynth-dssi'
748 PACKAGE_VERSION='1.0.0'
749 PACKAGE_STRING='FluidSynth-DSSI 1.0.0'
750 PACKAGE_BUGREPORT='[email protected]'
751
752 ac_unique_file="src/fluidsynth-dssi.c"
753 # Factoring default headers for most tests.
754 ac_includes_default="\
755 #include <stdio.h>
756 #ifdef HAVE_SYS_TYPES_H
757 # include <sys/types.h>
758 #endif
759 #ifdef HAVE_SYS_STAT_H
760 # include <sys/stat.h>
761 #endif
762 #ifdef STDC_HEADERS
763 # include <stdlib.h>
764 # include <stddef.h>
765 #else
766 # ifdef HAVE_STDLIB_H
767 # include <stdlib.h>
768 # endif
769 #endif
770 #ifdef HAVE_STRING_H
771 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
772 # include <memory.h>
773 # endif
774 # include <string.h>
775 #endif
776 #ifdef HAVE_STRINGS_H
777 # include <strings.h>
778 #endif
779 #ifdef HAVE_INTTYPES_H
780 # include <inttypes.h>
781 #endif
782 #ifdef HAVE_STDINT_H
783 # include <stdint.h>
784 #endif
785 #ifdef HAVE_UNISTD_H
786 # include <unistd.h>
787 #endif"
788
789 ac_subst_vars='LTLIBOBJS
790 LIBOBJS
791 DARWIN_FALSE
792 DARWIN_TRUE
793 MODULE_LIBS
794 MODULE_CFLAGS
795 ALSA_LIBS
796 ALSA_CFLAGS
797 BUILD_GUI_FALSE
798 BUILD_GUI_TRUE
799 GTK_CONFIG
800 GTK_LIBS
801 GTK_CFLAGS
802 FLUID_LIBS
803 FLUID_CFLAGS
804 PKG_CONFIG
805 CPP
806 OTOOL64
807 OTOOL
808 LIPO
809 NMEDIT
810 DSYMUTIL
811 lt_ECHO
812 RANLIB
813 AR
814 OBJDUMP
815 LN_S
816 NM
817 ac_ct_DUMPBIN
818 DUMPBIN
819 LD
820 FGREP
821 EGREP
822 GREP
823 SED
824 host_os
825 host_vendor
826 host_cpu
827 host
828 build_os
829 build_vendor
830 build_cpu
831 build
832 LIBTOOL
833 am__fastdepCC_FALSE
834 am__fastdepCC_TRUE
835 CCDEPMODE
836 AMDEPBACKSLASH
837 AMDEP_FALSE
838 AMDEP_TRUE
839 am__quote
840 am__include
841 DEPDIR
842 OBJEXT
843 EXEEXT
844 ac_ct_CC
845 CPPFLAGS
846 LDFLAGS
847 CFLAGS
848 CC
849 am__untar
850 am__tar
851 AMTAR
852 am__leading_dot
853 SET_MAKE
854 AWK
855 mkdir_p
856 MKDIR_P
857 INSTALL_STRIP_PROGRAM
858 STRIP
859 install_sh
860 MAKEINFO
861 AUTOHEADER
862 AUTOMAKE
863 AUTOCONF
864 ACLOCAL
865 VERSION
866 PACKAGE
867 CYGPATH_W
868 am__isrc
869 INSTALL_DATA
870 INSTALL_SCRIPT
871 INSTALL_PROGRAM
872 target_alias
873 host_alias
874 build_alias
875 LIBS
876 ECHO_T
877 ECHO_N
878 ECHO_C
879 DEFS
880 mandir
881 localedir
882 libdir
883 psdir
884 pdfdir
885 dvidir
886 htmldir
887 infodir
888 docdir
889 oldincludedir
890 includedir
891 localstatedir
892 sharedstatedir
893 sysconfdir
894 datadir
895 datarootdir
896 libexecdir
897 sbindir
898 bindir
899 program_transform_name
900 prefix
901 exec_prefix
902 PACKAGE_BUGREPORT
903 PACKAGE_STRING
904 PACKAGE_VERSION
905 PACKAGE_TARNAME
906 PACKAGE_NAME
907 PATH_SEPARATOR
908 SHELL'
909 ac_subst_files=''
910 ac_user_opts='
911 enable_option_checking
912 enable_dependency_tracking
913 enable_static
914 enable_shared
915 with_pic
916 enable_fast_install
917 with_gnu_ld
918 enable_libtool_lock
919 with_gtk2
920 enable_gtktest
921 with_gtk_prefix
922 with_gtk_exec_prefix
923 '
924 ac_precious_vars='build_alias
925 host_alias
926 target_alias
927 CC
928 CFLAGS
929 LDFLAGS
930 LIBS
931 CPPFLAGS
932 CPP
933 PKG_CONFIG
934 FLUID_CFLAGS
935 FLUID_LIBS
936 ALSA_CFLAGS
937 ALSA_LIBS
938 MODULE_CFLAGS
939 MODULE_LIBS'
940
941
942 # Initialize some variables set by options.
943 ac_init_help=
944 ac_init_version=false
945 ac_unrecognized_opts=
946 ac_unrecognized_sep=
947 # The variables have the same names as the options, with
948 # dashes changed to underlines.
949 cache_file=/dev/null
950 exec_prefix=NONE
951 no_create=
952 no_recursion=
953 prefix=NONE
954 program_prefix=NONE
955 program_suffix=NONE
956 program_transform_name=s,x,x,
957 silent=
958 site=
959 srcdir=
960 verbose=
961 x_includes=NONE
962 x_libraries=NONE
963
964 # Installation directory options.
965 # These are left unexpanded so users can "make install exec_prefix=/foo"
966 # and all the variables that are supposed to be based on exec_prefix
967 # by default will actually change.
968 # Use braces instead of parens because sh, perl, etc. also accept them.
969 # (The list follows the same order as the GNU Coding Standards.)
970 bindir='${exec_prefix}/bin'
971 sbindir='${exec_prefix}/sbin'
972 libexecdir='${exec_prefix}/libexec'
973 datarootdir='${prefix}/share'
974 datadir='${datarootdir}'
975 sysconfdir='${prefix}/etc'
976 sharedstatedir='${prefix}/com'
977 localstatedir='${prefix}/var'
978 includedir='${prefix}/include'
979 oldincludedir='/usr/include'
980 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
981 infodir='${datarootdir}/info'
982 htmldir='${docdir}'
983 dvidir='${docdir}'
984 pdfdir='${docdir}'
985 psdir='${docdir}'
986 libdir='${exec_prefix}/lib'
987 localedir='${datarootdir}/locale'
988 mandir='${datarootdir}/man'
989
990 ac_prev=
991 ac_dashdash=
992 for ac_option
993 do
994 # If the previous option needs an argument, assign it.
995 if test -n "$ac_prev"; then
996 eval $ac_prev=\$ac_option
997 ac_prev=
998 continue
999 fi
1000
1001 case $ac_option in
1002 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1003 *) ac_optarg=yes ;;
1004 esac
1005
1006 # Accept the important Cygnus configure options, so we can diagnose typos.
1007
1008 case $ac_dashdash$ac_option in
1009 --)
1010 ac_dashdash=yes ;;
1011
1012 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1013 ac_prev=bindir ;;
1014 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1015 bindir=$ac_optarg ;;
1016
1017 -build | --build | --buil | --bui | --bu)
1018 ac_prev=build_alias ;;
1019 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1020 build_alias=$ac_optarg ;;
1021
1022 -cache-file | --cache-file | --cache-fil | --cache-fi \
1023 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1024 ac_prev=cache_file ;;
1025 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1026 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1027 cache_file=$ac_optarg ;;
1028
1029 --config-cache | -C)
1030 cache_file=config.cache ;;
1031
1032 -datadir | --datadir | --datadi | --datad)
1033 ac_prev=datadir ;;
1034 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1035 datadir=$ac_optarg ;;
1036
1037 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1038 | --dataroo | --dataro | --datar)
1039 ac_prev=datarootdir ;;
1040 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1041 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1042 datarootdir=$ac_optarg ;;
1043
1044 -disable-* | --disable-*)
1045 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1046 # Reject names that are not valid shell variable names.
1047 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1049 { (exit 1); exit 1; }; }
1050 ac_useropt_orig=$ac_useropt
1051 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052 case $ac_user_opts in
1053 *"
1054 "enable_$ac_useropt"
1055 "*) ;;
1056 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1057 ac_unrecognized_sep=', ';;
1058 esac
1059 eval enable_$ac_useropt=no ;;
1060
1061 -docdir | --docdir | --docdi | --doc | --do)
1062 ac_prev=docdir ;;
1063 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1064 docdir=$ac_optarg ;;
1065
1066 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1067 ac_prev=dvidir ;;
1068 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1069 dvidir=$ac_optarg ;;
1070
1071 -enable-* | --enable-*)
1072 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1076 { (exit 1); exit 1; }; }
1077 ac_useropt_orig=$ac_useropt
1078 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079 case $ac_user_opts in
1080 *"
1081 "enable_$ac_useropt"
1082 "*) ;;
1083 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1084 ac_unrecognized_sep=', ';;
1085 esac
1086 eval enable_$ac_useropt=\$ac_optarg ;;
1087
1088 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1089 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1090 | --exec | --exe | --ex)
1091 ac_prev=exec_prefix ;;
1092 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1093 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1094 | --exec=* | --exe=* | --ex=*)
1095 exec_prefix=$ac_optarg ;;
1096
1097 -gas | --gas | --ga | --g)
1098 # Obsolete; use --with-gas.
1099 with_gas=yes ;;
1100
1101 -help | --help | --hel | --he | -h)
1102 ac_init_help=long ;;
1103 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1104 ac_init_help=recursive ;;
1105 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1106 ac_init_help=short ;;
1107
1108 -host | --host | --hos | --ho)
1109 ac_prev=host_alias ;;
1110 -host=* | --host=* | --hos=* | --ho=*)
1111 host_alias=$ac_optarg ;;
1112
1113 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1114 ac_prev=htmldir ;;
1115 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1116 | --ht=*)
1117 htmldir=$ac_optarg ;;
1118
1119 -includedir | --includedir | --includedi | --included | --include \
1120 | --includ | --inclu | --incl | --inc)
1121 ac_prev=includedir ;;
1122 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1123 | --includ=* | --inclu=* | --incl=* | --inc=*)
1124 includedir=$ac_optarg ;;
1125
1126 -infodir | --infodir | --infodi | --infod | --info | --inf)
1127 ac_prev=infodir ;;
1128 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1129 infodir=$ac_optarg ;;
1130
1131 -libdir | --libdir | --libdi | --libd)
1132 ac_prev=libdir ;;
1133 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1134 libdir=$ac_optarg ;;
1135
1136 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1137 | --libexe | --libex | --libe)
1138 ac_prev=libexecdir ;;
1139 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1140 | --libexe=* | --libex=* | --libe=*)
1141 libexecdir=$ac_optarg ;;
1142
1143 -localedir | --localedir | --localedi | --localed | --locale)
1144 ac_prev=localedir ;;
1145 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1146 localedir=$ac_optarg ;;
1147
1148 -localstatedir | --localstatedir | --localstatedi | --localstated \
1149 | --localstate | --localstat | --localsta | --localst | --locals)
1150 ac_prev=localstatedir ;;
1151 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1152 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1153 localstatedir=$ac_optarg ;;
1154
1155 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1156 ac_prev=mandir ;;
1157 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1158 mandir=$ac_optarg ;;
1159
1160 -nfp | --nfp | --nf)
1161 # Obsolete; use --without-fp.
1162 with_fp=no ;;
1163
1164 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1165 | --no-cr | --no-c | -n)
1166 no_create=yes ;;
1167
1168 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1169 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1170 no_recursion=yes ;;
1171
1172 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1173 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1174 | --oldin | --oldi | --old | --ol | --o)
1175 ac_prev=oldincludedir ;;
1176 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1177 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1178 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1179 oldincludedir=$ac_optarg ;;
1180
1181 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1182 ac_prev=prefix ;;
1183 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1184 prefix=$ac_optarg ;;
1185
1186 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1187 | --program-pre | --program-pr | --program-p)
1188 ac_prev=program_prefix ;;
1189 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1190 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1191 program_prefix=$ac_optarg ;;
1192
1193 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1194 | --program-suf | --program-su | --program-s)
1195 ac_prev=program_suffix ;;
1196 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1197 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1198 program_suffix=$ac_optarg ;;
1199
1200 -program-transform-name | --program-transform-name \
1201 | --program-transform-nam | --program-transform-na \
1202 | --program-transform-n | --program-transform- \
1203 | --program-transform | --program-transfor \
1204 | --program-transfo | --program-transf \
1205 | --program-trans | --program-tran \
1206 | --progr-tra | --program-tr | --program-t)
1207 ac_prev=program_transform_name ;;
1208 -program-transform-name=* | --program-transform-name=* \
1209 | --program-transform-nam=* | --program-transform-na=* \
1210 | --program-transform-n=* | --program-transform-=* \
1211 | --program-transform=* | --program-transfor=* \
1212 | --program-transfo=* | --program-transf=* \
1213 | --program-trans=* | --program-tran=* \
1214 | --progr-tra=* | --program-tr=* | --program-t=*)
1215 program_transform_name=$ac_optarg ;;
1216
1217 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1218 ac_prev=pdfdir ;;
1219 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1220 pdfdir=$ac_optarg ;;
1221
1222 -psdir | --psdir | --psdi | --psd | --ps)
1223 ac_prev=psdir ;;
1224 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1225 psdir=$ac_optarg ;;
1226
1227 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1228 | -silent | --silent | --silen | --sile | --sil)
1229 silent=yes ;;
1230
1231 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1232 ac_prev=sbindir ;;
1233 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1234 | --sbi=* | --sb=*)
1235 sbindir=$ac_optarg ;;
1236
1237 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1238 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1239 | --sharedst | --shareds | --shared | --share | --shar \
1240 | --sha | --sh)
1241 ac_prev=sharedstatedir ;;
1242 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1243 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1244 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1245 | --sha=* | --sh=*)
1246 sharedstatedir=$ac_optarg ;;
1247
1248 -site | --site | --sit)
1249 ac_prev=site ;;
1250 -site=* | --site=* | --sit=*)
1251 site=$ac_optarg ;;
1252
1253 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1254 ac_prev=srcdir ;;
1255 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1256 srcdir=$ac_optarg ;;
1257
1258 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1259 | --syscon | --sysco | --sysc | --sys | --sy)
1260 ac_prev=sysconfdir ;;
1261 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1262 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1263 sysconfdir=$ac_optarg ;;
1264
1265 -target | --target | --targe | --targ | --tar | --ta | --t)
1266 ac_prev=target_alias ;;
1267 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1268 target_alias=$ac_optarg ;;
1269
1270 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1271 verbose=yes ;;
1272
1273 -version | --version | --versio | --versi | --vers | -V)
1274 ac_init_version=: ;;
1275
1276 -with-* | --with-*)
1277 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1278 # Reject names that are not valid shell variable names.
1279 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1280 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1281 { (exit 1); exit 1; }; }
1282 ac_useropt_orig=$ac_useropt
1283 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1284 case $ac_user_opts in
1285 *"
1286 "with_$ac_useropt"
1287 "*) ;;
1288 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1289 ac_unrecognized_sep=', ';;
1290 esac
1291 eval with_$ac_useropt=\$ac_optarg ;;
1292
1293 -without-* | --without-*)
1294 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1295 # Reject names that are not valid shell variable names.
1296 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1297 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1298 { (exit 1); exit 1; }; }
1299 ac_useropt_orig=$ac_useropt
1300 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1301 case $ac_user_opts in
1302 *"
1303 "with_$ac_useropt"
1304 "*) ;;
1305 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1306 ac_unrecognized_sep=', ';;
1307 esac
1308 eval with_$ac_useropt=no ;;
1309
1310 --x)
1311 # Obsolete; use --with-x.
1312 with_x=yes ;;
1313
1314 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1315 | --x-incl | --x-inc | --x-in | --x-i)
1316 ac_prev=x_includes ;;
1317 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1318 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1319 x_includes=$ac_optarg ;;
1320
1321 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1322 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1323 ac_prev=x_libraries ;;
1324 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1325 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1326 x_libraries=$ac_optarg ;;
1327
1328 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1329 Try \`$0 --help' for more information." >&2
1330 { (exit 1); exit 1; }; }
1331 ;;
1332
1333 *=*)
1334 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1335 # Reject names that are not valid shell variable names.
1336 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1337 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1338 { (exit 1); exit 1; }; }
1339 eval $ac_envvar=\$ac_optarg
1340 export $ac_envvar ;;
1341
1342 *)
1343 # FIXME: should be removed in autoconf 3.0.
1344 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1345 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1346 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1347 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1348 ;;
1349
1350 esac
1351 done
1352
1353 if test -n "$ac_prev"; then
1354 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1355 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1356 { (exit 1); exit 1; }; }
1357 fi
1358
1359 if test -n "$ac_unrecognized_opts"; then
1360 case $enable_option_checking in
1361 no) ;;
1362 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1363 { (exit 1); exit 1; }; } ;;
1364 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1365 esac
1366 fi
1367
1368 # Check all directory arguments for consistency.
1369 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1370 datadir sysconfdir sharedstatedir localstatedir includedir \
1371 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1372 libdir localedir mandir
1373 do
1374 eval ac_val=\$$ac_var
1375 # Remove trailing slashes.
1376 case $ac_val in
1377 */ )
1378 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1379 eval $ac_var=\$ac_val;;
1380 esac
1381 # Be sure to have absolute directory names.
1382 case $ac_val in
1383 [\\/$]* | ?:[\\/]* ) continue;;
1384 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1385 esac
1386 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1387 { (exit 1); exit 1; }; }
1388 done
1389
1390 # There might be people who depend on the old broken behavior: `$host'
1391 # used to hold the argument of --host etc.
1392 # FIXME: To remove some day.
1393 build=$build_alias
1394 host=$host_alias
1395 target=$target_alias
1396
1397 # FIXME: To remove some day.
1398 if test "x$host_alias" != x; then
1399 if test "x$build_alias" = x; then
1400 cross_compiling=maybe
1401 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1402 If a cross compiler is detected then cross compile mode will be used." >&2
1403 elif test "x$build_alias" != "x$host_alias"; then
1404 cross_compiling=yes
1405 fi
1406 fi
1407
1408 ac_tool_prefix=
1409 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1410
1411 test "$silent" = yes && exec 6>/dev/null
1412
1413
1414 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1415 ac_ls_di=`ls -di .` &&
1416 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1417 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1418 { (exit 1); exit 1; }; }
1419 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1420 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1421 { (exit 1); exit 1; }; }
1422
1423
1424 # Find the source files, if location was not specified.
1425 if test -z "$srcdir"; then
1426 ac_srcdir_defaulted=yes
1427 # Try the directory containing this script, then the parent directory.
1428 ac_confdir=`$as_dirname -- "$as_myself" ||
1429 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1430 X"$as_myself" : 'X\(//\)[^/]' \| \
1431 X"$as_myself" : 'X\(//\)$' \| \
1432 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1433 $as_echo X"$as_myself" |
1434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1435 s//\1/
1436 q
1437 }
1438 /^X\(\/\/\)[^/].*/{
1439 s//\1/
1440 q
1441 }
1442 /^X\(\/\/\)$/{
1443 s//\1/
1444 q
1445 }
1446 /^X\(\/\).*/{
1447 s//\1/
1448 q
1449 }
1450 s/.*/./; q'`
1451 srcdir=$ac_confdir
1452 if test ! -r "$srcdir/$ac_unique_file"; then
1453 srcdir=..
1454 fi
1455 else
1456 ac_srcdir_defaulted=no
1457 fi
1458 if test ! -r "$srcdir/$ac_unique_file"; then
1459 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1460 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1461 { (exit 1); exit 1; }; }
1462 fi
1463 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1464 ac_abs_confdir=`(
1465 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1466 { (exit 1); exit 1; }; }
1467 pwd)`
1468 # When building in place, set srcdir=.
1469 if test "$ac_abs_confdir" = "$ac_pwd"; then
1470 srcdir=.
1471 fi
1472 # Remove unnecessary trailing slashes from srcdir.
1473 # Double slashes in file names in object file debugging info
1474 # mess up M-x gdb in Emacs.
1475 case $srcdir in
1476 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1477 esac
1478 for ac_var in $ac_precious_vars; do
1479 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1480 eval ac_env_${ac_var}_value=\$${ac_var}
1481 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1482 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1483 done
1484
1485 #
1486 # Report the --help message.
1487 #
1488 if test "$ac_init_help" = "long"; then
1489 # Omit some internal or obsolete options to make the list less imposing.
1490 # This message is too long to be a string in the A/UX 3.1 sh.
1491 cat <<_ACEOF
1492 \`configure' configures FluidSynth-DSSI 1.0.0 to adapt to many kinds of systems.
1493
1494 Usage: $0 [OPTION]... [VAR=VALUE]...
1495
1496 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1497 VAR=VALUE. See below for descriptions of some of the useful variables.
1498
1499 Defaults for the options are specified in brackets.
1500
1501 Configuration:
1502 -h, --help display this help and exit
1503 --help=short display options specific to this package
1504 --help=recursive display the short help of all the included packages
1505 -V, --version display version information and exit
1506 -q, --quiet, --silent do not print \`checking...' messages
1507 --cache-file=FILE cache test results in FILE [disabled]
1508 -C, --config-cache alias for \`--cache-file=config.cache'
1509 -n, --no-create do not create output files
1510 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1511
1512 Installation directories:
1513 --prefix=PREFIX install architecture-independent files in PREFIX
1514 [$ac_default_prefix]
1515 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1516 [PREFIX]
1517
1518 By default, \`make install' will install all the files in
1519 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1520 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1521 for instance \`--prefix=\$HOME'.
1522
1523 For better control, use the options below.
1524
1525 Fine tuning of the installation directories:
1526 --bindir=DIR user executables [EPREFIX/bin]
1527 --sbindir=DIR system admin executables [EPREFIX/sbin]
1528 --libexecdir=DIR program executables [EPREFIX/libexec]
1529 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1530 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1531 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1532 --libdir=DIR object code libraries [EPREFIX/lib]
1533 --includedir=DIR C header files [PREFIX/include]
1534 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1535 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1536 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1537 --infodir=DIR info documentation [DATAROOTDIR/info]
1538 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1539 --mandir=DIR man documentation [DATAROOTDIR/man]
1540 --docdir=DIR documentation root [DATAROOTDIR/doc/fluidsynth-dssi]
1541 --htmldir=DIR html documentation [DOCDIR]
1542 --dvidir=DIR dvi documentation [DOCDIR]
1543 --pdfdir=DIR pdf documentation [DOCDIR]
1544 --psdir=DIR ps documentation [DOCDIR]
1545 _ACEOF
1546
1547 cat <<\_ACEOF
1548
1549 Program names:
1550 --program-prefix=PREFIX prepend PREFIX to installed program names
1551 --program-suffix=SUFFIX append SUFFIX to installed program names
1552 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1553
1554 System types:
1555 --build=BUILD configure for building on BUILD [guessed]
1556 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1557 _ACEOF
1558 fi
1559
1560 if test -n "$ac_init_help"; then
1561 case $ac_init_help in
1562 short | recursive ) echo "Configuration of FluidSynth-DSSI 1.0.0:";;
1563 esac
1564 cat <<\_ACEOF
1565
1566 Optional Features:
1567 --disable-option-checking ignore unrecognized --enable/--with options
1568 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1569 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1570 --disable-dependency-tracking speeds up one-time build
1571 --enable-dependency-tracking do not reject slow dependency extractors
1572 --enable-static[=PKGS] build static libraries [default=no]
1573 --enable-shared[=PKGS] build shared libraries [default=yes]
1574 --enable-fast-install[=PKGS]
1575 optimize for fast installation [default=yes]
1576 --disable-libtool-lock avoid locking (might break parallel builds)
1577 --disable-gtktest do not try to compile and run a test GTK+ program
1578 --disable-gtktest Do not try to compile and run a test GTK program
1579
1580 Optional Packages:
1581 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1582 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1583 --with-pic try to use only PIC/non-PIC objects [default=use
1584 both]
1585 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1586 --with-gtk2 use GTK+ 2.0 default=yes
1587 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1588 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1589
1590 Some influential environment variables:
1591 CC C compiler command
1592 CFLAGS C compiler flags
1593 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1594 nonstandard directory <lib dir>
1595 LIBS libraries to pass to the linker, e.g. -l<library>
1596 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1597 you have headers in a nonstandard directory <include dir>
1598 CPP C preprocessor
1599 PKG_CONFIG path to pkg-config utility
1600 FLUID_CFLAGS
1601 C compiler flags for FLUID, overriding pkg-config
1602 FLUID_LIBS linker flags for FLUID, overriding pkg-config
1603 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1604 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1605 MODULE_CFLAGS
1606 C compiler flags for MODULE, overriding pkg-config
1607 MODULE_LIBS linker flags for MODULE, overriding pkg-config
1608
1609 Use these variables to override the choices made by `configure' or to help
1610 it to find libraries and programs with nonstandard names/locations.
1611
1612 Report bugs to <[email protected]>.
1613 _ACEOF
1614 ac_status=$?
1615 fi
1616
1617 if test "$ac_init_help" = "recursive"; then
1618 # If there are subdirs, report their specific --help.
1619 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1620 test -d "$ac_dir" ||
1621 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1622 continue
1623 ac_builddir=.
1624
1625 case "$ac_dir" in
1626 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1627 *)
1628 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1629 # A ".." for each directory in $ac_dir_suffix.
1630 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1631 case $ac_top_builddir_sub in
1632 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1633 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1634 esac ;;
1635 esac
1636 ac_abs_top_builddir=$ac_pwd
1637 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1638 # for backward compatibility:
1639 ac_top_builddir=$ac_top_build_prefix
1640
1641 case $srcdir in
1642 .) # We are building in place.
1643 ac_srcdir=.
1644 ac_top_srcdir=$ac_top_builddir_sub
1645 ac_abs_top_srcdir=$ac_pwd ;;
1646 [\\/]* | ?:[\\/]* ) # Absolute name.
1647 ac_srcdir=$srcdir$ac_dir_suffix;
1648 ac_top_srcdir=$srcdir
1649 ac_abs_top_srcdir=$srcdir ;;
1650 *) # Relative name.
1651 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1652 ac_top_srcdir=$ac_top_build_prefix$srcdir
1653 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1654 esac
1655 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1656
1657 cd "$ac_dir" || { ac_status=$?; continue; }
1658 # Check for guested configure.
1659 if test -f "$ac_srcdir/configure.gnu"; then
1660 echo &&
1661 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1662 elif test -f "$ac_srcdir/configure"; then
1663 echo &&
1664 $SHELL "$ac_srcdir/configure" --help=recursive
1665 else
1666 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1667 fi || ac_status=$?
1668 cd "$ac_pwd" || { ac_status=$?; break; }
1669 done
1670 fi
1671
1672 test -n "$ac_init_help" && exit $ac_status
1673 if $ac_init_version; then
1674 cat <<\_ACEOF
1675 FluidSynth-DSSI configure 1.0.0
1676 generated by GNU Autoconf 2.63
1677
1678 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1679 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1680 This configure script is free software; the Free Software Foundation
1681 gives unlimited permission to copy, distribute and modify it.
1682 _ACEOF
1683 exit
1684 fi
1685 cat >config.log <<_ACEOF
1686 This file contains any messages produced by compilers while
1687 running configure, to aid debugging if configure makes a mistake.
1688
1689 It was created by FluidSynth-DSSI $as_me 1.0.0, which was
1690 generated by GNU Autoconf 2.63. Invocation command line was
1691
1692 $ $0 $@
1693
1694 _ACEOF
1695 exec 5>>config.log
1696 {
1697 cat <<_ASUNAME
1698 ## --------- ##
1699 ## Platform. ##
1700 ## --------- ##
1701
1702 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1703 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1704 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1705 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1706 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1707
1708 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1709 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1710
1711 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1712 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1713 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1714 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1715 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1716 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1717 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1718
1719 _ASUNAME
1720
1721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1722 for as_dir in $PATH
1723 do
1724 IFS=$as_save_IFS
1725 test -z "$as_dir" && as_dir=.
1726 $as_echo "PATH: $as_dir"
1727 done
1728 IFS=$as_save_IFS
1729
1730 } >&5
1731
1732 cat >&5 <<_ACEOF
1733
1734
1735 ## ----------- ##
1736 ## Core tests. ##
1737 ## ----------- ##
1738
1739 _ACEOF
1740
1741
1742 # Keep a trace of the command line.
1743 # Strip out --no-create and --no-recursion so they do not pile up.
1744 # Strip out --silent because we don't want to record it for future runs.
1745 # Also quote any args containing shell meta-characters.
1746 # Make two passes to allow for proper duplicate-argument suppression.
1747 ac_configure_args=
1748 ac_configure_args0=
1749 ac_configure_args1=
1750 ac_must_keep_next=false
1751 for ac_pass in 1 2
1752 do
1753 for ac_arg
1754 do
1755 case $ac_arg in
1756 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1757 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1758 | -silent | --silent | --silen | --sile | --sil)
1759 continue ;;
1760 *\'*)
1761 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1762 esac
1763 case $ac_pass in
1764 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1765 2)
1766 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1767 if test $ac_must_keep_next = true; then
1768 ac_must_keep_next=false # Got value, back to normal.
1769 else
1770 case $ac_arg in
1771 *=* | --config-cache | -C | -disable-* | --disable-* \
1772 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1773 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1774 | -with-* | --with-* | -without-* | --without-* | --x)
1775 case "$ac_configure_args0 " in
1776 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1777 esac
1778 ;;
1779 -* ) ac_must_keep_next=true ;;
1780 esac
1781 fi
1782 ac_configure_args="$ac_configure_args '$ac_arg'"
1783 ;;
1784 esac
1785 done
1786 done
1787 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1788 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1789
1790 # When interrupted or exit'd, cleanup temporary files, and complete
1791 # config.log. We remove comments because anyway the quotes in there
1792 # would cause problems or look ugly.
1793 # WARNING: Use '\'' to represent an apostrophe within the trap.
1794 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1795 trap 'exit_status=$?
1796 # Save into config.log some information that might help in debugging.
1797 {
1798 echo
1799
1800 cat <<\_ASBOX
1801 ## ---------------- ##
1802 ## Cache variables. ##
1803 ## ---------------- ##
1804 _ASBOX
1805 echo
1806 # The following way of writing the cache mishandles newlines in values,
1807 (
1808 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1809 eval ac_val=\$$ac_var
1810 case $ac_val in #(
1811 *${as_nl}*)
1812 case $ac_var in #(
1813 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1814 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1815 esac
1816 case $ac_var in #(
1817 _ | IFS | as_nl) ;; #(
1818 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1819 *) $as_unset $ac_var ;;
1820 esac ;;
1821 esac
1822 done
1823 (set) 2>&1 |
1824 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1825 *${as_nl}ac_space=\ *)
1826 sed -n \
1827 "s/'\''/'\''\\\\'\'''\''/g;
1828 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1829 ;; #(
1830 *)
1831 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1832 ;;
1833 esac |
1834 sort
1835 )
1836 echo
1837
1838 cat <<\_ASBOX
1839 ## ----------------- ##
1840 ## Output variables. ##
1841 ## ----------------- ##
1842 _ASBOX
1843 echo
1844 for ac_var in $ac_subst_vars
1845 do
1846 eval ac_val=\$$ac_var
1847 case $ac_val in
1848 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1849 esac
1850 $as_echo "$ac_var='\''$ac_val'\''"
1851 done | sort
1852 echo
1853
1854 if test -n "$ac_subst_files"; then
1855 cat <<\_ASBOX
1856 ## ------------------- ##
1857 ## File substitutions. ##
1858 ## ------------------- ##
1859 _ASBOX
1860 echo
1861 for ac_var in $ac_subst_files
1862 do
1863 eval ac_val=\$$ac_var
1864 case $ac_val in
1865 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1866 esac
1867 $as_echo "$ac_var='\''$ac_val'\''"
1868 done | sort
1869 echo
1870 fi
1871
1872 if test -s confdefs.h; then
1873 cat <<\_ASBOX
1874 ## ----------- ##
1875 ## confdefs.h. ##
1876 ## ----------- ##
1877 _ASBOX
1878 echo
1879 cat confdefs.h
1880 echo
1881 fi
1882 test "$ac_signal" != 0 &&
1883 $as_echo "$as_me: caught signal $ac_signal"
1884 $as_echo "$as_me: exit $exit_status"
1885 } >&5
1886 rm -f core *.core core.conftest.* &&
1887 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1888 exit $exit_status
1889 ' 0
1890 for ac_signal in 1 2 13 15; do
1891 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1892 done
1893 ac_signal=0
1894
1895 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1896 rm -f -r conftest* confdefs.h
1897
1898 # Predefined preprocessor variables.
1899
1900 cat >>confdefs.h <<_ACEOF
1901 #define PACKAGE_NAME "$PACKAGE_NAME"
1902 _ACEOF
1903
1904
1905 cat >>confdefs.h <<_ACEOF
1906 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1907 _ACEOF
1908
1909
1910 cat >>confdefs.h <<_ACEOF
1911 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1912 _ACEOF
1913
1914
1915 cat >>confdefs.h <<_ACEOF
1916 #define PACKAGE_STRING "$PACKAGE_STRING"
1917 _ACEOF
1918
1919
1920 cat >>confdefs.h <<_ACEOF
1921 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1922 _ACEOF
1923
1924
1925 # Let the site file select an alternate cache file if it wants to.
1926 # Prefer an explicitly selected file to automatically selected ones.
1927 ac_site_file1=NONE
1928 ac_site_file2=NONE
1929 if test -n "$CONFIG_SITE"; then
1930 ac_site_file1=$CONFIG_SITE
1931 elif test "x$prefix" != xNONE; then
1932 ac_site_file1=$prefix/share/config.site
1933 ac_site_file2=$prefix/etc/config.site
1934 else
1935 ac_site_file1=$ac_default_prefix/share/config.site
1936 ac_site_file2=$ac_default_prefix/etc/config.site
1937 fi
1938 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1939 do
1940 test "x$ac_site_file" = xNONE && continue
1941 if test -r "$ac_site_file"; then
1942 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1943 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1944 sed 's/^/| /' "$ac_site_file" >&5
1945 . "$ac_site_file"
1946 fi
1947 done
1948
1949 if test -r "$cache_file"; then
1950 # Some versions of bash will fail to source /dev/null (special
1951 # files actually), so we avoid doing that.
1952 if test -f "$cache_file"; then
1953 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1954 $as_echo "$as_me: loading cache $cache_file" >&6;}
1955 case $cache_file in
1956 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1957 *) . "./$cache_file";;
1958 esac
1959 fi
1960 else
1961 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1962 $as_echo "$as_me: creating cache $cache_file" >&6;}
1963 >$cache_file
1964 fi
1965
1966 # Check that the precious variables saved in the cache have kept the same
1967 # value.
1968 ac_cache_corrupted=false
1969 for ac_var in $ac_precious_vars; do
1970 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1971 eval ac_new_set=\$ac_env_${ac_var}_set
1972 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1973 eval ac_new_val=\$ac_env_${ac_var}_value
1974 case $ac_old_set,$ac_new_set in
1975 set,)
1976 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1977 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1978 ac_cache_corrupted=: ;;
1979 ,set)
1980 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1981 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1982 ac_cache_corrupted=: ;;
1983 ,);;
1984 *)
1985 if test "x$ac_old_val" != "x$ac_new_val"; then
1986 # differences in whitespace do not lead to failure.
1987 ac_old_val_w=`echo x $ac_old_val`
1988 ac_new_val_w=`echo x $ac_new_val`
1989 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1990 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1991 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1992 ac_cache_corrupted=:
1993 else
1994 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1995 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1996 eval $ac_var=\$ac_old_val
1997 fi
1998 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1999 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2000 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2001 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2002 fi;;
2003 esac
2004 # Pass precious variables to config.status.
2005 if test "$ac_new_set" = set; then
2006 case $ac_new_val in
2007 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2008 *) ac_arg=$ac_var=$ac_new_val ;;
2009 esac
2010 case " $ac_configure_args " in
2011 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2012 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2013 esac
2014 fi
2015 done
2016 if $ac_cache_corrupted; then
2017 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2019 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2020 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2021 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2022 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2023 { (exit 1); exit 1; }; }
2024 fi
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050 ac_ext=c
2051 ac_cpp='$CPP $CPPFLAGS'
2052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2055
2056
2057
2058
2059 am__api_version='1.10'
2060
2061 ac_aux_dir=
2062 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2063 if test -f "$ac_dir/install-sh"; then
2064 ac_aux_dir=$ac_dir
2065 ac_install_sh="$ac_aux_dir/install-sh -c"
2066 break
2067 elif test -f "$ac_dir/install.sh"; then
2068 ac_aux_dir=$ac_dir
2069 ac_install_sh="$ac_aux_dir/install.sh -c"
2070 break
2071 elif test -f "$ac_dir/shtool"; then
2072 ac_aux_dir=$ac_dir
2073 ac_install_sh="$ac_aux_dir/shtool install -c"
2074 break
2075 fi
2076 done
2077 if test -z "$ac_aux_dir"; then
2078 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2079 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2080 { (exit 1); exit 1; }; }
2081 fi
2082
2083 # These three variables are undocumented and unsupported,
2084 # and are intended to be withdrawn in a future Autoconf release.
2085 # They can cause serious problems if a builder's source tree is in a directory
2086 # whose full name contains unusual characters.
2087 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2088 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2089 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2090
2091
2092 # Find a good install program. We prefer a C program (faster),
2093 # so one script is as good as another. But avoid the broken or
2094 # incompatible versions:
2095 # SysV /etc/install, /usr/sbin/install
2096 # SunOS /usr/etc/install
2097 # IRIX /sbin/install
2098 # AIX /bin/install
2099 # AmigaOS /C/install, which installs bootblocks on floppy discs
2100 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2101 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2102 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2103 # OS/2's system install, which has a completely different semantic
2104 # ./install, which can be erroneously created by make from ./install.sh.
2105 # Reject install programs that cannot install multiple files.
2106 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2107 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2108 if test -z "$INSTALL"; then
2109 if test "${ac_cv_path_install+set}" = set; then
2110 $as_echo_n "(cached) " >&6
2111 else
2112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2113 for as_dir in $PATH
2114 do
2115 IFS=$as_save_IFS
2116 test -z "$as_dir" && as_dir=.
2117 # Account for people who put trailing slashes in PATH elements.
2118 case $as_dir/ in
2119 ./ | .// | /cC/* | \
2120 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2121 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2122 /usr/ucb/* ) ;;
2123 *)
2124 # OSF1 and SCO ODT 3.0 have their own names for install.
2125 # Don't use installbsd from OSF since it installs stuff as root
2126 # by default.
2127 for ac_prog in ginstall scoinst install; do
2128 for ac_exec_ext in '' $ac_executable_extensions; do
2129 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2130 if test $ac_prog = install &&
2131 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2132 # AIX install. It has an incompatible calling convention.
2133 :
2134 elif test $ac_prog = install &&
2135 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2136 # program-specific install script used by HP pwplus--don't use.
2137 :
2138 else
2139 rm -rf conftest.one conftest.two conftest.dir
2140 echo one > conftest.one
2141 echo two > conftest.two
2142 mkdir conftest.dir
2143 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2144 test -s conftest.one && test -s conftest.two &&
2145 test -s conftest.dir/conftest.one &&
2146 test -s conftest.dir/conftest.two
2147 then
2148 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2149 break 3
2150 fi
2151 fi
2152 fi
2153 done
2154 done
2155 ;;
2156 esac
2157
2158 done
2159 IFS=$as_save_IFS
2160
2161 rm -rf conftest.one conftest.two conftest.dir
2162
2163 fi
2164 if test "${ac_cv_path_install+set}" = set; then
2165 INSTALL=$ac_cv_path_install
2166 else
2167 # As a last resort, use the slow shell script. Don't cache a
2168 # value for INSTALL within a source directory, because that will
2169 # break other packages using the cache if that directory is
2170 # removed, or if the value is a relative name.
2171 INSTALL=$ac_install_sh
2172 fi
2173 fi
2174 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2175 $as_echo "$INSTALL" >&6; }
2176
2177 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2178 # It thinks the first close brace ends the variable substitution.
2179 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2180
2181 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2182
2183 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2184
2185 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2186 $as_echo_n "checking whether build environment is sane... " >&6; }
2187 # Just in case
2188 sleep 1
2189 echo timestamp > conftest.file
2190 # Do `set' in a subshell so we don't clobber the current shell's
2191 # arguments. Must try -L first in case configure is actually a
2192 # symlink; some systems play weird games with the mod time of symlinks
2193 # (eg FreeBSD returns the mod time of the symlink's containing
2194 # directory).
2195 if (
2196 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2197 if test "$*" = "X"; then
2198 # -L didn't work.
2199 set X `ls -t $srcdir/configure conftest.file`
2200 fi
2201 rm -f conftest.file
2202 if test "$*" != "X $srcdir/configure conftest.file" \
2203 && test "$*" != "X conftest.file $srcdir/configure"; then
2204
2205 # If neither matched, then we have a broken ls. This can happen
2206 # if, for instance, CONFIG_SHELL is bash and it inherits a
2207 # broken ls alias from the environment. This has actually
2208 # happened. Such a system could not be considered "sane".
2209 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2210 alias in your environment" >&5
2211 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2212 alias in your environment" >&2;}
2213 { (exit 1); exit 1; }; }
2214 fi
2215
2216 test "$2" = conftest.file
2217 )
2218 then
2219 # Ok.
2220 :
2221 else
2222 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2223 Check your system clock" >&5
2224 $as_echo "$as_me: error: newly created file is older than distributed files!
2225 Check your system clock" >&2;}
2226 { (exit 1); exit 1; }; }
2227 fi
2228 { $as_echo "$as_me:$LINENO: result: yes" >&5
2229 $as_echo "yes" >&6; }
2230 test "$program_prefix" != NONE &&
2231 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2232 # Use a double $ so make ignores it.
2233 test "$program_suffix" != NONE &&
2234 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2235 # Double any \ or $.
2236 # By default was `s,x,x', remove it if useless.
2237 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2238 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2239
2240 # expand $ac_aux_dir to an absolute path
2241 am_aux_dir=`cd $ac_aux_dir && pwd`
2242
2243 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2244 # Use eval to expand $SHELL
2245 if eval "$MISSING --run true"; then
2246 am_missing_run="$MISSING --run "
2247 else
2248 am_missing_run=
2249 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2250 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2251 fi
2252
2253 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2254 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2255 if test -z "$MKDIR_P"; then
2256 if test "${ac_cv_path_mkdir+set}" = set; then
2257 $as_echo_n "(cached) " >&6
2258 else
2259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2261 do
2262 IFS=$as_save_IFS
2263 test -z "$as_dir" && as_dir=.
2264 for ac_prog in mkdir gmkdir; do
2265 for ac_exec_ext in '' $ac_executable_extensions; do
2266 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2267 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2268 'mkdir (GNU coreutils) '* | \
2269 'mkdir (coreutils) '* | \
2270 'mkdir (fileutils) '4.1*)
2271 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2272 break 3;;
2273 esac
2274 done
2275 done
2276 done
2277 IFS=$as_save_IFS
2278
2279 fi
2280
2281 if test "${ac_cv_path_mkdir+set}" = set; then
2282 MKDIR_P="$ac_cv_path_mkdir -p"
2283 else
2284 # As a last resort, use the slow shell script. Don't cache a
2285 # value for MKDIR_P within a source directory, because that will
2286 # break other packages using the cache if that directory is
2287 # removed, or if the value is a relative name.
2288 test -d ./--version && rmdir ./--version
2289 MKDIR_P="$ac_install_sh -d"
2290 fi
2291 fi
2292 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2293 $as_echo "$MKDIR_P" >&6; }
2294
2295 mkdir_p="$MKDIR_P"
2296 case $mkdir_p in
2297 [\\/$]* | ?:[\\/]*) ;;
2298 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2299 esac
2300
2301 for ac_prog in gawk mawk nawk awk
2302 do
2303 # Extract the first word of "$ac_prog", so it can be a program name with args.
2304 set dummy $ac_prog; ac_word=$2
2305 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2306 $as_echo_n "checking for $ac_word... " >&6; }
2307 if test "${ac_cv_prog_AWK+set}" = set; then
2308 $as_echo_n "(cached) " >&6
2309 else
2310 if test -n "$AWK"; then
2311 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2312 else
2313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2314 for as_dir in $PATH
2315 do
2316 IFS=$as_save_IFS
2317 test -z "$as_dir" && as_dir=.
2318 for ac_exec_ext in '' $ac_executable_extensions; do
2319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2320 ac_cv_prog_AWK="$ac_prog"
2321 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2322 break 2
2323 fi
2324 done
2325 done
2326 IFS=$as_save_IFS
2327
2328 fi
2329 fi
2330 AWK=$ac_cv_prog_AWK
2331 if test -n "$AWK"; then
2332 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2333 $as_echo "$AWK" >&6; }
2334 else
2335 { $as_echo "$as_me:$LINENO: result: no" >&5
2336 $as_echo "no" >&6; }
2337 fi
2338
2339
2340 test -n "$AWK" && break
2341 done
2342
2343 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2344 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2345 set x ${MAKE-make}
2346 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2347 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2348 $as_echo_n "(cached) " >&6
2349 else
2350 cat >conftest.make <<\_ACEOF
2351 SHELL = /bin/sh
2352 all:
2353 @echo '@@@%%%=$(MAKE)=@@@%%%'
2354 _ACEOF
2355 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2356 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2357 *@@@%%%=?*=@@@%%%*)
2358 eval ac_cv_prog_make_${ac_make}_set=yes;;
2359 *)
2360 eval ac_cv_prog_make_${ac_make}_set=no;;
2361 esac
2362 rm -f conftest.make
2363 fi
2364 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2365 { $as_echo "$as_me:$LINENO: result: yes" >&5
2366 $as_echo "yes" >&6; }
2367 SET_MAKE=
2368 else
2369 { $as_echo "$as_me:$LINENO: result: no" >&5
2370 $as_echo "no" >&6; }
2371 SET_MAKE="MAKE=${MAKE-make}"
2372 fi
2373
2374 rm -rf .tst 2>/dev/null
2375 mkdir .tst 2>/dev/null
2376 if test -d .tst; then
2377 am__leading_dot=.
2378 else
2379 am__leading_dot=_
2380 fi
2381 rmdir .tst 2>/dev/null
2382
2383 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2384 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2385 # is not polluted with repeated "-I."
2386 am__isrc=' -I$(srcdir)'
2387 # test to see if srcdir already configured
2388 if test -f $srcdir/config.status; then
2389 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2390 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2391 { (exit 1); exit 1; }; }
2392 fi
2393 fi
2394
2395 # test whether we have cygpath
2396 if test -z "$CYGPATH_W"; then
2397 if (cygpath --version) >/dev/null 2>/dev/null; then
2398 CYGPATH_W='cygpath -w'
2399 else
2400 CYGPATH_W=echo
2401 fi
2402 fi
2403
2404
2405 # Define the identity of the package.
2406 PACKAGE='fluidsynth-dssi'
2407 VERSION='1.0.0'
2408
2409
2410 cat >>confdefs.h <<_ACEOF
2411 #define PACKAGE "$PACKAGE"
2412 _ACEOF
2413
2414
2415 cat >>confdefs.h <<_ACEOF
2416 #define VERSION "$VERSION"
2417 _ACEOF
2418
2419 # Some tools Automake needs.
2420
2421 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2422
2423
2424 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2425
2426
2427 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2428
2429
2430 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2431
2432
2433 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2434
2435 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2436
2437 # Installed binaries are usually stripped using `strip' when the user
2438 # run `make install-strip'. However `strip' might not be the right
2439 # tool to use in cross-compilation environments, therefore Automake
2440 # will honor the `STRIP' environment variable to overrule this program.
2441 if test "$cross_compiling" != no; then
2442 if test -n "$ac_tool_prefix"; then
2443 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2444 set dummy ${ac_tool_prefix}strip; ac_word=$2
2445 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2446 $as_echo_n "checking for $ac_word... " >&6; }
2447 if test "${ac_cv_prog_STRIP+set}" = set; then
2448 $as_echo_n "(cached) " >&6
2449 else
2450 if test -n "$STRIP"; then
2451 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2452 else
2453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454 for as_dir in $PATH
2455 do
2456 IFS=$as_save_IFS
2457 test -z "$as_dir" && as_dir=.
2458 for ac_exec_ext in '' $ac_executable_extensions; do
2459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2460 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2461 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2462 break 2
2463 fi
2464 done
2465 done
2466 IFS=$as_save_IFS
2467
2468 fi
2469 fi
2470 STRIP=$ac_cv_prog_STRIP
2471 if test -n "$STRIP"; then
2472 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2473 $as_echo "$STRIP" >&6; }
2474 else
2475 { $as_echo "$as_me:$LINENO: result: no" >&5
2476 $as_echo "no" >&6; }
2477 fi
2478
2479
2480 fi
2481 if test -z "$ac_cv_prog_STRIP"; then
2482 ac_ct_STRIP=$STRIP
2483 # Extract the first word of "strip", so it can be a program name with args.
2484 set dummy strip; ac_word=$2
2485 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2486 $as_echo_n "checking for $ac_word... " >&6; }
2487 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2488 $as_echo_n "(cached) " >&6
2489 else
2490 if test -n "$ac_ct_STRIP"; then
2491 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2492 else
2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 for as_dir in $PATH
2495 do
2496 IFS=$as_save_IFS
2497 test -z "$as_dir" && as_dir=.
2498 for ac_exec_ext in '' $ac_executable_extensions; do
2499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2500 ac_cv_prog_ac_ct_STRIP="strip"
2501 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502 break 2
2503 fi
2504 done
2505 done
2506 IFS=$as_save_IFS
2507
2508 fi
2509 fi
2510 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2511 if test -n "$ac_ct_STRIP"; then
2512 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2513 $as_echo "$ac_ct_STRIP" >&6; }
2514 else
2515 { $as_echo "$as_me:$LINENO: result: no" >&5
2516 $as_echo "no" >&6; }
2517 fi
2518
2519 if test "x$ac_ct_STRIP" = x; then
2520 STRIP=":"
2521 else
2522 case $cross_compiling:$ac_tool_warned in
2523 yes:)
2524 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2526 ac_tool_warned=yes ;;
2527 esac
2528 STRIP=$ac_ct_STRIP
2529 fi
2530 else
2531 STRIP="$ac_cv_prog_STRIP"
2532 fi
2533
2534 fi
2535 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2536
2537 # We need awk for the "check" target. The system "awk" is bad on
2538 # some platforms.
2539 # Always define AMTAR for backward compatibility.
2540
2541 AMTAR=${AMTAR-"${am_missing_run}tar"}
2542
2543 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2544
2545
2546
2547
2548
2549 ac_config_headers="$ac_config_headers config.h"
2550
2551
2552 ac_ext=c
2553 ac_cpp='$CPP $CPPFLAGS'
2554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2557 if test -n "$ac_tool_prefix"; then
2558 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2559 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2560 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2561 $as_echo_n "checking for $ac_word... " >&6; }
2562 if test "${ac_cv_prog_CC+set}" = set; then
2563 $as_echo_n "(cached) " >&6
2564 else
2565 if test -n "$CC"; then
2566 ac_cv_prog_CC="$CC" # Let the user override the test.
2567 else
2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569 for as_dir in $PATH
2570 do
2571 IFS=$as_save_IFS
2572 test -z "$as_dir" && as_dir=.
2573 for ac_exec_ext in '' $ac_executable_extensions; do
2574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2575 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2576 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2577 break 2
2578 fi
2579 done
2580 done
2581 IFS=$as_save_IFS
2582
2583 fi
2584 fi
2585 CC=$ac_cv_prog_CC
2586 if test -n "$CC"; then
2587 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2588 $as_echo "$CC" >&6; }
2589 else
2590 { $as_echo "$as_me:$LINENO: result: no" >&5
2591 $as_echo "no" >&6; }
2592 fi
2593
2594
2595 fi
2596 if test -z "$ac_cv_prog_CC"; then
2597 ac_ct_CC=$CC
2598 # Extract the first word of "gcc", so it can be a program name with args.
2599 set dummy gcc; ac_word=$2
2600 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2601 $as_echo_n "checking for $ac_word... " >&6; }
2602 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2603 $as_echo_n "(cached) " >&6
2604 else
2605 if test -n "$ac_ct_CC"; then
2606 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2607 else
2608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609 for as_dir in $PATH
2610 do
2611 IFS=$as_save_IFS
2612 test -z "$as_dir" && as_dir=.
2613 for ac_exec_ext in '' $ac_executable_extensions; do
2614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2615 ac_cv_prog_ac_ct_CC="gcc"
2616 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2617 break 2
2618 fi
2619 done
2620 done
2621 IFS=$as_save_IFS
2622
2623 fi
2624 fi
2625 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2626 if test -n "$ac_ct_CC"; then
2627 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2628 $as_echo "$ac_ct_CC" >&6; }
2629 else
2630 { $as_echo "$as_me:$LINENO: result: no" >&5
2631 $as_echo "no" >&6; }
2632 fi
2633
2634 if test "x$ac_ct_CC" = x; then
2635 CC=""
2636 else
2637 case $cross_compiling:$ac_tool_warned in
2638 yes:)
2639 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2641 ac_tool_warned=yes ;;
2642 esac
2643 CC=$ac_ct_CC
2644 fi
2645 else
2646 CC="$ac_cv_prog_CC"
2647 fi
2648
2649 if test -z "$CC"; then
2650 if test -n "$ac_tool_prefix"; then
2651 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2652 set dummy ${ac_tool_prefix}cc; ac_word=$2
2653 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2654 $as_echo_n "checking for $ac_word... " >&6; }
2655 if test "${ac_cv_prog_CC+set}" = set; then
2656 $as_echo_n "(cached) " >&6
2657 else
2658 if test -n "$CC"; then
2659 ac_cv_prog_CC="$CC" # Let the user override the test.
2660 else
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 for as_dir in $PATH
2663 do
2664 IFS=$as_save_IFS
2665 test -z "$as_dir" && as_dir=.
2666 for ac_exec_ext in '' $ac_executable_extensions; do
2667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2668 ac_cv_prog_CC="${ac_tool_prefix}cc"
2669 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2670 break 2
2671 fi
2672 done
2673 done
2674 IFS=$as_save_IFS
2675
2676 fi
2677 fi
2678 CC=$ac_cv_prog_CC
2679 if test -n "$CC"; then
2680 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2681 $as_echo "$CC" >&6; }
2682 else
2683 { $as_echo "$as_me:$LINENO: result: no" >&5
2684 $as_echo "no" >&6; }
2685 fi
2686
2687
2688 fi
2689 fi
2690 if test -z "$CC"; then
2691 # Extract the first word of "cc", so it can be a program name with args.
2692 set dummy cc; ac_word=$2
2693 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2694 $as_echo_n "checking for $ac_word... " >&6; }
2695 if test "${ac_cv_prog_CC+set}" = set; then
2696 $as_echo_n "(cached) " >&6
2697 else
2698 if test -n "$CC"; then
2699 ac_cv_prog_CC="$CC" # Let the user override the test.
2700 else
2701 ac_prog_rejected=no
2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703 for as_dir in $PATH
2704 do
2705 IFS=$as_save_IFS
2706 test -z "$as_dir" && as_dir=.
2707 for ac_exec_ext in '' $ac_executable_extensions; do
2708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2709 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2710 ac_prog_rejected=yes
2711 continue
2712 fi
2713 ac_cv_prog_CC="cc"
2714 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2715 break 2
2716 fi
2717 done
2718 done
2719 IFS=$as_save_IFS
2720
2721 if test $ac_prog_rejected = yes; then
2722 # We found a bogon in the path, so make sure we never use it.
2723 set dummy $ac_cv_prog_CC
2724 shift
2725 if test $# != 0; then
2726 # We chose a different compiler from the bogus one.
2727 # However, it has the same basename, so the bogon will be chosen
2728 # first if we set CC to just the basename; use the full file name.
2729 shift
2730 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2731 fi
2732 fi
2733 fi
2734 fi
2735 CC=$ac_cv_prog_CC
2736 if test -n "$CC"; then
2737 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2738 $as_echo "$CC" >&6; }
2739 else
2740 { $as_echo "$as_me:$LINENO: result: no" >&5
2741 $as_echo "no" >&6; }
2742 fi
2743
2744
2745 fi
2746 if test -z "$CC"; then
2747 if test -n "$ac_tool_prefix"; then
2748 for ac_prog in cl.exe
2749 do
2750 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2751 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2752 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2753 $as_echo_n "checking for $ac_word... " >&6; }
2754 if test "${ac_cv_prog_CC+set}" = set; then
2755 $as_echo_n "(cached) " >&6
2756 else
2757 if test -n "$CC"; then
2758 ac_cv_prog_CC="$CC" # Let the user override the test.
2759 else
2760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761 for as_dir in $PATH
2762 do
2763 IFS=$as_save_IFS
2764 test -z "$as_dir" && as_dir=.
2765 for ac_exec_ext in '' $ac_executable_extensions; do
2766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2767 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2768 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2769 break 2
2770 fi
2771 done
2772 done
2773 IFS=$as_save_IFS
2774
2775 fi
2776 fi
2777 CC=$ac_cv_prog_CC
2778 if test -n "$CC"; then
2779 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2780 $as_echo "$CC" >&6; }
2781 else
2782 { $as_echo "$as_me:$LINENO: result: no" >&5
2783 $as_echo "no" >&6; }
2784 fi
2785
2786
2787 test -n "$CC" && break
2788 done
2789 fi
2790 if test -z "$CC"; then
2791 ac_ct_CC=$CC
2792 for ac_prog in cl.exe
2793 do
2794 # Extract the first word of "$ac_prog", so it can be a program name with args.
2795 set dummy $ac_prog; ac_word=$2
2796 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2797 $as_echo_n "checking for $ac_word... " >&6; }
2798 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2799 $as_echo_n "(cached) " >&6
2800 else
2801 if test -n "$ac_ct_CC"; then
2802 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2803 else
2804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805 for as_dir in $PATH
2806 do
2807 IFS=$as_save_IFS
2808 test -z "$as_dir" && as_dir=.
2809 for ac_exec_ext in '' $ac_executable_extensions; do
2810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2811 ac_cv_prog_ac_ct_CC="$ac_prog"
2812 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2813 break 2
2814 fi
2815 done
2816 done
2817 IFS=$as_save_IFS
2818
2819 fi
2820 fi
2821 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2822 if test -n "$ac_ct_CC"; then
2823 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2824 $as_echo "$ac_ct_CC" >&6; }
2825 else
2826 { $as_echo "$as_me:$LINENO: result: no" >&5
2827 $as_echo "no" >&6; }
2828 fi
2829
2830
2831 test -n "$ac_ct_CC" && break
2832 done
2833
2834 if test "x$ac_ct_CC" = x; then
2835 CC=""
2836 else
2837 case $cross_compiling:$ac_tool_warned in
2838 yes:)
2839 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2841 ac_tool_warned=yes ;;
2842 esac
2843 CC=$ac_ct_CC
2844 fi
2845 fi
2846
2847 fi
2848
2849
2850 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2851 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2852 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2853 See \`config.log' for more details." >&5
2854 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2855 See \`config.log' for more details." >&2;}
2856 { (exit 1); exit 1; }; }; }
2857
2858 # Provide some information about the compiler.
2859 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2860 set X $ac_compile
2861 ac_compiler=$2
2862 { (ac_try="$ac_compiler --version >&5"
2863 case "(($ac_try" in
2864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2865 *) ac_try_echo=$ac_try;;
2866 esac
2867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2868 $as_echo "$ac_try_echo") >&5
2869 (eval "$ac_compiler --version >&5") 2>&5
2870 ac_status=$?
2871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); }
2873 { (ac_try="$ac_compiler -v >&5"
2874 case "(($ac_try" in
2875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876 *) ac_try_echo=$ac_try;;
2877 esac
2878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2879 $as_echo "$ac_try_echo") >&5
2880 (eval "$ac_compiler -v >&5") 2>&5
2881 ac_status=$?
2882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); }
2884 { (ac_try="$ac_compiler -V >&5"
2885 case "(($ac_try" in
2886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887 *) ac_try_echo=$ac_try;;
2888 esac
2889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2890 $as_echo "$ac_try_echo") >&5
2891 (eval "$ac_compiler -V >&5") 2>&5
2892 ac_status=$?
2893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); }
2895
2896 cat >conftest.$ac_ext <<_ACEOF
2897 /* confdefs.h. */
2898 _ACEOF
2899 cat confdefs.h >>conftest.$ac_ext
2900 cat >>conftest.$ac_ext <<_ACEOF
2901 /* end confdefs.h. */
2902
2903 int
2904 main ()
2905 {
2906
2907 ;
2908 return 0;
2909 }
2910 _ACEOF
2911 ac_clean_files_save=$ac_clean_files
2912 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2913 # Try to create an executable without -o first, disregard a.out.
2914 # It will help us diagnose broken compilers, and finding out an intuition
2915 # of exeext.
2916 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2917 $as_echo_n "checking for C compiler default output file name... " >&6; }
2918 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2919
2920 # The possible output files:
2921 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2922
2923 ac_rmfiles=
2924 for ac_file in $ac_files
2925 do
2926 case $ac_file in
2927 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2928 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2929 esac
2930 done
2931 rm -f $ac_rmfiles
2932
2933 if { (ac_try="$ac_link_default"
2934 case "(($ac_try" in
2935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936 *) ac_try_echo=$ac_try;;
2937 esac
2938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2939 $as_echo "$ac_try_echo") >&5
2940 (eval "$ac_link_default") 2>&5
2941 ac_status=$?
2942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); }; then
2944 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2945 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2946 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2947 # so that the user can short-circuit this test for compilers unknown to
2948 # Autoconf.
2949 for ac_file in $ac_files ''
2950 do
2951 test -f "$ac_file" || continue
2952 case $ac_file in
2953 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2954 ;;
2955 [ab].out )
2956 # We found the default executable, but exeext='' is most
2957 # certainly right.
2958 break;;
2959 *.* )
2960 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2961 then :; else
2962 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2963 fi
2964 # We set ac_cv_exeext here because the later test for it is not
2965 # safe: cross compilers may not add the suffix if given an `-o'
2966 # argument, so we may need to know it at that point already.
2967 # Even if this section looks crufty: it has the advantage of
2968 # actually working.
2969 break;;
2970 * )
2971 break;;
2972 esac
2973 done
2974 test "$ac_cv_exeext" = no && ac_cv_exeext=
2975
2976 else
2977 ac_file=''
2978 fi
2979
2980 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2981 $as_echo "$ac_file" >&6; }
2982 if test -z "$ac_file"; then
2983 $as_echo "$as_me: failed program was:" >&5
2984 sed 's/^/| /' conftest.$ac_ext >&5
2985
2986 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2988 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2989 See \`config.log' for more details." >&5
2990 $as_echo "$as_me: error: C compiler cannot create executables
2991 See \`config.log' for more details." >&2;}
2992 { (exit 77); exit 77; }; }; }
2993 fi
2994
2995 ac_exeext=$ac_cv_exeext
2996
2997 # Check that the compiler produces executables we can run. If not, either
2998 # the compiler is broken, or we cross compile.
2999 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3000 $as_echo_n "checking whether the C compiler works... " >&6; }
3001 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3002 # If not cross compiling, check that we can run a simple program.
3003 if test "$cross_compiling" != yes; then
3004 if { ac_try='./$ac_file'
3005 { (case "(($ac_try" in
3006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3007 *) ac_try_echo=$ac_try;;
3008 esac
3009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3010 $as_echo "$ac_try_echo") >&5
3011 (eval "$ac_try") 2>&5
3012 ac_status=$?
3013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); }; }; then
3015 cross_compiling=no
3016 else
3017 if test "$cross_compiling" = maybe; then
3018 cross_compiling=yes
3019 else
3020 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3022 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3023 If you meant to cross compile, use \`--host'.
3024 See \`config.log' for more details." >&5
3025 $as_echo "$as_me: error: cannot run C compiled programs.
3026 If you meant to cross compile, use \`--host'.
3027 See \`config.log' for more details." >&2;}
3028 { (exit 1); exit 1; }; }; }
3029 fi
3030 fi
3031 fi
3032 { $as_echo "$as_me:$LINENO: result: yes" >&5
3033 $as_echo "yes" >&6; }
3034
3035 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3036 ac_clean_files=$ac_clean_files_save
3037 # Check that the compiler produces executables we can run. If not, either
3038 # the compiler is broken, or we cross compile.
3039 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3040 $as_echo_n "checking whether we are cross compiling... " >&6; }
3041 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3042 $as_echo "$cross_compiling" >&6; }
3043
3044 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3045 $as_echo_n "checking for suffix of executables... " >&6; }
3046 if { (ac_try="$ac_link"
3047 case "(($ac_try" in
3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049 *) ac_try_echo=$ac_try;;
3050 esac
3051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3052 $as_echo "$ac_try_echo") >&5
3053 (eval "$ac_link") 2>&5
3054 ac_status=$?
3055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }; then
3057 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3058 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3059 # work properly (i.e., refer to `conftest.exe'), while it won't with
3060 # `rm'.
3061 for ac_file in conftest.exe conftest conftest.*; do
3062 test -f "$ac_file" || continue
3063 case $ac_file in
3064 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3065 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3066 break;;
3067 * ) break;;
3068 esac
3069 done
3070 else
3071 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3073 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3074 See \`config.log' for more details." >&5
3075 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3076 See \`config.log' for more details." >&2;}
3077 { (exit 1); exit 1; }; }; }
3078 fi
3079
3080 rm -f conftest$ac_cv_exeext
3081 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3082 $as_echo "$ac_cv_exeext" >&6; }
3083
3084 rm -f conftest.$ac_ext
3085 EXEEXT=$ac_cv_exeext
3086 ac_exeext=$EXEEXT
3087 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3088 $as_echo_n "checking for suffix of object files... " >&6; }
3089 if test "${ac_cv_objext+set}" = set; then
3090 $as_echo_n "(cached) " >&6
3091 else
3092 cat >conftest.$ac_ext <<_ACEOF
3093 /* confdefs.h. */
3094 _ACEOF
3095 cat confdefs.h >>conftest.$ac_ext
3096 cat >>conftest.$ac_ext <<_ACEOF
3097 /* end confdefs.h. */
3098
3099 int
3100 main ()
3101 {
3102
3103 ;
3104 return 0;
3105 }
3106 _ACEOF
3107 rm -f conftest.o conftest.obj
3108 if { (ac_try="$ac_compile"
3109 case "(($ac_try" in
3110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111 *) ac_try_echo=$ac_try;;
3112 esac
3113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3114 $as_echo "$ac_try_echo") >&5
3115 (eval "$ac_compile") 2>&5
3116 ac_status=$?
3117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); }; then
3119 for ac_file in conftest.o conftest.obj conftest.*; do
3120 test -f "$ac_file" || continue;
3121 case $ac_file in
3122 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3123 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3124 break;;
3125 esac
3126 done
3127 else
3128 $as_echo "$as_me: failed program was:" >&5
3129 sed 's/^/| /' conftest.$ac_ext >&5
3130
3131 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3133 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3134 See \`config.log' for more details." >&5
3135 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3136 See \`config.log' for more details." >&2;}
3137 { (exit 1); exit 1; }; }; }
3138 fi
3139
3140 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3141 fi
3142 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3143 $as_echo "$ac_cv_objext" >&6; }
3144 OBJEXT=$ac_cv_objext
3145 ac_objext=$OBJEXT
3146 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3147 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3148 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3149 $as_echo_n "(cached) " >&6
3150 else
3151 cat >conftest.$ac_ext <<_ACEOF
3152 /* confdefs.h. */
3153 _ACEOF
3154 cat confdefs.h >>conftest.$ac_ext
3155 cat >>conftest.$ac_ext <<_ACEOF
3156 /* end confdefs.h. */
3157
3158 int
3159 main ()
3160 {
3161 #ifndef __GNUC__
3162 choke me
3163 #endif
3164
3165 ;
3166 return 0;
3167 }
3168 _ACEOF
3169 rm -f conftest.$ac_objext
3170 if { (ac_try="$ac_compile"
3171 case "(($ac_try" in
3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3174 esac
3175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3176 $as_echo "$ac_try_echo") >&5
3177 (eval "$ac_compile") 2>conftest.er1
3178 ac_status=$?
3179 grep -v '^ *+' conftest.er1 >conftest.err
3180 rm -f conftest.er1
3181 cat conftest.err >&5
3182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); } && {
3184 test -z "$ac_c_werror_flag" ||
3185 test ! -s conftest.err
3186 } && test -s conftest.$ac_objext; then
3187 ac_compiler_gnu=yes
3188 else
3189 $as_echo "$as_me: failed program was:" >&5
3190 sed 's/^/| /' conftest.$ac_ext >&5
3191
3192 ac_compiler_gnu=no
3193 fi
3194
3195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3196 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3197
3198 fi
3199 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3200 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3201 if test $ac_compiler_gnu = yes; then
3202 GCC=yes
3203 else
3204 GCC=
3205 fi
3206 ac_test_CFLAGS=${CFLAGS+set}
3207 ac_save_CFLAGS=$CFLAGS
3208 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3209 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3210 if test "${ac_cv_prog_cc_g+set}" = set; then
3211 $as_echo_n "(cached) " >&6
3212 else
3213 ac_save_c_werror_flag=$ac_c_werror_flag
3214 ac_c_werror_flag=yes
3215 ac_cv_prog_cc_g=no
3216 CFLAGS="-g"
3217 cat >conftest.$ac_ext <<_ACEOF
3218 /* confdefs.h. */
3219 _ACEOF
3220 cat confdefs.h >>conftest.$ac_ext
3221 cat >>conftest.$ac_ext <<_ACEOF
3222 /* end confdefs.h. */
3223
3224 int
3225 main ()
3226 {
3227
3228 ;
3229 return 0;
3230 }
3231 _ACEOF
3232 rm -f conftest.$ac_objext
3233 if { (ac_try="$ac_compile"
3234 case "(($ac_try" in
3235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236 *) ac_try_echo=$ac_try;;
3237 esac
3238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3239 $as_echo "$ac_try_echo") >&5
3240 (eval "$ac_compile") 2>conftest.er1
3241 ac_status=$?
3242 grep -v '^ *+' conftest.er1 >conftest.err
3243 rm -f conftest.er1
3244 cat conftest.err >&5
3245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); } && {
3247 test -z "$ac_c_werror_flag" ||
3248 test ! -s conftest.err
3249 } && test -s conftest.$ac_objext; then
3250 ac_cv_prog_cc_g=yes
3251 else
3252 $as_echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3254
3255 CFLAGS=""
3256 cat >conftest.$ac_ext <<_ACEOF
3257 /* confdefs.h. */
3258 _ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h. */
3262
3263 int
3264 main ()
3265 {
3266
3267 ;
3268 return 0;
3269 }
3270 _ACEOF
3271 rm -f conftest.$ac_objext
3272 if { (ac_try="$ac_compile"
3273 case "(($ac_try" in
3274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275 *) ac_try_echo=$ac_try;;
3276 esac
3277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3278 $as_echo "$ac_try_echo") >&5
3279 (eval "$ac_compile") 2>conftest.er1
3280 ac_status=$?
3281 grep -v '^ *+' conftest.er1 >conftest.err
3282 rm -f conftest.er1
3283 cat conftest.err >&5
3284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); } && {
3286 test -z "$ac_c_werror_flag" ||
3287 test ! -s conftest.err
3288 } && test -s conftest.$ac_objext; then
3289 :
3290 else
3291 $as_echo "$as_me: failed program was:" >&5
3292 sed 's/^/| /' conftest.$ac_ext >&5
3293
3294 ac_c_werror_flag=$ac_save_c_werror_flag
3295 CFLAGS="-g"
3296 cat >conftest.$ac_ext <<_ACEOF
3297 /* confdefs.h. */
3298 _ACEOF
3299 cat confdefs.h >>conftest.$ac_ext
3300 cat >>conftest.$ac_ext <<_ACEOF
3301 /* end confdefs.h. */
3302
3303 int
3304 main ()
3305 {
3306
3307 ;
3308 return 0;
3309 }
3310 _ACEOF
3311 rm -f conftest.$ac_objext
3312 if { (ac_try="$ac_compile"
3313 case "(($ac_try" in
3314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315 *) ac_try_echo=$ac_try;;
3316 esac
3317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3318 $as_echo "$ac_try_echo") >&5
3319 (eval "$ac_compile") 2>conftest.er1
3320 ac_status=$?
3321 grep -v '^ *+' conftest.er1 >conftest.err
3322 rm -f conftest.er1
3323 cat conftest.err >&5
3324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); } && {
3326 test -z "$ac_c_werror_flag" ||
3327 test ! -s conftest.err
3328 } && test -s conftest.$ac_objext; then
3329 ac_cv_prog_cc_g=yes
3330 else
3331 $as_echo "$as_me: failed program was:" >&5
3332 sed 's/^/| /' conftest.$ac_ext >&5
3333
3334
3335 fi
3336
3337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3338 fi
3339
3340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3341 fi
3342
3343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3344 ac_c_werror_flag=$ac_save_c_werror_flag
3345 fi
3346 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3347 $as_echo "$ac_cv_prog_cc_g" >&6; }
3348 if test "$ac_test_CFLAGS" = set; then
3349 CFLAGS=$ac_save_CFLAGS
3350 elif test $ac_cv_prog_cc_g = yes; then
3351 if test "$GCC" = yes; then
3352 CFLAGS="-g -O2"
3353 else
3354 CFLAGS="-g"
3355 fi
3356 else
3357 if test "$GCC" = yes; then
3358 CFLAGS="-O2"
3359 else
3360 CFLAGS=
3361 fi
3362 fi
3363 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3364 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3365 if test "${ac_cv_prog_cc_c89+set}" = set; then
3366 $as_echo_n "(cached) " >&6
3367 else
3368 ac_cv_prog_cc_c89=no
3369 ac_save_CC=$CC
3370 cat >conftest.$ac_ext <<_ACEOF
3371 /* confdefs.h. */
3372 _ACEOF
3373 cat confdefs.h >>conftest.$ac_ext
3374 cat >>conftest.$ac_ext <<_ACEOF
3375 /* end confdefs.h. */
3376 #include <stdarg.h>
3377 #include <stdio.h>
3378 #include <sys/types.h>
3379 #include <sys/stat.h>
3380 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3381 struct buf { int x; };
3382 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3383 static char *e (p, i)
3384 char **p;
3385 int i;
3386 {
3387 return p[i];
3388 }
3389 static char *f (char * (*g) (char **, int), char **p, ...)
3390 {
3391 char *s;
3392 va_list v;
3393 va_start (v,p);
3394 s = g (p, va_arg (v,int));
3395 va_end (v);
3396 return s;
3397 }
3398
3399 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3400 function prototypes and stuff, but not '\xHH' hex character constants.
3401 These don't provoke an error unfortunately, instead are silently treated
3402 as 'x'. The following induces an error, until -std is added to get
3403 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3404 array size at least. It's necessary to write '\x00'==0 to get something
3405 that's true only with -std. */
3406 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3407
3408 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3409 inside strings and character constants. */
3410 #define FOO(x) 'x'
3411 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3412
3413 int test (int i, double x);
3414 struct s1 {int (*f) (int a);};
3415 struct s2 {int (*f) (double a);};
3416 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3417 int argc;
3418 char **argv;
3419 int
3420 main ()
3421 {
3422 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3423 ;
3424 return 0;
3425 }
3426 _ACEOF
3427 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3428 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3429 do
3430 CC="$ac_save_CC $ac_arg"
3431 rm -f conftest.$ac_objext
3432 if { (ac_try="$ac_compile"
3433 case "(($ac_try" in
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3436 esac
3437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3438 $as_echo "$ac_try_echo") >&5
3439 (eval "$ac_compile") 2>conftest.er1
3440 ac_status=$?
3441 grep -v '^ *+' conftest.er1 >conftest.err
3442 rm -f conftest.er1
3443 cat conftest.err >&5
3444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); } && {
3446 test -z "$ac_c_werror_flag" ||
3447 test ! -s conftest.err
3448 } && test -s conftest.$ac_objext; then
3449 ac_cv_prog_cc_c89=$ac_arg
3450 else
3451 $as_echo "$as_me: failed program was:" >&5
3452 sed 's/^/| /' conftest.$ac_ext >&5
3453
3454
3455 fi
3456
3457 rm -f core conftest.err conftest.$ac_objext
3458 test "x$ac_cv_prog_cc_c89" != "xno" && break
3459 done
3460 rm -f conftest.$ac_ext
3461 CC=$ac_save_CC
3462
3463 fi
3464 # AC_CACHE_VAL
3465 case "x$ac_cv_prog_cc_c89" in
3466 x)
3467 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3468 $as_echo "none needed" >&6; } ;;
3469 xno)
3470 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3471 $as_echo "unsupported" >&6; } ;;
3472 *)
3473 CC="$CC $ac_cv_prog_cc_c89"
3474 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3475 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3476 esac
3477
3478
3479 ac_ext=c
3480 ac_cpp='$CPP $CPPFLAGS'
3481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3484 DEPDIR="${am__leading_dot}deps"
3485
3486 ac_config_commands="$ac_config_commands depfiles"
3487
3488
3489 am_make=${MAKE-make}
3490 cat > confinc << 'END'
3491 am__doit:
3492 @echo done
3493 .PHONY: am__doit
3494 END
3495 # If we don't find an include directive, just comment out the code.
3496 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3497 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3498 am__include="#"
3499 am__quote=
3500 _am_result=none
3501 # First try GNU make style include.
3502 echo "include confinc" > confmf
3503 # We grep out `Entering directory' and `Leaving directory'
3504 # messages which can occur if `w' ends up in MAKEFLAGS.
3505 # In particular we don't look at `^make:' because GNU make might
3506 # be invoked under some other name (usually "gmake"), in which
3507 # case it prints its new name instead of `make'.
3508 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3509 am__include=include
3510 am__quote=
3511 _am_result=GNU
3512 fi
3513 # Now try BSD make style include.
3514 if test "$am__include" = "#"; then
3515 echo '.include "confinc"' > confmf
3516 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3517 am__include=.include
3518 am__quote="\""
3519 _am_result=BSD
3520 fi
3521 fi
3522
3523
3524 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3525 $as_echo "$_am_result" >&6; }
3526 rm -f confinc confmf
3527
3528 # Check whether --enable-dependency-tracking was given.
3529 if test "${enable_dependency_tracking+set}" = set; then
3530 enableval=$enable_dependency_tracking;
3531 fi
3532
3533 if test "x$enable_dependency_tracking" != xno; then
3534 am_depcomp="$ac_aux_dir/depcomp"
3535 AMDEPBACKSLASH='\'
3536 fi
3537 if test "x$enable_dependency_tracking" != xno; then
3538 AMDEP_TRUE=
3539 AMDEP_FALSE='#'
3540 else
3541 AMDEP_TRUE='#'
3542 AMDEP_FALSE=
3543 fi
3544
3545
3546
3547 depcc="$CC" am_compiler_list=
3548
3549 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3550 $as_echo_n "checking dependency style of $depcc... " >&6; }
3551 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3552 $as_echo_n "(cached) " >&6
3553 else
3554 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3555 # We make a subdir and do the tests there. Otherwise we can end up
3556 # making bogus files that we don't know about and never remove. For
3557 # instance it was reported that on HP-UX the gcc test will end up
3558 # making a dummy file named `D' -- because `-MD' means `put the output
3559 # in D'.
3560 mkdir conftest.dir
3561 # Copy depcomp to subdir because otherwise we won't find it if we're
3562 # using a relative directory.
3563 cp "$am_depcomp" conftest.dir
3564 cd conftest.dir
3565 # We will build objects and dependencies in a subdirectory because
3566 # it helps to detect inapplicable dependency modes. For instance
3567 # both Tru64's cc and ICC support -MD to output dependencies as a
3568 # side effect of compilation, but ICC will put the dependencies in
3569 # the current directory while Tru64 will put them in the object
3570 # directory.
3571 mkdir sub
3572
3573 am_cv_CC_dependencies_compiler_type=none
3574 if test "$am_compiler_list" = ""; then
3575 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3576 fi
3577 for depmode in $am_compiler_list; do
3578 # Setup a source with many dependencies, because some compilers
3579 # like to wrap large dependency lists on column 80 (with \), and
3580 # we should not choose a depcomp mode which is confused by this.
3581 #
3582 # We need to recreate these files for each test, as the compiler may
3583 # overwrite some of them when testing with obscure command lines.
3584 # This happens at least with the AIX C compiler.
3585 : > sub/conftest.c
3586 for i in 1 2 3 4 5 6; do
3587 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3588 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3589 # Solaris 8's {/usr,}/bin/sh.
3590 touch sub/conftst$i.h
3591 done
3592 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3593
3594 case $depmode in
3595 nosideeffect)
3596 # after this tag, mechanisms are not by side-effect, so they'll
3597 # only be used when explicitly requested
3598 if test "x$enable_dependency_tracking" = xyes; then
3599 continue
3600 else
3601 break
3602 fi
3603 ;;
3604 none) break ;;
3605 esac
3606 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3607 # mode. It turns out that the SunPro C++ compiler does not properly
3608 # handle `-M -o', and we need to detect this.
3609 if depmode=$depmode \
3610 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3611 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3612 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3613 >/dev/null 2>conftest.err &&
3614 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3615 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3616 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3617 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3618 # icc doesn't choke on unknown options, it will just issue warnings
3619 # or remarks (even with -Werror). So we grep stderr for any message
3620 # that says an option was ignored or not supported.
3621 # When given -MP, icc 7.0 and 7.1 complain thusly:
3622 # icc: Command line warning: ignoring option '-M'; no argument required
3623 # The diagnosis changed in icc 8.0:
3624 # icc: Command line remark: option '-MP' not supported
3625 if (grep 'ignoring option' conftest.err ||
3626 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3627 am_cv_CC_dependencies_compiler_type=$depmode
3628 break
3629 fi
3630 fi
3631 done
3632
3633 cd ..
3634 rm -rf conftest.dir
3635 else
3636 am_cv_CC_dependencies_compiler_type=none
3637 fi
3638
3639 fi
3640 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3641 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3642 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3643
3644 if
3645 test "x$enable_dependency_tracking" != xno \
3646 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3647 am__fastdepCC_TRUE=
3648 am__fastdepCC_FALSE='#'
3649 else
3650 am__fastdepCC_TRUE='#'
3651 am__fastdepCC_FALSE=
3652 fi
3653
3654
3655 # Check whether --enable-static was given.
3656 if test "${enable_static+set}" = set; then
3657 enableval=$enable_static; p=${PACKAGE-default}
3658 case $enableval in
3659 yes) enable_static=yes ;;
3660 no) enable_static=no ;;
3661 *)
3662 enable_static=no
3663 # Look at the argument we got. We use all the common list separators.
3664 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3665 for pkg in $enableval; do
3666 IFS="$lt_save_ifs"
3667 if test "X$pkg" = "X$p"; then
3668 enable_static=yes
3669 fi
3670 done
3671 IFS="$lt_save_ifs"
3672 ;;
3673 esac
3674 else
3675 enable_static=no
3676 fi
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686 # Check whether --enable-shared was given.
3687 if test "${enable_shared+set}" = set; then
3688 enableval=$enable_shared; p=${PACKAGE-default}
3689 case $enableval in
3690 yes) enable_shared=yes ;;
3691 no) enable_shared=no ;;
3692 *)
3693 enable_shared=no
3694 # Look at the argument we got. We use all the common list separators.
3695 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3696 for pkg in $enableval; do
3697 IFS="$lt_save_ifs"
3698 if test "X$pkg" = "X$p"; then
3699 enable_shared=yes
3700 fi
3701 done
3702 IFS="$lt_save_ifs"
3703 ;;
3704 esac
3705 else
3706 enable_shared=yes
3707 fi
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717 case `pwd` in
3718 *\ * | *\ *)
3719 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3720 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3721 esac
3722
3723
3724
3725 macro_version='2.2.6'
3726 macro_revision='1.3012'
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740 ltmain="$ac_aux_dir/ltmain.sh"
3741
3742 # Make sure we can run config.sub.
3743 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3744 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3745 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3746 { (exit 1); exit 1; }; }
3747
3748 { $as_echo "$as_me:$LINENO: checking build system type" >&5
3749 $as_echo_n "checking build system type... " >&6; }
3750 if test "${ac_cv_build+set}" = set; then
3751 $as_echo_n "(cached) " >&6
3752 else
3753 ac_build_alias=$build_alias
3754 test "x$ac_build_alias" = x &&
3755 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3756 test "x$ac_build_alias" = x &&
3757 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3758 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3759 { (exit 1); exit 1; }; }
3760 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3761 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3762 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3763 { (exit 1); exit 1; }; }
3764
3765 fi
3766 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3767 $as_echo "$ac_cv_build" >&6; }
3768 case $ac_cv_build in
3769 *-*-*) ;;
3770 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3771 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
3772 { (exit 1); exit 1; }; };;
3773 esac
3774 build=$ac_cv_build
3775 ac_save_IFS=$IFS; IFS='-'
3776 set x $ac_cv_build
3777 shift
3778 build_cpu=$1
3779 build_vendor=$2
3780 shift; shift
3781 # Remember, the first character of IFS is used to create $*,
3782 # except with old shells:
3783 build_os=$*
3784 IFS=$ac_save_IFS
3785 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3786
3787
3788 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3789 $as_echo_n "checking host system type... " >&6; }
3790 if test "${ac_cv_host+set}" = set; then
3791 $as_echo_n "(cached) " >&6
3792 else
3793 if test "x$host_alias" = x; then
3794 ac_cv_host=$ac_cv_build
3795 else
3796 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3797 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3798 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3799 { (exit 1); exit 1; }; }
3800 fi
3801
3802 fi
3803 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3804 $as_echo "$ac_cv_host" >&6; }
3805 case $ac_cv_host in
3806 *-*-*) ;;
3807 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3808 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3809 { (exit 1); exit 1; }; };;
3810 esac
3811 host=$ac_cv_host
3812 ac_save_IFS=$IFS; IFS='-'
3813 set x $ac_cv_host
3814 shift
3815 host_cpu=$1
3816 host_vendor=$2
3817 shift; shift
3818 # Remember, the first character of IFS is used to create $*,
3819 # except with old shells:
3820 host_os=$*
3821 IFS=$ac_save_IFS
3822 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3823
3824
3825 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3826 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3827 if test "${ac_cv_path_SED+set}" = set; then
3828 $as_echo_n "(cached) " >&6
3829 else
3830 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3831 for ac_i in 1 2 3 4 5 6 7; do
3832 ac_script="$ac_script$as_nl$ac_script"
3833 done
3834 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3835 $as_unset ac_script || ac_script=
3836 if test -z "$SED"; then
3837 ac_path_SED_found=false
3838 # Loop through the user's path and test for each of PROGNAME-LIST
3839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3840 for as_dir in $PATH
3841 do
3842 IFS=$as_save_IFS
3843 test -z "$as_dir" && as_dir=.
3844 for ac_prog in sed gsed; do
3845 for ac_exec_ext in '' $ac_executable_extensions; do
3846 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3847 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3848 # Check for GNU ac_path_SED and select it if it is found.
3849 # Check for GNU $ac_path_SED
3850 case `"$ac_path_SED" --version 2>&1` in
3851 *GNU*)
3852 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3853 *)
3854 ac_count=0
3855 $as_echo_n 0123456789 >"conftest.in"
3856 while :
3857 do
3858 cat "conftest.in" "conftest.in" >"conftest.tmp"
3859 mv "conftest.tmp" "conftest.in"
3860 cp "conftest.in" "conftest.nl"
3861 $as_echo '' >> "conftest.nl"
3862 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3863 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3864 ac_count=`expr $ac_count + 1`
3865 if test $ac_count -gt ${ac_path_SED_max-0}; then
3866 # Best one so far, save it but keep looking for a better one
3867 ac_cv_path_SED="$ac_path_SED"
3868 ac_path_SED_max=$ac_count
3869 fi
3870 # 10*(2^10) chars as input seems more than enough
3871 test $ac_count -gt 10 && break
3872 done
3873 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3874 esac
3875
3876 $ac_path_SED_found && break 3
3877 done
3878 done
3879 done
3880 IFS=$as_save_IFS
3881 if test -z "$ac_cv_path_SED"; then
3882 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3883 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3884 { (exit 1); exit 1; }; }
3885 fi
3886 else
3887 ac_cv_path_SED=$SED
3888 fi
3889
3890 fi
3891 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3892 $as_echo "$ac_cv_path_SED" >&6; }
3893 SED="$ac_cv_path_SED"
3894 rm -f conftest.sed
3895
3896 test -z "$SED" && SED=sed
3897 Xsed="$SED -e 1s/^X//"
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3910 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3911 if test "${ac_cv_path_GREP+set}" = set; then
3912 $as_echo_n "(cached) " >&6
3913 else
3914 if test -z "$GREP"; then
3915 ac_path_GREP_found=false
3916 # Loop through the user's path and test for each of PROGNAME-LIST
3917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3919 do
3920 IFS=$as_save_IFS
3921 test -z "$as_dir" && as_dir=.
3922 for ac_prog in grep ggrep; do
3923 for ac_exec_ext in '' $ac_executable_extensions; do
3924 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3925 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3926 # Check for GNU ac_path_GREP and select it if it is found.
3927 # Check for GNU $ac_path_GREP
3928 case `"$ac_path_GREP" --version 2>&1` in
3929 *GNU*)
3930 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3931 *)
3932 ac_count=0
3933 $as_echo_n 0123456789 >"conftest.in"
3934 while :
3935 do
3936 cat "conftest.in" "conftest.in" >"conftest.tmp"
3937 mv "conftest.tmp" "conftest.in"
3938 cp "conftest.in" "conftest.nl"
3939 $as_echo 'GREP' >> "conftest.nl"
3940 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3941 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3942 ac_count=`expr $ac_count + 1`
3943 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3944 # Best one so far, save it but keep looking for a better one
3945 ac_cv_path_GREP="$ac_path_GREP"
3946 ac_path_GREP_max=$ac_count
3947 fi
3948 # 10*(2^10) chars as input seems more than enough
3949 test $ac_count -gt 10 && break
3950 done
3951 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3952 esac
3953
3954 $ac_path_GREP_found && break 3
3955 done
3956 done
3957 done
3958 IFS=$as_save_IFS
3959 if test -z "$ac_cv_path_GREP"; then
3960 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3961 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3962 { (exit 1); exit 1; }; }
3963 fi
3964 else
3965 ac_cv_path_GREP=$GREP
3966 fi
3967
3968 fi
3969 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3970 $as_echo "$ac_cv_path_GREP" >&6; }
3971 GREP="$ac_cv_path_GREP"
3972
3973
3974 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3975 $as_echo_n "checking for egrep... " >&6; }
3976 if test "${ac_cv_path_EGREP+set}" = set; then
3977 $as_echo_n "(cached) " >&6
3978 else
3979 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3980 then ac_cv_path_EGREP="$GREP -E"
3981 else
3982 if test -z "$EGREP"; then
3983 ac_path_EGREP_found=false
3984 # Loop through the user's path and test for each of PROGNAME-LIST
3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3987 do
3988 IFS=$as_save_IFS
3989 test -z "$as_dir" && as_dir=.
3990 for ac_prog in egrep; do
3991 for ac_exec_ext in '' $ac_executable_extensions; do
3992 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3993 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3994 # Check for GNU ac_path_EGREP and select it if it is found.
3995 # Check for GNU $ac_path_EGREP
3996 case `"$ac_path_EGREP" --version 2>&1` in
3997 *GNU*)
3998 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3999 *)
4000 ac_count=0
4001 $as_echo_n 0123456789 >"conftest.in"
4002 while :
4003 do
4004 cat "conftest.in" "conftest.in" >"conftest.tmp"
4005 mv "conftest.tmp" "conftest.in"
4006 cp "conftest.in" "conftest.nl"
4007 $as_echo 'EGREP' >> "conftest.nl"
4008 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4009 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4010 ac_count=`expr $ac_count + 1`
4011 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4012 # Best one so far, save it but keep looking for a better one
4013 ac_cv_path_EGREP="$ac_path_EGREP"
4014 ac_path_EGREP_max=$ac_count
4015 fi
4016 # 10*(2^10) chars as input seems more than enough
4017 test $ac_count -gt 10 && break
4018 done
4019 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4020 esac
4021
4022 $ac_path_EGREP_found && break 3
4023 done
4024 done
4025 done
4026 IFS=$as_save_IFS
4027 if test -z "$ac_cv_path_EGREP"; then
4028 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4029 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4030 { (exit 1); exit 1; }; }
4031 fi
4032 else
4033 ac_cv_path_EGREP=$EGREP
4034 fi
4035
4036 fi
4037 fi
4038 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4039 $as_echo "$ac_cv_path_EGREP" >&6; }
4040 EGREP="$ac_cv_path_EGREP"
4041
4042
4043 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4044 $as_echo_n "checking for fgrep... " >&6; }
4045 if test "${ac_cv_path_FGREP+set}" = set; then
4046 $as_echo_n "(cached) " >&6
4047 else
4048 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4049 then ac_cv_path_FGREP="$GREP -F"
4050 else
4051 if test -z "$FGREP"; then
4052 ac_path_FGREP_found=false
4053 # Loop through the user's path and test for each of PROGNAME-LIST
4054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4056 do
4057 IFS=$as_save_IFS
4058 test -z "$as_dir" && as_dir=.
4059 for ac_prog in fgrep; do
4060 for ac_exec_ext in '' $ac_executable_extensions; do
4061 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4062 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4063 # Check for GNU ac_path_FGREP and select it if it is found.
4064 # Check for GNU $ac_path_FGREP
4065 case `"$ac_path_FGREP" --version 2>&1` in
4066 *GNU*)
4067 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4068 *)
4069 ac_count=0
4070 $as_echo_n 0123456789 >"conftest.in"
4071 while :
4072 do
4073 cat "conftest.in" "conftest.in" >"conftest.tmp"
4074 mv "conftest.tmp" "conftest.in"
4075 cp "conftest.in" "conftest.nl"
4076 $as_echo 'FGREP' >> "conftest.nl"
4077 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4078 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4079 ac_count=`expr $ac_count + 1`
4080 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4081 # Best one so far, save it but keep looking for a better one
4082 ac_cv_path_FGREP="$ac_path_FGREP"
4083 ac_path_FGREP_max=$ac_count
4084 fi
4085 # 10*(2^10) chars as input seems more than enough
4086 test $ac_count -gt 10 && break
4087 done
4088 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4089 esac
4090
4091 $ac_path_FGREP_found && break 3
4092 done
4093 done
4094 done
4095 IFS=$as_save_IFS
4096 if test -z "$ac_cv_path_FGREP"; then
4097 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4098 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4099 { (exit 1); exit 1; }; }
4100 fi
4101 else
4102 ac_cv_path_FGREP=$FGREP
4103 fi
4104
4105 fi
4106 fi
4107 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4108 $as_echo "$ac_cv_path_FGREP" >&6; }
4109 FGREP="$ac_cv_path_FGREP"
4110
4111
4112 test -z "$GREP" && GREP=grep
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132 # Check whether --with-gnu-ld was given.
4133 if test "${with_gnu_ld+set}" = set; then
4134 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4135 else
4136 with_gnu_ld=no
4137 fi
4138
4139 ac_prog=ld
4140 if test "$GCC" = yes; then
4141 # Check if gcc -print-prog-name=ld gives a path.
4142 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4143 $as_echo_n "checking for ld used by $CC... " >&6; }
4144 case $host in
4145 *-*-mingw*)
4146 # gcc leaves a trailing carriage return which upsets mingw
4147 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4148 *)
4149 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4150 esac
4151 case $ac_prog in
4152 # Accept absolute paths.
4153 [\\/]* | ?:[\\/]*)
4154 re_direlt='/[^/][^/]*/\.\./'
4155 # Canonicalize the pathname of ld
4156 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4157 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4158 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4159 done
4160 test -z "$LD" && LD="$ac_prog"
4161 ;;
4162 "")
4163 # If it fails, then pretend we aren't using GCC.
4164 ac_prog=ld
4165 ;;
4166 *)
4167 # If it is relative, then search for the first ld in PATH.
4168 with_gnu_ld=unknown
4169 ;;
4170 esac
4171 elif test "$with_gnu_ld" = yes; then
4172 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4173 $as_echo_n "checking for GNU ld... " >&6; }
4174 else
4175 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4176 $as_echo_n "checking for non-GNU ld... " >&6; }
4177 fi
4178 if test "${lt_cv_path_LD+set}" = set; then
4179 $as_echo_n "(cached) " >&6
4180 else
4181 if test -z "$LD"; then
4182 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4183 for ac_dir in $PATH; do
4184 IFS="$lt_save_ifs"
4185 test -z "$ac_dir" && ac_dir=.
4186 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4187 lt_cv_path_LD="$ac_dir/$ac_prog"
4188 # Check to see if the program is GNU ld. I'd rather use --version,
4189 # but apparently some variants of GNU ld only accept -v.
4190 # Break only if it was the GNU/non-GNU ld that we prefer.
4191 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4192 *GNU* | *'with BFD'*)
4193 test "$with_gnu_ld" != no && break
4194 ;;
4195 *)
4196 test "$with_gnu_ld" != yes && break
4197 ;;
4198 esac
4199 fi
4200 done
4201 IFS="$lt_save_ifs"
4202 else
4203 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4204 fi
4205 fi
4206
4207 LD="$lt_cv_path_LD"
4208 if test -n "$LD"; then
4209 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4210 $as_echo "$LD" >&6; }
4211 else
4212 { $as_echo "$as_me:$LINENO: result: no" >&5
4213 $as_echo "no" >&6; }
4214 fi
4215 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4216 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4217 { (exit 1); exit 1; }; }
4218 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4219 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4220 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4221 $as_echo_n "(cached) " >&6
4222 else
4223 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4224 case `$LD -v 2>&1 </dev/null` in
4225 *GNU* | *'with BFD'*)
4226 lt_cv_prog_gnu_ld=yes
4227 ;;
4228 *)
4229 lt_cv_prog_gnu_ld=no
4230 ;;
4231 esac
4232 fi
4233 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4234 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4235 with_gnu_ld=$lt_cv_prog_gnu_ld
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4246 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4247 if test "${lt_cv_path_NM+set}" = set; then
4248 $as_echo_n "(cached) " >&6
4249 else
4250 if test -n "$NM"; then
4251 # Let the user override the test.
4252 lt_cv_path_NM="$NM"
4253 else
4254 lt_nm_to_check="${ac_tool_prefix}nm"
4255 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4256 lt_nm_to_check="$lt_nm_to_check nm"
4257 fi
4258 for lt_tmp_nm in $lt_nm_to_check; do
4259 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4260 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4261 IFS="$lt_save_ifs"
4262 test -z "$ac_dir" && ac_dir=.
4263 tmp_nm="$ac_dir/$lt_tmp_nm"
4264 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4265 # Check to see if the nm accepts a BSD-compat flag.
4266 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4267 # nm: unknown option "B" ignored
4268 # Tru64's nm complains that /dev/null is an invalid object file
4269 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4270 */dev/null* | *'Invalid file or object type'*)
4271 lt_cv_path_NM="$tmp_nm -B"
4272 break
4273 ;;
4274 *)
4275 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4276 */dev/null*)
4277 lt_cv_path_NM="$tmp_nm -p"
4278 break
4279 ;;
4280 *)
4281 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4282 continue # so that we can try to find one that supports BSD flags
4283 ;;
4284 esac
4285 ;;
4286 esac
4287 fi
4288 done
4289 IFS="$lt_save_ifs"
4290 done
4291 : ${lt_cv_path_NM=no}
4292 fi
4293 fi
4294 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4295 $as_echo "$lt_cv_path_NM" >&6; }
4296 if test "$lt_cv_path_NM" != "no"; then
4297 NM="$lt_cv_path_NM"
4298 else
4299 # Didn't find any BSD compatible name lister, look for dumpbin.
4300 if test -n "$ac_tool_prefix"; then
4301 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4302 do
4303 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4304 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4305 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4306 $as_echo_n "checking for $ac_word... " >&6; }
4307 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4308 $as_echo_n "(cached) " >&6
4309 else
4310 if test -n "$DUMPBIN"; then
4311 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4312 else
4313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314 for as_dir in $PATH
4315 do
4316 IFS=$as_save_IFS
4317 test -z "$as_dir" && as_dir=.
4318 for ac_exec_ext in '' $ac_executable_extensions; do
4319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4320 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4321 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4322 break 2
4323 fi
4324 done
4325 done
4326 IFS=$as_save_IFS
4327
4328 fi
4329 fi
4330 DUMPBIN=$ac_cv_prog_DUMPBIN
4331 if test -n "$DUMPBIN"; then
4332 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4333 $as_echo "$DUMPBIN" >&6; }
4334 else
4335 { $as_echo "$as_me:$LINENO: result: no" >&5
4336 $as_echo "no" >&6; }
4337 fi
4338
4339
4340 test -n "$DUMPBIN" && break
4341 done
4342 fi
4343 if test -z "$DUMPBIN"; then
4344 ac_ct_DUMPBIN=$DUMPBIN
4345 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4346 do
4347 # Extract the first word of "$ac_prog", so it can be a program name with args.
4348 set dummy $ac_prog; ac_word=$2
4349 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4350 $as_echo_n "checking for $ac_word... " >&6; }
4351 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4352 $as_echo_n "(cached) " >&6
4353 else
4354 if test -n "$ac_ct_DUMPBIN"; then
4355 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4356 else
4357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4358 for as_dir in $PATH
4359 do
4360 IFS=$as_save_IFS
4361 test -z "$as_dir" && as_dir=.
4362 for ac_exec_ext in '' $ac_executable_extensions; do
4363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4364 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4365 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4366 break 2
4367 fi
4368 done
4369 done
4370 IFS=$as_save_IFS
4371
4372 fi
4373 fi
4374 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4375 if test -n "$ac_ct_DUMPBIN"; then
4376 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4377 $as_echo "$ac_ct_DUMPBIN" >&6; }
4378 else
4379 { $as_echo "$as_me:$LINENO: result: no" >&5
4380 $as_echo "no" >&6; }
4381 fi
4382
4383
4384 test -n "$ac_ct_DUMPBIN" && break
4385 done
4386
4387 if test "x$ac_ct_DUMPBIN" = x; then
4388 DUMPBIN=":"
4389 else
4390 case $cross_compiling:$ac_tool_warned in
4391 yes:)
4392 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4393 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4394 ac_tool_warned=yes ;;
4395 esac
4396 DUMPBIN=$ac_ct_DUMPBIN
4397 fi
4398 fi
4399
4400
4401 if test "$DUMPBIN" != ":"; then
4402 NM="$DUMPBIN"
4403 fi
4404 fi
4405 test -z "$NM" && NM=nm
4406
4407
4408
4409
4410
4411
4412 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4413 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4414 if test "${lt_cv_nm_interface+set}" = set; then
4415 $as_echo_n "(cached) " >&6
4416 else
4417 lt_cv_nm_interface="BSD nm"
4418 echo "int some_variable = 0;" > conftest.$ac_ext
4419 (eval echo "\"\$as_me:4419: $ac_compile\"" >&5)
4420 (eval "$ac_compile" 2>conftest.err)
4421 cat conftest.err >&5
4422 (eval echo "\"\$as_me:4422: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4423 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4424 cat conftest.err >&5
4425 (eval echo "\"\$as_me:4425: output\"" >&5)
4426 cat conftest.out >&5
4427 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4428 lt_cv_nm_interface="MS dumpbin"
4429 fi
4430 rm -f conftest*
4431 fi
4432 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4433 $as_echo "$lt_cv_nm_interface" >&6; }
4434
4435 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4436 $as_echo_n "checking whether ln -s works... " >&6; }
4437 LN_S=$as_ln_s
4438 if test "$LN_S" = "ln -s"; then
4439 { $as_echo "$as_me:$LINENO: result: yes" >&5
4440 $as_echo "yes" >&6; }
4441 else
4442 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4443 $as_echo "no, using $LN_S" >&6; }
4444 fi
4445
4446 # find the maximum length of command line arguments
4447 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4448 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4449 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4450 $as_echo_n "(cached) " >&6
4451 else
4452 i=0
4453 teststring="ABCD"
4454
4455 case $build_os in
4456 msdosdjgpp*)
4457 # On DJGPP, this test can blow up pretty badly due to problems in libc
4458 # (any single argument exceeding 2000 bytes causes a buffer overrun
4459 # during glob expansion). Even if it were fixed, the result of this
4460 # check would be larger than it should be.
4461 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4462 ;;
4463
4464 gnu*)
4465 # Under GNU Hurd, this test is not required because there is
4466 # no limit to the length of command line arguments.
4467 # Libtool will interpret -1 as no limit whatsoever
4468 lt_cv_sys_max_cmd_len=-1;
4469 ;;
4470
4471 cygwin* | mingw* | cegcc*)
4472 # On Win9x/ME, this test blows up -- it succeeds, but takes
4473 # about 5 minutes as the teststring grows exponentially.
4474 # Worse, since 9x/ME are not pre-emptively multitasking,
4475 # you end up with a "frozen" computer, even though with patience
4476 # the test eventually succeeds (with a max line length of 256k).
4477 # Instead, let's just punt: use the minimum linelength reported by
4478 # all of the supported platforms: 8192 (on NT/2K/XP).
4479 lt_cv_sys_max_cmd_len=8192;
4480 ;;
4481
4482 amigaos*)
4483 # On AmigaOS with pdksh, this test takes hours, literally.
4484 # So we just punt and use a minimum line length of 8192.
4485 lt_cv_sys_max_cmd_len=8192;
4486 ;;
4487
4488 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4489 # This has been around since 386BSD, at least. Likely further.
4490 if test -x /sbin/sysctl; then
4491 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4492 elif test -x /usr/sbin/sysctl; then
4493 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4494 else
4495 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4496 fi
4497 # And add a safety zone
4498 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4499 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4500 ;;
4501
4502 interix*)
4503 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4504 lt_cv_sys_max_cmd_len=196608
4505 ;;
4506
4507 osf*)
4508 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4509 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4510 # nice to cause kernel panics so lets avoid the loop below.
4511 # First set a reasonable default.
4512 lt_cv_sys_max_cmd_len=16384
4513 #
4514 if test -x /sbin/sysconfig; then
4515 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4516 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4517 esac
4518 fi
4519 ;;
4520 sco3.2v5*)
4521 lt_cv_sys_max_cmd_len=102400
4522 ;;
4523 sysv5* | sco5v6* | sysv4.2uw2*)
4524 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4525 if test -n "$kargmax"; then
4526 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4527 else
4528 lt_cv_sys_max_cmd_len=32768
4529 fi
4530 ;;
4531 *)
4532 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4533 if test -n "$lt_cv_sys_max_cmd_len"; then
4534 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4535 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4536 else
4537 # Make teststring a little bigger before we do anything with it.
4538 # a 1K string should be a reasonable start.
4539 for i in 1 2 3 4 5 6 7 8 ; do
4540 teststring=$teststring$teststring
4541 done
4542 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4543 # If test is not a shell built-in, we'll probably end up computing a
4544 # maximum length that is only half of the actual maximum length, but
4545 # we can't tell.
4546 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4547 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4548 test $i != 17 # 1/2 MB should be enough
4549 do
4550 i=`expr $i + 1`
4551 teststring=$teststring$teststring
4552 done
4553 # Only check the string length outside the loop.
4554 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4555 teststring=
4556 # Add a significant safety factor because C++ compilers can tack on
4557 # massive amounts of additional arguments before passing them to the
4558 # linker. It appears as though 1/2 is a usable value.
4559 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4560 fi
4561 ;;
4562 esac
4563
4564 fi
4565
4566 if test -n $lt_cv_sys_max_cmd_len ; then
4567 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4568 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4569 else
4570 { $as_echo "$as_me:$LINENO: result: none" >&5
4571 $as_echo "none" >&6; }
4572 fi
4573 max_cmd_len=$lt_cv_sys_max_cmd_len
4574
4575
4576
4577
4578
4579
4580 : ${CP="cp -f"}
4581 : ${MV="mv -f"}
4582 : ${RM="rm -f"}
4583
4584 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4585 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4586 # Try some XSI features
4587 xsi_shell=no
4588 ( _lt_dummy="a/b/c"
4589 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4590 = c,a/b,, \
4591 && eval 'test $(( 1 + 1 )) -eq 2 \
4592 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4593 && xsi_shell=yes
4594 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4595 $as_echo "$xsi_shell" >&6; }
4596
4597
4598 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4599 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4600 lt_shell_append=no
4601 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4602 >/dev/null 2>&1 \
4603 && lt_shell_append=yes
4604 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4605 $as_echo "$lt_shell_append" >&6; }
4606
4607
4608 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4609 lt_unset=unset
4610 else
4611 lt_unset=false
4612 fi
4613
4614
4615
4616
4617
4618 # test EBCDIC or ASCII
4619 case `echo X|tr X '\101'` in
4620 A) # ASCII based system
4621 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4622 lt_SP2NL='tr \040 \012'
4623 lt_NL2SP='tr \015\012 \040\040'
4624 ;;
4625 *) # EBCDIC based system
4626 lt_SP2NL='tr \100 \n'
4627 lt_NL2SP='tr \r\n \100\100'
4628 ;;
4629 esac
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4640 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4641 if test "${lt_cv_ld_reload_flag+set}" = set; then
4642 $as_echo_n "(cached) " >&6
4643 else
4644 lt_cv_ld_reload_flag='-r'
4645 fi
4646 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4647 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4648 reload_flag=$lt_cv_ld_reload_flag
4649 case $reload_flag in
4650 "" | " "*) ;;
4651 *) reload_flag=" $reload_flag" ;;
4652 esac
4653 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4654 case $host_os in
4655 darwin*)
4656 if test "$GCC" = yes; then
4657 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4658 else
4659 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4660 fi
4661 ;;
4662 esac
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672 if test -n "$ac_tool_prefix"; then
4673 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4674 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4675 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4676 $as_echo_n "checking for $ac_word... " >&6; }
4677 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4678 $as_echo_n "(cached) " >&6
4679 else
4680 if test -n "$OBJDUMP"; then
4681 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4682 else
4683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684 for as_dir in $PATH
4685 do
4686 IFS=$as_save_IFS
4687 test -z "$as_dir" && as_dir=.
4688 for ac_exec_ext in '' $ac_executable_extensions; do
4689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4690 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4691 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4692 break 2
4693 fi
4694 done
4695 done
4696 IFS=$as_save_IFS
4697
4698 fi
4699 fi
4700 OBJDUMP=$ac_cv_prog_OBJDUMP
4701 if test -n "$OBJDUMP"; then
4702 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4703 $as_echo "$OBJDUMP" >&6; }
4704 else
4705 { $as_echo "$as_me:$LINENO: result: no" >&5
4706 $as_echo "no" >&6; }
4707 fi
4708
4709
4710 fi
4711 if test -z "$ac_cv_prog_OBJDUMP"; then
4712 ac_ct_OBJDUMP=$OBJDUMP
4713 # Extract the first word of "objdump", so it can be a program name with args.
4714 set dummy objdump; ac_word=$2
4715 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4716 $as_echo_n "checking for $ac_word... " >&6; }
4717 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4718 $as_echo_n "(cached) " >&6
4719 else
4720 if test -n "$ac_ct_OBJDUMP"; then
4721 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4722 else
4723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724 for as_dir in $PATH
4725 do
4726 IFS=$as_save_IFS
4727 test -z "$as_dir" && as_dir=.
4728 for ac_exec_ext in '' $ac_executable_extensions; do
4729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4730 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4731 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4732 break 2
4733 fi
4734 done
4735 done
4736 IFS=$as_save_IFS
4737
4738 fi
4739 fi
4740 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4741 if test -n "$ac_ct_OBJDUMP"; then
4742 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4743 $as_echo "$ac_ct_OBJDUMP" >&6; }
4744 else
4745 { $as_echo "$as_me:$LINENO: result: no" >&5
4746 $as_echo "no" >&6; }
4747 fi
4748
4749 if test "x$ac_ct_OBJDUMP" = x; then
4750 OBJDUMP="false"
4751 else
4752 case $cross_compiling:$ac_tool_warned in
4753 yes:)
4754 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4755 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4756 ac_tool_warned=yes ;;
4757 esac
4758 OBJDUMP=$ac_ct_OBJDUMP
4759 fi
4760 else
4761 OBJDUMP="$ac_cv_prog_OBJDUMP"
4762 fi
4763
4764 test -z "$OBJDUMP" && OBJDUMP=objdump
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4775 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4776 if test "${lt_cv_deplibs_check_method+set}" = set; then
4777 $as_echo_n "(cached) " >&6
4778 else
4779 lt_cv_file_magic_cmd='$MAGIC_CMD'
4780 lt_cv_file_magic_test_file=
4781 lt_cv_deplibs_check_method='unknown'
4782 # Need to set the preceding variable on all platforms that support
4783 # interlibrary dependencies.
4784 # 'none' -- dependencies not supported.
4785 # `unknown' -- same as none, but documents that we really don't know.
4786 # 'pass_all' -- all dependencies passed with no checks.
4787 # 'test_compile' -- check by making test program.
4788 # 'file_magic [[regex]]' -- check by looking for files in library path
4789 # which responds to the $file_magic_cmd with a given extended regex.
4790 # If you have `file' or equivalent on your system and you're not sure
4791 # whether `pass_all' will *always* work, you probably want this one.
4792
4793 case $host_os in
4794 aix[4-9]*)
4795 lt_cv_deplibs_check_method=pass_all
4796 ;;
4797
4798 beos*)
4799 lt_cv_deplibs_check_method=pass_all
4800 ;;
4801
4802 bsdi[45]*)
4803 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4804 lt_cv_file_magic_cmd='/usr/bin/file -L'
4805 lt_cv_file_magic_test_file=/shlib/libc.so
4806 ;;
4807
4808 cygwin*)
4809 # func_win32_libid is a shell function defined in ltmain.sh
4810 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4811 lt_cv_file_magic_cmd='func_win32_libid'
4812 ;;
4813
4814 mingw* | pw32*)
4815 # Base MSYS/MinGW do not provide the 'file' command needed by
4816 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4817 # unless we find 'file', for example because we are cross-compiling.
4818 if ( file / ) >/dev/null 2>&1; then
4819 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4820 lt_cv_file_magic_cmd='func_win32_libid'
4821 else
4822 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4823 lt_cv_file_magic_cmd='$OBJDUMP -f'
4824 fi
4825 ;;
4826
4827 cegcc)
4828 # use the weaker test based on 'objdump'. See mingw*.
4829 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4830 lt_cv_file_magic_cmd='$OBJDUMP -f'
4831 ;;
4832
4833 darwin* | rhapsody*)
4834 lt_cv_deplibs_check_method=pass_all
4835 ;;
4836
4837 freebsd* | dragonfly*)
4838 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4839 case $host_cpu in
4840 i*86 )
4841 # Not sure whether the presence of OpenBSD here was a mistake.
4842 # Let's accept both of them until this is cleared up.
4843 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4844 lt_cv_file_magic_cmd=/usr/bin/file
4845 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4846 ;;
4847 esac
4848 else
4849 lt_cv_deplibs_check_method=pass_all
4850 fi
4851 ;;
4852
4853 gnu*)
4854 lt_cv_deplibs_check_method=pass_all
4855 ;;
4856
4857 hpux10.20* | hpux11*)
4858 lt_cv_file_magic_cmd=/usr/bin/file
4859 case $host_cpu in
4860 ia64*)
4861 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4862 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4863 ;;
4864 hppa*64*)
4865 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4866 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4867 ;;
4868 *)
4869 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4870 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4871 ;;
4872 esac
4873 ;;
4874
4875 interix[3-9]*)
4876 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4877 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4878 ;;
4879
4880 irix5* | irix6* | nonstopux*)
4881 case $LD in
4882 *-32|*"-32 ") libmagic=32-bit;;
4883 *-n32|*"-n32 ") libmagic=N32;;
4884 *-64|*"-64 ") libmagic=64-bit;;
4885 *) libmagic=never-match;;
4886 esac
4887 lt_cv_deplibs_check_method=pass_all
4888 ;;
4889
4890 # This must be Linux ELF.
4891 linux* | k*bsd*-gnu)
4892 lt_cv_deplibs_check_method=pass_all
4893 ;;
4894
4895 netbsd*)
4896 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4897 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4898 else
4899 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4900 fi
4901 ;;
4902
4903 newos6*)
4904 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4905 lt_cv_file_magic_cmd=/usr/bin/file
4906 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4907 ;;
4908
4909 *nto* | *qnx*)
4910 lt_cv_deplibs_check_method=pass_all
4911 ;;
4912
4913 openbsd*)
4914 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4915 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4916 else
4917 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4918 fi
4919 ;;
4920
4921 osf3* | osf4* | osf5*)
4922 lt_cv_deplibs_check_method=pass_all
4923 ;;
4924
4925 rdos*)
4926 lt_cv_deplibs_check_method=pass_all
4927 ;;
4928
4929 solaris*)
4930 lt_cv_deplibs_check_method=pass_all
4931 ;;
4932
4933 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4934 lt_cv_deplibs_check_method=pass_all
4935 ;;
4936
4937 sysv4 | sysv4.3*)
4938 case $host_vendor in
4939 motorola)
4940 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]'
4941 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4942 ;;
4943 ncr)
4944 lt_cv_deplibs_check_method=pass_all
4945 ;;
4946 sequent)
4947 lt_cv_file_magic_cmd='/bin/file'
4948 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4949 ;;
4950 sni)
4951 lt_cv_file_magic_cmd='/bin/file'
4952 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4953 lt_cv_file_magic_test_file=/lib/libc.so
4954 ;;
4955 siemens)
4956 lt_cv_deplibs_check_method=pass_all
4957 ;;
4958 pc)
4959 lt_cv_deplibs_check_method=pass_all
4960 ;;
4961 esac
4962 ;;
4963
4964 tpf*)
4965 lt_cv_deplibs_check_method=pass_all
4966 ;;
4967 esac
4968
4969 fi
4970 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4971 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4972 file_magic_cmd=$lt_cv_file_magic_cmd
4973 deplibs_check_method=$lt_cv_deplibs_check_method
4974 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987 if test -n "$ac_tool_prefix"; then
4988 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4989 set dummy ${ac_tool_prefix}ar; ac_word=$2
4990 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4991 $as_echo_n "checking for $ac_word... " >&6; }
4992 if test "${ac_cv_prog_AR+set}" = set; then
4993 $as_echo_n "(cached) " >&6
4994 else
4995 if test -n "$AR"; then
4996 ac_cv_prog_AR="$AR" # Let the user override the test.
4997 else
4998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999 for as_dir in $PATH
5000 do
5001 IFS=$as_save_IFS
5002 test -z "$as_dir" && as_dir=.
5003 for ac_exec_ext in '' $ac_executable_extensions; do
5004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5005 ac_cv_prog_AR="${ac_tool_prefix}ar"
5006 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5007 break 2
5008 fi
5009 done
5010 done
5011 IFS=$as_save_IFS
5012
5013 fi
5014 fi
5015 AR=$ac_cv_prog_AR
5016 if test -n "$AR"; then
5017 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5018 $as_echo "$AR" >&6; }
5019 else
5020 { $as_echo "$as_me:$LINENO: result: no" >&5
5021 $as_echo "no" >&6; }
5022 fi
5023
5024
5025 fi
5026 if test -z "$ac_cv_prog_AR"; then
5027 ac_ct_AR=$AR
5028 # Extract the first word of "ar", so it can be a program name with args.
5029 set dummy ar; ac_word=$2
5030 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5031 $as_echo_n "checking for $ac_word... " >&6; }
5032 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5033 $as_echo_n "(cached) " >&6
5034 else
5035 if test -n "$ac_ct_AR"; then
5036 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5037 else
5038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039 for as_dir in $PATH
5040 do
5041 IFS=$as_save_IFS
5042 test -z "$as_dir" && as_dir=.
5043 for ac_exec_ext in '' $ac_executable_extensions; do
5044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5045 ac_cv_prog_ac_ct_AR="ar"
5046 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5047 break 2
5048 fi
5049 done
5050 done
5051 IFS=$as_save_IFS
5052
5053 fi
5054 fi
5055 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5056 if test -n "$ac_ct_AR"; then
5057 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5058 $as_echo "$ac_ct_AR" >&6; }
5059 else
5060 { $as_echo "$as_me:$LINENO: result: no" >&5
5061 $as_echo "no" >&6; }
5062 fi
5063
5064 if test "x$ac_ct_AR" = x; then
5065 AR="false"
5066 else
5067 case $cross_compiling:$ac_tool_warned in
5068 yes:)
5069 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5071 ac_tool_warned=yes ;;
5072 esac
5073 AR=$ac_ct_AR
5074 fi
5075 else
5076 AR="$ac_cv_prog_AR"
5077 fi
5078
5079 test -z "$AR" && AR=ar
5080 test -z "$AR_FLAGS" && AR_FLAGS=cru
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092 if test -n "$ac_tool_prefix"; then
5093 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5094 set dummy ${ac_tool_prefix}strip; ac_word=$2
5095 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5096 $as_echo_n "checking for $ac_word... " >&6; }
5097 if test "${ac_cv_prog_STRIP+set}" = set; then
5098 $as_echo_n "(cached) " >&6
5099 else
5100 if test -n "$STRIP"; then
5101 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5102 else
5103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104 for as_dir in $PATH
5105 do
5106 IFS=$as_save_IFS
5107 test -z "$as_dir" && as_dir=.
5108 for ac_exec_ext in '' $ac_executable_extensions; do
5109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5110 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5111 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5112 break 2
5113 fi
5114 done
5115 done
5116 IFS=$as_save_IFS
5117
5118 fi
5119 fi
5120 STRIP=$ac_cv_prog_STRIP
5121 if test -n "$STRIP"; then
5122 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5123 $as_echo "$STRIP" >&6; }
5124 else
5125 { $as_echo "$as_me:$LINENO: result: no" >&5
5126 $as_echo "no" >&6; }
5127 fi
5128
5129
5130 fi
5131 if test -z "$ac_cv_prog_STRIP"; then
5132 ac_ct_STRIP=$STRIP
5133 # Extract the first word of "strip", so it can be a program name with args.
5134 set dummy strip; ac_word=$2
5135 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5136 $as_echo_n "checking for $ac_word... " >&6; }
5137 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5138 $as_echo_n "(cached) " >&6
5139 else
5140 if test -n "$ac_ct_STRIP"; then
5141 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5142 else
5143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144 for as_dir in $PATH
5145 do
5146 IFS=$as_save_IFS
5147 test -z "$as_dir" && as_dir=.
5148 for ac_exec_ext in '' $ac_executable_extensions; do
5149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5150 ac_cv_prog_ac_ct_STRIP="strip"
5151 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5152 break 2
5153 fi
5154 done
5155 done
5156 IFS=$as_save_IFS
5157
5158 fi
5159 fi
5160 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5161 if test -n "$ac_ct_STRIP"; then
5162 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5163 $as_echo "$ac_ct_STRIP" >&6; }
5164 else
5165 { $as_echo "$as_me:$LINENO: result: no" >&5
5166 $as_echo "no" >&6; }
5167 fi
5168
5169 if test "x$ac_ct_STRIP" = x; then
5170 STRIP=":"
5171 else
5172 case $cross_compiling:$ac_tool_warned in
5173 yes:)
5174 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5176 ac_tool_warned=yes ;;
5177 esac
5178 STRIP=$ac_ct_STRIP
5179 fi
5180 else
5181 STRIP="$ac_cv_prog_STRIP"
5182 fi
5183
5184 test -z "$STRIP" && STRIP=:
5185
5186
5187
5188
5189
5190
5191 if test -n "$ac_tool_prefix"; then
5192 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5193 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5194 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5195 $as_echo_n "checking for $ac_word... " >&6; }
5196 if test "${ac_cv_prog_RANLIB+set}" = set; then
5197 $as_echo_n "(cached) " >&6
5198 else
5199 if test -n "$RANLIB"; then
5200 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5201 else
5202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203 for as_dir in $PATH
5204 do
5205 IFS=$as_save_IFS
5206 test -z "$as_dir" && as_dir=.
5207 for ac_exec_ext in '' $ac_executable_extensions; do
5208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5209 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5210 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5211 break 2
5212 fi
5213 done
5214 done
5215 IFS=$as_save_IFS
5216
5217 fi
5218 fi
5219 RANLIB=$ac_cv_prog_RANLIB
5220 if test -n "$RANLIB"; then
5221 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5222 $as_echo "$RANLIB" >&6; }
5223 else
5224 { $as_echo "$as_me:$LINENO: result: no" >&5
5225 $as_echo "no" >&6; }
5226 fi
5227
5228
5229 fi
5230 if test -z "$ac_cv_prog_RANLIB"; then
5231 ac_ct_RANLIB=$RANLIB
5232 # Extract the first word of "ranlib", so it can be a program name with args.
5233 set dummy ranlib; ac_word=$2
5234 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5235 $as_echo_n "checking for $ac_word... " >&6; }
5236 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5237 $as_echo_n "(cached) " >&6
5238 else
5239 if test -n "$ac_ct_RANLIB"; then
5240 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5241 else
5242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243 for as_dir in $PATH
5244 do
5245 IFS=$as_save_IFS
5246 test -z "$as_dir" && as_dir=.
5247 for ac_exec_ext in '' $ac_executable_extensions; do
5248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5249 ac_cv_prog_ac_ct_RANLIB="ranlib"
5250 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5251 break 2
5252 fi
5253 done
5254 done
5255 IFS=$as_save_IFS
5256
5257 fi
5258 fi
5259 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5260 if test -n "$ac_ct_RANLIB"; then
5261 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5262 $as_echo "$ac_ct_RANLIB" >&6; }
5263 else
5264 { $as_echo "$as_me:$LINENO: result: no" >&5
5265 $as_echo "no" >&6; }
5266 fi
5267
5268 if test "x$ac_ct_RANLIB" = x; then
5269 RANLIB=":"
5270 else
5271 case $cross_compiling:$ac_tool_warned in
5272 yes:)
5273 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5274 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5275 ac_tool_warned=yes ;;
5276 esac
5277 RANLIB=$ac_ct_RANLIB
5278 fi
5279 else
5280 RANLIB="$ac_cv_prog_RANLIB"
5281 fi
5282
5283 test -z "$RANLIB" && RANLIB=:
5284
5285
5286
5287
5288
5289
5290 # Determine commands to create old-style static archives.
5291 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5292 old_postinstall_cmds='chmod 644 $oldlib'
5293 old_postuninstall_cmds=
5294
5295 if test -n "$RANLIB"; then
5296 case $host_os in
5297 openbsd*)
5298 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5299 ;;
5300 *)
5301 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5302 ;;
5303 esac
5304 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5305 fi
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340 # If no C compiler was specified, use CC.
5341 LTCC=${LTCC-"$CC"}
5342
5343 # If no C compiler flags were specified, use CFLAGS.
5344 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5345
5346 # Allow CC to be a program name with arguments.
5347 compiler=$CC
5348
5349
5350 # Check for command to grab the raw symbol name followed by C symbol from nm.
5351 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5352 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5353 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5354 $as_echo_n "(cached) " >&6
5355 else
5356
5357 # These are sane defaults that work on at least a few old systems.
5358 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5359
5360 # Character class describing NM global symbol codes.
5361 symcode='[BCDEGRST]'
5362
5363 # Regexp to match symbols that can be accessed directly from C.
5364 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5365
5366 # Define system-specific variables.
5367 case $host_os in
5368 aix*)
5369 symcode='[BCDT]'
5370 ;;
5371 cygwin* | mingw* | pw32* | cegcc*)
5372 symcode='[ABCDGISTW]'
5373 ;;
5374 hpux*)
5375 if test "$host_cpu" = ia64; then
5376 symcode='[ABCDEGRST]'
5377 fi
5378 ;;
5379 irix* | nonstopux*)
5380 symcode='[BCDEGRST]'
5381 ;;
5382 osf*)
5383 symcode='[BCDEGQRST]'
5384 ;;
5385 solaris*)
5386 symcode='[BDRT]'
5387 ;;
5388 sco3.2v5*)
5389 symcode='[DT]'
5390 ;;
5391 sysv4.2uw2*)
5392 symcode='[DT]'
5393 ;;
5394 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5395 symcode='[ABDT]'
5396 ;;
5397 sysv4)
5398 symcode='[DFNSTU]'
5399 ;;
5400 esac
5401
5402 # If we're using GNU nm, then use its standard symbol codes.
5403 case `$NM -V 2>&1` in
5404 *GNU* | *'with BFD'*)
5405 symcode='[ABCDGIRSTW]' ;;
5406 esac
5407
5408 # Transform an extracted symbol line into a proper C declaration.
5409 # Some systems (esp. on ia64) link data and code symbols differently,
5410 # so use this general approach.
5411 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5412
5413 # Transform an extracted symbol line into symbol name and symbol address
5414 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5415 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5416
5417 # Handle CRLF in mingw tool chain
5418 opt_cr=
5419 case $build_os in
5420 mingw*)
5421 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5422 ;;
5423 esac
5424
5425 # Try without a prefix underscore, then with it.
5426 for ac_symprfx in "" "_"; do
5427
5428 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5429 symxfrm="\\1 $ac_symprfx\\2 \\2"
5430
5431 # Write the raw and C identifiers.
5432 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5433 # Fake it for dumpbin and say T for any non-static function
5434 # and D for any global variable.
5435 # Also find C++ and __fastcall symbols from MSVC++,
5436 # which start with @ or ?.
5437 lt_cv_sys_global_symbol_pipe="$AWK '"\
5438 " {last_section=section; section=\$ 3};"\
5439 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5440 " \$ 0!~/External *\|/{next};"\
5441 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5442 " {if(hide[section]) next};"\
5443 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5444 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5445 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5446 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5447 " ' prfx=^$ac_symprfx"
5448 else
5449 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5450 fi
5451
5452 # Check to see that the pipe works correctly.
5453 pipe_works=no
5454
5455 rm -f conftest*
5456 cat > conftest.$ac_ext <<_LT_EOF
5457 #ifdef __cplusplus
5458 extern "C" {
5459 #endif
5460 char nm_test_var;
5461 void nm_test_func(void);
5462 void nm_test_func(void){}
5463 #ifdef __cplusplus
5464 }
5465 #endif
5466 int main(){nm_test_var='a';nm_test_func();return(0);}
5467 _LT_EOF
5468
5469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5470 (eval $ac_compile) 2>&5
5471 ac_status=$?
5472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); }; then
5474 # Now try to grab the symbols.
5475 nlist=conftest.nm
5476 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5477 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5478 ac_status=$?
5479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480 (exit $ac_status); } && test -s "$nlist"; then
5481 # Try sorting and uniquifying the output.
5482 if sort "$nlist" | uniq > "$nlist"T; then
5483 mv -f "$nlist"T "$nlist"
5484 else
5485 rm -f "$nlist"T
5486 fi
5487
5488 # Make sure that we snagged all the symbols we need.
5489 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5490 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5491 cat <<_LT_EOF > conftest.$ac_ext
5492 #ifdef __cplusplus
5493 extern "C" {
5494 #endif
5495
5496 _LT_EOF
5497 # Now generate the symbol file.
5498 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5499
5500 cat <<_LT_EOF >> conftest.$ac_ext
5501
5502 /* The mapping between symbol names and symbols. */
5503 const struct {
5504 const char *name;
5505 void *address;
5506 }
5507 lt__PROGRAM__LTX_preloaded_symbols[] =
5508 {
5509 { "@PROGRAM@", (void *) 0 },
5510 _LT_EOF
5511 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5512 cat <<\_LT_EOF >> conftest.$ac_ext
5513 {0, (void *) 0}
5514 };
5515
5516 /* This works around a problem in FreeBSD linker */
5517 #ifdef FREEBSD_WORKAROUND
5518 static const void *lt_preloaded_setup() {
5519 return lt__PROGRAM__LTX_preloaded_symbols;
5520 }
5521 #endif
5522
5523 #ifdef __cplusplus
5524 }
5525 #endif
5526 _LT_EOF
5527 # Now try linking the two files.
5528 mv conftest.$ac_objext conftstm.$ac_objext
5529 lt_save_LIBS="$LIBS"
5530 lt_save_CFLAGS="$CFLAGS"
5531 LIBS="conftstm.$ac_objext"
5532 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5534 (eval $ac_link) 2>&5
5535 ac_status=$?
5536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5538 pipe_works=yes
5539 fi
5540 LIBS="$lt_save_LIBS"
5541 CFLAGS="$lt_save_CFLAGS"
5542 else
5543 echo "cannot find nm_test_func in $nlist" >&5
5544 fi
5545 else
5546 echo "cannot find nm_test_var in $nlist" >&5
5547 fi
5548 else
5549 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5550 fi
5551 else
5552 echo "$progname: failed program was:" >&5
5553 cat conftest.$ac_ext >&5
5554 fi
5555 rm -rf conftest* conftst*
5556
5557 # Do not use the global_symbol_pipe unless it works.
5558 if test "$pipe_works" = yes; then
5559 break
5560 else
5561 lt_cv_sys_global_symbol_pipe=
5562 fi
5563 done
5564
5565 fi
5566
5567 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5568 lt_cv_sys_global_symbol_to_cdecl=
5569 fi
5570 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5571 { $as_echo "$as_me:$LINENO: result: failed" >&5
5572 $as_echo "failed" >&6; }
5573 else
5574 { $as_echo "$as_me:$LINENO: result: ok" >&5
5575 $as_echo "ok" >&6; }
5576 fi
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600 # Check whether --enable-libtool-lock was given.
5601 if test "${enable_libtool_lock+set}" = set; then
5602 enableval=$enable_libtool_lock;
5603 fi
5604
5605 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5606
5607 # Some flags need to be propagated to the compiler or linker for good
5608 # libtool support.
5609 case $host in
5610 ia64-*-hpux*)
5611 # Find out which ABI we are using.
5612 echo 'int i;' > conftest.$ac_ext
5613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5614 (eval $ac_compile) 2>&5
5615 ac_status=$?
5616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); }; then
5618 case `/usr/bin/file conftest.$ac_objext` in
5619 *ELF-32*)
5620 HPUX_IA64_MODE="32"
5621 ;;
5622 *ELF-64*)
5623 HPUX_IA64_MODE="64"
5624 ;;
5625 esac
5626 fi
5627 rm -rf conftest*
5628 ;;
5629 *-*-irix6*)
5630 # Find out which ABI we are using.
5631 echo '#line 5631 "configure"' > conftest.$ac_ext
5632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5633 (eval $ac_compile) 2>&5
5634 ac_status=$?
5635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); }; then
5637 if test "$lt_cv_prog_gnu_ld" = yes; then
5638 case `/usr/bin/file conftest.$ac_objext` in
5639 *32-bit*)
5640 LD="${LD-ld} -melf32bsmip"
5641 ;;
5642 *N32*)
5643 LD="${LD-ld} -melf32bmipn32"
5644 ;;
5645 *64-bit*)
5646 LD="${LD-ld} -melf64bmip"
5647 ;;
5648 esac
5649 else
5650 case `/usr/bin/file conftest.$ac_objext` in
5651 *32-bit*)
5652 LD="${LD-ld} -32"
5653 ;;
5654 *N32*)
5655 LD="${LD-ld} -n32"
5656 ;;
5657 *64-bit*)
5658 LD="${LD-ld} -64"
5659 ;;
5660 esac
5661 fi
5662 fi
5663 rm -rf conftest*
5664 ;;
5665
5666 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5667 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5668 # Find out which ABI we are using.
5669 echo 'int i;' > conftest.$ac_ext
5670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5671 (eval $ac_compile) 2>&5
5672 ac_status=$?
5673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); }; then
5675 case `/usr/bin/file conftest.o` in
5676 *32-bit*)
5677 case $host in
5678 x86_64-*kfreebsd*-gnu)
5679 LD="${LD-ld} -m elf_i386_fbsd"
5680 ;;
5681 x86_64-*linux*)
5682 LD="${LD-ld} -m elf_i386"
5683 ;;
5684 ppc64-*linux*|powerpc64-*linux*)
5685 LD="${LD-ld} -m elf32ppclinux"
5686 ;;
5687 s390x-*linux*)
5688 LD="${LD-ld} -m elf_s390"
5689 ;;
5690 sparc64-*linux*)
5691 LD="${LD-ld} -m elf32_sparc"
5692 ;;
5693 esac
5694 ;;
5695 *64-bit*)
5696 case $host in
5697 x86_64-*kfreebsd*-gnu)
5698 LD="${LD-ld} -m elf_x86_64_fbsd"
5699 ;;
5700 x86_64-*linux*)
5701 LD="${LD-ld} -m elf_x86_64"
5702 ;;
5703 ppc*-*linux*|powerpc*-*linux*)
5704 LD="${LD-ld} -m elf64ppc"
5705 ;;
5706 s390*-*linux*|s390*-*tpf*)
5707 LD="${LD-ld} -m elf64_s390"
5708 ;;
5709 sparc*-*linux*)
5710 LD="${LD-ld} -m elf64_sparc"
5711 ;;
5712 esac
5713 ;;
5714 esac
5715 fi
5716 rm -rf conftest*
5717 ;;
5718
5719 *-*-sco3.2v5*)
5720 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5721 SAVE_CFLAGS="$CFLAGS"
5722 CFLAGS="$CFLAGS -belf"
5723 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5724 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5725 if test "${lt_cv_cc_needs_belf+set}" = set; then
5726 $as_echo_n "(cached) " >&6
5727 else
5728 ac_ext=c
5729 ac_cpp='$CPP $CPPFLAGS'
5730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5733
5734 cat >conftest.$ac_ext <<_ACEOF
5735 /* confdefs.h. */
5736 _ACEOF
5737 cat confdefs.h >>conftest.$ac_ext
5738 cat >>conftest.$ac_ext <<_ACEOF
5739 /* end confdefs.h. */
5740
5741 int
5742 main ()
5743 {
5744
5745 ;
5746 return 0;
5747 }
5748 _ACEOF
5749 rm -f conftest.$ac_objext conftest$ac_exeext
5750 if { (ac_try="$ac_link"
5751 case "(($ac_try" in
5752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5753 *) ac_try_echo=$ac_try;;
5754 esac
5755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5756 $as_echo "$ac_try_echo") >&5
5757 (eval "$ac_link") 2>conftest.er1
5758 ac_status=$?
5759 grep -v '^ *+' conftest.er1 >conftest.err
5760 rm -f conftest.er1
5761 cat conftest.err >&5
5762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); } && {
5764 test -z "$ac_c_werror_flag" ||
5765 test ! -s conftest.err
5766 } && test -s conftest$ac_exeext && {
5767 test "$cross_compiling" = yes ||
5768 $as_test_x conftest$ac_exeext
5769 }; then
5770 lt_cv_cc_needs_belf=yes
5771 else
5772 $as_echo "$as_me: failed program was:" >&5
5773 sed 's/^/| /' conftest.$ac_ext >&5
5774
5775 lt_cv_cc_needs_belf=no
5776 fi
5777
5778 rm -rf conftest.dSYM
5779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5780 conftest$ac_exeext conftest.$ac_ext
5781 ac_ext=c
5782 ac_cpp='$CPP $CPPFLAGS'
5783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5786
5787 fi
5788 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5789 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5790 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5791 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5792 CFLAGS="$SAVE_CFLAGS"
5793 fi
5794 ;;
5795 sparc*-*solaris*)
5796 # Find out which ABI we are using.
5797 echo 'int i;' > conftest.$ac_ext
5798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5799 (eval $ac_compile) 2>&5
5800 ac_status=$?
5801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); }; then
5803 case `/usr/bin/file conftest.o` in
5804 *64-bit*)
5805 case $lt_cv_prog_gnu_ld in
5806 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5807 *)
5808 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5809 LD="${LD-ld} -64"
5810 fi
5811 ;;
5812 esac
5813 ;;
5814 esac
5815 fi
5816 rm -rf conftest*
5817 ;;
5818 esac
5819
5820 need_locks="$enable_libtool_lock"
5821
5822
5823 case $host_os in
5824 rhapsody* | darwin*)
5825 if test -n "$ac_tool_prefix"; then
5826 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5827 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5828 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5829 $as_echo_n "checking for $ac_word... " >&6; }
5830 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5831 $as_echo_n "(cached) " >&6
5832 else
5833 if test -n "$DSYMUTIL"; then
5834 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5835 else
5836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5837 for as_dir in $PATH
5838 do
5839 IFS=$as_save_IFS
5840 test -z "$as_dir" && as_dir=.
5841 for ac_exec_ext in '' $ac_executable_extensions; do
5842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5843 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5844 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5845 break 2
5846 fi
5847 done
5848 done
5849 IFS=$as_save_IFS
5850
5851 fi
5852 fi
5853 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5854 if test -n "$DSYMUTIL"; then
5855 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5856 $as_echo "$DSYMUTIL" >&6; }
5857 else
5858 { $as_echo "$as_me:$LINENO: result: no" >&5
5859 $as_echo "no" >&6; }
5860 fi
5861
5862
5863 fi
5864 if test -z "$ac_cv_prog_DSYMUTIL"; then
5865 ac_ct_DSYMUTIL=$DSYMUTIL
5866 # Extract the first word of "dsymutil", so it can be a program name with args.
5867 set dummy dsymutil; ac_word=$2
5868 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5869 $as_echo_n "checking for $ac_word... " >&6; }
5870 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5871 $as_echo_n "(cached) " >&6
5872 else
5873 if test -n "$ac_ct_DSYMUTIL"; then
5874 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5875 else
5876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877 for as_dir in $PATH
5878 do
5879 IFS=$as_save_IFS
5880 test -z "$as_dir" && as_dir=.
5881 for ac_exec_ext in '' $ac_executable_extensions; do
5882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5883 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5884 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5885 break 2
5886 fi
5887 done
5888 done
5889 IFS=$as_save_IFS
5890
5891 fi
5892 fi
5893 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5894 if test -n "$ac_ct_DSYMUTIL"; then
5895 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5896 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5897 else
5898 { $as_echo "$as_me:$LINENO: result: no" >&5
5899 $as_echo "no" >&6; }
5900 fi
5901
5902 if test "x$ac_ct_DSYMUTIL" = x; then
5903 DSYMUTIL=":"
5904 else
5905 case $cross_compiling:$ac_tool_warned in
5906 yes:)
5907 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5909 ac_tool_warned=yes ;;
5910 esac
5911 DSYMUTIL=$ac_ct_DSYMUTIL
5912 fi
5913 else
5914 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5915 fi
5916
5917 if test -n "$ac_tool_prefix"; then
5918 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5919 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5920 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5921 $as_echo_n "checking for $ac_word... " >&6; }
5922 if test "${ac_cv_prog_NMEDIT+set}" = set; then
5923 $as_echo_n "(cached) " >&6
5924 else
5925 if test -n "$NMEDIT"; then
5926 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5927 else
5928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929 for as_dir in $PATH
5930 do
5931 IFS=$as_save_IFS
5932 test -z "$as_dir" && as_dir=.
5933 for ac_exec_ext in '' $ac_executable_extensions; do
5934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5935 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5936 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5937 break 2
5938 fi
5939 done
5940 done
5941 IFS=$as_save_IFS
5942
5943 fi
5944 fi
5945 NMEDIT=$ac_cv_prog_NMEDIT
5946 if test -n "$NMEDIT"; then
5947 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
5948 $as_echo "$NMEDIT" >&6; }
5949 else
5950 { $as_echo "$as_me:$LINENO: result: no" >&5
5951 $as_echo "no" >&6; }
5952 fi
5953
5954
5955 fi
5956 if test -z "$ac_cv_prog_NMEDIT"; then
5957 ac_ct_NMEDIT=$NMEDIT
5958 # Extract the first word of "nmedit", so it can be a program name with args.
5959 set dummy nmedit; ac_word=$2
5960 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5961 $as_echo_n "checking for $ac_word... " >&6; }
5962 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5963 $as_echo_n "(cached) " >&6
5964 else
5965 if test -n "$ac_ct_NMEDIT"; then
5966 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5967 else
5968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969 for as_dir in $PATH
5970 do
5971 IFS=$as_save_IFS
5972 test -z "$as_dir" && as_dir=.
5973 for ac_exec_ext in '' $ac_executable_extensions; do
5974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5975 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5976 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5977 break 2
5978 fi
5979 done
5980 done
5981 IFS=$as_save_IFS
5982
5983 fi
5984 fi
5985 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5986 if test -n "$ac_ct_NMEDIT"; then
5987 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5988 $as_echo "$ac_ct_NMEDIT" >&6; }
5989 else
5990 { $as_echo "$as_me:$LINENO: result: no" >&5
5991 $as_echo "no" >&6; }
5992 fi
5993
5994 if test "x$ac_ct_NMEDIT" = x; then
5995 NMEDIT=":"
5996 else
5997 case $cross_compiling:$ac_tool_warned in
5998 yes:)
5999 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6001 ac_tool_warned=yes ;;
6002 esac
6003 NMEDIT=$ac_ct_NMEDIT
6004 fi
6005 else
6006 NMEDIT="$ac_cv_prog_NMEDIT"
6007 fi
6008
6009 if test -n "$ac_tool_prefix"; then
6010 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6011 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6012 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6013 $as_echo_n "checking for $ac_word... " >&6; }
6014 if test "${ac_cv_prog_LIPO+set}" = set; then
6015 $as_echo_n "(cached) " >&6
6016 else
6017 if test -n "$LIPO"; then
6018 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6019 else
6020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6021 for as_dir in $PATH
6022 do
6023 IFS=$as_save_IFS
6024 test -z "$as_dir" && as_dir=.
6025 for ac_exec_ext in '' $ac_executable_extensions; do
6026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6027 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6028 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6029 break 2
6030 fi
6031 done
6032 done
6033 IFS=$as_save_IFS
6034
6035 fi
6036 fi
6037 LIPO=$ac_cv_prog_LIPO
6038 if test -n "$LIPO"; then
6039 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6040 $as_echo "$LIPO" >&6; }
6041 else
6042 { $as_echo "$as_me:$LINENO: result: no" >&5
6043 $as_echo "no" >&6; }
6044 fi
6045
6046
6047 fi
6048 if test -z "$ac_cv_prog_LIPO"; then
6049 ac_ct_LIPO=$LIPO
6050 # Extract the first word of "lipo", so it can be a program name with args.
6051 set dummy lipo; ac_word=$2
6052 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6053 $as_echo_n "checking for $ac_word... " >&6; }
6054 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6055 $as_echo_n "(cached) " >&6
6056 else
6057 if test -n "$ac_ct_LIPO"; then
6058 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6059 else
6060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061 for as_dir in $PATH
6062 do
6063 IFS=$as_save_IFS
6064 test -z "$as_dir" && as_dir=.
6065 for ac_exec_ext in '' $ac_executable_extensions; do
6066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6067 ac_cv_prog_ac_ct_LIPO="lipo"
6068 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6069 break 2
6070 fi
6071 done
6072 done
6073 IFS=$as_save_IFS
6074
6075 fi
6076 fi
6077 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6078 if test -n "$ac_ct_LIPO"; then
6079 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6080 $as_echo "$ac_ct_LIPO" >&6; }
6081 else
6082 { $as_echo "$as_me:$LINENO: result: no" >&5
6083 $as_echo "no" >&6; }
6084 fi
6085
6086 if test "x$ac_ct_LIPO" = x; then
6087 LIPO=":"
6088 else
6089 case $cross_compiling:$ac_tool_warned in
6090 yes:)
6091 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6093 ac_tool_warned=yes ;;
6094 esac
6095 LIPO=$ac_ct_LIPO
6096 fi
6097 else
6098 LIPO="$ac_cv_prog_LIPO"
6099 fi
6100
6101 if test -n "$ac_tool_prefix"; then
6102 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6103 set dummy ${ac_tool_prefix}otool; ac_word=$2
6104 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6105 $as_echo_n "checking for $ac_word... " >&6; }
6106 if test "${ac_cv_prog_OTOOL+set}" = set; then
6107 $as_echo_n "(cached) " >&6
6108 else
6109 if test -n "$OTOOL"; then
6110 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6111 else
6112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113 for as_dir in $PATH
6114 do
6115 IFS=$as_save_IFS
6116 test -z "$as_dir" && as_dir=.
6117 for ac_exec_ext in '' $ac_executable_extensions; do
6118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6119 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6120 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6121 break 2
6122 fi
6123 done
6124 done
6125 IFS=$as_save_IFS
6126
6127 fi
6128 fi
6129 OTOOL=$ac_cv_prog_OTOOL
6130 if test -n "$OTOOL"; then
6131 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6132 $as_echo "$OTOOL" >&6; }
6133 else
6134 { $as_echo "$as_me:$LINENO: result: no" >&5
6135 $as_echo "no" >&6; }
6136 fi
6137
6138
6139 fi
6140 if test -z "$ac_cv_prog_OTOOL"; then
6141 ac_ct_OTOOL=$OTOOL
6142 # Extract the first word of "otool", so it can be a program name with args.
6143 set dummy otool; ac_word=$2
6144 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6145 $as_echo_n "checking for $ac_word... " >&6; }
6146 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6147 $as_echo_n "(cached) " >&6
6148 else
6149 if test -n "$ac_ct_OTOOL"; then
6150 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6151 else
6152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153 for as_dir in $PATH
6154 do
6155 IFS=$as_save_IFS
6156 test -z "$as_dir" && as_dir=.
6157 for ac_exec_ext in '' $ac_executable_extensions; do
6158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6159 ac_cv_prog_ac_ct_OTOOL="otool"
6160 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6161 break 2
6162 fi
6163 done
6164 done
6165 IFS=$as_save_IFS
6166
6167 fi
6168 fi
6169 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6170 if test -n "$ac_ct_OTOOL"; then
6171 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6172 $as_echo "$ac_ct_OTOOL" >&6; }
6173 else
6174 { $as_echo "$as_me:$LINENO: result: no" >&5
6175 $as_echo "no" >&6; }
6176 fi
6177
6178 if test "x$ac_ct_OTOOL" = x; then
6179 OTOOL=":"
6180 else
6181 case $cross_compiling:$ac_tool_warned in
6182 yes:)
6183 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6185 ac_tool_warned=yes ;;
6186 esac
6187 OTOOL=$ac_ct_OTOOL
6188 fi
6189 else
6190 OTOOL="$ac_cv_prog_OTOOL"
6191 fi
6192
6193 if test -n "$ac_tool_prefix"; then
6194 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6195 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6196 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6197 $as_echo_n "checking for $ac_word... " >&6; }
6198 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6199 $as_echo_n "(cached) " >&6
6200 else
6201 if test -n "$OTOOL64"; then
6202 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6203 else
6204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205 for as_dir in $PATH
6206 do
6207 IFS=$as_save_IFS
6208 test -z "$as_dir" && as_dir=.
6209 for ac_exec_ext in '' $ac_executable_extensions; do
6210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6211 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6212 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6213 break 2
6214 fi
6215 done
6216 done
6217 IFS=$as_save_IFS
6218
6219 fi
6220 fi
6221 OTOOL64=$ac_cv_prog_OTOOL64
6222 if test -n "$OTOOL64"; then
6223 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6224 $as_echo "$OTOOL64" >&6; }
6225 else
6226 { $as_echo "$as_me:$LINENO: result: no" >&5
6227 $as_echo "no" >&6; }
6228 fi
6229
6230
6231 fi
6232 if test -z "$ac_cv_prog_OTOOL64"; then
6233 ac_ct_OTOOL64=$OTOOL64
6234 # Extract the first word of "otool64", so it can be a program name with args.
6235 set dummy otool64; ac_word=$2
6236 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6237 $as_echo_n "checking for $ac_word... " >&6; }
6238 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6239 $as_echo_n "(cached) " >&6
6240 else
6241 if test -n "$ac_ct_OTOOL64"; then
6242 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6243 else
6244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245 for as_dir in $PATH
6246 do
6247 IFS=$as_save_IFS
6248 test -z "$as_dir" && as_dir=.
6249 for ac_exec_ext in '' $ac_executable_extensions; do
6250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6251 ac_cv_prog_ac_ct_OTOOL64="otool64"
6252 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6253 break 2
6254 fi
6255 done
6256 done
6257 IFS=$as_save_IFS
6258
6259 fi
6260 fi
6261 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6262 if test -n "$ac_ct_OTOOL64"; then
6263 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6264 $as_echo "$ac_ct_OTOOL64" >&6; }
6265 else
6266 { $as_echo "$as_me:$LINENO: result: no" >&5
6267 $as_echo "no" >&6; }
6268 fi
6269
6270 if test "x$ac_ct_OTOOL64" = x; then
6271 OTOOL64=":"
6272 else
6273 case $cross_compiling:$ac_tool_warned in
6274 yes:)
6275 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6277 ac_tool_warned=yes ;;
6278 esac
6279 OTOOL64=$ac_ct_OTOOL64
6280 fi
6281 else
6282 OTOOL64="$ac_cv_prog_OTOOL64"
6283 fi
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6312 $as_echo_n "checking for -single_module linker flag... " >&6; }
6313 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6314 $as_echo_n "(cached) " >&6
6315 else
6316 lt_cv_apple_cc_single_mod=no
6317 if test -z "${LT_MULTI_MODULE}"; then
6318 # By default we will add the -single_module flag. You can override
6319 # by either setting the environment variable LT_MULTI_MODULE
6320 # non-empty at configure time, or by adding -multi_module to the
6321 # link flags.
6322 rm -rf libconftest.dylib*
6323 echo "int foo(void){return 1;}" > conftest.c
6324 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6325 -dynamiclib -Wl,-single_module conftest.c" >&5
6326 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6327 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6328 _lt_result=$?
6329 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6330 lt_cv_apple_cc_single_mod=yes
6331 else
6332 cat conftest.err >&5
6333 fi
6334 rm -rf libconftest.dylib*
6335 rm -f conftest.*
6336 fi
6337 fi
6338 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6339 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6340 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6341 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6342 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6343 $as_echo_n "(cached) " >&6
6344 else
6345 lt_cv_ld_exported_symbols_list=no
6346 save_LDFLAGS=$LDFLAGS
6347 echo "_main" > conftest.sym
6348 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6349 cat >conftest.$ac_ext <<_ACEOF
6350 /* confdefs.h. */
6351 _ACEOF
6352 cat confdefs.h >>conftest.$ac_ext
6353 cat >>conftest.$ac_ext <<_ACEOF
6354 /* end confdefs.h. */
6355
6356 int
6357 main ()
6358 {
6359
6360 ;
6361 return 0;
6362 }
6363 _ACEOF
6364 rm -f conftest.$ac_objext conftest$ac_exeext
6365 if { (ac_try="$ac_link"
6366 case "(($ac_try" in
6367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6368 *) ac_try_echo=$ac_try;;
6369 esac
6370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6371 $as_echo "$ac_try_echo") >&5
6372 (eval "$ac_link") 2>conftest.er1
6373 ac_status=$?
6374 grep -v '^ *+' conftest.er1 >conftest.err
6375 rm -f conftest.er1
6376 cat conftest.err >&5
6377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378 (exit $ac_status); } && {
6379 test -z "$ac_c_werror_flag" ||
6380 test ! -s conftest.err
6381 } && test -s conftest$ac_exeext && {
6382 test "$cross_compiling" = yes ||
6383 $as_test_x conftest$ac_exeext
6384 }; then
6385 lt_cv_ld_exported_symbols_list=yes
6386 else
6387 $as_echo "$as_me: failed program was:" >&5
6388 sed 's/^/| /' conftest.$ac_ext >&5
6389
6390 lt_cv_ld_exported_symbols_list=no
6391 fi
6392
6393 rm -rf conftest.dSYM
6394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6395 conftest$ac_exeext conftest.$ac_ext
6396 LDFLAGS="$save_LDFLAGS"
6397
6398 fi
6399 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6400 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6401 case $host_os in
6402 rhapsody* | darwin1.[012])
6403 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6404 darwin1.*)
6405 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6406 darwin*) # darwin 5.x on
6407 # if running on 10.5 or later, the deployment target defaults
6408 # to the OS version, if on x86, and 10.4, the deployment
6409 # target defaults to 10.4. Don't you love it?
6410 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6411 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6412 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6413 10.[012]*)
6414 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6415 10.*)
6416 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6417 esac
6418 ;;
6419 esac
6420 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6421 _lt_dar_single_mod='$single_module'
6422 fi
6423 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6424 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6425 else
6426 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6427 fi
6428 if test "$DSYMUTIL" != ":"; then
6429 _lt_dsymutil='~$DSYMUTIL $lib || :'
6430 else
6431 _lt_dsymutil=
6432 fi
6433 ;;
6434 esac
6435
6436 ac_ext=c
6437 ac_cpp='$CPP $CPPFLAGS'
6438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6441 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6442 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6443 # On Suns, sometimes $CPP names a directory.
6444 if test -n "$CPP" && test -d "$CPP"; then
6445 CPP=
6446 fi
6447 if test -z "$CPP"; then
6448 if test "${ac_cv_prog_CPP+set}" = set; then
6449 $as_echo_n "(cached) " >&6
6450 else
6451 # Double quotes because CPP needs to be expanded
6452 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6453 do
6454 ac_preproc_ok=false
6455 for ac_c_preproc_warn_flag in '' yes
6456 do
6457 # Use a header file that comes with gcc, so configuring glibc
6458 # with a fresh cross-compiler works.
6459 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6460 # <limits.h> exists even on freestanding compilers.
6461 # On the NeXT, cc -E runs the code through the compiler's parser,
6462 # not just through cpp. "Syntax error" is here to catch this case.
6463 cat >conftest.$ac_ext <<_ACEOF
6464 /* confdefs.h. */
6465 _ACEOF
6466 cat confdefs.h >>conftest.$ac_ext
6467 cat >>conftest.$ac_ext <<_ACEOF
6468 /* end confdefs.h. */
6469 #ifdef __STDC__
6470 # include <limits.h>
6471 #else
6472 # include <assert.h>
6473 #endif
6474 Syntax error
6475 _ACEOF
6476 if { (ac_try="$ac_cpp conftest.$ac_ext"
6477 case "(($ac_try" in
6478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6479 *) ac_try_echo=$ac_try;;
6480 esac
6481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6482 $as_echo "$ac_try_echo") >&5
6483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6484 ac_status=$?
6485 grep -v '^ *+' conftest.er1 >conftest.err
6486 rm -f conftest.er1
6487 cat conftest.err >&5
6488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); } >/dev/null && {
6490 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6491 test ! -s conftest.err
6492 }; then
6493 :
6494 else
6495 $as_echo "$as_me: failed program was:" >&5
6496 sed 's/^/| /' conftest.$ac_ext >&5
6497
6498 # Broken: fails on valid input.
6499 continue
6500 fi
6501
6502 rm -f conftest.err conftest.$ac_ext
6503
6504 # OK, works on sane cases. Now check whether nonexistent headers
6505 # can be detected and how.
6506 cat >conftest.$ac_ext <<_ACEOF
6507 /* confdefs.h. */
6508 _ACEOF
6509 cat confdefs.h >>conftest.$ac_ext
6510 cat >>conftest.$ac_ext <<_ACEOF
6511 /* end confdefs.h. */
6512 #include <ac_nonexistent.h>
6513 _ACEOF
6514 if { (ac_try="$ac_cpp conftest.$ac_ext"
6515 case "(($ac_try" in
6516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6517 *) ac_try_echo=$ac_try;;
6518 esac
6519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6520 $as_echo "$ac_try_echo") >&5
6521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6522 ac_status=$?
6523 grep -v '^ *+' conftest.er1 >conftest.err
6524 rm -f conftest.er1
6525 cat conftest.err >&5
6526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); } >/dev/null && {
6528 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6529 test ! -s conftest.err
6530 }; then
6531 # Broken: success on invalid input.
6532 continue
6533 else
6534 $as_echo "$as_me: failed program was:" >&5
6535 sed 's/^/| /' conftest.$ac_ext >&5
6536
6537 # Passes both tests.
6538 ac_preproc_ok=:
6539 break
6540 fi
6541
6542 rm -f conftest.err conftest.$ac_ext
6543
6544 done
6545 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6546 rm -f conftest.err conftest.$ac_ext
6547 if $ac_preproc_ok; then
6548 break
6549 fi
6550
6551 done
6552 ac_cv_prog_CPP=$CPP
6553
6554 fi
6555 CPP=$ac_cv_prog_CPP
6556 else
6557 ac_cv_prog_CPP=$CPP
6558 fi
6559 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6560 $as_echo "$CPP" >&6; }
6561 ac_preproc_ok=false
6562 for ac_c_preproc_warn_flag in '' yes
6563 do
6564 # Use a header file that comes with gcc, so configuring glibc
6565 # with a fresh cross-compiler works.
6566 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6567 # <limits.h> exists even on freestanding compilers.
6568 # On the NeXT, cc -E runs the code through the compiler's parser,
6569 # not just through cpp. "Syntax error" is here to catch this case.
6570 cat >conftest.$ac_ext <<_ACEOF
6571 /* confdefs.h. */
6572 _ACEOF
6573 cat confdefs.h >>conftest.$ac_ext
6574 cat >>conftest.$ac_ext <<_ACEOF
6575 /* end confdefs.h. */
6576 #ifdef __STDC__
6577 # include <limits.h>
6578 #else
6579 # include <assert.h>
6580 #endif
6581 Syntax error
6582 _ACEOF
6583 if { (ac_try="$ac_cpp conftest.$ac_ext"
6584 case "(($ac_try" in
6585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6586 *) ac_try_echo=$ac_try;;
6587 esac
6588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6589 $as_echo "$ac_try_echo") >&5
6590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6591 ac_status=$?
6592 grep -v '^ *+' conftest.er1 >conftest.err
6593 rm -f conftest.er1
6594 cat conftest.err >&5
6595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); } >/dev/null && {
6597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6598 test ! -s conftest.err
6599 }; then
6600 :
6601 else
6602 $as_echo "$as_me: failed program was:" >&5
6603 sed 's/^/| /' conftest.$ac_ext >&5
6604
6605 # Broken: fails on valid input.
6606 continue
6607 fi
6608
6609 rm -f conftest.err conftest.$ac_ext
6610
6611 # OK, works on sane cases. Now check whether nonexistent headers
6612 # can be detected and how.
6613 cat >conftest.$ac_ext <<_ACEOF
6614 /* confdefs.h. */
6615 _ACEOF
6616 cat confdefs.h >>conftest.$ac_ext
6617 cat >>conftest.$ac_ext <<_ACEOF
6618 /* end confdefs.h. */
6619 #include <ac_nonexistent.h>
6620 _ACEOF
6621 if { (ac_try="$ac_cpp conftest.$ac_ext"
6622 case "(($ac_try" in
6623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6624 *) ac_try_echo=$ac_try;;
6625 esac
6626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6627 $as_echo "$ac_try_echo") >&5
6628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6629 ac_status=$?
6630 grep -v '^ *+' conftest.er1 >conftest.err
6631 rm -f conftest.er1
6632 cat conftest.err >&5
6633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); } >/dev/null && {
6635 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6636 test ! -s conftest.err
6637 }; then
6638 # Broken: success on invalid input.
6639 continue
6640 else
6641 $as_echo "$as_me: failed program was:" >&5
6642 sed 's/^/| /' conftest.$ac_ext >&5
6643
6644 # Passes both tests.
6645 ac_preproc_ok=:
6646 break
6647 fi
6648
6649 rm -f conftest.err conftest.$ac_ext
6650
6651 done
6652 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6653 rm -f conftest.err conftest.$ac_ext
6654 if $ac_preproc_ok; then
6655 :
6656 else
6657 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6659 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6660 See \`config.log' for more details." >&5
6661 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6662 See \`config.log' for more details." >&2;}
6663 { (exit 1); exit 1; }; }; }
6664 fi
6665
6666 ac_ext=c
6667 ac_cpp='$CPP $CPPFLAGS'
6668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6671
6672
6673 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6674 $as_echo_n "checking for ANSI C header files... " >&6; }
6675 if test "${ac_cv_header_stdc+set}" = set; then
6676 $as_echo_n "(cached) " >&6
6677 else
6678 cat >conftest.$ac_ext <<_ACEOF
6679 /* confdefs.h. */
6680 _ACEOF
6681 cat confdefs.h >>conftest.$ac_ext
6682 cat >>conftest.$ac_ext <<_ACEOF
6683 /* end confdefs.h. */
6684 #include <stdlib.h>
6685 #include <stdarg.h>
6686 #include <string.h>
6687 #include <float.h>
6688
6689 int
6690 main ()
6691 {
6692
6693 ;
6694 return 0;
6695 }
6696 _ACEOF
6697 rm -f conftest.$ac_objext
6698 if { (ac_try="$ac_compile"
6699 case "(($ac_try" in
6700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6701 *) ac_try_echo=$ac_try;;
6702 esac
6703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6704 $as_echo "$ac_try_echo") >&5
6705 (eval "$ac_compile") 2>conftest.er1
6706 ac_status=$?
6707 grep -v '^ *+' conftest.er1 >conftest.err
6708 rm -f conftest.er1
6709 cat conftest.err >&5
6710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711 (exit $ac_status); } && {
6712 test -z "$ac_c_werror_flag" ||
6713 test ! -s conftest.err
6714 } && test -s conftest.$ac_objext; then
6715 ac_cv_header_stdc=yes
6716 else
6717 $as_echo "$as_me: failed program was:" >&5
6718 sed 's/^/| /' conftest.$ac_ext >&5
6719
6720 ac_cv_header_stdc=no
6721 fi
6722
6723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6724
6725 if test $ac_cv_header_stdc = yes; then
6726 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6727 cat >conftest.$ac_ext <<_ACEOF
6728 /* confdefs.h. */
6729 _ACEOF
6730 cat confdefs.h >>conftest.$ac_ext
6731 cat >>conftest.$ac_ext <<_ACEOF
6732 /* end confdefs.h. */
6733 #include <string.h>
6734
6735 _ACEOF
6736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6737 $EGREP "memchr" >/dev/null 2>&1; then
6738 :
6739 else
6740 ac_cv_header_stdc=no
6741 fi
6742 rm -f conftest*
6743
6744 fi
6745
6746 if test $ac_cv_header_stdc = yes; then
6747 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6748 cat >conftest.$ac_ext <<_ACEOF
6749 /* confdefs.h. */
6750 _ACEOF
6751 cat confdefs.h >>conftest.$ac_ext
6752 cat >>conftest.$ac_ext <<_ACEOF
6753 /* end confdefs.h. */
6754 #include <stdlib.h>
6755
6756 _ACEOF
6757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6758 $EGREP "free" >/dev/null 2>&1; then
6759 :
6760 else
6761 ac_cv_header_stdc=no
6762 fi
6763 rm -f conftest*
6764
6765 fi
6766
6767 if test $ac_cv_header_stdc = yes; then
6768 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6769 if test "$cross_compiling" = yes; then
6770 :
6771 else
6772 cat >conftest.$ac_ext <<_ACEOF
6773 /* confdefs.h. */
6774 _ACEOF
6775 cat confdefs.h >>conftest.$ac_ext
6776 cat >>conftest.$ac_ext <<_ACEOF
6777 /* end confdefs.h. */
6778 #include <ctype.h>
6779 #include <stdlib.h>
6780 #if ((' ' & 0x0FF) == 0x020)
6781 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6782 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6783 #else
6784 # define ISLOWER(c) \
6785 (('a' <= (c) && (c) <= 'i') \
6786 || ('j' <= (c) && (c) <= 'r') \
6787 || ('s' <= (c) && (c) <= 'z'))
6788 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6789 #endif
6790
6791 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6792 int
6793 main ()
6794 {
6795 int i;
6796 for (i = 0; i < 256; i++)
6797 if (XOR (islower (i), ISLOWER (i))
6798 || toupper (i) != TOUPPER (i))
6799 return 2;
6800 return 0;
6801 }
6802 _ACEOF
6803 rm -f conftest$ac_exeext
6804 if { (ac_try="$ac_link"
6805 case "(($ac_try" in
6806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6807 *) ac_try_echo=$ac_try;;
6808 esac
6809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6810 $as_echo "$ac_try_echo") >&5
6811 (eval "$ac_link") 2>&5
6812 ac_status=$?
6813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6815 { (case "(($ac_try" in
6816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6817 *) ac_try_echo=$ac_try;;
6818 esac
6819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6820 $as_echo "$ac_try_echo") >&5
6821 (eval "$ac_try") 2>&5
6822 ac_status=$?
6823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); }; }; then
6825 :
6826 else
6827 $as_echo "$as_me: program exited with status $ac_status" >&5
6828 $as_echo "$as_me: failed program was:" >&5
6829 sed 's/^/| /' conftest.$ac_ext >&5
6830
6831 ( exit $ac_status )
6832 ac_cv_header_stdc=no
6833 fi
6834 rm -rf conftest.dSYM
6835 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6836 fi
6837
6838
6839 fi
6840 fi
6841 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6842 $as_echo "$ac_cv_header_stdc" >&6; }
6843 if test $ac_cv_header_stdc = yes; then
6844
6845 cat >>confdefs.h <<\_ACEOF
6846 #define STDC_HEADERS 1
6847 _ACEOF
6848
6849 fi
6850
6851 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6862 inttypes.h stdint.h unistd.h
6863 do
6864 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6865 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6866 $as_echo_n "checking for $ac_header... " >&6; }
6867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6868 $as_echo_n "(cached) " >&6
6869 else
6870 cat >conftest.$ac_ext <<_ACEOF
6871 /* confdefs.h. */
6872 _ACEOF
6873 cat confdefs.h >>conftest.$ac_ext
6874 cat >>conftest.$ac_ext <<_ACEOF
6875 /* end confdefs.h. */
6876 $ac_includes_default
6877
6878 #include <$ac_header>
6879 _ACEOF
6880 rm -f conftest.$ac_objext
6881 if { (ac_try="$ac_compile"
6882 case "(($ac_try" in
6883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6884 *) ac_try_echo=$ac_try;;
6885 esac
6886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6887 $as_echo "$ac_try_echo") >&5
6888 (eval "$ac_compile") 2>conftest.er1
6889 ac_status=$?
6890 grep -v '^ *+' conftest.er1 >conftest.err
6891 rm -f conftest.er1
6892 cat conftest.err >&5
6893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); } && {
6895 test -z "$ac_c_werror_flag" ||
6896 test ! -s conftest.err
6897 } && test -s conftest.$ac_objext; then
6898 eval "$as_ac_Header=yes"
6899 else
6900 $as_echo "$as_me: failed program was:" >&5
6901 sed 's/^/| /' conftest.$ac_ext >&5
6902
6903 eval "$as_ac_Header=no"
6904 fi
6905
6906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6907 fi
6908 ac_res=`eval 'as_val=${'$as_ac_Header'}
6909 $as_echo "$as_val"'`
6910 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6911 $as_echo "$ac_res" >&6; }
6912 as_val=`eval 'as_val=${'$as_ac_Header'}
6913 $as_echo "$as_val"'`
6914 if test "x$as_val" = x""yes; then
6915 cat >>confdefs.h <<_ACEOF
6916 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6917 _ACEOF
6918
6919 fi
6920
6921 done
6922
6923
6924
6925 for ac_header in dlfcn.h
6926 do
6927 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6928 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6929 $as_echo_n "checking for $ac_header... " >&6; }
6930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6931 $as_echo_n "(cached) " >&6
6932 else
6933 cat >conftest.$ac_ext <<_ACEOF
6934 /* confdefs.h. */
6935 _ACEOF
6936 cat confdefs.h >>conftest.$ac_ext
6937 cat >>conftest.$ac_ext <<_ACEOF
6938 /* end confdefs.h. */
6939 $ac_includes_default
6940
6941 #include <$ac_header>
6942 _ACEOF
6943 rm -f conftest.$ac_objext
6944 if { (ac_try="$ac_compile"
6945 case "(($ac_try" in
6946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6947 *) ac_try_echo=$ac_try;;
6948 esac
6949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6950 $as_echo "$ac_try_echo") >&5
6951 (eval "$ac_compile") 2>conftest.er1
6952 ac_status=$?
6953 grep -v '^ *+' conftest.er1 >conftest.err
6954 rm -f conftest.er1
6955 cat conftest.err >&5
6956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); } && {
6958 test -z "$ac_c_werror_flag" ||
6959 test ! -s conftest.err
6960 } && test -s conftest.$ac_objext; then
6961 eval "$as_ac_Header=yes"
6962 else
6963 $as_echo "$as_me: failed program was:" >&5
6964 sed 's/^/| /' conftest.$ac_ext >&5
6965
6966 eval "$as_ac_Header=no"
6967 fi
6968
6969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6970 fi
6971 ac_res=`eval 'as_val=${'$as_ac_Header'}
6972 $as_echo "$as_val"'`
6973 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6974 $as_echo "$ac_res" >&6; }
6975 as_val=`eval 'as_val=${'$as_ac_Header'}
6976 $as_echo "$as_val"'`
6977 if test "x$as_val" = x""yes; then
6978 cat >>confdefs.h <<_ACEOF
6979 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6980 _ACEOF
6981
6982 fi
6983
6984 done
6985
6986
6987
6988 # Set options
6989
6990
6991
6992 enable_dlopen=no
6993
6994
6995 enable_win32_dll=no
6996
6997
6998
6999
7000
7001 # Check whether --with-pic was given.
7002 if test "${with_pic+set}" = set; then
7003 withval=$with_pic; pic_mode="$withval"
7004 else
7005 pic_mode=default
7006 fi
7007
7008
7009 test -z "$pic_mode" && pic_mode=default
7010
7011
7012
7013
7014
7015
7016
7017 # Check whether --enable-fast-install was given.
7018 if test "${enable_fast_install+set}" = set; then
7019 enableval=$enable_fast_install; p=${PACKAGE-default}
7020 case $enableval in
7021 yes) enable_fast_install=yes ;;
7022 no) enable_fast_install=no ;;
7023 *)
7024 enable_fast_install=no
7025 # Look at the argument we got. We use all the common list separators.
7026 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7027 for pkg in $enableval; do
7028 IFS="$lt_save_ifs"
7029 if test "X$pkg" = "X$p"; then
7030 enable_fast_install=yes
7031 fi
7032 done
7033 IFS="$lt_save_ifs"
7034 ;;
7035 esac
7036 else
7037 enable_fast_install=yes
7038 fi
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050 # This can be used to rebuild libtool when needed
7051 LIBTOOL_DEPS="$ltmain"
7052
7053 # Always use our own libtool.
7054 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080 test -z "$LN_S" && LN_S="ln -s"
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095 if test -n "${ZSH_VERSION+set}" ; then
7096 setopt NO_GLOB_SUBST
7097 fi
7098
7099 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7100 $as_echo_n "checking for objdir... " >&6; }
7101 if test "${lt_cv_objdir+set}" = set; then
7102 $as_echo_n "(cached) " >&6
7103 else
7104 rm -f .libs 2>/dev/null
7105 mkdir .libs 2>/dev/null
7106 if test -d .libs; then
7107 lt_cv_objdir=.libs
7108 else
7109 # MS-DOS does not allow filenames that begin with a dot.
7110 lt_cv_objdir=_libs
7111 fi
7112 rmdir .libs 2>/dev/null
7113 fi
7114 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7115 $as_echo "$lt_cv_objdir" >&6; }
7116 objdir=$lt_cv_objdir
7117
7118
7119
7120
7121
7122 cat >>confdefs.h <<_ACEOF
7123 #define LT_OBJDIR "$lt_cv_objdir/"
7124 _ACEOF
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142 case $host_os in
7143 aix3*)
7144 # AIX sometimes has problems with the GCC collect2 program. For some
7145 # reason, if we set the COLLECT_NAMES environment variable, the problems
7146 # vanish in a puff of smoke.
7147 if test "X${COLLECT_NAMES+set}" != Xset; then
7148 COLLECT_NAMES=
7149 export COLLECT_NAMES
7150 fi
7151 ;;
7152 esac
7153
7154 # Sed substitution that helps us do robust quoting. It backslashifies
7155 # metacharacters that are still active within double-quoted strings.
7156 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7157
7158 # Same as above, but do not quote variable references.
7159 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7160
7161 # Sed substitution to delay expansion of an escaped shell variable in a
7162 # double_quote_subst'ed string.
7163 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7164
7165 # Sed substitution to delay expansion of an escaped single quote.
7166 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7167
7168 # Sed substitution to avoid accidental globbing in evaled expressions
7169 no_glob_subst='s/\*/\\\*/g'
7170
7171 # Global variables:
7172 ofile=libtool
7173 can_build_shared=yes
7174
7175 # All known linkers require a `.a' archive for static linking (except MSVC,
7176 # which needs '.lib').
7177 libext=a
7178
7179 with_gnu_ld="$lt_cv_prog_gnu_ld"
7180
7181 old_CC="$CC"
7182 old_CFLAGS="$CFLAGS"
7183
7184 # Set sane defaults for various variables
7185 test -z "$CC" && CC=cc
7186 test -z "$LTCC" && LTCC=$CC
7187 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7188 test -z "$LD" && LD=ld
7189 test -z "$ac_objext" && ac_objext=o
7190
7191 for cc_temp in $compiler""; do
7192 case $cc_temp in
7193 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7194 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7195 \-*) ;;
7196 *) break;;
7197 esac
7198 done
7199 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7200
7201
7202 # Only perform the check for file, if the check method requires it
7203 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7204 case $deplibs_check_method in
7205 file_magic*)
7206 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7207 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7208 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7209 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7210 $as_echo_n "(cached) " >&6
7211 else
7212 case $MAGIC_CMD in
7213 [\\/*] | ?:[\\/]*)
7214 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7215 ;;
7216 *)
7217 lt_save_MAGIC_CMD="$MAGIC_CMD"
7218 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7219 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7220 for ac_dir in $ac_dummy; do
7221 IFS="$lt_save_ifs"
7222 test -z "$ac_dir" && ac_dir=.
7223 if test -f $ac_dir/${ac_tool_prefix}file; then
7224 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7225 if test -n "$file_magic_test_file"; then
7226 case $deplibs_check_method in
7227 "file_magic "*)
7228 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7229 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7230 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7231 $EGREP "$file_magic_regex" > /dev/null; then
7232 :
7233 else
7234 cat <<_LT_EOF 1>&2
7235
7236 *** Warning: the command libtool uses to detect shared libraries,
7237 *** $file_magic_cmd, produces output that libtool cannot recognize.
7238 *** The result is that libtool may fail to recognize shared libraries
7239 *** as such. This will affect the creation of libtool libraries that
7240 *** depend on shared libraries, but programs linked with such libtool
7241 *** libraries will work regardless of this problem. Nevertheless, you
7242 *** may want to report the problem to your system manager and/or to
7243 *** [email protected]
7244
7245 _LT_EOF
7246 fi ;;
7247 esac
7248 fi
7249 break
7250 fi
7251 done
7252 IFS="$lt_save_ifs"
7253 MAGIC_CMD="$lt_save_MAGIC_CMD"
7254 ;;
7255 esac
7256 fi
7257
7258 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7259 if test -n "$MAGIC_CMD"; then
7260 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7261 $as_echo "$MAGIC_CMD" >&6; }
7262 else
7263 { $as_echo "$as_me:$LINENO: result: no" >&5
7264 $as_echo "no" >&6; }
7265 fi
7266
7267
7268
7269
7270
7271 if test -z "$lt_cv_path_MAGIC_CMD"; then
7272 if test -n "$ac_tool_prefix"; then
7273 { $as_echo "$as_me:$LINENO: checking for file" >&5
7274 $as_echo_n "checking for file... " >&6; }
7275 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7276 $as_echo_n "(cached) " >&6
7277 else
7278 case $MAGIC_CMD in
7279 [\\/*] | ?:[\\/]*)
7280 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7281 ;;
7282 *)
7283 lt_save_MAGIC_CMD="$MAGIC_CMD"
7284 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7285 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7286 for ac_dir in $ac_dummy; do
7287 IFS="$lt_save_ifs"
7288 test -z "$ac_dir" && ac_dir=.
7289 if test -f $ac_dir/file; then
7290 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7291 if test -n "$file_magic_test_file"; then
7292 case $deplibs_check_method in
7293 "file_magic "*)
7294 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7295 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7296 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7297 $EGREP "$file_magic_regex" > /dev/null; then
7298 :
7299 else
7300 cat <<_LT_EOF 1>&2
7301
7302 *** Warning: the command libtool uses to detect shared libraries,
7303 *** $file_magic_cmd, produces output that libtool cannot recognize.
7304 *** The result is that libtool may fail to recognize shared libraries
7305 *** as such. This will affect the creation of libtool libraries that
7306 *** depend on shared libraries, but programs linked with such libtool
7307 *** libraries will work regardless of this problem. Nevertheless, you
7308 *** may want to report the problem to your system manager and/or to
7309 *** [email protected]
7310
7311 _LT_EOF
7312 fi ;;
7313 esac
7314 fi
7315 break
7316 fi
7317 done
7318 IFS="$lt_save_ifs"
7319 MAGIC_CMD="$lt_save_MAGIC_CMD"
7320 ;;
7321 esac
7322 fi
7323
7324 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7325 if test -n "$MAGIC_CMD"; then
7326 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7327 $as_echo "$MAGIC_CMD" >&6; }
7328 else
7329 { $as_echo "$as_me:$LINENO: result: no" >&5
7330 $as_echo "no" >&6; }
7331 fi
7332
7333
7334 else
7335 MAGIC_CMD=:
7336 fi
7337 fi
7338
7339 fi
7340 ;;
7341 esac
7342
7343 # Use C for the default configuration in the libtool script
7344
7345 lt_save_CC="$CC"
7346 ac_ext=c
7347 ac_cpp='$CPP $CPPFLAGS'
7348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7351
7352
7353 # Source file extension for C test sources.
7354 ac_ext=c
7355
7356 # Object file extension for compiled C test sources.
7357 objext=o
7358 objext=$objext
7359
7360 # Code to be used in simple compile tests
7361 lt_simple_compile_test_code="int some_variable = 0;"
7362
7363 # Code to be used in simple link tests
7364 lt_simple_link_test_code='int main(){return(0);}'
7365
7366
7367
7368
7369
7370
7371
7372 # If no C compiler was specified, use CC.
7373 LTCC=${LTCC-"$CC"}
7374
7375 # If no C compiler flags were specified, use CFLAGS.
7376 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7377
7378 # Allow CC to be a program name with arguments.
7379 compiler=$CC
7380
7381 # Save the default compiler, since it gets overwritten when the other
7382 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7383 compiler_DEFAULT=$CC
7384
7385 # save warnings/boilerplate of simple test code
7386 ac_outfile=conftest.$ac_objext
7387 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7388 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7389 _lt_compiler_boilerplate=`cat conftest.err`
7390 $RM conftest*
7391
7392 ac_outfile=conftest.$ac_objext
7393 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7394 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7395 _lt_linker_boilerplate=`cat conftest.err`
7396 $RM -r conftest*
7397
7398
7399 if test -n "$compiler"; then
7400
7401 lt_prog_compiler_no_builtin_flag=
7402
7403 if test "$GCC" = yes; then
7404 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7405
7406 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7407 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7408 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7409 $as_echo_n "(cached) " >&6
7410 else
7411 lt_cv_prog_compiler_rtti_exceptions=no
7412 ac_outfile=conftest.$ac_objext
7413 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7414 lt_compiler_flag="-fno-rtti -fno-exceptions"
7415 # Insert the option either (1) after the last *FLAGS variable, or
7416 # (2) before a word containing "conftest.", or (3) at the end.
7417 # Note that $ac_compile itself does not contain backslashes and begins
7418 # with a dollar sign (not a hyphen), so the echo should work correctly.
7419 # The option is referenced via a variable to avoid confusing sed.
7420 lt_compile=`echo "$ac_compile" | $SED \
7421 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7422 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7423 -e 's:$: $lt_compiler_flag:'`
7424 (eval echo "\"\$as_me:7424: $lt_compile\"" >&5)
7425 (eval "$lt_compile" 2>conftest.err)
7426 ac_status=$?
7427 cat conftest.err >&5
7428 echo "$as_me:7428: \$? = $ac_status" >&5
7429 if (exit $ac_status) && test -s "$ac_outfile"; then
7430 # The compiler can only warn and ignore the option if not recognized
7431 # So say no if there are warnings other than the usual output.
7432 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7433 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7434 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7435 lt_cv_prog_compiler_rtti_exceptions=yes
7436 fi
7437 fi
7438 $RM conftest*
7439
7440 fi
7441 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7442 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7443
7444 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7445 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7446 else
7447 :
7448 fi
7449
7450 fi
7451
7452
7453
7454
7455
7456
7457 lt_prog_compiler_wl=
7458 lt_prog_compiler_pic=
7459 lt_prog_compiler_static=
7460
7461 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7462 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7463
7464 if test "$GCC" = yes; then
7465 lt_prog_compiler_wl='-Wl,'
7466 lt_prog_compiler_static='-static'
7467
7468 case $host_os in
7469 aix*)
7470 # All AIX code is PIC.
7471 if test "$host_cpu" = ia64; then
7472 # AIX 5 now supports IA64 processor
7473 lt_prog_compiler_static='-Bstatic'
7474 fi
7475 ;;
7476
7477 amigaos*)
7478 case $host_cpu in
7479 powerpc)
7480 # see comment about AmigaOS4 .so support
7481 lt_prog_compiler_pic='-fPIC'
7482 ;;
7483 m68k)
7484 # FIXME: we need at least 68020 code to build shared libraries, but
7485 # adding the `-m68020' flag to GCC prevents building anything better,
7486 # like `-m68040'.
7487 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7488 ;;
7489 esac
7490 ;;
7491
7492 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7493 # PIC is the default for these OSes.
7494 ;;
7495
7496 mingw* | cygwin* | pw32* | os2* | cegcc*)
7497 # This hack is so that the source file can tell whether it is being
7498 # built for inclusion in a dll (and should export symbols for example).
7499 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7500 # (--disable-auto-import) libraries
7501 lt_prog_compiler_pic='-DDLL_EXPORT'
7502 ;;
7503
7504 darwin* | rhapsody*)
7505 # PIC is the default on this platform
7506 # Common symbols not allowed in MH_DYLIB files
7507 lt_prog_compiler_pic='-fno-common'
7508 ;;
7509
7510 hpux*)
7511 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7512 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7513 # sets the default TLS model and affects inlining.
7514 case $host_cpu in
7515 hppa*64*)
7516 # +Z the default
7517 ;;
7518 *)
7519 lt_prog_compiler_pic='-fPIC'
7520 ;;
7521 esac
7522 ;;
7523
7524 interix[3-9]*)
7525 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7526 # Instead, we relocate shared libraries at runtime.
7527 ;;
7528
7529 msdosdjgpp*)
7530 # Just because we use GCC doesn't mean we suddenly get shared libraries
7531 # on systems that don't support them.
7532 lt_prog_compiler_can_build_shared=no
7533 enable_shared=no
7534 ;;
7535
7536 *nto* | *qnx*)
7537 # QNX uses GNU C++, but need to define -shared option too, otherwise
7538 # it will coredump.
7539 lt_prog_compiler_pic='-fPIC -shared'
7540 ;;
7541
7542 sysv4*MP*)
7543 if test -d /usr/nec; then
7544 lt_prog_compiler_pic=-Kconform_pic
7545 fi
7546 ;;
7547
7548 *)
7549 lt_prog_compiler_pic='-fPIC'
7550 ;;
7551 esac
7552 else
7553 # PORTME Check for flag to pass linker flags through the system compiler.
7554 case $host_os in
7555 aix*)
7556 lt_prog_compiler_wl='-Wl,'
7557 if test "$host_cpu" = ia64; then
7558 # AIX 5 now supports IA64 processor
7559 lt_prog_compiler_static='-Bstatic'
7560 else
7561 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7562 fi
7563 ;;
7564
7565 mingw* | cygwin* | pw32* | os2* | cegcc*)
7566 # This hack is so that the source file can tell whether it is being
7567 # built for inclusion in a dll (and should export symbols for example).
7568 lt_prog_compiler_pic='-DDLL_EXPORT'
7569 ;;
7570
7571 hpux9* | hpux10* | hpux11*)
7572 lt_prog_compiler_wl='-Wl,'
7573 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7574 # not for PA HP-UX.
7575 case $host_cpu in
7576 hppa*64*|ia64*)
7577 # +Z the default
7578 ;;
7579 *)
7580 lt_prog_compiler_pic='+Z'
7581 ;;
7582 esac
7583 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7584 lt_prog_compiler_static='${wl}-a ${wl}archive'
7585 ;;
7586
7587 irix5* | irix6* | nonstopux*)
7588 lt_prog_compiler_wl='-Wl,'
7589 # PIC (with -KPIC) is the default.
7590 lt_prog_compiler_static='-non_shared'
7591 ;;
7592
7593 linux* | k*bsd*-gnu)
7594 case $cc_basename in
7595 # old Intel for x86_64 which still supported -KPIC.
7596 ecc*)
7597 lt_prog_compiler_wl='-Wl,'
7598 lt_prog_compiler_pic='-KPIC'
7599 lt_prog_compiler_static='-static'
7600 ;;
7601 # icc used to be incompatible with GCC.
7602 # ICC 10 doesn't accept -KPIC any more.
7603 icc* | ifort*)
7604 lt_prog_compiler_wl='-Wl,'
7605 lt_prog_compiler_pic='-fPIC'
7606 lt_prog_compiler_static='-static'
7607 ;;
7608 # Lahey Fortran 8.1.
7609 lf95*)
7610 lt_prog_compiler_wl='-Wl,'
7611 lt_prog_compiler_pic='--shared'
7612 lt_prog_compiler_static='--static'
7613 ;;
7614 pgcc* | pgf77* | pgf90* | pgf95*)
7615 # Portland Group compilers (*not* the Pentium gcc compiler,
7616 # which looks to be a dead project)
7617 lt_prog_compiler_wl='-Wl,'
7618 lt_prog_compiler_pic='-fpic'
7619 lt_prog_compiler_static='-Bstatic'
7620 ;;
7621 ccc*)
7622 lt_prog_compiler_wl='-Wl,'
7623 # All Alpha code is PIC.
7624 lt_prog_compiler_static='-non_shared'
7625 ;;
7626 xl*)
7627 # IBM XL C 8.0/Fortran 10.1 on PPC
7628 lt_prog_compiler_wl='-Wl,'
7629 lt_prog_compiler_pic='-qpic'
7630 lt_prog_compiler_static='-qstaticlink'
7631 ;;
7632 *)
7633 case `$CC -V 2>&1 | sed 5q` in
7634 *Sun\ C*)
7635 # Sun C 5.9
7636 lt_prog_compiler_pic='-KPIC'
7637 lt_prog_compiler_static='-Bstatic'
7638 lt_prog_compiler_wl='-Wl,'
7639 ;;
7640 *Sun\ F*)
7641 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7642 lt_prog_compiler_pic='-KPIC'
7643 lt_prog_compiler_static='-Bstatic'
7644 lt_prog_compiler_wl=''
7645 ;;
7646 esac
7647 ;;
7648 esac
7649 ;;
7650
7651 newsos6)
7652 lt_prog_compiler_pic='-KPIC'
7653 lt_prog_compiler_static='-Bstatic'
7654 ;;
7655
7656 *nto* | *qnx*)
7657 # QNX uses GNU C++, but need to define -shared option too, otherwise
7658 # it will coredump.
7659 lt_prog_compiler_pic='-fPIC -shared'
7660 ;;
7661
7662 osf3* | osf4* | osf5*)
7663 lt_prog_compiler_wl='-Wl,'
7664 # All OSF/1 code is PIC.
7665 lt_prog_compiler_static='-non_shared'
7666 ;;
7667
7668 rdos*)
7669 lt_prog_compiler_static='-non_shared'
7670 ;;
7671
7672 solaris*)
7673 lt_prog_compiler_pic='-KPIC'
7674 lt_prog_compiler_static='-Bstatic'
7675 case $cc_basename in
7676 f77* | f90* | f95*)
7677 lt_prog_compiler_wl='-Qoption ld ';;
7678 *)
7679 lt_prog_compiler_wl='-Wl,';;
7680 esac
7681 ;;
7682
7683 sunos4*)
7684 lt_prog_compiler_wl='-Qoption ld '
7685 lt_prog_compiler_pic='-PIC'
7686 lt_prog_compiler_static='-Bstatic'
7687 ;;
7688
7689 sysv4 | sysv4.2uw2* | sysv4.3*)
7690 lt_prog_compiler_wl='-Wl,'
7691 lt_prog_compiler_pic='-KPIC'
7692 lt_prog_compiler_static='-Bstatic'
7693 ;;
7694
7695 sysv4*MP*)
7696 if test -d /usr/nec ;then
7697 lt_prog_compiler_pic='-Kconform_pic'
7698 lt_prog_compiler_static='-Bstatic'
7699 fi
7700 ;;
7701
7702 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7703 lt_prog_compiler_wl='-Wl,'
7704 lt_prog_compiler_pic='-KPIC'
7705 lt_prog_compiler_static='-Bstatic'
7706 ;;
7707
7708 unicos*)
7709 lt_prog_compiler_wl='-Wl,'
7710 lt_prog_compiler_can_build_shared=no
7711 ;;
7712
7713 uts4*)
7714 lt_prog_compiler_pic='-pic'
7715 lt_prog_compiler_static='-Bstatic'
7716 ;;
7717
7718 *)
7719 lt_prog_compiler_can_build_shared=no
7720 ;;
7721 esac
7722 fi
7723
7724 case $host_os in
7725 # For platforms which do not support PIC, -DPIC is meaningless:
7726 *djgpp*)
7727 lt_prog_compiler_pic=
7728 ;;
7729 *)
7730 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7731 ;;
7732 esac
7733 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7734 $as_echo "$lt_prog_compiler_pic" >&6; }
7735
7736
7737
7738
7739
7740
7741 #
7742 # Check to make sure the PIC flag actually works.
7743 #
7744 if test -n "$lt_prog_compiler_pic"; then
7745 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7746 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7747 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7748 $as_echo_n "(cached) " >&6
7749 else
7750 lt_cv_prog_compiler_pic_works=no
7751 ac_outfile=conftest.$ac_objext
7752 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7753 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7754 # Insert the option either (1) after the last *FLAGS variable, or
7755 # (2) before a word containing "conftest.", or (3) at the end.
7756 # Note that $ac_compile itself does not contain backslashes and begins
7757 # with a dollar sign (not a hyphen), so the echo should work correctly.
7758 # The option is referenced via a variable to avoid confusing sed.
7759 lt_compile=`echo "$ac_compile" | $SED \
7760 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7761 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7762 -e 's:$: $lt_compiler_flag:'`
7763 (eval echo "\"\$as_me:7763: $lt_compile\"" >&5)
7764 (eval "$lt_compile" 2>conftest.err)
7765 ac_status=$?
7766 cat conftest.err >&5
7767 echo "$as_me:7767: \$? = $ac_status" >&5
7768 if (exit $ac_status) && test -s "$ac_outfile"; then
7769 # The compiler can only warn and ignore the option if not recognized
7770 # So say no if there are warnings other than the usual output.
7771 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7772 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7773 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7774 lt_cv_prog_compiler_pic_works=yes
7775 fi
7776 fi
7777 $RM conftest*
7778
7779 fi
7780 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7781 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7782
7783 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7784 case $lt_prog_compiler_pic in
7785 "" | " "*) ;;
7786 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7787 esac
7788 else
7789 lt_prog_compiler_pic=
7790 lt_prog_compiler_can_build_shared=no
7791 fi
7792
7793 fi
7794
7795
7796
7797
7798
7799
7800 #
7801 # Check to make sure the static flag actually works.
7802 #
7803 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7804 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7805 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7806 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7807 $as_echo_n "(cached) " >&6
7808 else
7809 lt_cv_prog_compiler_static_works=no
7810 save_LDFLAGS="$LDFLAGS"
7811 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7812 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7813 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7814 # The linker can only warn and ignore the option if not recognized
7815 # So say no if there are warnings
7816 if test -s conftest.err; then
7817 # Append any errors to the config.log.
7818 cat conftest.err 1>&5
7819 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7820 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7821 if diff conftest.exp conftest.er2 >/dev/null; then
7822 lt_cv_prog_compiler_static_works=yes
7823 fi
7824 else
7825 lt_cv_prog_compiler_static_works=yes
7826 fi
7827 fi
7828 $RM -r conftest*
7829 LDFLAGS="$save_LDFLAGS"
7830
7831 fi
7832 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7833 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7834
7835 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7836 :
7837 else
7838 lt_prog_compiler_static=
7839 fi
7840
7841
7842
7843
7844
7845
7846
7847 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7848 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7849 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7850 $as_echo_n "(cached) " >&6
7851 else
7852 lt_cv_prog_compiler_c_o=no
7853 $RM -r conftest 2>/dev/null
7854 mkdir conftest
7855 cd conftest
7856 mkdir out
7857 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7858
7859 lt_compiler_flag="-o out/conftest2.$ac_objext"
7860 # Insert the option either (1) after the last *FLAGS variable, or
7861 # (2) before a word containing "conftest.", or (3) at the end.
7862 # Note that $ac_compile itself does not contain backslashes and begins
7863 # with a dollar sign (not a hyphen), so the echo should work correctly.
7864 lt_compile=`echo "$ac_compile" | $SED \
7865 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7866 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7867 -e 's:$: $lt_compiler_flag:'`
7868 (eval echo "\"\$as_me:7868: $lt_compile\"" >&5)
7869 (eval "$lt_compile" 2>out/conftest.err)
7870 ac_status=$?
7871 cat out/conftest.err >&5
7872 echo "$as_me:7872: \$? = $ac_status" >&5
7873 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7874 then
7875 # The compiler can only warn and ignore the option if not recognized
7876 # So say no if there are warnings
7877 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7878 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7879 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7880 lt_cv_prog_compiler_c_o=yes
7881 fi
7882 fi
7883 chmod u+w . 2>&5
7884 $RM conftest*
7885 # SGI C++ compiler will create directory out/ii_files/ for
7886 # template instantiation
7887 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7888 $RM out/* && rmdir out
7889 cd ..
7890 $RM -r conftest
7891 $RM conftest*
7892
7893 fi
7894 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7895 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7896
7897
7898
7899
7900
7901
7902 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7903 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7904 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7905 $as_echo_n "(cached) " >&6
7906 else
7907 lt_cv_prog_compiler_c_o=no
7908 $RM -r conftest 2>/dev/null
7909 mkdir conftest
7910 cd conftest
7911 mkdir out
7912 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7913
7914 lt_compiler_flag="-o out/conftest2.$ac_objext"
7915 # Insert the option either (1) after the last *FLAGS variable, or
7916 # (2) before a word containing "conftest.", or (3) at the end.
7917 # Note that $ac_compile itself does not contain backslashes and begins
7918 # with a dollar sign (not a hyphen), so the echo should work correctly.
7919 lt_compile=`echo "$ac_compile" | $SED \
7920 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7921 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7922 -e 's:$: $lt_compiler_flag:'`
7923 (eval echo "\"\$as_me:7923: $lt_compile\"" >&5)
7924 (eval "$lt_compile" 2>out/conftest.err)
7925 ac_status=$?
7926 cat out/conftest.err >&5
7927 echo "$as_me:7927: \$? = $ac_status" >&5
7928 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7929 then
7930 # The compiler can only warn and ignore the option if not recognized
7931 # So say no if there are warnings
7932 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7933 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7934 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7935 lt_cv_prog_compiler_c_o=yes
7936 fi
7937 fi
7938 chmod u+w . 2>&5
7939 $RM conftest*
7940 # SGI C++ compiler will create directory out/ii_files/ for
7941 # template instantiation
7942 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7943 $RM out/* && rmdir out
7944 cd ..
7945 $RM -r conftest
7946 $RM conftest*
7947
7948 fi
7949 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7950 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7951
7952
7953
7954
7955 hard_links="nottested"
7956 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7957 # do not overwrite the value of need_locks provided by the user
7958 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7959 $as_echo_n "checking if we can lock with hard links... " >&6; }
7960 hard_links=yes
7961 $RM conftest*
7962 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7963 touch conftest.a
7964 ln conftest.a conftest.b 2>&5 || hard_links=no
7965 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7966 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7967 $as_echo "$hard_links" >&6; }
7968 if test "$hard_links" = no; then
7969 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7970 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7971 need_locks=warn
7972 fi
7973 else
7974 need_locks=no
7975 fi
7976
7977
7978
7979
7980
7981
7982 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7983 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7984
7985 runpath_var=
7986 allow_undefined_flag=
7987 always_export_symbols=no
7988 archive_cmds=
7989 archive_expsym_cmds=
7990 compiler_needs_object=no
7991 enable_shared_with_static_runtimes=no
7992 export_dynamic_flag_spec=
7993 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7994 hardcode_automatic=no
7995 hardcode_direct=no
7996 hardcode_direct_absolute=no
7997 hardcode_libdir_flag_spec=
7998 hardcode_libdir_flag_spec_ld=
7999 hardcode_libdir_separator=
8000 hardcode_minus_L=no
8001 hardcode_shlibpath_var=unsupported
8002 inherit_rpath=no
8003 link_all_deplibs=unknown
8004 module_cmds=
8005 module_expsym_cmds=
8006 old_archive_from_new_cmds=
8007 old_archive_from_expsyms_cmds=
8008 thread_safe_flag_spec=
8009 whole_archive_flag_spec=
8010 # include_expsyms should be a list of space-separated symbols to be *always*
8011 # included in the symbol list
8012 include_expsyms=
8013 # exclude_expsyms can be an extended regexp of symbols to exclude
8014 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8015 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8016 # as well as any symbol that contains `d'.
8017 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8018 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8019 # platforms (ab)use it in PIC code, but their linkers get confused if
8020 # the symbol is explicitly referenced. Since portable code cannot
8021 # rely on this symbol name, it's probably fine to never include it in
8022 # preloaded symbol tables.
8023 # Exclude shared library initialization/finalization symbols.
8024 extract_expsyms_cmds=
8025
8026 case $host_os in
8027 cygwin* | mingw* | pw32* | cegcc*)
8028 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8029 # When not using gcc, we currently assume that we are using
8030 # Microsoft Visual C++.
8031 if test "$GCC" != yes; then
8032 with_gnu_ld=no
8033 fi
8034 ;;
8035 interix*)
8036 # we just hope/assume this is gcc and not c89 (= MSVC++)
8037 with_gnu_ld=yes
8038 ;;
8039 openbsd*)
8040 with_gnu_ld=no
8041 ;;
8042 esac
8043
8044 ld_shlibs=yes
8045 if test "$with_gnu_ld" = yes; then
8046 # If archive_cmds runs LD, not CC, wlarc should be empty
8047 wlarc='${wl}'
8048
8049 # Set some defaults for GNU ld with shared library support. These
8050 # are reset later if shared libraries are not supported. Putting them
8051 # here allows them to be overridden if necessary.
8052 runpath_var=LD_RUN_PATH
8053 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8054 export_dynamic_flag_spec='${wl}--export-dynamic'
8055 # ancient GNU ld didn't support --whole-archive et. al.
8056 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8057 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8058 else
8059 whole_archive_flag_spec=
8060 fi
8061 supports_anon_versioning=no
8062 case `$LD -v 2>&1` in
8063 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8064 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8065 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8066 *\ 2.11.*) ;; # other 2.11 versions
8067 *) supports_anon_versioning=yes ;;
8068 esac
8069
8070 # See if GNU ld supports shared libraries.
8071 case $host_os in
8072 aix[3-9]*)
8073 # On AIX/PPC, the GNU linker is very broken
8074 if test "$host_cpu" != ia64; then
8075 ld_shlibs=no
8076 cat <<_LT_EOF 1>&2
8077
8078 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8079 *** to be unable to reliably create shared libraries on AIX.
8080 *** Therefore, libtool is disabling shared libraries support. If you
8081 *** really care for shared libraries, you may want to modify your PATH
8082 *** so that a non-GNU linker is found, and then restart.
8083
8084 _LT_EOF
8085 fi
8086 ;;
8087
8088 amigaos*)
8089 case $host_cpu in
8090 powerpc)
8091 # see comment about AmigaOS4 .so support
8092 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8093 archive_expsym_cmds=''
8094 ;;
8095 m68k)
8096 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)'
8097 hardcode_libdir_flag_spec='-L$libdir'
8098 hardcode_minus_L=yes
8099 ;;
8100 esac
8101 ;;
8102
8103 beos*)
8104 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8105 allow_undefined_flag=unsupported
8106 # Joseph Beckenbach <[email protected]> says some releases of gcc
8107 # support --undefined. This deserves some investigation. FIXME
8108 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8109 else
8110 ld_shlibs=no
8111 fi
8112 ;;
8113
8114 cygwin* | mingw* | pw32* | cegcc*)
8115 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8116 # as there is no search path for DLLs.
8117 hardcode_libdir_flag_spec='-L$libdir'
8118 allow_undefined_flag=unsupported
8119 always_export_symbols=no
8120 enable_shared_with_static_runtimes=yes
8121 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8122
8123 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8124 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8125 # If the export-symbols file already is a .def file (1st line
8126 # is EXPORTS), use it as is; otherwise, prepend...
8127 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8128 cp $export_symbols $output_objdir/$soname.def;
8129 else
8130 echo EXPORTS > $output_objdir/$soname.def;
8131 cat $export_symbols >> $output_objdir/$soname.def;
8132 fi~
8133 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8134 else
8135 ld_shlibs=no
8136 fi
8137 ;;
8138
8139 interix[3-9]*)
8140 hardcode_direct=no
8141 hardcode_shlibpath_var=no
8142 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8143 export_dynamic_flag_spec='${wl}-E'
8144 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8145 # Instead, shared libraries are loaded at an image base (0x10000000 by
8146 # default) and relocated if they conflict, which is a slow very memory
8147 # consuming and fragmenting process. To avoid this, we pick a random,
8148 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8149 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8150 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8151 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8152 ;;
8153
8154 gnu* | linux* | tpf* | k*bsd*-gnu)
8155 tmp_diet=no
8156 if test "$host_os" = linux-dietlibc; then
8157 case $cc_basename in
8158 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8159 esac
8160 fi
8161 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8162 && test "$tmp_diet" = no
8163 then
8164 tmp_addflag=
8165 tmp_sharedflag='-shared'
8166 case $cc_basename,$host_cpu in
8167 pgcc*) # Portland Group C compiler
8168 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8169 tmp_addflag=' $pic_flag'
8170 ;;
8171 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8172 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8173 tmp_addflag=' $pic_flag -Mnomain' ;;
8174 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8175 tmp_addflag=' -i_dynamic' ;;
8176 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8177 tmp_addflag=' -i_dynamic -nofor_main' ;;
8178 ifc* | ifort*) # Intel Fortran compiler
8179 tmp_addflag=' -nofor_main' ;;
8180 lf95*) # Lahey Fortran 8.1
8181 whole_archive_flag_spec=
8182 tmp_sharedflag='--shared' ;;
8183 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8184 tmp_sharedflag='-qmkshrobj'
8185 tmp_addflag= ;;
8186 esac
8187 case `$CC -V 2>&1 | sed 5q` in
8188 *Sun\ C*) # Sun C 5.9
8189 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8190 compiler_needs_object=yes
8191 tmp_sharedflag='-G' ;;
8192 *Sun\ F*) # Sun Fortran 8.3
8193 tmp_sharedflag='-G' ;;
8194 esac
8195 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8196
8197 if test "x$supports_anon_versioning" = xyes; then
8198 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8199 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8200 echo "local: *; };" >> $output_objdir/$libname.ver~
8201 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8202 fi
8203
8204 case $cc_basename in
8205 xlf*)
8206 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8207 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8208 hardcode_libdir_flag_spec=
8209 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8210 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8211 if test "x$supports_anon_versioning" = xyes; then
8212 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8213 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8214 echo "local: *; };" >> $output_objdir/$libname.ver~
8215 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8216 fi
8217 ;;
8218 esac
8219 else
8220 ld_shlibs=no
8221 fi
8222 ;;
8223
8224 netbsd*)
8225 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8226 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8227 wlarc=
8228 else
8229 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8230 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8231 fi
8232 ;;
8233
8234 solaris*)
8235 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8236 ld_shlibs=no
8237 cat <<_LT_EOF 1>&2
8238
8239 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8240 *** create shared libraries on Solaris systems. Therefore, libtool
8241 *** is disabling shared libraries support. We urge you to upgrade GNU
8242 *** binutils to release 2.9.1 or newer. Another option is to modify
8243 *** your PATH or compiler configuration so that the native linker is
8244 *** used, and then restart.
8245
8246 _LT_EOF
8247 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8248 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8249 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8250 else
8251 ld_shlibs=no
8252 fi
8253 ;;
8254
8255 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8256 case `$LD -v 2>&1` in
8257 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8258 ld_shlibs=no
8259 cat <<_LT_EOF 1>&2
8260
8261 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8262 *** reliably create shared libraries on SCO systems. Therefore, libtool
8263 *** is disabling shared libraries support. We urge you to upgrade GNU
8264 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8265 *** your PATH or compiler configuration so that the native linker is
8266 *** used, and then restart.
8267
8268 _LT_EOF
8269 ;;
8270 *)
8271 # For security reasons, it is highly recommended that you always
8272 # use absolute paths for naming shared libraries, and exclude the
8273 # DT_RUNPATH tag from executables and libraries. But doing so
8274 # requires that you compile everything twice, which is a pain.
8275 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8276 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8277 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8278 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8279 else
8280 ld_shlibs=no
8281 fi
8282 ;;
8283 esac
8284 ;;
8285
8286 sunos4*)
8287 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8288 wlarc=
8289 hardcode_direct=yes
8290 hardcode_shlibpath_var=no
8291 ;;
8292
8293 *)
8294 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8295 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8296 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8297 else
8298 ld_shlibs=no
8299 fi
8300 ;;
8301 esac
8302
8303 if test "$ld_shlibs" = no; then
8304 runpath_var=
8305 hardcode_libdir_flag_spec=
8306 export_dynamic_flag_spec=
8307 whole_archive_flag_spec=
8308 fi
8309 else
8310 # PORTME fill in a description of your system's linker (not GNU ld)
8311 case $host_os in
8312 aix3*)
8313 allow_undefined_flag=unsupported
8314 always_export_symbols=yes
8315 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'
8316 # Note: this linker hardcodes the directories in LIBPATH if there
8317 # are no directories specified by -L.
8318 hardcode_minus_L=yes
8319 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8320 # Neither direct hardcoding nor static linking is supported with a
8321 # broken collect2.
8322 hardcode_direct=unsupported
8323 fi
8324 ;;
8325
8326 aix[4-9]*)
8327 if test "$host_cpu" = ia64; then
8328 # On IA64, the linker does run time linking by default, so we don't
8329 # have to do anything special.
8330 aix_use_runtimelinking=no
8331 exp_sym_flag='-Bexport'
8332 no_entry_flag=""
8333 else
8334 # If we're using GNU nm, then we don't want the "-C" option.
8335 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8336 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8337 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8338 else
8339 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8340 fi
8341 aix_use_runtimelinking=no
8342
8343 # Test if we are trying to use run time linking or normal
8344 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8345 # need to do runtime linking.
8346 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8347 for ld_flag in $LDFLAGS; do
8348 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8349 aix_use_runtimelinking=yes
8350 break
8351 fi
8352 done
8353 ;;
8354 esac
8355
8356 exp_sym_flag='-bexport'
8357 no_entry_flag='-bnoentry'
8358 fi
8359
8360 # When large executables or shared objects are built, AIX ld can
8361 # have problems creating the table of contents. If linking a library
8362 # or program results in "error TOC overflow" add -mminimal-toc to
8363 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8364 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8365
8366 archive_cmds=''
8367 hardcode_direct=yes
8368 hardcode_direct_absolute=yes
8369 hardcode_libdir_separator=':'
8370 link_all_deplibs=yes
8371 file_list_spec='${wl}-f,'
8372
8373 if test "$GCC" = yes; then
8374 case $host_os in aix4.[012]|aix4.[012].*)
8375 # We only want to do this on AIX 4.2 and lower, the check
8376 # below for broken collect2 doesn't work under 4.3+
8377 collect2name=`${CC} -print-prog-name=collect2`
8378 if test -f "$collect2name" &&
8379 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8380 then
8381 # We have reworked collect2
8382 :
8383 else
8384 # We have old collect2
8385 hardcode_direct=unsupported
8386 # It fails to find uninstalled libraries when the uninstalled
8387 # path is not listed in the libpath. Setting hardcode_minus_L
8388 # to unsupported forces relinking
8389 hardcode_minus_L=yes
8390 hardcode_libdir_flag_spec='-L$libdir'
8391 hardcode_libdir_separator=
8392 fi
8393 ;;
8394 esac
8395 shared_flag='-shared'
8396 if test "$aix_use_runtimelinking" = yes; then
8397 shared_flag="$shared_flag "'${wl}-G'
8398 fi
8399 else
8400 # not using gcc
8401 if test "$host_cpu" = ia64; then
8402 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8403 # chokes on -Wl,-G. The following line is correct:
8404 shared_flag='-G'
8405 else
8406 if test "$aix_use_runtimelinking" = yes; then
8407 shared_flag='${wl}-G'
8408 else
8409 shared_flag='${wl}-bM:SRE'
8410 fi
8411 fi
8412 fi
8413
8414 export_dynamic_flag_spec='${wl}-bexpall'
8415 # It seems that -bexpall does not export symbols beginning with
8416 # underscore (_), so it is better to generate a list of symbols to export.
8417 always_export_symbols=yes
8418 if test "$aix_use_runtimelinking" = yes; then
8419 # Warning - without using the other runtime loading flags (-brtl),
8420 # -berok will link without error, but may produce a broken library.
8421 allow_undefined_flag='-berok'
8422 # Determine the default libpath from the value encoded in an
8423 # empty executable.
8424 cat >conftest.$ac_ext <<_ACEOF
8425 /* confdefs.h. */
8426 _ACEOF
8427 cat confdefs.h >>conftest.$ac_ext
8428 cat >>conftest.$ac_ext <<_ACEOF
8429 /* end confdefs.h. */
8430
8431 int
8432 main ()
8433 {
8434
8435 ;
8436 return 0;
8437 }
8438 _ACEOF
8439 rm -f conftest.$ac_objext conftest$ac_exeext
8440 if { (ac_try="$ac_link"
8441 case "(($ac_try" in
8442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8443 *) ac_try_echo=$ac_try;;
8444 esac
8445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8446 $as_echo "$ac_try_echo") >&5
8447 (eval "$ac_link") 2>conftest.er1
8448 ac_status=$?
8449 grep -v '^ *+' conftest.er1 >conftest.err
8450 rm -f conftest.er1
8451 cat conftest.err >&5
8452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); } && {
8454 test -z "$ac_c_werror_flag" ||
8455 test ! -s conftest.err
8456 } && test -s conftest$ac_exeext && {
8457 test "$cross_compiling" = yes ||
8458 $as_test_x conftest$ac_exeext
8459 }; then
8460
8461 lt_aix_libpath_sed='
8462 /Import File Strings/,/^$/ {
8463 /^0/ {
8464 s/^0 *\(.*\)$/\1/
8465 p
8466 }
8467 }'
8468 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8469 # Check for a 64-bit object if we didn't find anything.
8470 if test -z "$aix_libpath"; then
8471 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8472 fi
8473 else
8474 $as_echo "$as_me: failed program was:" >&5
8475 sed 's/^/| /' conftest.$ac_ext >&5
8476
8477
8478 fi
8479
8480 rm -rf conftest.dSYM
8481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8482 conftest$ac_exeext conftest.$ac_ext
8483 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8484
8485 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8486 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8487 else
8488 if test "$host_cpu" = ia64; then
8489 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8490 allow_undefined_flag="-z nodefs"
8491 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8492 else
8493 # Determine the default libpath from the value encoded in an
8494 # empty executable.
8495 cat >conftest.$ac_ext <<_ACEOF
8496 /* confdefs.h. */
8497 _ACEOF
8498 cat confdefs.h >>conftest.$ac_ext
8499 cat >>conftest.$ac_ext <<_ACEOF
8500 /* end confdefs.h. */
8501
8502 int
8503 main ()
8504 {
8505
8506 ;
8507 return 0;
8508 }
8509 _ACEOF
8510 rm -f conftest.$ac_objext conftest$ac_exeext
8511 if { (ac_try="$ac_link"
8512 case "(($ac_try" in
8513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8514 *) ac_try_echo=$ac_try;;
8515 esac
8516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8517 $as_echo "$ac_try_echo") >&5
8518 (eval "$ac_link") 2>conftest.er1
8519 ac_status=$?
8520 grep -v '^ *+' conftest.er1 >conftest.err
8521 rm -f conftest.er1
8522 cat conftest.err >&5
8523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); } && {
8525 test -z "$ac_c_werror_flag" ||
8526 test ! -s conftest.err
8527 } && test -s conftest$ac_exeext && {
8528 test "$cross_compiling" = yes ||
8529 $as_test_x conftest$ac_exeext
8530 }; then
8531
8532 lt_aix_libpath_sed='
8533 /Import File Strings/,/^$/ {
8534 /^0/ {
8535 s/^0 *\(.*\)$/\1/
8536 p
8537 }
8538 }'
8539 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8540 # Check for a 64-bit object if we didn't find anything.
8541 if test -z "$aix_libpath"; then
8542 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8543 fi
8544 else
8545 $as_echo "$as_me: failed program was:" >&5
8546 sed 's/^/| /' conftest.$ac_ext >&5
8547
8548
8549 fi
8550
8551 rm -rf conftest.dSYM
8552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8553 conftest$ac_exeext conftest.$ac_ext
8554 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8555
8556 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8557 # Warning - without using the other run time loading flags,
8558 # -berok will link without error, but may produce a broken library.
8559 no_undefined_flag=' ${wl}-bernotok'
8560 allow_undefined_flag=' ${wl}-berok'
8561 # Exported symbols can be pulled into shared objects from archives
8562 whole_archive_flag_spec='$convenience'
8563 archive_cmds_need_lc=yes
8564 # This is similar to how AIX traditionally builds its shared libraries.
8565 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8566 fi
8567 fi
8568 ;;
8569
8570 amigaos*)
8571 case $host_cpu in
8572 powerpc)
8573 # see comment about AmigaOS4 .so support
8574 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8575 archive_expsym_cmds=''
8576 ;;
8577 m68k)
8578 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)'
8579 hardcode_libdir_flag_spec='-L$libdir'
8580 hardcode_minus_L=yes
8581 ;;
8582 esac
8583 ;;
8584
8585 bsdi[45]*)
8586 export_dynamic_flag_spec=-rdynamic
8587 ;;
8588
8589 cygwin* | mingw* | pw32* | cegcc*)
8590 # When not using gcc, we currently assume that we are using
8591 # Microsoft Visual C++.
8592 # hardcode_libdir_flag_spec is actually meaningless, as there is
8593 # no search path for DLLs.
8594 hardcode_libdir_flag_spec=' '
8595 allow_undefined_flag=unsupported
8596 # Tell ltmain to make .lib files, not .a files.
8597 libext=lib
8598 # Tell ltmain to make .dll files, not .so files.
8599 shrext_cmds=".dll"
8600 # FIXME: Setting linknames here is a bad hack.
8601 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8602 # The linker will automatically build a .lib file if we build a DLL.
8603 old_archive_from_new_cmds='true'
8604 # FIXME: Should let the user specify the lib program.
8605 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8606 fix_srcfile_path='`cygpath -w "$srcfile"`'
8607 enable_shared_with_static_runtimes=yes
8608 ;;
8609
8610 darwin* | rhapsody*)
8611
8612
8613 archive_cmds_need_lc=no
8614 hardcode_direct=no
8615 hardcode_automatic=yes
8616 hardcode_shlibpath_var=unsupported
8617 whole_archive_flag_spec=''
8618 link_all_deplibs=yes
8619 allow_undefined_flag="$_lt_dar_allow_undefined"
8620 case $cc_basename in
8621 ifort*) _lt_dar_can_shared=yes ;;
8622 *) _lt_dar_can_shared=$GCC ;;
8623 esac
8624 if test "$_lt_dar_can_shared" = "yes"; then
8625 output_verbose_link_cmd=echo
8626 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8627 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8628 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8629 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8630
8631 else
8632 ld_shlibs=no
8633 fi
8634
8635 ;;
8636
8637 dgux*)
8638 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8639 hardcode_libdir_flag_spec='-L$libdir'
8640 hardcode_shlibpath_var=no
8641 ;;
8642
8643 freebsd1*)
8644 ld_shlibs=no
8645 ;;
8646
8647 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8648 # support. Future versions do this automatically, but an explicit c++rt0.o
8649 # does not break anything, and helps significantly (at the cost of a little
8650 # extra space).
8651 freebsd2.2*)
8652 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8653 hardcode_libdir_flag_spec='-R$libdir'
8654 hardcode_direct=yes
8655 hardcode_shlibpath_var=no
8656 ;;
8657
8658 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8659 freebsd2*)
8660 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8661 hardcode_direct=yes
8662 hardcode_minus_L=yes
8663 hardcode_shlibpath_var=no
8664 ;;
8665
8666 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8667 freebsd* | dragonfly*)
8668 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8669 hardcode_libdir_flag_spec='-R$libdir'
8670 hardcode_direct=yes
8671 hardcode_shlibpath_var=no
8672 ;;
8673
8674 hpux9*)
8675 if test "$GCC" = yes; then
8676 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8677 else
8678 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'
8679 fi
8680 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8681 hardcode_libdir_separator=:
8682 hardcode_direct=yes
8683
8684 # hardcode_minus_L: Not really in the search PATH,
8685 # but as the default location of the library.
8686 hardcode_minus_L=yes
8687 export_dynamic_flag_spec='${wl}-E'
8688 ;;
8689
8690 hpux10*)
8691 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8692 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8693 else
8694 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8695 fi
8696 if test "$with_gnu_ld" = no; then
8697 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8698 hardcode_libdir_flag_spec_ld='+b $libdir'
8699 hardcode_libdir_separator=:
8700 hardcode_direct=yes
8701 hardcode_direct_absolute=yes
8702 export_dynamic_flag_spec='${wl}-E'
8703 # hardcode_minus_L: Not really in the search PATH,
8704 # but as the default location of the library.
8705 hardcode_minus_L=yes
8706 fi
8707 ;;
8708
8709 hpux11*)
8710 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8711 case $host_cpu in
8712 hppa*64*)
8713 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8714 ;;
8715 ia64*)
8716 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8717 ;;
8718 *)
8719 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8720 ;;
8721 esac
8722 else
8723 case $host_cpu in
8724 hppa*64*)
8725 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8726 ;;
8727 ia64*)
8728 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8729 ;;
8730 *)
8731 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8732 ;;
8733 esac
8734 fi
8735 if test "$with_gnu_ld" = no; then
8736 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8737 hardcode_libdir_separator=:
8738
8739 case $host_cpu in
8740 hppa*64*|ia64*)
8741 hardcode_direct=no
8742 hardcode_shlibpath_var=no
8743 ;;
8744 *)
8745 hardcode_direct=yes
8746 hardcode_direct_absolute=yes
8747 export_dynamic_flag_spec='${wl}-E'
8748
8749 # hardcode_minus_L: Not really in the search PATH,
8750 # but as the default location of the library.
8751 hardcode_minus_L=yes
8752 ;;
8753 esac
8754 fi
8755 ;;
8756
8757 irix5* | irix6* | nonstopux*)
8758 if test "$GCC" = yes; then
8759 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8760 # Try to use the -exported_symbol ld option, if it does not
8761 # work, assume that -exports_file does not work either and
8762 # implicitly export all symbols.
8763 save_LDFLAGS="$LDFLAGS"
8764 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8765 cat >conftest.$ac_ext <<_ACEOF
8766 int foo(void) {}
8767 _ACEOF
8768 rm -f conftest.$ac_objext conftest$ac_exeext
8769 if { (ac_try="$ac_link"
8770 case "(($ac_try" in
8771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8772 *) ac_try_echo=$ac_try;;
8773 esac
8774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8775 $as_echo "$ac_try_echo") >&5
8776 (eval "$ac_link") 2>conftest.er1
8777 ac_status=$?
8778 grep -v '^ *+' conftest.er1 >conftest.err
8779 rm -f conftest.er1
8780 cat conftest.err >&5
8781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); } && {
8783 test -z "$ac_c_werror_flag" ||
8784 test ! -s conftest.err
8785 } && test -s conftest$ac_exeext && {
8786 test "$cross_compiling" = yes ||
8787 $as_test_x conftest$ac_exeext
8788 }; then
8789 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8790
8791 else
8792 $as_echo "$as_me: failed program was:" >&5
8793 sed 's/^/| /' conftest.$ac_ext >&5
8794
8795
8796 fi
8797
8798 rm -rf conftest.dSYM
8799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8800 conftest$ac_exeext conftest.$ac_ext
8801 LDFLAGS="$save_LDFLAGS"
8802 else
8803 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8804 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8805 fi
8806 archive_cmds_need_lc='no'
8807 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8808 hardcode_libdir_separator=:
8809 inherit_rpath=yes
8810 link_all_deplibs=yes
8811 ;;
8812
8813 netbsd*)
8814 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8815 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8816 else
8817 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8818 fi
8819 hardcode_libdir_flag_spec='-R$libdir'
8820 hardcode_direct=yes
8821 hardcode_shlibpath_var=no
8822 ;;
8823
8824 newsos6)
8825 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8826 hardcode_direct=yes
8827 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8828 hardcode_libdir_separator=:
8829 hardcode_shlibpath_var=no
8830 ;;
8831
8832 *nto* | *qnx*)
8833 ;;
8834
8835 openbsd*)
8836 if test -f /usr/libexec/ld.so; then
8837 hardcode_direct=yes
8838 hardcode_shlibpath_var=no
8839 hardcode_direct_absolute=yes
8840 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8841 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8842 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8843 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8844 export_dynamic_flag_spec='${wl}-E'
8845 else
8846 case $host_os in
8847 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8848 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8849 hardcode_libdir_flag_spec='-R$libdir'
8850 ;;
8851 *)
8852 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8853 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8854 ;;
8855 esac
8856 fi
8857 else
8858 ld_shlibs=no
8859 fi
8860 ;;
8861
8862 os2*)
8863 hardcode_libdir_flag_spec='-L$libdir'
8864 hardcode_minus_L=yes
8865 allow_undefined_flag=unsupported
8866 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'
8867 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8868 ;;
8869
8870 osf3*)
8871 if test "$GCC" = yes; then
8872 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8873 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8874 else
8875 allow_undefined_flag=' -expect_unresolved \*'
8876 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8877 fi
8878 archive_cmds_need_lc='no'
8879 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8880 hardcode_libdir_separator=:
8881 ;;
8882
8883 osf4* | osf5*) # as osf3* with the addition of -msym flag
8884 if test "$GCC" = yes; then
8885 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8886 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8887 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8888 else
8889 allow_undefined_flag=' -expect_unresolved \*'
8890 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8891 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8892 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8893
8894 # Both c and cxx compiler support -rpath directly
8895 hardcode_libdir_flag_spec='-rpath $libdir'
8896 fi
8897 archive_cmds_need_lc='no'
8898 hardcode_libdir_separator=:
8899 ;;
8900
8901 solaris*)
8902 no_undefined_flag=' -z defs'
8903 if test "$GCC" = yes; then
8904 wlarc='${wl}'
8905 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8906 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8907 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8908 else
8909 case `$CC -V 2>&1` in
8910 *"Compilers 5.0"*)
8911 wlarc=''
8912 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8913 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8914 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8915 ;;
8916 *)
8917 wlarc='${wl}'
8918 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8919 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8920 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8921 ;;
8922 esac
8923 fi
8924 hardcode_libdir_flag_spec='-R$libdir'
8925 hardcode_shlibpath_var=no
8926 case $host_os in
8927 solaris2.[0-5] | solaris2.[0-5].*) ;;
8928 *)
8929 # The compiler driver will combine and reorder linker options,
8930 # but understands `-z linker_flag'. GCC discards it without `$wl',
8931 # but is careful enough not to reorder.
8932 # Supported since Solaris 2.6 (maybe 2.5.1?)
8933 if test "$GCC" = yes; then
8934 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8935 else
8936 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8937 fi
8938 ;;
8939 esac
8940 link_all_deplibs=yes
8941 ;;
8942
8943 sunos4*)
8944 if test "x$host_vendor" = xsequent; then
8945 # Use $CC to link under sequent, because it throws in some extra .o
8946 # files that make .init and .fini sections work.
8947 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8948 else
8949 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8950 fi
8951 hardcode_libdir_flag_spec='-L$libdir'
8952 hardcode_direct=yes
8953 hardcode_minus_L=yes
8954 hardcode_shlibpath_var=no
8955 ;;
8956
8957 sysv4)
8958 case $host_vendor in
8959 sni)
8960 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8961 hardcode_direct=yes # is this really true???
8962 ;;
8963 siemens)
8964 ## LD is ld it makes a PLAMLIB
8965 ## CC just makes a GrossModule.
8966 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8967 reload_cmds='$CC -r -o $output$reload_objs'
8968 hardcode_direct=no
8969 ;;
8970 motorola)
8971 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8972 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8973 ;;
8974 esac
8975 runpath_var='LD_RUN_PATH'
8976 hardcode_shlibpath_var=no
8977 ;;
8978
8979 sysv4.3*)
8980 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8981 hardcode_shlibpath_var=no
8982 export_dynamic_flag_spec='-Bexport'
8983 ;;
8984
8985 sysv4*MP*)
8986 if test -d /usr/nec; then
8987 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8988 hardcode_shlibpath_var=no
8989 runpath_var=LD_RUN_PATH
8990 hardcode_runpath_var=yes
8991 ld_shlibs=yes
8992 fi
8993 ;;
8994
8995 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8996 no_undefined_flag='${wl}-z,text'
8997 archive_cmds_need_lc=no
8998 hardcode_shlibpath_var=no
8999 runpath_var='LD_RUN_PATH'
9000
9001 if test "$GCC" = yes; then
9002 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9003 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9004 else
9005 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9006 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9007 fi
9008 ;;
9009
9010 sysv5* | sco3.2v5* | sco5v6*)
9011 # Note: We can NOT use -z defs as we might desire, because we do not
9012 # link with -lc, and that would cause any symbols used from libc to
9013 # always be unresolved, which means just about no library would
9014 # ever link correctly. If we're not using GNU ld we use -z text
9015 # though, which does catch some bad symbols but isn't as heavy-handed
9016 # as -z defs.
9017 no_undefined_flag='${wl}-z,text'
9018 allow_undefined_flag='${wl}-z,nodefs'
9019 archive_cmds_need_lc=no
9020 hardcode_shlibpath_var=no
9021 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9022 hardcode_libdir_separator=':'
9023 link_all_deplibs=yes
9024 export_dynamic_flag_spec='${wl}-Bexport'
9025 runpath_var='LD_RUN_PATH'
9026
9027 if test "$GCC" = yes; then
9028 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9029 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9030 else
9031 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9032 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9033 fi
9034 ;;
9035
9036 uts4*)
9037 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9038 hardcode_libdir_flag_spec='-L$libdir'
9039 hardcode_shlibpath_var=no
9040 ;;
9041
9042 *)
9043 ld_shlibs=no
9044 ;;
9045 esac
9046
9047 if test x$host_vendor = xsni; then
9048 case $host in
9049 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9050 export_dynamic_flag_spec='${wl}-Blargedynsym'
9051 ;;
9052 esac
9053 fi
9054 fi
9055
9056 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9057 $as_echo "$ld_shlibs" >&6; }
9058 test "$ld_shlibs" = no && can_build_shared=no
9059
9060 with_gnu_ld=$with_gnu_ld
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076 #
9077 # Do we need to explicitly link libc?
9078 #
9079 case "x$archive_cmds_need_lc" in
9080 x|xyes)
9081 # Assume -lc should be added
9082 archive_cmds_need_lc=yes
9083
9084 if test "$enable_shared" = yes && test "$GCC" = yes; then
9085 case $archive_cmds in
9086 *'~'*)
9087 # FIXME: we may have to deal with multi-command sequences.
9088 ;;
9089 '$CC '*)
9090 # Test whether the compiler implicitly links with -lc since on some
9091 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9092 # to ld, don't add -lc before -lgcc.
9093 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9094 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9095 $RM conftest*
9096 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9097
9098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9099 (eval $ac_compile) 2>&5
9100 ac_status=$?
9101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); } 2>conftest.err; then
9103 soname=conftest
9104 lib=conftest
9105 libobjs=conftest.$ac_objext
9106 deplibs=
9107 wl=$lt_prog_compiler_wl
9108 pic_flag=$lt_prog_compiler_pic
9109 compiler_flags=-v
9110 linker_flags=-v
9111 verstring=
9112 output_objdir=.
9113 libname=conftest
9114 lt_save_allow_undefined_flag=$allow_undefined_flag
9115 allow_undefined_flag=
9116 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9117 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9118 ac_status=$?
9119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); }
9121 then
9122 archive_cmds_need_lc=no
9123 else
9124 archive_cmds_need_lc=yes
9125 fi
9126 allow_undefined_flag=$lt_save_allow_undefined_flag
9127 else
9128 cat conftest.err 1>&5
9129 fi
9130 $RM conftest*
9131 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9132 $as_echo "$archive_cmds_need_lc" >&6; }
9133 ;;
9134 esac
9135 fi
9136 ;;
9137 esac
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9296 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9297
9298 if test "$GCC" = yes; then
9299 case $host_os in
9300 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9301 *) lt_awk_arg="/^libraries:/" ;;
9302 esac
9303 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9304 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9305 # if the path contains ";" then we assume it to be the separator
9306 # otherwise default to the standard path separator (i.e. ":") - it is
9307 # assumed that no part of a normal pathname contains ";" but that should
9308 # okay in the real world where ";" in dirpaths is itself problematic.
9309 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9310 else
9311 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9312 fi
9313 # Ok, now we have the path, separated by spaces, we can step through it
9314 # and add multilib dir if necessary.
9315 lt_tmp_lt_search_path_spec=
9316 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9317 for lt_sys_path in $lt_search_path_spec; do
9318 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9319 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9320 else
9321 test -d "$lt_sys_path" && \
9322 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9323 fi
9324 done
9325 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9326 BEGIN {RS=" "; FS="/|\n";} {
9327 lt_foo="";
9328 lt_count=0;
9329 for (lt_i = NF; lt_i > 0; lt_i--) {
9330 if ($lt_i != "" && $lt_i != ".") {
9331 if ($lt_i == "..") {
9332 lt_count++;
9333 } else {
9334 if (lt_count == 0) {
9335 lt_foo="/" $lt_i lt_foo;
9336 } else {
9337 lt_count--;
9338 }
9339 }
9340 }
9341 }
9342 if (lt_foo != "") { lt_freq[lt_foo]++; }
9343 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9344 }'`
9345 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9346 else
9347 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9348 fi
9349 library_names_spec=
9350 libname_spec='lib$name'
9351 soname_spec=
9352 shrext_cmds=".so"
9353 postinstall_cmds=
9354 postuninstall_cmds=
9355 finish_cmds=
9356 finish_eval=
9357 shlibpath_var=
9358 shlibpath_overrides_runpath=unknown
9359 version_type=none
9360 dynamic_linker="$host_os ld.so"
9361 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9362 need_lib_prefix=unknown
9363 hardcode_into_libs=no
9364
9365 # when you set need_version to no, make sure it does not cause -set_version
9366 # flags to be left without arguments
9367 need_version=unknown
9368
9369 case $host_os in
9370 aix3*)
9371 version_type=linux
9372 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9373 shlibpath_var=LIBPATH
9374
9375 # AIX 3 has no versioning support, so we append a major version to the name.
9376 soname_spec='${libname}${release}${shared_ext}$major'
9377 ;;
9378
9379 aix[4-9]*)
9380 version_type=linux
9381 need_lib_prefix=no
9382 need_version=no
9383 hardcode_into_libs=yes
9384 if test "$host_cpu" = ia64; then
9385 # AIX 5 supports IA64
9386 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9387 shlibpath_var=LD_LIBRARY_PATH
9388 else
9389 # With GCC up to 2.95.x, collect2 would create an import file
9390 # for dependence libraries. The import file would start with
9391 # the line `#! .'. This would cause the generated library to
9392 # depend on `.', always an invalid library. This was fixed in
9393 # development snapshots of GCC prior to 3.0.
9394 case $host_os in
9395 aix4 | aix4.[01] | aix4.[01].*)
9396 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9397 echo ' yes '
9398 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9399 :
9400 else
9401 can_build_shared=no
9402 fi
9403 ;;
9404 esac
9405 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9406 # soname into executable. Probably we can add versioning support to
9407 # collect2, so additional links can be useful in future.
9408 if test "$aix_use_runtimelinking" = yes; then
9409 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9410 # instead of lib<name>.a to let people know that these are not
9411 # typical AIX shared libraries.
9412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9413 else
9414 # We preserve .a as extension for shared libraries through AIX4.2
9415 # and later when we are not doing run time linking.
9416 library_names_spec='${libname}${release}.a $libname.a'
9417 soname_spec='${libname}${release}${shared_ext}$major'
9418 fi
9419 shlibpath_var=LIBPATH
9420 fi
9421 ;;
9422
9423 amigaos*)
9424 case $host_cpu in
9425 powerpc)
9426 # Since July 2007 AmigaOS4 officially supports .so libraries.
9427 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9429 ;;
9430 m68k)
9431 library_names_spec='$libname.ixlibrary $libname.a'
9432 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9433 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'
9434 ;;
9435 esac
9436 ;;
9437
9438 beos*)
9439 library_names_spec='${libname}${shared_ext}'
9440 dynamic_linker="$host_os ld.so"
9441 shlibpath_var=LIBRARY_PATH
9442 ;;
9443
9444 bsdi[45]*)
9445 version_type=linux
9446 need_version=no
9447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9448 soname_spec='${libname}${release}${shared_ext}$major'
9449 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9450 shlibpath_var=LD_LIBRARY_PATH
9451 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9452 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9453 # the default ld.so.conf also contains /usr/contrib/lib and
9454 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9455 # libtool to hard-code these into programs
9456 ;;
9457
9458 cygwin* | mingw* | pw32* | cegcc*)
9459 version_type=windows
9460 shrext_cmds=".dll"
9461 need_version=no
9462 need_lib_prefix=no
9463
9464 case $GCC,$host_os in
9465 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9466 library_names_spec='$libname.dll.a'
9467 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9468 postinstall_cmds='base_file=`basename \${file}`~
9469 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9470 dldir=$destdir/`dirname \$dlpath`~
9471 test -d \$dldir || mkdir -p \$dldir~
9472 $install_prog $dir/$dlname \$dldir/$dlname~
9473 chmod a+x \$dldir/$dlname~
9474 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9475 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9476 fi'
9477 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9478 dlpath=$dir/\$dldll~
9479 $RM \$dlpath'
9480 shlibpath_overrides_runpath=yes
9481
9482 case $host_os in
9483 cygwin*)
9484 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9485 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9486 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9487 ;;
9488 mingw* | cegcc*)
9489 # MinGW DLLs use traditional 'lib' prefix
9490 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9491 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9492 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9493 # It is most probably a Windows format PATH printed by
9494 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9495 # path with ; separators, and with drive letters. We can handle the
9496 # drive letters (cygwin fileutils understands them), so leave them,
9497 # especially as we might pass files found there to a mingw objdump,
9498 # which wouldn't understand a cygwinified path. Ahh.
9499 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9500 else
9501 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9502 fi
9503 ;;
9504 pw32*)
9505 # pw32 DLLs use 'pw' prefix rather than 'lib'
9506 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9507 ;;
9508 esac
9509 ;;
9510
9511 *)
9512 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9513 ;;
9514 esac
9515 dynamic_linker='Win32 ld.exe'
9516 # FIXME: first we should search . and the directory the executable is in
9517 shlibpath_var=PATH
9518 ;;
9519
9520 darwin* | rhapsody*)
9521 dynamic_linker="$host_os dyld"
9522 version_type=darwin
9523 need_lib_prefix=no
9524 need_version=no
9525 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9526 soname_spec='${libname}${release}${major}$shared_ext'
9527 shlibpath_overrides_runpath=yes
9528 shlibpath_var=DYLD_LIBRARY_PATH
9529 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9530
9531 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9532 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9533 ;;
9534
9535 dgux*)
9536 version_type=linux
9537 need_lib_prefix=no
9538 need_version=no
9539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9540 soname_spec='${libname}${release}${shared_ext}$major'
9541 shlibpath_var=LD_LIBRARY_PATH
9542 ;;
9543
9544 freebsd1*)
9545 dynamic_linker=no
9546 ;;
9547
9548 freebsd* | dragonfly*)
9549 # DragonFly does not have aout. When/if they implement a new
9550 # versioning mechanism, adjust this.
9551 if test -x /usr/bin/objformat; then
9552 objformat=`/usr/bin/objformat`
9553 else
9554 case $host_os in
9555 freebsd[123]*) objformat=aout ;;
9556 *) objformat=elf ;;
9557 esac
9558 fi
9559 version_type=freebsd-$objformat
9560 case $version_type in
9561 freebsd-elf*)
9562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9563 need_version=no
9564 need_lib_prefix=no
9565 ;;
9566 freebsd-*)
9567 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9568 need_version=yes
9569 ;;
9570 esac
9571 shlibpath_var=LD_LIBRARY_PATH
9572 case $host_os in
9573 freebsd2*)
9574 shlibpath_overrides_runpath=yes
9575 ;;
9576 freebsd3.[01]* | freebsdelf3.[01]*)
9577 shlibpath_overrides_runpath=yes
9578 hardcode_into_libs=yes
9579 ;;
9580 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9581 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9582 shlibpath_overrides_runpath=no
9583 hardcode_into_libs=yes
9584 ;;
9585 *) # from 4.6 on, and DragonFly
9586 shlibpath_overrides_runpath=yes
9587 hardcode_into_libs=yes
9588 ;;
9589 esac
9590 ;;
9591
9592 gnu*)
9593 version_type=linux
9594 need_lib_prefix=no
9595 need_version=no
9596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9597 soname_spec='${libname}${release}${shared_ext}$major'
9598 shlibpath_var=LD_LIBRARY_PATH
9599 hardcode_into_libs=yes
9600 ;;
9601
9602 hpux9* | hpux10* | hpux11*)
9603 # Give a soname corresponding to the major version so that dld.sl refuses to
9604 # link against other versions.
9605 version_type=sunos
9606 need_lib_prefix=no
9607 need_version=no
9608 case $host_cpu in
9609 ia64*)
9610 shrext_cmds='.so'
9611 hardcode_into_libs=yes
9612 dynamic_linker="$host_os dld.so"
9613 shlibpath_var=LD_LIBRARY_PATH
9614 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9616 soname_spec='${libname}${release}${shared_ext}$major'
9617 if test "X$HPUX_IA64_MODE" = X32; then
9618 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9619 else
9620 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9621 fi
9622 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9623 ;;
9624 hppa*64*)
9625 shrext_cmds='.sl'
9626 hardcode_into_libs=yes
9627 dynamic_linker="$host_os dld.sl"
9628 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9629 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9631 soname_spec='${libname}${release}${shared_ext}$major'
9632 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9633 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9634 ;;
9635 *)
9636 shrext_cmds='.sl'
9637 dynamic_linker="$host_os dld.sl"
9638 shlibpath_var=SHLIB_PATH
9639 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9641 soname_spec='${libname}${release}${shared_ext}$major'
9642 ;;
9643 esac
9644 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9645 postinstall_cmds='chmod 555 $lib'
9646 ;;
9647
9648 interix[3-9]*)
9649 version_type=linux
9650 need_lib_prefix=no
9651 need_version=no
9652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9653 soname_spec='${libname}${release}${shared_ext}$major'
9654 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9655 shlibpath_var=LD_LIBRARY_PATH
9656 shlibpath_overrides_runpath=no
9657 hardcode_into_libs=yes
9658 ;;
9659
9660 irix5* | irix6* | nonstopux*)
9661 case $host_os in
9662 nonstopux*) version_type=nonstopux ;;
9663 *)
9664 if test "$lt_cv_prog_gnu_ld" = yes; then
9665 version_type=linux
9666 else
9667 version_type=irix
9668 fi ;;
9669 esac
9670 need_lib_prefix=no
9671 need_version=no
9672 soname_spec='${libname}${release}${shared_ext}$major'
9673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9674 case $host_os in
9675 irix5* | nonstopux*)
9676 libsuff= shlibsuff=
9677 ;;
9678 *)
9679 case $LD in # libtool.m4 will add one of these switches to LD
9680 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9681 libsuff= shlibsuff= libmagic=32-bit;;
9682 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9683 libsuff=32 shlibsuff=N32 libmagic=N32;;
9684 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9685 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9686 *) libsuff= shlibsuff= libmagic=never-match;;
9687 esac
9688 ;;
9689 esac
9690 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9691 shlibpath_overrides_runpath=no
9692 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9693 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9694 hardcode_into_libs=yes
9695 ;;
9696
9697 # No shared lib support for Linux oldld, aout, or coff.
9698 linux*oldld* | linux*aout* | linux*coff*)
9699 dynamic_linker=no
9700 ;;
9701
9702 # This must be Linux ELF.
9703 linux* | k*bsd*-gnu)
9704 version_type=linux
9705 need_lib_prefix=no
9706 need_version=no
9707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9708 soname_spec='${libname}${release}${shared_ext}$major'
9709 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9710 shlibpath_var=LD_LIBRARY_PATH
9711 shlibpath_overrides_runpath=no
9712 # Some binutils ld are patched to set DT_RUNPATH
9713 save_LDFLAGS=$LDFLAGS
9714 save_libdir=$libdir
9715 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9716 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9717 cat >conftest.$ac_ext <<_ACEOF
9718 /* confdefs.h. */
9719 _ACEOF
9720 cat confdefs.h >>conftest.$ac_ext
9721 cat >>conftest.$ac_ext <<_ACEOF
9722 /* end confdefs.h. */
9723
9724 int
9725 main ()
9726 {
9727
9728 ;
9729 return 0;
9730 }
9731 _ACEOF
9732 rm -f conftest.$ac_objext conftest$ac_exeext
9733 if { (ac_try="$ac_link"
9734 case "(($ac_try" in
9735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9736 *) ac_try_echo=$ac_try;;
9737 esac
9738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9739 $as_echo "$ac_try_echo") >&5
9740 (eval "$ac_link") 2>conftest.er1
9741 ac_status=$?
9742 grep -v '^ *+' conftest.er1 >conftest.err
9743 rm -f conftest.er1
9744 cat conftest.err >&5
9745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); } && {
9747 test -z "$ac_c_werror_flag" ||
9748 test ! -s conftest.err
9749 } && test -s conftest$ac_exeext && {
9750 test "$cross_compiling" = yes ||
9751 $as_test_x conftest$ac_exeext
9752 }; then
9753 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9754 shlibpath_overrides_runpath=yes
9755 fi
9756
9757 else
9758 $as_echo "$as_me: failed program was:" >&5
9759 sed 's/^/| /' conftest.$ac_ext >&5
9760
9761
9762 fi
9763
9764 rm -rf conftest.dSYM
9765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9766 conftest$ac_exeext conftest.$ac_ext
9767 LDFLAGS=$save_LDFLAGS
9768 libdir=$save_libdir
9769
9770 # This implies no fast_install, which is unacceptable.
9771 # Some rework will be needed to allow for fast_install
9772 # before this can be enabled.
9773 hardcode_into_libs=yes
9774
9775 # Append ld.so.conf contents to the search path
9776 if test -f /etc/ld.so.conf; then
9777 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9778 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9779 fi
9780
9781 # We used to test for /lib/ld.so.1 and disable shared libraries on
9782 # powerpc, because MkLinux only supported shared libraries with the
9783 # GNU dynamic linker. Since this was broken with cross compilers,
9784 # most powerpc-linux boxes support dynamic linking these days and
9785 # people can always --disable-shared, the test was removed, and we
9786 # assume the GNU/Linux dynamic linker is in use.
9787 dynamic_linker='GNU/Linux ld.so'
9788 ;;
9789
9790 netbsd*)
9791 version_type=sunos
9792 need_lib_prefix=no
9793 need_version=no
9794 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9796 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9797 dynamic_linker='NetBSD (a.out) ld.so'
9798 else
9799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9800 soname_spec='${libname}${release}${shared_ext}$major'
9801 dynamic_linker='NetBSD ld.elf_so'
9802 fi
9803 shlibpath_var=LD_LIBRARY_PATH
9804 shlibpath_overrides_runpath=yes
9805 hardcode_into_libs=yes
9806 ;;
9807
9808 newsos6)
9809 version_type=linux
9810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9811 shlibpath_var=LD_LIBRARY_PATH
9812 shlibpath_overrides_runpath=yes
9813 ;;
9814
9815 *nto* | *qnx*)
9816 version_type=qnx
9817 need_lib_prefix=no
9818 need_version=no
9819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9820 soname_spec='${libname}${release}${shared_ext}$major'
9821 shlibpath_var=LD_LIBRARY_PATH
9822 shlibpath_overrides_runpath=no
9823 hardcode_into_libs=yes
9824 dynamic_linker='ldqnx.so'
9825 ;;
9826
9827 openbsd*)
9828 version_type=sunos
9829 sys_lib_dlsearch_path_spec="/usr/lib"
9830 need_lib_prefix=no
9831 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9832 case $host_os in
9833 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9834 *) need_version=no ;;
9835 esac
9836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9837 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9838 shlibpath_var=LD_LIBRARY_PATH
9839 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9840 case $host_os in
9841 openbsd2.[89] | openbsd2.[89].*)
9842 shlibpath_overrides_runpath=no
9843 ;;
9844 *)
9845 shlibpath_overrides_runpath=yes
9846 ;;
9847 esac
9848 else
9849 shlibpath_overrides_runpath=yes
9850 fi
9851 ;;
9852
9853 os2*)
9854 libname_spec='$name'
9855 shrext_cmds=".dll"
9856 need_lib_prefix=no
9857 library_names_spec='$libname${shared_ext} $libname.a'
9858 dynamic_linker='OS/2 ld.exe'
9859 shlibpath_var=LIBPATH
9860 ;;
9861
9862 osf3* | osf4* | osf5*)
9863 version_type=osf
9864 need_lib_prefix=no
9865 need_version=no
9866 soname_spec='${libname}${release}${shared_ext}$major'
9867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9868 shlibpath_var=LD_LIBRARY_PATH
9869 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9870 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9871 ;;
9872
9873 rdos*)
9874 dynamic_linker=no
9875 ;;
9876
9877 solaris*)
9878 version_type=linux
9879 need_lib_prefix=no
9880 need_version=no
9881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9882 soname_spec='${libname}${release}${shared_ext}$major'
9883 shlibpath_var=LD_LIBRARY_PATH
9884 shlibpath_overrides_runpath=yes
9885 hardcode_into_libs=yes
9886 # ldd complains unless libraries are executable
9887 postinstall_cmds='chmod +x $lib'
9888 ;;
9889
9890 sunos4*)
9891 version_type=sunos
9892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9893 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9894 shlibpath_var=LD_LIBRARY_PATH
9895 shlibpath_overrides_runpath=yes
9896 if test "$with_gnu_ld" = yes; then
9897 need_lib_prefix=no
9898 fi
9899 need_version=yes
9900 ;;
9901
9902 sysv4 | sysv4.3*)
9903 version_type=linux
9904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9905 soname_spec='${libname}${release}${shared_ext}$major'
9906 shlibpath_var=LD_LIBRARY_PATH
9907 case $host_vendor in
9908 sni)
9909 shlibpath_overrides_runpath=no
9910 need_lib_prefix=no
9911 runpath_var=LD_RUN_PATH
9912 ;;
9913 siemens)
9914 need_lib_prefix=no
9915 ;;
9916 motorola)
9917 need_lib_prefix=no
9918 need_version=no
9919 shlibpath_overrides_runpath=no
9920 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9921 ;;
9922 esac
9923 ;;
9924
9925 sysv4*MP*)
9926 if test -d /usr/nec ;then
9927 version_type=linux
9928 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9929 soname_spec='$libname${shared_ext}.$major'
9930 shlibpath_var=LD_LIBRARY_PATH
9931 fi
9932 ;;
9933
9934 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9935 version_type=freebsd-elf
9936 need_lib_prefix=no
9937 need_version=no
9938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9939 soname_spec='${libname}${release}${shared_ext}$major'
9940 shlibpath_var=LD_LIBRARY_PATH
9941 shlibpath_overrides_runpath=yes
9942 hardcode_into_libs=yes
9943 if test "$with_gnu_ld" = yes; then
9944 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9945 else
9946 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9947 case $host_os in
9948 sco3.2v5*)
9949 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9950 ;;
9951 esac
9952 fi
9953 sys_lib_dlsearch_path_spec='/usr/lib'
9954 ;;
9955
9956 tpf*)
9957 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9958 version_type=linux
9959 need_lib_prefix=no
9960 need_version=no
9961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9962 shlibpath_var=LD_LIBRARY_PATH
9963 shlibpath_overrides_runpath=no
9964 hardcode_into_libs=yes
9965 ;;
9966
9967 uts4*)
9968 version_type=linux
9969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9970 soname_spec='${libname}${release}${shared_ext}$major'
9971 shlibpath_var=LD_LIBRARY_PATH
9972 ;;
9973
9974 *)
9975 dynamic_linker=no
9976 ;;
9977 esac
9978 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9979 $as_echo "$dynamic_linker" >&6; }
9980 test "$dynamic_linker" = no && can_build_shared=no
9981
9982 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9983 if test "$GCC" = yes; then
9984 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9985 fi
9986
9987 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9988 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9989 fi
9990 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9991 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9992 fi
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10081 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10082 hardcode_action=
10083 if test -n "$hardcode_libdir_flag_spec" ||
10084 test -n "$runpath_var" ||
10085 test "X$hardcode_automatic" = "Xyes" ; then
10086
10087 # We can hardcode non-existent directories.
10088 if test "$hardcode_direct" != no &&
10089 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10090 # have to relink, otherwise we might link with an installed library
10091 # when we should be linking with a yet-to-be-installed one
10092 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10093 test "$hardcode_minus_L" != no; then
10094 # Linking always hardcodes the temporary library directory.
10095 hardcode_action=relink
10096 else
10097 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10098 hardcode_action=immediate
10099 fi
10100 else
10101 # We cannot hardcode anything, or else we can only hardcode existing
10102 # directories.
10103 hardcode_action=unsupported
10104 fi
10105 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10106 $as_echo "$hardcode_action" >&6; }
10107
10108 if test "$hardcode_action" = relink ||
10109 test "$inherit_rpath" = yes; then
10110 # Fast installation is not supported
10111 enable_fast_install=no
10112 elif test "$shlibpath_overrides_runpath" = yes ||
10113 test "$enable_shared" = no; then
10114 # Fast installation is not necessary
10115 enable_fast_install=needless
10116 fi
10117
10118
10119
10120
10121
10122
10123 if test "x$enable_dlopen" != xyes; then
10124 enable_dlopen=unknown
10125 enable_dlopen_self=unknown
10126 enable_dlopen_self_static=unknown
10127 else
10128 lt_cv_dlopen=no
10129 lt_cv_dlopen_libs=
10130
10131 case $host_os in
10132 beos*)
10133 lt_cv_dlopen="load_add_on"
10134 lt_cv_dlopen_libs=
10135 lt_cv_dlopen_self=yes
10136 ;;
10137
10138 mingw* | pw32* | cegcc*)
10139 lt_cv_dlopen="LoadLibrary"
10140 lt_cv_dlopen_libs=
10141 ;;
10142
10143 cygwin*)
10144 lt_cv_dlopen="dlopen"
10145 lt_cv_dlopen_libs=
10146 ;;
10147
10148 darwin*)
10149 # if libdl is installed we need to link against it
10150 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10151 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10152 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10153 $as_echo_n "(cached) " >&6
10154 else
10155 ac_check_lib_save_LIBS=$LIBS
10156 LIBS="-ldl $LIBS"
10157 cat >conftest.$ac_ext <<_ACEOF
10158 /* confdefs.h. */
10159 _ACEOF
10160 cat confdefs.h >>conftest.$ac_ext
10161 cat >>conftest.$ac_ext <<_ACEOF
10162 /* end confdefs.h. */
10163
10164 /* Override any GCC internal prototype to avoid an error.
10165 Use char because int might match the return type of a GCC
10166 builtin and then its argument prototype would still apply. */
10167 #ifdef __cplusplus
10168 extern "C"
10169 #endif
10170 char dlopen ();
10171 int
10172 main ()
10173 {
10174 return dlopen ();
10175 ;
10176 return 0;
10177 }
10178 _ACEOF
10179 rm -f conftest.$ac_objext conftest$ac_exeext
10180 if { (ac_try="$ac_link"
10181 case "(($ac_try" in
10182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10183 *) ac_try_echo=$ac_try;;
10184 esac
10185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10186 $as_echo "$ac_try_echo") >&5
10187 (eval "$ac_link") 2>conftest.er1
10188 ac_status=$?
10189 grep -v '^ *+' conftest.er1 >conftest.err
10190 rm -f conftest.er1
10191 cat conftest.err >&5
10192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); } && {
10194 test -z "$ac_c_werror_flag" ||
10195 test ! -s conftest.err
10196 } && test -s conftest$ac_exeext && {
10197 test "$cross_compiling" = yes ||
10198 $as_test_x conftest$ac_exeext
10199 }; then
10200 ac_cv_lib_dl_dlopen=yes
10201 else
10202 $as_echo "$as_me: failed program was:" >&5
10203 sed 's/^/| /' conftest.$ac_ext >&5
10204
10205 ac_cv_lib_dl_dlopen=no
10206 fi
10207
10208 rm -rf conftest.dSYM
10209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10210 conftest$ac_exeext conftest.$ac_ext
10211 LIBS=$ac_check_lib_save_LIBS
10212 fi
10213 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10214 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10215 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10216 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10217 else
10218
10219 lt_cv_dlopen="dyld"
10220 lt_cv_dlopen_libs=
10221 lt_cv_dlopen_self=yes
10222
10223 fi
10224
10225 ;;
10226
10227 *)
10228 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10229 $as_echo_n "checking for shl_load... " >&6; }
10230 if test "${ac_cv_func_shl_load+set}" = set; then
10231 $as_echo_n "(cached) " >&6
10232 else
10233 cat >conftest.$ac_ext <<_ACEOF
10234 /* confdefs.h. */
10235 _ACEOF
10236 cat confdefs.h >>conftest.$ac_ext
10237 cat >>conftest.$ac_ext <<_ACEOF
10238 /* end confdefs.h. */
10239 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10240 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10241 #define shl_load innocuous_shl_load
10242
10243 /* System header to define __stub macros and hopefully few prototypes,
10244 which can conflict with char shl_load (); below.
10245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10246 <limits.h> exists even on freestanding compilers. */
10247
10248 #ifdef __STDC__
10249 # include <limits.h>
10250 #else
10251 # include <assert.h>
10252 #endif
10253
10254 #undef shl_load
10255
10256 /* Override any GCC internal prototype to avoid an error.
10257 Use char because int might match the return type of a GCC
10258 builtin and then its argument prototype would still apply. */
10259 #ifdef __cplusplus
10260 extern "C"
10261 #endif
10262 char shl_load ();
10263 /* The GNU C library defines this for functions which it implements
10264 to always fail with ENOSYS. Some functions are actually named
10265 something starting with __ and the normal name is an alias. */
10266 #if defined __stub_shl_load || defined __stub___shl_load
10267 choke me
10268 #endif
10269
10270 int
10271 main ()
10272 {
10273 return shl_load ();
10274 ;
10275 return 0;
10276 }
10277 _ACEOF
10278 rm -f conftest.$ac_objext conftest$ac_exeext
10279 if { (ac_try="$ac_link"
10280 case "(($ac_try" in
10281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10282 *) ac_try_echo=$ac_try;;
10283 esac
10284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10285 $as_echo "$ac_try_echo") >&5
10286 (eval "$ac_link") 2>conftest.er1
10287 ac_status=$?
10288 grep -v '^ *+' conftest.er1 >conftest.err
10289 rm -f conftest.er1
10290 cat conftest.err >&5
10291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); } && {
10293 test -z "$ac_c_werror_flag" ||
10294 test ! -s conftest.err
10295 } && test -s conftest$ac_exeext && {
10296 test "$cross_compiling" = yes ||
10297 $as_test_x conftest$ac_exeext
10298 }; then
10299 ac_cv_func_shl_load=yes
10300 else
10301 $as_echo "$as_me: failed program was:" >&5
10302 sed 's/^/| /' conftest.$ac_ext >&5
10303
10304 ac_cv_func_shl_load=no
10305 fi
10306
10307 rm -rf conftest.dSYM
10308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10309 conftest$ac_exeext conftest.$ac_ext
10310 fi
10311 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10312 $as_echo "$ac_cv_func_shl_load" >&6; }
10313 if test "x$ac_cv_func_shl_load" = x""yes; then
10314 lt_cv_dlopen="shl_load"
10315 else
10316 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10317 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10318 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10319 $as_echo_n "(cached) " >&6
10320 else
10321 ac_check_lib_save_LIBS=$LIBS
10322 LIBS="-ldld $LIBS"
10323 cat >conftest.$ac_ext <<_ACEOF
10324 /* confdefs.h. */
10325 _ACEOF
10326 cat confdefs.h >>conftest.$ac_ext
10327 cat >>conftest.$ac_ext <<_ACEOF
10328 /* end confdefs.h. */
10329
10330 /* Override any GCC internal prototype to avoid an error.
10331 Use char because int might match the return type of a GCC
10332 builtin and then its argument prototype would still apply. */
10333 #ifdef __cplusplus
10334 extern "C"
10335 #endif
10336 char shl_load ();
10337 int
10338 main ()
10339 {
10340 return shl_load ();
10341 ;
10342 return 0;
10343 }
10344 _ACEOF
10345 rm -f conftest.$ac_objext conftest$ac_exeext
10346 if { (ac_try="$ac_link"
10347 case "(($ac_try" in
10348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10349 *) ac_try_echo=$ac_try;;
10350 esac
10351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10352 $as_echo "$ac_try_echo") >&5
10353 (eval "$ac_link") 2>conftest.er1
10354 ac_status=$?
10355 grep -v '^ *+' conftest.er1 >conftest.err
10356 rm -f conftest.er1
10357 cat conftest.err >&5
10358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); } && {
10360 test -z "$ac_c_werror_flag" ||
10361 test ! -s conftest.err
10362 } && test -s conftest$ac_exeext && {
10363 test "$cross_compiling" = yes ||
10364 $as_test_x conftest$ac_exeext
10365 }; then
10366 ac_cv_lib_dld_shl_load=yes
10367 else
10368 $as_echo "$as_me: failed program was:" >&5
10369 sed 's/^/| /' conftest.$ac_ext >&5
10370
10371 ac_cv_lib_dld_shl_load=no
10372 fi
10373
10374 rm -rf conftest.dSYM
10375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10376 conftest$ac_exeext conftest.$ac_ext
10377 LIBS=$ac_check_lib_save_LIBS
10378 fi
10379 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10380 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10381 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10382 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10383 else
10384 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10385 $as_echo_n "checking for dlopen... " >&6; }
10386 if test "${ac_cv_func_dlopen+set}" = set; then
10387 $as_echo_n "(cached) " >&6
10388 else
10389 cat >conftest.$ac_ext <<_ACEOF
10390 /* confdefs.h. */
10391 _ACEOF
10392 cat confdefs.h >>conftest.$ac_ext
10393 cat >>conftest.$ac_ext <<_ACEOF
10394 /* end confdefs.h. */
10395 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10397 #define dlopen innocuous_dlopen
10398
10399 /* System header to define __stub macros and hopefully few prototypes,
10400 which can conflict with char dlopen (); below.
10401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10402 <limits.h> exists even on freestanding compilers. */
10403
10404 #ifdef __STDC__
10405 # include <limits.h>
10406 #else
10407 # include <assert.h>
10408 #endif
10409
10410 #undef dlopen
10411
10412 /* Override any GCC internal prototype to avoid an error.
10413 Use char because int might match the return type of a GCC
10414 builtin and then its argument prototype would still apply. */
10415 #ifdef __cplusplus
10416 extern "C"
10417 #endif
10418 char dlopen ();
10419 /* The GNU C library defines this for functions which it implements
10420 to always fail with ENOSYS. Some functions are actually named
10421 something starting with __ and the normal name is an alias. */
10422 #if defined __stub_dlopen || defined __stub___dlopen
10423 choke me
10424 #endif
10425
10426 int
10427 main ()
10428 {
10429 return dlopen ();
10430 ;
10431 return 0;
10432 }
10433 _ACEOF
10434 rm -f conftest.$ac_objext conftest$ac_exeext
10435 if { (ac_try="$ac_link"
10436 case "(($ac_try" in
10437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10438 *) ac_try_echo=$ac_try;;
10439 esac
10440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10441 $as_echo "$ac_try_echo") >&5
10442 (eval "$ac_link") 2>conftest.er1
10443 ac_status=$?
10444 grep -v '^ *+' conftest.er1 >conftest.err
10445 rm -f conftest.er1
10446 cat conftest.err >&5
10447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); } && {
10449 test -z "$ac_c_werror_flag" ||
10450 test ! -s conftest.err
10451 } && test -s conftest$ac_exeext && {
10452 test "$cross_compiling" = yes ||
10453 $as_test_x conftest$ac_exeext
10454 }; then
10455 ac_cv_func_dlopen=yes
10456 else
10457 $as_echo "$as_me: failed program was:" >&5
10458 sed 's/^/| /' conftest.$ac_ext >&5
10459
10460 ac_cv_func_dlopen=no
10461 fi
10462
10463 rm -rf conftest.dSYM
10464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10465 conftest$ac_exeext conftest.$ac_ext
10466 fi
10467 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10468 $as_echo "$ac_cv_func_dlopen" >&6; }
10469 if test "x$ac_cv_func_dlopen" = x""yes; then
10470 lt_cv_dlopen="dlopen"
10471 else
10472 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10473 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10474 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10475 $as_echo_n "(cached) " >&6
10476 else
10477 ac_check_lib_save_LIBS=$LIBS
10478 LIBS="-ldl $LIBS"
10479 cat >conftest.$ac_ext <<_ACEOF
10480 /* confdefs.h. */
10481 _ACEOF
10482 cat confdefs.h >>conftest.$ac_ext
10483 cat >>conftest.$ac_ext <<_ACEOF
10484 /* end confdefs.h. */
10485
10486 /* Override any GCC internal prototype to avoid an error.
10487 Use char because int might match the return type of a GCC
10488 builtin and then its argument prototype would still apply. */
10489 #ifdef __cplusplus
10490 extern "C"
10491 #endif
10492 char dlopen ();
10493 int
10494 main ()
10495 {
10496 return dlopen ();
10497 ;
10498 return 0;
10499 }
10500 _ACEOF
10501 rm -f conftest.$ac_objext conftest$ac_exeext
10502 if { (ac_try="$ac_link"
10503 case "(($ac_try" in
10504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10505 *) ac_try_echo=$ac_try;;
10506 esac
10507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10508 $as_echo "$ac_try_echo") >&5
10509 (eval "$ac_link") 2>conftest.er1
10510 ac_status=$?
10511 grep -v '^ *+' conftest.er1 >conftest.err
10512 rm -f conftest.er1
10513 cat conftest.err >&5
10514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515 (exit $ac_status); } && {
10516 test -z "$ac_c_werror_flag" ||
10517 test ! -s conftest.err
10518 } && test -s conftest$ac_exeext && {
10519 test "$cross_compiling" = yes ||
10520 $as_test_x conftest$ac_exeext
10521 }; then
10522 ac_cv_lib_dl_dlopen=yes
10523 else
10524 $as_echo "$as_me: failed program was:" >&5
10525 sed 's/^/| /' conftest.$ac_ext >&5
10526
10527 ac_cv_lib_dl_dlopen=no
10528 fi
10529
10530 rm -rf conftest.dSYM
10531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10532 conftest$ac_exeext conftest.$ac_ext
10533 LIBS=$ac_check_lib_save_LIBS
10534 fi
10535 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10536 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10537 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10538 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10539 else
10540 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10541 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10542 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10543 $as_echo_n "(cached) " >&6
10544 else
10545 ac_check_lib_save_LIBS=$LIBS
10546 LIBS="-lsvld $LIBS"
10547 cat >conftest.$ac_ext <<_ACEOF
10548 /* confdefs.h. */
10549 _ACEOF
10550 cat confdefs.h >>conftest.$ac_ext
10551 cat >>conftest.$ac_ext <<_ACEOF
10552 /* end confdefs.h. */
10553
10554 /* Override any GCC internal prototype to avoid an error.
10555 Use char because int might match the return type of a GCC
10556 builtin and then its argument prototype would still apply. */
10557 #ifdef __cplusplus
10558 extern "C"
10559 #endif
10560 char dlopen ();
10561 int
10562 main ()
10563 {
10564 return dlopen ();
10565 ;
10566 return 0;
10567 }
10568 _ACEOF
10569 rm -f conftest.$ac_objext conftest$ac_exeext
10570 if { (ac_try="$ac_link"
10571 case "(($ac_try" in
10572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10573 *) ac_try_echo=$ac_try;;
10574 esac
10575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10576 $as_echo "$ac_try_echo") >&5
10577 (eval "$ac_link") 2>conftest.er1
10578 ac_status=$?
10579 grep -v '^ *+' conftest.er1 >conftest.err
10580 rm -f conftest.er1
10581 cat conftest.err >&5
10582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); } && {
10584 test -z "$ac_c_werror_flag" ||
10585 test ! -s conftest.err
10586 } && test -s conftest$ac_exeext && {
10587 test "$cross_compiling" = yes ||
10588 $as_test_x conftest$ac_exeext
10589 }; then
10590 ac_cv_lib_svld_dlopen=yes
10591 else
10592 $as_echo "$as_me: failed program was:" >&5
10593 sed 's/^/| /' conftest.$ac_ext >&5
10594
10595 ac_cv_lib_svld_dlopen=no
10596 fi
10597
10598 rm -rf conftest.dSYM
10599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10600 conftest$ac_exeext conftest.$ac_ext
10601 LIBS=$ac_check_lib_save_LIBS
10602 fi
10603 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10604 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10605 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10606 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10607 else
10608 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10609 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10610 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10611 $as_echo_n "(cached) " >&6
10612 else
10613 ac_check_lib_save_LIBS=$LIBS
10614 LIBS="-ldld $LIBS"
10615 cat >conftest.$ac_ext <<_ACEOF
10616 /* confdefs.h. */
10617 _ACEOF
10618 cat confdefs.h >>conftest.$ac_ext
10619 cat >>conftest.$ac_ext <<_ACEOF
10620 /* end confdefs.h. */
10621
10622 /* Override any GCC internal prototype to avoid an error.
10623 Use char because int might match the return type of a GCC
10624 builtin and then its argument prototype would still apply. */
10625 #ifdef __cplusplus
10626 extern "C"
10627 #endif
10628 char dld_link ();
10629 int
10630 main ()
10631 {
10632 return dld_link ();
10633 ;
10634 return 0;
10635 }
10636 _ACEOF
10637 rm -f conftest.$ac_objext conftest$ac_exeext
10638 if { (ac_try="$ac_link"
10639 case "(($ac_try" in
10640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10641 *) ac_try_echo=$ac_try;;
10642 esac
10643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10644 $as_echo "$ac_try_echo") >&5
10645 (eval "$ac_link") 2>conftest.er1
10646 ac_status=$?
10647 grep -v '^ *+' conftest.er1 >conftest.err
10648 rm -f conftest.er1
10649 cat conftest.err >&5
10650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); } && {
10652 test -z "$ac_c_werror_flag" ||
10653 test ! -s conftest.err
10654 } && test -s conftest$ac_exeext && {
10655 test "$cross_compiling" = yes ||
10656 $as_test_x conftest$ac_exeext
10657 }; then
10658 ac_cv_lib_dld_dld_link=yes
10659 else
10660 $as_echo "$as_me: failed program was:" >&5
10661 sed 's/^/| /' conftest.$ac_ext >&5
10662
10663 ac_cv_lib_dld_dld_link=no
10664 fi
10665
10666 rm -rf conftest.dSYM
10667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10668 conftest$ac_exeext conftest.$ac_ext
10669 LIBS=$ac_check_lib_save_LIBS
10670 fi
10671 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10672 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10673 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10674 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10675 fi
10676
10677
10678 fi
10679
10680
10681 fi
10682
10683
10684 fi
10685
10686
10687 fi
10688
10689
10690 fi
10691
10692 ;;
10693 esac
10694
10695 if test "x$lt_cv_dlopen" != xno; then
10696 enable_dlopen=yes
10697 else
10698 enable_dlopen=no
10699 fi
10700
10701 case $lt_cv_dlopen in
10702 dlopen)
10703 save_CPPFLAGS="$CPPFLAGS"
10704 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10705
10706 save_LDFLAGS="$LDFLAGS"
10707 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10708
10709 save_LIBS="$LIBS"
10710 LIBS="$lt_cv_dlopen_libs $LIBS"
10711
10712 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10713 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10714 if test "${lt_cv_dlopen_self+set}" = set; then
10715 $as_echo_n "(cached) " >&6
10716 else
10717 if test "$cross_compiling" = yes; then :
10718 lt_cv_dlopen_self=cross
10719 else
10720 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10721 lt_status=$lt_dlunknown
10722 cat > conftest.$ac_ext <<_LT_EOF
10723 #line 10723 "configure"
10724 #include "confdefs.h"
10725
10726 #if HAVE_DLFCN_H
10727 #include <dlfcn.h>
10728 #endif
10729
10730 #include <stdio.h>
10731
10732 #ifdef RTLD_GLOBAL
10733 # define LT_DLGLOBAL RTLD_GLOBAL
10734 #else
10735 # ifdef DL_GLOBAL
10736 # define LT_DLGLOBAL DL_GLOBAL
10737 # else
10738 # define LT_DLGLOBAL 0
10739 # endif
10740 #endif
10741
10742 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10743 find out it does not work in some platform. */
10744 #ifndef LT_DLLAZY_OR_NOW
10745 # ifdef RTLD_LAZY
10746 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10747 # else
10748 # ifdef DL_LAZY
10749 # define LT_DLLAZY_OR_NOW DL_LAZY
10750 # else
10751 # ifdef RTLD_NOW
10752 # define LT_DLLAZY_OR_NOW RTLD_NOW
10753 # else
10754 # ifdef DL_NOW
10755 # define LT_DLLAZY_OR_NOW DL_NOW
10756 # else
10757 # define LT_DLLAZY_OR_NOW 0
10758 # endif
10759 # endif
10760 # endif
10761 # endif
10762 #endif
10763
10764 void fnord() { int i=42;}
10765 int main ()
10766 {
10767 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10768 int status = $lt_dlunknown;
10769
10770 if (self)
10771 {
10772 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10773 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10774 /* dlclose (self); */
10775 }
10776 else
10777 puts (dlerror ());
10778
10779 return status;
10780 }
10781 _LT_EOF
10782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10783 (eval $ac_link) 2>&5
10784 ac_status=$?
10785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10787 (./conftest; exit; ) >&5 2>/dev/null
10788 lt_status=$?
10789 case x$lt_status in
10790 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10791 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10792 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10793 esac
10794 else :
10795 # compilation failed
10796 lt_cv_dlopen_self=no
10797 fi
10798 fi
10799 rm -fr conftest*
10800
10801
10802 fi
10803 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10804 $as_echo "$lt_cv_dlopen_self" >&6; }
10805
10806 if test "x$lt_cv_dlopen_self" = xyes; then
10807 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10808 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10809 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10810 if test "${lt_cv_dlopen_self_static+set}" = set; then
10811 $as_echo_n "(cached) " >&6
10812 else
10813 if test "$cross_compiling" = yes; then :
10814 lt_cv_dlopen_self_static=cross
10815 else
10816 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10817 lt_status=$lt_dlunknown
10818 cat > conftest.$ac_ext <<_LT_EOF
10819 #line 10819 "configure"
10820 #include "confdefs.h"
10821
10822 #if HAVE_DLFCN_H
10823 #include <dlfcn.h>
10824 #endif
10825
10826 #include <stdio.h>
10827
10828 #ifdef RTLD_GLOBAL
10829 # define LT_DLGLOBAL RTLD_GLOBAL
10830 #else
10831 # ifdef DL_GLOBAL
10832 # define LT_DLGLOBAL DL_GLOBAL
10833 # else
10834 # define LT_DLGLOBAL 0
10835 # endif
10836 #endif
10837
10838 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10839 find out it does not work in some platform. */
10840 #ifndef LT_DLLAZY_OR_NOW
10841 # ifdef RTLD_LAZY
10842 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10843 # else
10844 # ifdef DL_LAZY
10845 # define LT_DLLAZY_OR_NOW DL_LAZY
10846 # else
10847 # ifdef RTLD_NOW
10848 # define LT_DLLAZY_OR_NOW RTLD_NOW
10849 # else
10850 # ifdef DL_NOW
10851 # define LT_DLLAZY_OR_NOW DL_NOW
10852 # else
10853 # define LT_DLLAZY_OR_NOW 0
10854 # endif
10855 # endif
10856 # endif
10857 # endif
10858 #endif
10859
10860 void fnord() { int i=42;}
10861 int main ()
10862 {
10863 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10864 int status = $lt_dlunknown;
10865
10866 if (self)
10867 {
10868 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10869 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10870 /* dlclose (self); */
10871 }
10872 else
10873 puts (dlerror ());
10874
10875 return status;
10876 }
10877 _LT_EOF
10878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10879 (eval $ac_link) 2>&5
10880 ac_status=$?
10881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10883 (./conftest; exit; ) >&5 2>/dev/null
10884 lt_status=$?
10885 case x$lt_status in
10886 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10887 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10888 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10889 esac
10890 else :
10891 # compilation failed
10892 lt_cv_dlopen_self_static=no
10893 fi
10894 fi
10895 rm -fr conftest*
10896
10897
10898 fi
10899 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10900 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10901 fi
10902
10903 CPPFLAGS="$save_CPPFLAGS"
10904 LDFLAGS="$save_LDFLAGS"
10905 LIBS="$save_LIBS"
10906 ;;
10907 esac
10908
10909 case $lt_cv_dlopen_self in
10910 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10911 *) enable_dlopen_self=unknown ;;
10912 esac
10913
10914 case $lt_cv_dlopen_self_static in
10915 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10916 *) enable_dlopen_self_static=unknown ;;
10917 esac
10918 fi
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936 striplib=
10937 old_striplib=
10938 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10939 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10940 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10941 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10942 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10943 { $as_echo "$as_me:$LINENO: result: yes" >&5
10944 $as_echo "yes" >&6; }
10945 else
10946 # FIXME - insert some real tests, host_os isn't really good enough
10947 case $host_os in
10948 darwin*)
10949 if test -n "$STRIP" ; then
10950 striplib="$STRIP -x"
10951 old_striplib="$STRIP -S"
10952 { $as_echo "$as_me:$LINENO: result: yes" >&5
10953 $as_echo "yes" >&6; }
10954 else
10955 { $as_echo "$as_me:$LINENO: result: no" >&5
10956 $as_echo "no" >&6; }
10957 fi
10958 ;;
10959 *)
10960 { $as_echo "$as_me:$LINENO: result: no" >&5
10961 $as_echo "no" >&6; }
10962 ;;
10963 esac
10964 fi
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977 # Report which library types will actually be built
10978 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10979 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10980 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10981 $as_echo "$can_build_shared" >&6; }
10982
10983 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10984 $as_echo_n "checking whether to build shared libraries... " >&6; }
10985 test "$can_build_shared" = "no" && enable_shared=no
10986
10987 # On AIX, shared libraries and static libraries use the same namespace, and
10988 # are all built from PIC.
10989 case $host_os in
10990 aix3*)
10991 test "$enable_shared" = yes && enable_static=no
10992 if test -n "$RANLIB"; then
10993 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10994 postinstall_cmds='$RANLIB $lib'
10995 fi
10996 ;;
10997
10998 aix[4-9]*)
10999 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11000 test "$enable_shared" = yes && enable_static=no
11001 fi
11002 ;;
11003 esac
11004 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11005 $as_echo "$enable_shared" >&6; }
11006
11007 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11008 $as_echo_n "checking whether to build static libraries... " >&6; }
11009 # Make sure either enable_shared or enable_static is yes.
11010 test "$enable_shared" = yes || enable_static=yes
11011 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11012 $as_echo "$enable_static" >&6; }
11013
11014
11015
11016
11017 fi
11018 ac_ext=c
11019 ac_cpp='$CPP $CPPFLAGS'
11020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11023
11024 CC="$lt_save_CC"
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038 ac_config_commands="$ac_config_commands libtool"
11039
11040
11041
11042
11043 # Only expand once:
11044
11045
11046
11047
11048 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
11049 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11050 if test "${ac_cv_c_bigendian+set}" = set; then
11051 $as_echo_n "(cached) " >&6
11052 else
11053 ac_cv_c_bigendian=unknown
11054 # See if we're dealing with a universal compiler.
11055 cat >conftest.$ac_ext <<_ACEOF
11056 /* confdefs.h. */
11057 _ACEOF
11058 cat confdefs.h >>conftest.$ac_ext
11059 cat >>conftest.$ac_ext <<_ACEOF
11060 /* end confdefs.h. */
11061 #ifndef __APPLE_CC__
11062 not a universal capable compiler
11063 #endif
11064 typedef int dummy;
11065
11066 _ACEOF
11067 rm -f conftest.$ac_objext
11068 if { (ac_try="$ac_compile"
11069 case "(($ac_try" in
11070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11071 *) ac_try_echo=$ac_try;;
11072 esac
11073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11074 $as_echo "$ac_try_echo") >&5
11075 (eval "$ac_compile") 2>conftest.er1
11076 ac_status=$?
11077 grep -v '^ *+' conftest.er1 >conftest.err
11078 rm -f conftest.er1
11079 cat conftest.err >&5
11080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); } && {
11082 test -z "$ac_c_werror_flag" ||
11083 test ! -s conftest.err
11084 } && test -s conftest.$ac_objext; then
11085
11086 # Check for potential -arch flags. It is not universal unless
11087 # there are some -arch flags. Note that *ppc* also matches
11088 # ppc64. This check is also rather less than ideal.
11089 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
11090 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
11091 esac
11092 else
11093 $as_echo "$as_me: failed program was:" >&5
11094 sed 's/^/| /' conftest.$ac_ext >&5
11095
11096
11097 fi
11098
11099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11100 if test $ac_cv_c_bigendian = unknown; then
11101 # See if sys/param.h defines the BYTE_ORDER macro.
11102 cat >conftest.$ac_ext <<_ACEOF
11103 /* confdefs.h. */
11104 _ACEOF
11105 cat confdefs.h >>conftest.$ac_ext
11106 cat >>conftest.$ac_ext <<_ACEOF
11107 /* end confdefs.h. */
11108 #include <sys/types.h>
11109 #include <sys/param.h>
11110
11111 int
11112 main ()
11113 {
11114 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11115 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11116 && LITTLE_ENDIAN)
11117 bogus endian macros
11118 #endif
11119
11120 ;
11121 return 0;
11122 }
11123 _ACEOF
11124 rm -f conftest.$ac_objext
11125 if { (ac_try="$ac_compile"
11126 case "(($ac_try" in
11127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11128 *) ac_try_echo=$ac_try;;
11129 esac
11130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11131 $as_echo "$ac_try_echo") >&5
11132 (eval "$ac_compile") 2>conftest.er1
11133 ac_status=$?
11134 grep -v '^ *+' conftest.er1 >conftest.err
11135 rm -f conftest.er1
11136 cat conftest.err >&5
11137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); } && {
11139 test -z "$ac_c_werror_flag" ||
11140 test ! -s conftest.err
11141 } && test -s conftest.$ac_objext; then
11142 # It does; now see whether it defined to BIG_ENDIAN or not.
11143 cat >conftest.$ac_ext <<_ACEOF
11144 /* confdefs.h. */
11145 _ACEOF
11146 cat confdefs.h >>conftest.$ac_ext
11147 cat >>conftest.$ac_ext <<_ACEOF
11148 /* end confdefs.h. */
11149 #include <sys/types.h>
11150 #include <sys/param.h>
11151
11152 int
11153 main ()
11154 {
11155 #if BYTE_ORDER != BIG_ENDIAN
11156 not big endian
11157 #endif
11158
11159 ;
11160 return 0;
11161 }
11162 _ACEOF
11163 rm -f conftest.$ac_objext
11164 if { (ac_try="$ac_compile"
11165 case "(($ac_try" in
11166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11167 *) ac_try_echo=$ac_try;;
11168 esac
11169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11170 $as_echo "$ac_try_echo") >&5
11171 (eval "$ac_compile") 2>conftest.er1
11172 ac_status=$?
11173 grep -v '^ *+' conftest.er1 >conftest.err
11174 rm -f conftest.er1
11175 cat conftest.err >&5
11176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); } && {
11178 test -z "$ac_c_werror_flag" ||
11179 test ! -s conftest.err
11180 } && test -s conftest.$ac_objext; then
11181 ac_cv_c_bigendian=yes
11182 else
11183 $as_echo "$as_me: failed program was:" >&5
11184 sed 's/^/| /' conftest.$ac_ext >&5
11185
11186 ac_cv_c_bigendian=no
11187 fi
11188
11189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11190 else
11191 $as_echo "$as_me: failed program was:" >&5
11192 sed 's/^/| /' conftest.$ac_ext >&5
11193
11194
11195 fi
11196
11197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11198 fi
11199 if test $ac_cv_c_bigendian = unknown; then
11200 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11201 cat >conftest.$ac_ext <<_ACEOF
11202 /* confdefs.h. */
11203 _ACEOF
11204 cat confdefs.h >>conftest.$ac_ext
11205 cat >>conftest.$ac_ext <<_ACEOF
11206 /* end confdefs.h. */
11207 #include <limits.h>
11208
11209 int
11210 main ()
11211 {
11212 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11213 bogus endian macros
11214 #endif
11215
11216 ;
11217 return 0;
11218 }
11219 _ACEOF
11220 rm -f conftest.$ac_objext
11221 if { (ac_try="$ac_compile"
11222 case "(($ac_try" in
11223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11224 *) ac_try_echo=$ac_try;;
11225 esac
11226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11227 $as_echo "$ac_try_echo") >&5
11228 (eval "$ac_compile") 2>conftest.er1
11229 ac_status=$?
11230 grep -v '^ *+' conftest.er1 >conftest.err
11231 rm -f conftest.er1
11232 cat conftest.err >&5
11233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); } && {
11235 test -z "$ac_c_werror_flag" ||
11236 test ! -s conftest.err
11237 } && test -s conftest.$ac_objext; then
11238 # It does; now see whether it defined to _BIG_ENDIAN or not.
11239 cat >conftest.$ac_ext <<_ACEOF
11240 /* confdefs.h. */
11241 _ACEOF
11242 cat confdefs.h >>conftest.$ac_ext
11243 cat >>conftest.$ac_ext <<_ACEOF
11244 /* end confdefs.h. */
11245 #include <limits.h>
11246
11247 int
11248 main ()
11249 {
11250 #ifndef _BIG_ENDIAN
11251 not big endian
11252 #endif
11253
11254 ;
11255 return 0;
11256 }
11257 _ACEOF
11258 rm -f conftest.$ac_objext
11259 if { (ac_try="$ac_compile"
11260 case "(($ac_try" in
11261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11262 *) ac_try_echo=$ac_try;;
11263 esac
11264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11265 $as_echo "$ac_try_echo") >&5
11266 (eval "$ac_compile") 2>conftest.er1
11267 ac_status=$?
11268 grep -v '^ *+' conftest.er1 >conftest.err
11269 rm -f conftest.er1
11270 cat conftest.err >&5
11271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); } && {
11273 test -z "$ac_c_werror_flag" ||
11274 test ! -s conftest.err
11275 } && test -s conftest.$ac_objext; then
11276 ac_cv_c_bigendian=yes
11277 else
11278 $as_echo "$as_me: failed program was:" >&5
11279 sed 's/^/| /' conftest.$ac_ext >&5
11280
11281 ac_cv_c_bigendian=no
11282 fi
11283
11284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11285 else
11286 $as_echo "$as_me: failed program was:" >&5
11287 sed 's/^/| /' conftest.$ac_ext >&5
11288
11289
11290 fi
11291
11292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11293 fi
11294 if test $ac_cv_c_bigendian = unknown; then
11295 # Compile a test program.
11296 if test "$cross_compiling" = yes; then
11297 # Try to guess by grepping values from an object file.
11298 cat >conftest.$ac_ext <<_ACEOF
11299 /* confdefs.h. */
11300 _ACEOF
11301 cat confdefs.h >>conftest.$ac_ext
11302 cat >>conftest.$ac_ext <<_ACEOF
11303 /* end confdefs.h. */
11304 short int ascii_mm[] =
11305 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11306 short int ascii_ii[] =
11307 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11308 int use_ascii (int i) {
11309 return ascii_mm[i] + ascii_ii[i];
11310 }
11311 short int ebcdic_ii[] =
11312 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11313 short int ebcdic_mm[] =
11314 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11315 int use_ebcdic (int i) {
11316 return ebcdic_mm[i] + ebcdic_ii[i];
11317 }
11318 extern int foo;
11319
11320 int
11321 main ()
11322 {
11323 return use_ascii (foo) == use_ebcdic (foo);
11324 ;
11325 return 0;
11326 }
11327 _ACEOF
11328 rm -f conftest.$ac_objext
11329 if { (ac_try="$ac_compile"
11330 case "(($ac_try" in
11331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11332 *) ac_try_echo=$ac_try;;
11333 esac
11334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11335 $as_echo "$ac_try_echo") >&5
11336 (eval "$ac_compile") 2>conftest.er1
11337 ac_status=$?
11338 grep -v '^ *+' conftest.er1 >conftest.err
11339 rm -f conftest.er1
11340 cat conftest.err >&5
11341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); } && {
11343 test -z "$ac_c_werror_flag" ||
11344 test ! -s conftest.err
11345 } && test -s conftest.$ac_objext; then
11346 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11347 ac_cv_c_bigendian=yes
11348 fi
11349 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11350 if test "$ac_cv_c_bigendian" = unknown; then
11351 ac_cv_c_bigendian=no
11352 else
11353 # finding both strings is unlikely to happen, but who knows?
11354 ac_cv_c_bigendian=unknown
11355 fi
11356 fi
11357 else
11358 $as_echo "$as_me: failed program was:" >&5
11359 sed 's/^/| /' conftest.$ac_ext >&5
11360
11361
11362 fi
11363
11364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11365 else
11366 cat >conftest.$ac_ext <<_ACEOF
11367 /* confdefs.h. */
11368 _ACEOF
11369 cat confdefs.h >>conftest.$ac_ext
11370 cat >>conftest.$ac_ext <<_ACEOF
11371 /* end confdefs.h. */
11372 $ac_includes_default
11373 int
11374 main ()
11375 {
11376
11377 /* Are we little or big endian? From Harbison&Steele. */
11378 union
11379 {
11380 long int l;
11381 char c[sizeof (long int)];
11382 } u;
11383 u.l = 1;
11384 return u.c[sizeof (long int) - 1] == 1;
11385
11386 ;
11387 return 0;
11388 }
11389 _ACEOF
11390 rm -f conftest$ac_exeext
11391 if { (ac_try="$ac_link"
11392 case "(($ac_try" in
11393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11394 *) ac_try_echo=$ac_try;;
11395 esac
11396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11397 $as_echo "$ac_try_echo") >&5
11398 (eval "$ac_link") 2>&5
11399 ac_status=$?
11400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11402 { (case "(($ac_try" in
11403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11404 *) ac_try_echo=$ac_try;;
11405 esac
11406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11407 $as_echo "$ac_try_echo") >&5
11408 (eval "$ac_try") 2>&5
11409 ac_status=$?
11410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); }; }; then
11412 ac_cv_c_bigendian=no
11413 else
11414 $as_echo "$as_me: program exited with status $ac_status" >&5
11415 $as_echo "$as_me: failed program was:" >&5
11416 sed 's/^/| /' conftest.$ac_ext >&5
11417
11418 ( exit $ac_status )
11419 ac_cv_c_bigendian=yes
11420 fi
11421 rm -rf conftest.dSYM
11422 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11423 fi
11424
11425
11426 fi
11427 fi
11428 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
11429 $as_echo "$ac_cv_c_bigendian" >&6; }
11430 case $ac_cv_c_bigendian in #(
11431 yes)
11432 cat >>confdefs.h <<\_ACEOF
11433 #define WORDS_BIGENDIAN 1
11434 _ACEOF
11435 ;; #(
11436 no)
11437 ;; #(
11438 universal)
11439
11440 cat >>confdefs.h <<\_ACEOF
11441 #define AC_APPLE_UNIVERSAL_BUILD 1
11442 _ACEOF
11443
11444 ;; #(
11445 *)
11446 { { $as_echo "$as_me:$LINENO: error: unknown endianness
11447 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
11448 $as_echo "$as_me: error: unknown endianness
11449 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
11450 { (exit 1); exit 1; }; } ;;
11451 esac
11452
11453
11454
11455
11456
11457
11458
11459 for ac_header in math.h stdarg.h pthread.h dirent.h ladspa.h
11460 do
11461 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11463 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11464 $as_echo_n "checking for $ac_header... " >&6; }
11465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11466 $as_echo_n "(cached) " >&6
11467 fi
11468 ac_res=`eval 'as_val=${'$as_ac_Header'}
11469 $as_echo "$as_val"'`
11470 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11471 $as_echo "$ac_res" >&6; }
11472 else
11473 # Is the header compilable?
11474 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11475 $as_echo_n "checking $ac_header usability... " >&6; }
11476 cat >conftest.$ac_ext <<_ACEOF
11477 /* confdefs.h. */
11478 _ACEOF
11479 cat confdefs.h >>conftest.$ac_ext
11480 cat >>conftest.$ac_ext <<_ACEOF
11481 /* end confdefs.h. */
11482 $ac_includes_default
11483 #include <$ac_header>
11484 _ACEOF
11485 rm -f conftest.$ac_objext
11486 if { (ac_try="$ac_compile"
11487 case "(($ac_try" in
11488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11489 *) ac_try_echo=$ac_try;;
11490 esac
11491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11492 $as_echo "$ac_try_echo") >&5
11493 (eval "$ac_compile") 2>conftest.er1
11494 ac_status=$?
11495 grep -v '^ *+' conftest.er1 >conftest.err
11496 rm -f conftest.er1
11497 cat conftest.err >&5
11498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); } && {
11500 test -z "$ac_c_werror_flag" ||
11501 test ! -s conftest.err
11502 } && test -s conftest.$ac_objext; then
11503 ac_header_compiler=yes
11504 else
11505 $as_echo "$as_me: failed program was:" >&5
11506 sed 's/^/| /' conftest.$ac_ext >&5
11507
11508 ac_header_compiler=no
11509 fi
11510
11511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11512 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11513 $as_echo "$ac_header_compiler" >&6; }
11514
11515 # Is the header present?
11516 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11517 $as_echo_n "checking $ac_header presence... " >&6; }
11518 cat >conftest.$ac_ext <<_ACEOF
11519 /* confdefs.h. */
11520 _ACEOF
11521 cat confdefs.h >>conftest.$ac_ext
11522 cat >>conftest.$ac_ext <<_ACEOF
11523 /* end confdefs.h. */
11524 #include <$ac_header>
11525 _ACEOF
11526 if { (ac_try="$ac_cpp conftest.$ac_ext"
11527 case "(($ac_try" in
11528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11529 *) ac_try_echo=$ac_try;;
11530 esac
11531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11532 $as_echo "$ac_try_echo") >&5
11533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11534 ac_status=$?
11535 grep -v '^ *+' conftest.er1 >conftest.err
11536 rm -f conftest.er1
11537 cat conftest.err >&5
11538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); } >/dev/null && {
11540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11541 test ! -s conftest.err
11542 }; then
11543 ac_header_preproc=yes
11544 else
11545 $as_echo "$as_me: failed program was:" >&5
11546 sed 's/^/| /' conftest.$ac_ext >&5
11547
11548 ac_header_preproc=no
11549 fi
11550
11551 rm -f conftest.err conftest.$ac_ext
11552 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11553 $as_echo "$ac_header_preproc" >&6; }
11554
11555 # So? What about this header?
11556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11557 yes:no: )
11558 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11559 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11560 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11561 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11562 ac_header_preproc=yes
11563 ;;
11564 no:yes:* )
11565 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11566 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11567 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11568 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11569 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11570 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11571 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11572 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11573 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11574 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11575 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11576 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11577 ( cat <<\_ASBOX
11578 ## ----------------------------------------------- ##
11579 ## Report this to [email protected] ##
11580 ## ----------------------------------------------- ##
11581 _ASBOX
11582 ) | sed "s/^/$as_me: WARNING: /" >&2
11583 ;;
11584 esac
11585 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11586 $as_echo_n "checking for $ac_header... " >&6; }
11587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11588 $as_echo_n "(cached) " >&6
11589 else
11590 eval "$as_ac_Header=\$ac_header_preproc"
11591 fi
11592 ac_res=`eval 'as_val=${'$as_ac_Header'}
11593 $as_echo "$as_val"'`
11594 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11595 $as_echo "$ac_res" >&6; }
11596
11597 fi
11598 as_val=`eval 'as_val=${'$as_ac_Header'}
11599 $as_echo "$as_val"'`
11600 if test "x$as_val" = x""yes; then
11601 cat >>confdefs.h <<_ACEOF
11602 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11603 _ACEOF
11604
11605 fi
11606
11607 done
11608
11609
11610
11611
11612 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11613 if test -n "$ac_tool_prefix"; then
11614 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11615 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11616 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11617 $as_echo_n "checking for $ac_word... " >&6; }
11618 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11619 $as_echo_n "(cached) " >&6
11620 else
11621 case $PKG_CONFIG in
11622 [\\/]* | ?:[\\/]*)
11623 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11624 ;;
11625 *)
11626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11627 for as_dir in $PATH
11628 do
11629 IFS=$as_save_IFS
11630 test -z "$as_dir" && as_dir=.
11631 for ac_exec_ext in '' $ac_executable_extensions; do
11632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11633 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11634 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11635 break 2
11636 fi
11637 done
11638 done
11639 IFS=$as_save_IFS
11640
11641 ;;
11642 esac
11643 fi
11644 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11645 if test -n "$PKG_CONFIG"; then
11646 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11647 $as_echo "$PKG_CONFIG" >&6; }
11648 else
11649 { $as_echo "$as_me:$LINENO: result: no" >&5
11650 $as_echo "no" >&6; }
11651 fi
11652
11653
11654 fi
11655 if test -z "$ac_cv_path_PKG_CONFIG"; then
11656 ac_pt_PKG_CONFIG=$PKG_CONFIG
11657 # Extract the first word of "pkg-config", so it can be a program name with args.
11658 set dummy pkg-config; ac_word=$2
11659 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11660 $as_echo_n "checking for $ac_word... " >&6; }
11661 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
11662 $as_echo_n "(cached) " >&6
11663 else
11664 case $ac_pt_PKG_CONFIG in
11665 [\\/]* | ?:[\\/]*)
11666 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11667 ;;
11668 *)
11669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11670 for as_dir in $PATH
11671 do
11672 IFS=$as_save_IFS
11673 test -z "$as_dir" && as_dir=.
11674 for ac_exec_ext in '' $ac_executable_extensions; do
11675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11676 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11677 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11678 break 2
11679 fi
11680 done
11681 done
11682 IFS=$as_save_IFS
11683
11684 ;;
11685 esac
11686 fi
11687 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11688 if test -n "$ac_pt_PKG_CONFIG"; then
11689 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
11690 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11691 else
11692 { $as_echo "$as_me:$LINENO: result: no" >&5
11693 $as_echo "no" >&6; }
11694 fi
11695
11696 if test "x$ac_pt_PKG_CONFIG" = x; then
11697 PKG_CONFIG=""
11698 else
11699 case $cross_compiling:$ac_tool_warned in
11700 yes:)
11701 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11703 ac_tool_warned=yes ;;
11704 esac
11705 PKG_CONFIG=$ac_pt_PKG_CONFIG
11706 fi
11707 else
11708 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11709 fi
11710
11711 fi
11712 if test -n "$PKG_CONFIG"; then
11713 _pkg_min_version=0.9.0
11714 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
11715 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11716 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11717 { $as_echo "$as_me:$LINENO: result: yes" >&5
11718 $as_echo "yes" >&6; }
11719 else
11720 { $as_echo "$as_me:$LINENO: result: no" >&5
11721 $as_echo "no" >&6; }
11722 PKG_CONFIG=""
11723 fi
11724
11725 fi
11726
11727 pkg_failed=no
11728 { $as_echo "$as_me:$LINENO: checking for FLUID" >&5
11729 $as_echo_n "checking for FLUID... " >&6; }
11730
11731 if test -n "$FLUID_CFLAGS"; then
11732 pkg_cv_FLUID_CFLAGS="$FLUID_CFLAGS"
11733 elif test -n "$PKG_CONFIG"; then
11734 if test -n "$PKG_CONFIG" && \
11735 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fluidsynth >= 1.0.3\"") >&5
11736 ($PKG_CONFIG --exists --print-errors "fluidsynth >= 1.0.3") 2>&5
11737 ac_status=$?
11738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); }; then
11740 pkg_cv_FLUID_CFLAGS=`$PKG_CONFIG --cflags "fluidsynth >= 1.0.3" 2>/dev/null`
11741 else
11742 pkg_failed=yes
11743 fi
11744 else
11745 pkg_failed=untried
11746 fi
11747 if test -n "$FLUID_LIBS"; then
11748 pkg_cv_FLUID_LIBS="$FLUID_LIBS"
11749 elif test -n "$PKG_CONFIG"; then
11750 if test -n "$PKG_CONFIG" && \
11751 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fluidsynth >= 1.0.3\"") >&5
11752 ($PKG_CONFIG --exists --print-errors "fluidsynth >= 1.0.3") 2>&5
11753 ac_status=$?
11754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); }; then
11756 pkg_cv_FLUID_LIBS=`$PKG_CONFIG --libs "fluidsynth >= 1.0.3" 2>/dev/null`
11757 else
11758 pkg_failed=yes
11759 fi
11760 else
11761 pkg_failed=untried
11762 fi
11763
11764
11765
11766 if test $pkg_failed = yes; then
11767
11768 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11769 _pkg_short_errors_supported=yes
11770 else
11771 _pkg_short_errors_supported=no
11772 fi
11773 if test $_pkg_short_errors_supported = yes; then
11774 FLUID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fluidsynth >= 1.0.3" 2>&1`
11775 else
11776 FLUID_PKG_ERRORS=`$PKG_CONFIG --print-errors "fluidsynth >= 1.0.3" 2>&1`
11777 fi
11778 # Put the nasty error message in config.log where it belongs
11779 echo "$FLUID_PKG_ERRORS" >&5
11780
11781 { { $as_echo "$as_me:$LINENO: error: Package requirements (fluidsynth >= 1.0.3) were not met:
11782
11783 $FLUID_PKG_ERRORS
11784
11785 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11786 installed software in a non-standard prefix.
11787
11788 Alternatively, you may set the environment variables FLUID_CFLAGS
11789 and FLUID_LIBS to avoid the need to call pkg-config.
11790 See the pkg-config man page for more details.
11791 " >&5
11792 $as_echo "$as_me: error: Package requirements (fluidsynth >= 1.0.3) were not met:
11793
11794 $FLUID_PKG_ERRORS
11795
11796 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11797 installed software in a non-standard prefix.
11798
11799 Alternatively, you may set the environment variables FLUID_CFLAGS
11800 and FLUID_LIBS to avoid the need to call pkg-config.
11801 See the pkg-config man page for more details.
11802 " >&2;}
11803 { (exit 1); exit 1; }; }
11804 elif test $pkg_failed = untried; then
11805 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11806 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11807 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11808 is in your PATH or set the PKG_CONFIG environment variable to the full
11809 path to pkg-config.
11810
11811 Alternatively, you may set the environment variables FLUID_CFLAGS
11812 and FLUID_LIBS to avoid the need to call pkg-config.
11813 See the pkg-config man page for more details.
11814
11815 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11816 See \`config.log' for more details." >&5
11817 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11818 is in your PATH or set the PKG_CONFIG environment variable to the full
11819 path to pkg-config.
11820
11821 Alternatively, you may set the environment variables FLUID_CFLAGS
11822 and FLUID_LIBS to avoid the need to call pkg-config.
11823 See the pkg-config man page for more details.
11824
11825 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11826 See \`config.log' for more details." >&2;}
11827 { (exit 1); exit 1; }; }; }
11828 else
11829 FLUID_CFLAGS=$pkg_cv_FLUID_CFLAGS
11830 FLUID_LIBS=$pkg_cv_FLUID_LIBS
11831 { $as_echo "$as_me:$LINENO: result: yes" >&5
11832 $as_echo "yes" >&6; }
11833 :
11834 fi
11835
11836
11837 have106=no
11838 if test -n "$PKG_CONFIG" && \
11839 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fluidsynth >= 1.0.6\"") >&5
11840 ($PKG_CONFIG --exists --print-errors "fluidsynth >= 1.0.6") 2>&5
11841 ac_status=$?
11842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843 (exit $ac_status); }; then
11844 have106=yes
11845 fi
11846 if test "x${have106}" = xyes ; then
11847 echo "using FluidSynth polyphony-setting API"
11848
11849 cat >>confdefs.h <<\_ACEOF
11850 #define USE_AUGMENTED_FLUIDSYNTH_API 1
11851 _ACEOF
11852
11853 echo "using fluid_synth_nwrite_float() directly"
11854
11855 cat >>confdefs.h <<\_ACEOF
11856 #define NWRITE_FLOAT_WORKS_CORRECTLY 1
11857 _ACEOF
11858
11859 else
11860 echo "FluidSynth polyphony-setting API not available"
11861 echo "using fluid_synth_nwrite_float() workaround"
11862 echo "(You may wish to upgrade your FluidSynth to version 1.0.6 or later)"
11863 fi
11864
11865
11866 # Check whether --with-gtk2 was given.
11867 if test "${with_gtk2+set}" = set; then
11868 withval=$with_gtk2; if test $withval = "yes"; then try_gtk2=yes ;
11869 else try_gtk2=no ; fi
11870 else
11871 try_gtk2=yes
11872 fi
11873
11874 with_gtk=no
11875 if test "x${try_gtk2}" = 'xyes'; then
11876 # Check whether --enable-gtktest was given.
11877 if test "${enable_gtktest+set}" = set; then
11878 enableval=$enable_gtktest;
11879 else
11880 enable_gtktest=yes
11881 fi
11882
11883
11884 pkg_config_args=gtk+-2.0
11885 for module in .
11886 do
11887 case "$module" in
11888 gthread)
11889 pkg_config_args="$pkg_config_args gthread-2.0"
11890 ;;
11891 esac
11892 done
11893
11894 no_gtk=""
11895
11896 # Extract the first word of "pkg-config", so it can be a program name with args.
11897 set dummy pkg-config; ac_word=$2
11898 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11899 $as_echo_n "checking for $ac_word... " >&6; }
11900 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11901 $as_echo_n "(cached) " >&6
11902 else
11903 case $PKG_CONFIG in
11904 [\\/]* | ?:[\\/]*)
11905 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11906 ;;
11907 *)
11908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11909 for as_dir in $PATH
11910 do
11911 IFS=$as_save_IFS
11912 test -z "$as_dir" && as_dir=.
11913 for ac_exec_ext in '' $ac_executable_extensions; do
11914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11915 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11916 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11917 break 2
11918 fi
11919 done
11920 done
11921 IFS=$as_save_IFS
11922
11923 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11924 ;;
11925 esac
11926 fi
11927 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11928 if test -n "$PKG_CONFIG"; then
11929 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11930 $as_echo "$PKG_CONFIG" >&6; }
11931 else
11932 { $as_echo "$as_me:$LINENO: result: no" >&5
11933 $as_echo "no" >&6; }
11934 fi
11935
11936
11937
11938 if test x$PKG_CONFIG != xno ; then
11939 if pkg-config --atleast-pkgconfig-version 0.7 ; then
11940 :
11941 else
11942 echo "*** pkg-config too old; version 0.7 or better required."
11943 no_gtk=yes
11944 PKG_CONFIG=no
11945 fi
11946 else
11947 no_gtk=yes
11948 fi
11949
11950 min_gtk_version=2.0.0
11951 { $as_echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
11952 $as_echo_n "checking for GTK+ - version >= $min_gtk_version... " >&6; }
11953
11954 if test x$PKG_CONFIG != xno ; then
11955 ## don't try to run the test against uninstalled libtool libs
11956 if $PKG_CONFIG --uninstalled $pkg_config_args; then
11957 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
11958 enable_gtktest=no
11959 fi
11960
11961 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
11962 :
11963 else
11964 no_gtk=yes
11965 fi
11966 fi
11967
11968 if test x"$no_gtk" = x ; then
11969 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
11970 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
11971 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11972 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11973 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11974 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11975 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11976 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11977 if test "x$enable_gtktest" = "xyes" ; then
11978 ac_save_CFLAGS="$CFLAGS"
11979 ac_save_LIBS="$LIBS"
11980 CFLAGS="$CFLAGS $GTK_CFLAGS"
11981 LIBS="$GTK_LIBS $LIBS"
11982 rm -f conf.gtktest
11983 if test "$cross_compiling" = yes; then
11984 echo $ac_n "cross compiling; assumed OK... $ac_c"
11985 else
11986 cat >conftest.$ac_ext <<_ACEOF
11987 /* confdefs.h. */
11988 _ACEOF
11989 cat confdefs.h >>conftest.$ac_ext
11990 cat >>conftest.$ac_ext <<_ACEOF
11991 /* end confdefs.h. */
11992
11993 #include <gtk/gtk.h>
11994 #include <stdio.h>
11995 #include <stdlib.h>
11996
11997 int
11998 main ()
11999 {
12000 int major, minor, micro;
12001 char *tmp_version;
12002
12003 system ("touch conf.gtktest");
12004
12005 /* HP/UX 9 (%@#!) writes to sscanf strings */
12006 tmp_version = g_strdup("$min_gtk_version");
12007 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12008 printf("%s, bad version string\n", "$min_gtk_version");
12009 exit(1);
12010 }
12011
12012 if ((gtk_major_version != $gtk_config_major_version) ||
12013 (gtk_minor_version != $gtk_config_minor_version) ||
12014 (gtk_micro_version != $gtk_config_micro_version))
12015 {
12016 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12017 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12018 gtk_major_version, gtk_minor_version, gtk_micro_version);
12019 printf ("*** was found! If pkg-config was correct, then it is best\n");
12020 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12021 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12022 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12023 printf("*** required on your system.\n");
12024 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
12025 printf("*** to point to the correct configuration files\n");
12026 }
12027 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12028 (gtk_minor_version != GTK_MINOR_VERSION) ||
12029 (gtk_micro_version != GTK_MICRO_VERSION))
12030 {
12031 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12032 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12033 printf("*** library (version %d.%d.%d)\n",
12034 gtk_major_version, gtk_minor_version, gtk_micro_version);
12035 }
12036 else
12037 {
12038 if ((gtk_major_version > major) ||
12039 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12040 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12041 {
12042 return 0;
12043 }
12044 else
12045 {
12046 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12047 gtk_major_version, gtk_minor_version, gtk_micro_version);
12048 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12049 major, minor, micro);
12050 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12051 printf("***\n");
12052 printf("*** If you have already installed a sufficiently new version, this error\n");
12053 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
12054 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12055 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
12056 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
12057 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12058 printf("*** so that the correct libraries are found at run-time))\n");
12059 }
12060 }
12061 return 1;
12062 }
12063
12064 _ACEOF
12065 rm -f conftest$ac_exeext
12066 if { (ac_try="$ac_link"
12067 case "(($ac_try" in
12068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12069 *) ac_try_echo=$ac_try;;
12070 esac
12071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12072 $as_echo "$ac_try_echo") >&5
12073 (eval "$ac_link") 2>&5
12074 ac_status=$?
12075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12077 { (case "(($ac_try" in
12078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12079 *) ac_try_echo=$ac_try;;
12080 esac
12081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12082 $as_echo "$ac_try_echo") >&5
12083 (eval "$ac_try") 2>&5
12084 ac_status=$?
12085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); }; }; then
12087 :
12088 else
12089 $as_echo "$as_me: program exited with status $ac_status" >&5
12090 $as_echo "$as_me: failed program was:" >&5
12091 sed 's/^/| /' conftest.$ac_ext >&5
12092
12093 ( exit $ac_status )
12094 no_gtk=yes
12095 fi
12096 rm -rf conftest.dSYM
12097 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12098 fi
12099
12100
12101 CFLAGS="$ac_save_CFLAGS"
12102 LIBS="$ac_save_LIBS"
12103 fi
12104 fi
12105 if test "x$no_gtk" = x ; then
12106 { $as_echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
12107 $as_echo "yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
12108 with_gtk='yes (version 2.0)'
12109 else
12110 { $as_echo "$as_me:$LINENO: result: no" >&5
12111 $as_echo "no" >&6; }
12112 if test "$PKG_CONFIG" = "no" ; then
12113 echo "*** A new enough version of pkg-config was not found."
12114 echo "*** See http://pkgconfig.sourceforge.net"
12115 else
12116 if test -f conf.gtktest ; then
12117 :
12118 else
12119 echo "*** Could not run GTK+ test program, checking why..."
12120 ac_save_CFLAGS="$CFLAGS"
12121 ac_save_LIBS="$LIBS"
12122 CFLAGS="$CFLAGS $GTK_CFLAGS"
12123 LIBS="$LIBS $GTK_LIBS"
12124 cat >conftest.$ac_ext <<_ACEOF
12125 /* confdefs.h. */
12126 _ACEOF
12127 cat confdefs.h >>conftest.$ac_ext
12128 cat >>conftest.$ac_ext <<_ACEOF
12129 /* end confdefs.h. */
12130
12131 #include <gtk/gtk.h>
12132 #include <stdio.h>
12133
12134 int
12135 main ()
12136 {
12137 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12138 ;
12139 return 0;
12140 }
12141 _ACEOF
12142 rm -f conftest.$ac_objext conftest$ac_exeext
12143 if { (ac_try="$ac_link"
12144 case "(($ac_try" in
12145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12146 *) ac_try_echo=$ac_try;;
12147 esac
12148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12149 $as_echo "$ac_try_echo") >&5
12150 (eval "$ac_link") 2>conftest.er1
12151 ac_status=$?
12152 grep -v '^ *+' conftest.er1 >conftest.err
12153 rm -f conftest.er1
12154 cat conftest.err >&5
12155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156 (exit $ac_status); } && {
12157 test -z "$ac_c_werror_flag" ||
12158 test ! -s conftest.err
12159 } && test -s conftest$ac_exeext && {
12160 test "$cross_compiling" = yes ||
12161 $as_test_x conftest$ac_exeext
12162 }; then
12163 echo "*** The test program compiled, but did not run. This usually means"
12164 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
12165 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
12166 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12167 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12168 echo "*** is required on your system"
12169 echo "***"
12170 echo "*** If you have an old version installed, it is best to remove it, although"
12171 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12172 else
12173 $as_echo "$as_me: failed program was:" >&5
12174 sed 's/^/| /' conftest.$ac_ext >&5
12175
12176 echo "*** The test program failed to compile or link. See the file config.log for the"
12177 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
12178 fi
12179
12180 rm -rf conftest.dSYM
12181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12182 conftest$ac_exeext conftest.$ac_ext
12183 CFLAGS="$ac_save_CFLAGS"
12184 LIBS="$ac_save_LIBS"
12185 fi
12186 fi
12187 GTK_CFLAGS=""
12188 GTK_LIBS=""
12189 with_gtk=no
12190 fi
12191
12192
12193 rm -f conf.gtktest
12194
12195 fi
12196 if test "x${with_gtk}" = 'xno'; then
12197
12198 # Check whether --with-gtk-prefix was given.
12199 if test "${with_gtk_prefix+set}" = set; then
12200 withval=$with_gtk_prefix; gtk_config_prefix="$withval"
12201 else
12202 gtk_config_prefix=""
12203 fi
12204
12205
12206 # Check whether --with-gtk-exec-prefix was given.
12207 if test "${with_gtk_exec_prefix+set}" = set; then
12208 withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
12209 else
12210 gtk_config_exec_prefix=""
12211 fi
12212
12213 # Check whether --enable-gtktest was given.
12214 if test "${enable_gtktest+set}" = set; then
12215 enableval=$enable_gtktest;
12216 else
12217 enable_gtktest=yes
12218 fi
12219
12220
12221 for module in .
12222 do
12223 case "$module" in
12224 gthread)
12225 gtk_config_args="$gtk_config_args gthread"
12226 ;;
12227 esac
12228 done
12229
12230 if test x$gtk_config_exec_prefix != x ; then
12231 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12232 if test x${GTK_CONFIG+set} != xset ; then
12233 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12234 fi
12235 fi
12236 if test x$gtk_config_prefix != x ; then
12237 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12238 if test x${GTK_CONFIG+set} != xset ; then
12239 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12240 fi
12241 fi
12242
12243 # Extract the first word of "gtk-config", so it can be a program name with args.
12244 set dummy gtk-config; ac_word=$2
12245 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12246 $as_echo_n "checking for $ac_word... " >&6; }
12247 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
12248 $as_echo_n "(cached) " >&6
12249 else
12250 case $GTK_CONFIG in
12251 [\\/]* | ?:[\\/]*)
12252 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12253 ;;
12254 *)
12255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12256 for as_dir in $PATH
12257 do
12258 IFS=$as_save_IFS
12259 test -z "$as_dir" && as_dir=.
12260 for ac_exec_ext in '' $ac_executable_extensions; do
12261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12262 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12263 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12264 break 2
12265 fi
12266 done
12267 done
12268 IFS=$as_save_IFS
12269
12270 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12271 ;;
12272 esac
12273 fi
12274 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
12275 if test -n "$GTK_CONFIG"; then
12276 { $as_echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
12277 $as_echo "$GTK_CONFIG" >&6; }
12278 else
12279 { $as_echo "$as_me:$LINENO: result: no" >&5
12280 $as_echo "no" >&6; }
12281 fi
12282
12283
12284 min_gtk_version=1.2.0
12285 { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
12286 $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
12287 no_gtk=""
12288 if test "$GTK_CONFIG" = "no" ; then
12289 no_gtk=yes
12290 else
12291 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12292 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12293 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12294 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12295 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12296 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12297 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12298 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12299 if test "x$enable_gtktest" = "xyes" ; then
12300 ac_save_CFLAGS="$CFLAGS"
12301 ac_save_LIBS="$LIBS"
12302 CFLAGS="$CFLAGS $GTK_CFLAGS"
12303 LIBS="$GTK_LIBS $LIBS"
12304 rm -f conf.gtktest
12305 if test "$cross_compiling" = yes; then
12306 echo $ac_n "cross compiling; assumed OK... $ac_c"
12307 else
12308 cat >conftest.$ac_ext <<_ACEOF
12309 /* confdefs.h. */
12310 _ACEOF
12311 cat confdefs.h >>conftest.$ac_ext
12312 cat >>conftest.$ac_ext <<_ACEOF
12313 /* end confdefs.h. */
12314
12315 #include <gtk/gtk.h>
12316 #include <stdio.h>
12317 #include <stdlib.h>
12318
12319 int
12320 main ()
12321 {
12322 int major, minor, micro;
12323 char *tmp_version;
12324
12325 system ("touch conf.gtktest");
12326
12327 /* HP/UX 9 (%@#!) writes to sscanf strings */
12328 tmp_version = g_strdup("$min_gtk_version");
12329 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12330 printf("%s, bad version string\n", "$min_gtk_version");
12331 exit(1);
12332 }
12333
12334 if ((gtk_major_version != $gtk_config_major_version) ||
12335 (gtk_minor_version != $gtk_config_minor_version) ||
12336 (gtk_micro_version != $gtk_config_micro_version))
12337 {
12338 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12339 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12340 gtk_major_version, gtk_minor_version, gtk_micro_version);
12341 printf ("*** was found! If gtk-config was correct, then it is best\n");
12342 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12343 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12344 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12345 printf("*** required on your system.\n");
12346 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12347 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12348 printf("*** before re-running configure\n");
12349 }
12350 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12351 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12352 (gtk_minor_version != GTK_MINOR_VERSION) ||
12353 (gtk_micro_version != GTK_MICRO_VERSION))
12354 {
12355 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12356 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12357 printf("*** library (version %d.%d.%d)\n",
12358 gtk_major_version, gtk_minor_version, gtk_micro_version);
12359 }
12360 #endif /* defined (GTK_MAJOR_VERSION) ... */
12361 else
12362 {
12363 if ((gtk_major_version > major) ||
12364 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12365 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12366 {
12367 return 0;
12368 }
12369 else
12370 {
12371 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12372 gtk_major_version, gtk_minor_version, gtk_micro_version);
12373 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12374 major, minor, micro);
12375 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12376 printf("***\n");
12377 printf("*** If you have already installed a sufficiently new version, this error\n");
12378 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12379 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12380 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12381 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12382 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12383 printf("*** so that the correct libraries are found at run-time))\n");
12384 }
12385 }
12386 return 1;
12387 }
12388
12389 _ACEOF
12390 rm -f conftest$ac_exeext
12391 if { (ac_try="$ac_link"
12392 case "(($ac_try" in
12393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12394 *) ac_try_echo=$ac_try;;
12395 esac
12396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12397 $as_echo "$ac_try_echo") >&5
12398 (eval "$ac_link") 2>&5
12399 ac_status=$?
12400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12402 { (case "(($ac_try" in
12403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12404 *) ac_try_echo=$ac_try;;
12405 esac
12406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12407 $as_echo "$ac_try_echo") >&5
12408 (eval "$ac_try") 2>&5
12409 ac_status=$?
12410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); }; }; then
12412 :
12413 else
12414 $as_echo "$as_me: program exited with status $ac_status" >&5
12415 $as_echo "$as_me: failed program was:" >&5
12416 sed 's/^/| /' conftest.$ac_ext >&5
12417
12418 ( exit $ac_status )
12419 no_gtk=yes
12420 fi
12421 rm -rf conftest.dSYM
12422 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12423 fi
12424
12425
12426 CFLAGS="$ac_save_CFLAGS"
12427 LIBS="$ac_save_LIBS"
12428 fi
12429 fi
12430 if test "x$no_gtk" = x ; then
12431 { $as_echo "$as_me:$LINENO: result: yes" >&5
12432 $as_echo "yes" >&6; }
12433 with_gtk='yes (version 1.2)'
12434 else
12435 { $as_echo "$as_me:$LINENO: result: no" >&5
12436 $as_echo "no" >&6; }
12437 if test "$GTK_CONFIG" = "no" ; then
12438 echo "*** The gtk-config script installed by GTK could not be found"
12439 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12440 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12441 echo "*** full path to gtk-config."
12442 else
12443 if test -f conf.gtktest ; then
12444 :
12445 else
12446 echo "*** Could not run GTK test program, checking why..."
12447 CFLAGS="$CFLAGS $GTK_CFLAGS"
12448 LIBS="$LIBS $GTK_LIBS"
12449 cat >conftest.$ac_ext <<_ACEOF
12450 /* confdefs.h. */
12451 _ACEOF
12452 cat confdefs.h >>conftest.$ac_ext
12453 cat >>conftest.$ac_ext <<_ACEOF
12454 /* end confdefs.h. */
12455
12456 #include <gtk/gtk.h>
12457 #include <stdio.h>
12458
12459 int
12460 main ()
12461 {
12462 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12463 ;
12464 return 0;
12465 }
12466 _ACEOF
12467 rm -f conftest.$ac_objext conftest$ac_exeext
12468 if { (ac_try="$ac_link"
12469 case "(($ac_try" in
12470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12471 *) ac_try_echo=$ac_try;;
12472 esac
12473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12474 $as_echo "$ac_try_echo") >&5
12475 (eval "$ac_link") 2>conftest.er1
12476 ac_status=$?
12477 grep -v '^ *+' conftest.er1 >conftest.err
12478 rm -f conftest.er1
12479 cat conftest.err >&5
12480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); } && {
12482 test -z "$ac_c_werror_flag" ||
12483 test ! -s conftest.err
12484 } && test -s conftest$ac_exeext && {
12485 test "$cross_compiling" = yes ||
12486 $as_test_x conftest$ac_exeext
12487 }; then
12488 echo "*** The test program compiled, but did not run. This usually means"
12489 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12490 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12491 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12492 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12493 echo "*** is required on your system"
12494 echo "***"
12495 echo "*** If you have an old version installed, it is best to remove it, although"
12496 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12497 echo "***"
12498 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12499 echo "*** came with the system with the command"
12500 echo "***"
12501 echo "*** rpm --erase --nodeps gtk gtk-devel"
12502 else
12503 $as_echo "$as_me: failed program was:" >&5
12504 sed 's/^/| /' conftest.$ac_ext >&5
12505
12506 echo "*** The test program failed to compile or link. See the file config.log for the"
12507 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12508 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12509 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
12510 fi
12511
12512 rm -rf conftest.dSYM
12513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12514 conftest$ac_exeext conftest.$ac_ext
12515 CFLAGS="$ac_save_CFLAGS"
12516 LIBS="$ac_save_LIBS"
12517 fi
12518 fi
12519 GTK_CFLAGS=""
12520 GTK_LIBS=""
12521 { $as_echo "$as_me:$LINENO: WARNING: GUI will not be built because no version of GTK+ was found" >&5
12522 $as_echo "$as_me: WARNING: GUI will not be built because no version of GTK+ was found" >&2;}
12523 fi
12524
12525
12526 rm -f conf.gtktest
12527
12528 fi
12529 if test "x${with_gtk}" != 'xno'; then
12530 BUILD_GUI_TRUE=
12531 BUILD_GUI_FALSE='#'
12532 else
12533 BUILD_GUI_TRUE='#'
12534 BUILD_GUI_FALSE=
12535 fi
12536
12537 echo "GTK support: $with_gtk"
12538
12539
12540 pkg_failed=no
12541 { $as_echo "$as_me:$LINENO: checking for ALSA" >&5
12542 $as_echo_n "checking for ALSA... " >&6; }
12543
12544 if test -n "$ALSA_CFLAGS"; then
12545 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
12546 elif test -n "$PKG_CONFIG"; then
12547 if test -n "$PKG_CONFIG" && \
12548 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
12549 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
12550 ac_status=$?
12551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); }; then
12553 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
12554 else
12555 pkg_failed=yes
12556 fi
12557 else
12558 pkg_failed=untried
12559 fi
12560 if test -n "$ALSA_LIBS"; then
12561 pkg_cv_ALSA_LIBS="$ALSA_LIBS"
12562 elif test -n "$PKG_CONFIG"; then
12563 if test -n "$PKG_CONFIG" && \
12564 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
12565 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
12566 ac_status=$?
12567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); }; then
12569 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
12570 else
12571 pkg_failed=yes
12572 fi
12573 else
12574 pkg_failed=untried
12575 fi
12576
12577
12578
12579 if test $pkg_failed = yes; then
12580
12581 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12582 _pkg_short_errors_supported=yes
12583 else
12584 _pkg_short_errors_supported=no
12585 fi
12586 if test $_pkg_short_errors_supported = yes; then
12587 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1`
12588 else
12589 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1`
12590 fi
12591 # Put the nasty error message in config.log where it belongs
12592 echo "$ALSA_PKG_ERRORS" >&5
12593
12594 { $as_echo "$as_me:$LINENO: result: no" >&5
12595 $as_echo "no" >&6; }
12596 alsa=no
12597 elif test $pkg_failed = untried; then
12598 alsa=no
12599 else
12600 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
12601 ALSA_LIBS=$pkg_cv_ALSA_LIBS
12602 { $as_echo "$as_me:$LINENO: result: yes" >&5
12603 $as_echo "yes" >&6; }
12604 alsa=ALSA
12605 fi
12606 if test "x${alsa}" = xno ; then
12607
12608 pkg_failed=no
12609 { $as_echo "$as_me:$LINENO: checking for ALSA" >&5
12610 $as_echo_n "checking for ALSA... " >&6; }
12611
12612 if test -n "$ALSA_CFLAGS"; then
12613 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
12614 elif test -n "$PKG_CONFIG"; then
12615 if test -n "$PKG_CONFIG" && \
12616 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdssialsacompat\"") >&5
12617 ($PKG_CONFIG --exists --print-errors "libdssialsacompat") 2>&5
12618 ac_status=$?
12619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); }; then
12621 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "libdssialsacompat" 2>/dev/null`
12622 else
12623 pkg_failed=yes
12624 fi
12625 else
12626 pkg_failed=untried
12627 fi
12628 if test -n "$ALSA_LIBS"; then
12629 pkg_cv_ALSA_LIBS="$ALSA_LIBS"
12630 elif test -n "$PKG_CONFIG"; then
12631 if test -n "$PKG_CONFIG" && \
12632 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdssialsacompat\"") >&5
12633 ($PKG_CONFIG --exists --print-errors "libdssialsacompat") 2>&5
12634 ac_status=$?
12635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); }; then
12637 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "libdssialsacompat" 2>/dev/null`
12638 else
12639 pkg_failed=yes
12640 fi
12641 else
12642 pkg_failed=untried
12643 fi
12644
12645
12646
12647 if test $pkg_failed = yes; then
12648
12649 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12650 _pkg_short_errors_supported=yes
12651 else
12652 _pkg_short_errors_supported=no
12653 fi
12654 if test $_pkg_short_errors_supported = yes; then
12655 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdssialsacompat" 2>&1`
12656 else
12657 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdssialsacompat" 2>&1`
12658 fi
12659 # Put the nasty error message in config.log where it belongs
12660 echo "$ALSA_PKG_ERRORS" >&5
12661
12662 { $as_echo "$as_me:$LINENO: result: no" >&5
12663 $as_echo "no" >&6; }
12664 { { $as_echo "$as_me:$LINENO: error: neither ALSA nor libdssialsacompat found" >&5
12665 $as_echo "$as_me: error: neither ALSA nor libdssialsacompat found" >&2;}
12666 { (exit 1); exit 1; }; }
12667 elif test $pkg_failed = untried; then
12668 { { $as_echo "$as_me:$LINENO: error: neither ALSA nor libdssialsacompat found" >&5
12669 $as_echo "$as_me: error: neither ALSA nor libdssialsacompat found" >&2;}
12670 { (exit 1); exit 1; }; }
12671 else
12672 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
12673 ALSA_LIBS=$pkg_cv_ALSA_LIBS
12674 { $as_echo "$as_me:$LINENO: result: yes" >&5
12675 $as_echo "yes" >&6; }
12676 alsa=libdssialsacompat
12677 fi
12678 fi
12679 if test "x${alsa}" = xALSA ; then
12680 unset ALSA_LIBS # we only need the headers
12681 fi
12682
12683
12684 pkg_failed=no
12685 { $as_echo "$as_me:$LINENO: checking for MODULE" >&5
12686 $as_echo_n "checking for MODULE... " >&6; }
12687
12688 if test -n "$MODULE_CFLAGS"; then
12689 pkg_cv_MODULE_CFLAGS="$MODULE_CFLAGS"
12690 elif test -n "$PKG_CONFIG"; then
12691 if test -n "$PKG_CONFIG" && \
12692 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dssi >= 0.9 liblo >= 0.12\"") >&5
12693 ($PKG_CONFIG --exists --print-errors "dssi >= 0.9 liblo >= 0.12") 2>&5
12694 ac_status=$?
12695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); }; then
12697 pkg_cv_MODULE_CFLAGS=`$PKG_CONFIG --cflags "dssi >= 0.9 liblo >= 0.12" 2>/dev/null`
12698 else
12699 pkg_failed=yes
12700 fi
12701 else
12702 pkg_failed=untried
12703 fi
12704 if test -n "$MODULE_LIBS"; then
12705 pkg_cv_MODULE_LIBS="$MODULE_LIBS"
12706 elif test -n "$PKG_CONFIG"; then
12707 if test -n "$PKG_CONFIG" && \
12708 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dssi >= 0.9 liblo >= 0.12\"") >&5
12709 ($PKG_CONFIG --exists --print-errors "dssi >= 0.9 liblo >= 0.12") 2>&5
12710 ac_status=$?
12711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); }; then
12713 pkg_cv_MODULE_LIBS=`$PKG_CONFIG --libs "dssi >= 0.9 liblo >= 0.12" 2>/dev/null`
12714 else
12715 pkg_failed=yes
12716 fi
12717 else
12718 pkg_failed=untried
12719 fi
12720
12721
12722
12723 if test $pkg_failed = yes; then
12724
12725 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12726 _pkg_short_errors_supported=yes
12727 else
12728 _pkg_short_errors_supported=no
12729 fi
12730 if test $_pkg_short_errors_supported = yes; then
12731 MODULE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dssi >= 0.9 liblo >= 0.12" 2>&1`
12732 else
12733 MODULE_PKG_ERRORS=`$PKG_CONFIG --print-errors "dssi >= 0.9 liblo >= 0.12" 2>&1`
12734 fi
12735 # Put the nasty error message in config.log where it belongs
12736 echo "$MODULE_PKG_ERRORS" >&5
12737
12738 { { $as_echo "$as_me:$LINENO: error: Package requirements (dssi >= 0.9 liblo >= 0.12) were not met:
12739
12740 $MODULE_PKG_ERRORS
12741
12742 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12743 installed software in a non-standard prefix.
12744
12745 Alternatively, you may set the environment variables MODULE_CFLAGS
12746 and MODULE_LIBS to avoid the need to call pkg-config.
12747 See the pkg-config man page for more details.
12748 " >&5
12749 $as_echo "$as_me: error: Package requirements (dssi >= 0.9 liblo >= 0.12) were not met:
12750
12751 $MODULE_PKG_ERRORS
12752
12753 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12754 installed software in a non-standard prefix.
12755
12756 Alternatively, you may set the environment variables MODULE_CFLAGS
12757 and MODULE_LIBS to avoid the need to call pkg-config.
12758 See the pkg-config man page for more details.
12759 " >&2;}
12760 { (exit 1); exit 1; }; }
12761 elif test $pkg_failed = untried; then
12762 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12764 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
12765 is in your PATH or set the PKG_CONFIG environment variable to the full
12766 path to pkg-config.
12767
12768 Alternatively, you may set the environment variables MODULE_CFLAGS
12769 and MODULE_LIBS to avoid the need to call pkg-config.
12770 See the pkg-config man page for more details.
12771
12772 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12773 See \`config.log' for more details." >&5
12774 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
12775 is in your PATH or set the PKG_CONFIG environment variable to the full
12776 path to pkg-config.
12777
12778 Alternatively, you may set the environment variables MODULE_CFLAGS
12779 and MODULE_LIBS to avoid the need to call pkg-config.
12780 See the pkg-config man page for more details.
12781
12782 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12783 See \`config.log' for more details." >&2;}
12784 { (exit 1); exit 1; }; }; }
12785 else
12786 MODULE_CFLAGS=$pkg_cv_MODULE_CFLAGS
12787 MODULE_LIBS=$pkg_cv_MODULE_LIBS
12788 { $as_echo "$as_me:$LINENO: result: yes" >&5
12789 $as_echo "yes" >&6; }
12790 :
12791 fi
12792
12793 case "${host_os}" in
12794 darwin*)
12795 darwin=yes
12796 ;;
12797 *)
12798 darwin=no
12799 ;;
12800 esac
12801 if test x$darwin = xyes; then
12802 DARWIN_TRUE=
12803 DARWIN_FALSE='#'
12804 else
12805 DARWIN_TRUE='#'
12806 DARWIN_FALSE=
12807 fi
12808
12809
12810 CFLAGS="$CFLAGS $ALSA_CFLAGS $MODULE_CFLAGS"
12811 LDFLAGS="$LDFLAGS $ALSA_LIBS $MODULE_LIBS"
12812 if test "x$GCC" = "xyes"; then
12813 case " $CFLAGS " in
12814 *[\ \ ]-Wall[\ \ ]*) ;;
12815 *) CFLAGS="$CFLAGS -Wall" ;;
12816 esac
12817 case " $CFLAGS " in
12818 *[\ \ ]-O[1-9][\ \ ]*) ;;
12819 *) CFLAGS="$CFLAGS -O2" ;;
12820 esac
12821 case " $CFLAGS " in
12822 *[\ \ ]-ffast-math[\ \ ]*) ;;
12823 *) CFLAGS="$CFLAGS -fomit-frame-pointer -funroll-loops -finline-functions -ffast-math -Winline" ;;
12824 esac
12825 fi
12826
12827 ac_config_files="$ac_config_files Makefile src/Makefile"
12828
12829 cat >confcache <<\_ACEOF
12830 # This file is a shell script that caches the results of configure
12831 # tests run on this system so they can be shared between configure
12832 # scripts and configure runs, see configure's option --config-cache.
12833 # It is not useful on other systems. If it contains results you don't
12834 # want to keep, you may remove or edit it.
12835 #
12836 # config.status only pays attention to the cache file if you give it
12837 # the --recheck option to rerun configure.
12838 #
12839 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12840 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12841 # following values.
12842
12843 _ACEOF
12844
12845 # The following way of writing the cache mishandles newlines in values,
12846 # but we know of no workaround that is simple, portable, and efficient.
12847 # So, we kill variables containing newlines.
12848 # Ultrix sh set writes to stderr and can't be redirected directly,
12849 # and sets the high bit in the cache file unless we assign to the vars.
12850 (
12851 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12852 eval ac_val=\$$ac_var
12853 case $ac_val in #(
12854 *${as_nl}*)
12855 case $ac_var in #(
12856 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12857 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12858 esac
12859 case $ac_var in #(
12860 _ | IFS | as_nl) ;; #(
12861 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12862 *) $as_unset $ac_var ;;
12863 esac ;;
12864 esac
12865 done
12866
12867 (set) 2>&1 |
12868 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12869 *${as_nl}ac_space=\ *)
12870 # `set' does not quote correctly, so add quotes (double-quote
12871 # substitution turns \\\\ into \\, and sed turns \\ into \).
12872 sed -n \
12873 "s/'/'\\\\''/g;
12874 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12875 ;; #(
12876 *)
12877 # `set' quotes correctly as required by POSIX, so do not add quotes.
12878 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12879 ;;
12880 esac |
12881 sort
12882 ) |
12883 sed '
12884 /^ac_cv_env_/b end
12885 t clear
12886 :clear
12887 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12888 t end
12889 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12890 :end' >>confcache
12891 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12892 if test -w "$cache_file"; then
12893 test "x$cache_file" != "x/dev/null" &&
12894 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12895 $as_echo "$as_me: updating cache $cache_file" >&6;}
12896 cat confcache >$cache_file
12897 else
12898 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12899 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12900 fi
12901 fi
12902 rm -f confcache
12903
12904 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12905 # Let make expand exec_prefix.
12906 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12907
12908 DEFS=-DHAVE_CONFIG_H
12909
12910 ac_libobjs=
12911 ac_ltlibobjs=
12912 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12913 # 1. Remove the extension, and $U if already installed.
12914 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12915 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12916 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12917 # will be set to the directory where LIBOBJS objects are built.
12918 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12919 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12920 done
12921 LIBOBJS=$ac_libobjs
12922
12923 LTLIBOBJS=$ac_ltlibobjs
12924
12925
12926 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12927 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12928 Usually this means the macro was only invoked conditionally." >&5
12929 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
12930 Usually this means the macro was only invoked conditionally." >&2;}
12931 { (exit 1); exit 1; }; }
12932 fi
12933 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12934 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12935 Usually this means the macro was only invoked conditionally." >&5
12936 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12937 Usually this means the macro was only invoked conditionally." >&2;}
12938 { (exit 1); exit 1; }; }
12939 fi
12940
12941 if test -z "${BUILD_GUI_TRUE}" && test -z "${BUILD_GUI_FALSE}"; then
12942 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_GUI\" was never defined.
12943 Usually this means the macro was only invoked conditionally." >&5
12944 $as_echo "$as_me: error: conditional \"BUILD_GUI\" was never defined.
12945 Usually this means the macro was only invoked conditionally." >&2;}
12946 { (exit 1); exit 1; }; }
12947 fi
12948 if test -z "${DARWIN_TRUE}" && test -z "${DARWIN_FALSE}"; then
12949 { { $as_echo "$as_me:$LINENO: error: conditional \"DARWIN\" was never defined.
12950 Usually this means the macro was only invoked conditionally." >&5
12951 $as_echo "$as_me: error: conditional \"DARWIN\" was never defined.
12952 Usually this means the macro was only invoked conditionally." >&2;}
12953 { (exit 1); exit 1; }; }
12954 fi
12955
12956 : ${CONFIG_STATUS=./config.status}
12957 ac_write_fail=0
12958 ac_clean_files_save=$ac_clean_files
12959 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12960 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12961 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12962 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12963 #! $SHELL
12964 # Generated by $as_me.
12965 # Run this file to recreate the current configuration.
12966 # Compiler output produced by configure, useful for debugging
12967 # configure, is in config.log if it exists.
12968
12969 debug=false
12970 ac_cs_recheck=false
12971 ac_cs_silent=false
12972 SHELL=\${CONFIG_SHELL-$SHELL}
12973 _ACEOF
12974
12975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12976 ## --------------------- ##
12977 ## M4sh Initialization. ##
12978 ## --------------------- ##
12979
12980 # Be more Bourne compatible
12981 DUALCASE=1; export DUALCASE # for MKS sh
12982 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12983 emulate sh
12984 NULLCMD=:
12985 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12986 # is contrary to our usage. Disable this feature.
12987 alias -g '${1+"$@"}'='"$@"'
12988 setopt NO_GLOB_SUBST
12989 else
12990 case `(set -o) 2>/dev/null` in
12991 *posix*) set -o posix ;;
12992 esac
12993
12994 fi
12995
12996
12997
12998
12999 # PATH needs CR
13000 # Avoid depending upon Character Ranges.
13001 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13002 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13003 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13004 as_cr_digits='0123456789'
13005 as_cr_alnum=$as_cr_Letters$as_cr_digits
13006
13007 as_nl='
13008 '
13009 export as_nl
13010 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13011 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13012 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13013 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13014 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13015 as_echo='printf %s\n'
13016 as_echo_n='printf %s'
13017 else
13018 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13019 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13020 as_echo_n='/usr/ucb/echo -n'
13021 else
13022 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13023 as_echo_n_body='eval
13024 arg=$1;
13025 case $arg in
13026 *"$as_nl"*)
13027 expr "X$arg" : "X\\(.*\\)$as_nl";
13028 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13029 esac;
13030 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13031 '
13032 export as_echo_n_body
13033 as_echo_n='sh -c $as_echo_n_body as_echo'
13034 fi
13035 export as_echo_body
13036 as_echo='sh -c $as_echo_body as_echo'
13037 fi
13038
13039 # The user is always right.
13040 if test "${PATH_SEPARATOR+set}" != set; then
13041 PATH_SEPARATOR=:
13042 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13043 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13044 PATH_SEPARATOR=';'
13045 }
13046 fi
13047
13048 # Support unset when possible.
13049 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13050 as_unset=unset
13051 else
13052 as_unset=false
13053 fi
13054
13055
13056 # IFS
13057 # We need space, tab and new line, in precisely that order. Quoting is
13058 # there to prevent editors from complaining about space-tab.
13059 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13060 # splitting by setting IFS to empty value.)
13061 IFS=" "" $as_nl"
13062
13063 # Find who we are. Look in the path if we contain no directory separator.
13064 case $0 in
13065 *[\\/]* ) as_myself=$0 ;;
13066 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13067 for as_dir in $PATH
13068 do
13069 IFS=$as_save_IFS
13070 test -z "$as_dir" && as_dir=.
13071 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13072 done
13073 IFS=$as_save_IFS
13074
13075 ;;
13076 esac
13077 # We did not find ourselves, most probably we were run as `sh COMMAND'
13078 # in which case we are not to be found in the path.
13079 if test "x$as_myself" = x; then
13080 as_myself=$0
13081 fi
13082 if test ! -f "$as_myself"; then
13083 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13084 { (exit 1); exit 1; }
13085 fi
13086
13087 # Work around bugs in pre-3.0 UWIN ksh.
13088 for as_var in ENV MAIL MAILPATH
13089 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13090 done
13091 PS1='$ '
13092 PS2='> '
13093 PS4='+ '
13094
13095 # NLS nuisances.
13096 LC_ALL=C
13097 export LC_ALL
13098 LANGUAGE=C
13099 export LANGUAGE
13100
13101 # Required to use basename.
13102 if expr a : '\(a\)' >/dev/null 2>&1 &&
13103 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13104 as_expr=expr
13105 else
13106 as_expr=false
13107 fi
13108
13109 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13110 as_basename=basename
13111 else
13112 as_basename=false
13113 fi
13114
13115
13116 # Name of the executable.
13117 as_me=`$as_basename -- "$0" ||
13118 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13119 X"$0" : 'X\(//\)$' \| \
13120 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13121 $as_echo X/"$0" |
13122 sed '/^.*\/\([^/][^/]*\)\/*$/{
13123 s//\1/
13124 q
13125 }
13126 /^X\/\(\/\/\)$/{
13127 s//\1/
13128 q
13129 }
13130 /^X\/\(\/\).*/{
13131 s//\1/
13132 q
13133 }
13134 s/.*/./; q'`
13135
13136 # CDPATH.
13137 $as_unset CDPATH
13138
13139
13140
13141 as_lineno_1=$LINENO
13142 as_lineno_2=$LINENO
13143 test "x$as_lineno_1" != "x$as_lineno_2" &&
13144 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13145
13146 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13147 # uniformly replaced by the line number. The first 'sed' inserts a
13148 # line-number line after each line using $LINENO; the second 'sed'
13149 # does the real work. The second script uses 'N' to pair each
13150 # line-number line with the line containing $LINENO, and appends
13151 # trailing '-' during substitution so that $LINENO is not a special
13152 # case at line end.
13153 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13154 # scripts with optimization help from Paolo Bonzini. Blame Lee
13155 # E. McMahon (1931-1989) for sed's syntax. :-)
13156 sed -n '
13157 p
13158 /[$]LINENO/=
13159 ' <$as_myself |
13160 sed '
13161 s/[$]LINENO.*/&-/
13162 t lineno
13163 b
13164 :lineno
13165 N
13166 :loop
13167 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13168 t loop
13169 s/-\n.*//
13170 ' >$as_me.lineno &&
13171 chmod +x "$as_me.lineno" ||
13172 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13173 { (exit 1); exit 1; }; }
13174
13175 # Don't try to exec as it changes $[0], causing all sort of problems
13176 # (the dirname of $[0] is not the place where we might find the
13177 # original and so on. Autoconf is especially sensitive to this).
13178 . "./$as_me.lineno"
13179 # Exit status is that of the last command.
13180 exit
13181 }
13182
13183
13184 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13185 as_dirname=dirname
13186 else
13187 as_dirname=false
13188 fi
13189
13190 ECHO_C= ECHO_N= ECHO_T=
13191 case `echo -n x` in
13192 -n*)
13193 case `echo 'x\c'` in
13194 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13195 *) ECHO_C='\c';;
13196 esac;;
13197 *)
13198 ECHO_N='-n';;
13199 esac
13200 if expr a : '\(a\)' >/dev/null 2>&1 &&
13201 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13202 as_expr=expr
13203 else
13204 as_expr=false
13205 fi
13206
13207 rm -f conf$$ conf$$.exe conf$$.file
13208 if test -d conf$$.dir; then
13209 rm -f conf$$.dir/conf$$.file
13210 else
13211 rm -f conf$$.dir
13212 mkdir conf$$.dir 2>/dev/null
13213 fi
13214 if (echo >conf$$.file) 2>/dev/null; then
13215 if ln -s conf$$.file conf$$ 2>/dev/null; then
13216 as_ln_s='ln -s'
13217 # ... but there are two gotchas:
13218 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13219 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13220 # In both cases, we have to default to `cp -p'.
13221 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13222 as_ln_s='cp -p'
13223 elif ln conf$$.file conf$$ 2>/dev/null; then
13224 as_ln_s=ln
13225 else
13226 as_ln_s='cp -p'
13227 fi
13228 else
13229 as_ln_s='cp -p'
13230 fi
13231 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13232 rmdir conf$$.dir 2>/dev/null
13233
13234 if mkdir -p . 2>/dev/null; then
13235 as_mkdir_p=:
13236 else
13237 test -d ./-p && rmdir ./-p
13238 as_mkdir_p=false
13239 fi
13240
13241 if test -x / >/dev/null 2>&1; then
13242 as_test_x='test -x'
13243 else
13244 if ls -dL / >/dev/null 2>&1; then
13245 as_ls_L_option=L
13246 else
13247 as_ls_L_option=
13248 fi
13249 as_test_x='
13250 eval sh -c '\''
13251 if test -d "$1"; then
13252 test -d "$1/.";
13253 else
13254 case $1 in
13255 -*)set "./$1";;
13256 esac;
13257 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13258 ???[sx]*):;;*)false;;esac;fi
13259 '\'' sh
13260 '
13261 fi
13262 as_executable_p=$as_test_x
13263
13264 # Sed expression to map a string onto a valid CPP name.
13265 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13266
13267 # Sed expression to map a string onto a valid variable name.
13268 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13269
13270
13271 exec 6>&1
13272
13273 # Save the log message, to keep $[0] and so on meaningful, and to
13274 # report actual input values of CONFIG_FILES etc. instead of their
13275 # values after options handling.
13276 ac_log="
13277 This file was extended by FluidSynth-DSSI $as_me 1.0.0, which was
13278 generated by GNU Autoconf 2.63. Invocation command line was
13279
13280 CONFIG_FILES = $CONFIG_FILES
13281 CONFIG_HEADERS = $CONFIG_HEADERS
13282 CONFIG_LINKS = $CONFIG_LINKS
13283 CONFIG_COMMANDS = $CONFIG_COMMANDS
13284 $ $0 $@
13285
13286 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13287 "
13288
13289 _ACEOF
13290
13291 case $ac_config_files in *"
13292 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13293 esac
13294
13295 case $ac_config_headers in *"
13296 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13297 esac
13298
13299
13300 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13301 # Files that config.status was made for.
13302 config_files="$ac_config_files"
13303 config_headers="$ac_config_headers"
13304 config_commands="$ac_config_commands"
13305
13306 _ACEOF
13307
13308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13309 ac_cs_usage="\
13310 \`$as_me' instantiates files from templates according to the
13311 current configuration.
13312
13313 Usage: $0 [OPTION]... [FILE]...
13314
13315 -h, --help print this help, then exit
13316 -V, --version print version number and configuration settings, then exit
13317 -q, --quiet, --silent
13318 do not print progress messages
13319 -d, --debug don't remove temporary files
13320 --recheck update $as_me by reconfiguring in the same conditions
13321 --file=FILE[:TEMPLATE]
13322 instantiate the configuration file FILE
13323 --header=FILE[:TEMPLATE]
13324 instantiate the configuration header FILE
13325
13326 Configuration files:
13327 $config_files
13328
13329 Configuration headers:
13330 $config_headers
13331
13332 Configuration commands:
13333 $config_commands
13334
13335 Report bugs to <[email protected]>."
13336
13337 _ACEOF
13338 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13339 ac_cs_version="\\
13340 FluidSynth-DSSI config.status 1.0.0
13341 configured by $0, generated by GNU Autoconf 2.63,
13342 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13343
13344 Copyright (C) 2008 Free Software Foundation, Inc.
13345 This config.status script is free software; the Free Software Foundation
13346 gives unlimited permission to copy, distribute and modify it."
13347
13348 ac_pwd='$ac_pwd'
13349 srcdir='$srcdir'
13350 INSTALL='$INSTALL'
13351 MKDIR_P='$MKDIR_P'
13352 AWK='$AWK'
13353 test -n "\$AWK" || AWK=awk
13354 _ACEOF
13355
13356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13357 # The default lists apply if the user does not specify any file.
13358 ac_need_defaults=:
13359 while test $# != 0
13360 do
13361 case $1 in
13362 --*=*)
13363 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13364 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13365 ac_shift=:
13366 ;;
13367 *)
13368 ac_option=$1
13369 ac_optarg=$2
13370 ac_shift=shift
13371 ;;
13372 esac
13373
13374 case $ac_option in
13375 # Handling of the options.
13376 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13377 ac_cs_recheck=: ;;
13378 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13379 $as_echo "$ac_cs_version"; exit ;;
13380 --debug | --debu | --deb | --de | --d | -d )
13381 debug=: ;;
13382 --file | --fil | --fi | --f )
13383 $ac_shift
13384 case $ac_optarg in
13385 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13386 esac
13387 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13388 ac_need_defaults=false;;
13389 --header | --heade | --head | --hea )
13390 $ac_shift
13391 case $ac_optarg in
13392 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13393 esac
13394 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
13395 ac_need_defaults=false;;
13396 --he | --h)
13397 # Conflict between --help and --header
13398 { $as_echo "$as_me: error: ambiguous option: $1
13399 Try \`$0 --help' for more information." >&2
13400 { (exit 1); exit 1; }; };;
13401 --help | --hel | -h )
13402 $as_echo "$ac_cs_usage"; exit ;;
13403 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13404 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13405 ac_cs_silent=: ;;
13406
13407 # This is an error.
13408 -*) { $as_echo "$as_me: error: unrecognized option: $1
13409 Try \`$0 --help' for more information." >&2
13410 { (exit 1); exit 1; }; } ;;
13411
13412 *) ac_config_targets="$ac_config_targets $1"
13413 ac_need_defaults=false ;;
13414
13415 esac
13416 shift
13417 done
13418
13419 ac_configure_extra_args=
13420
13421 if $ac_cs_silent; then
13422 exec 6>/dev/null
13423 ac_configure_extra_args="$ac_configure_extra_args --silent"
13424 fi
13425
13426 _ACEOF
13427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13428 if \$ac_cs_recheck; then
13429 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13430 shift
13431 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13432 CONFIG_SHELL='$SHELL'
13433 export CONFIG_SHELL
13434 exec "\$@"
13435 fi
13436
13437 _ACEOF
13438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13439 exec 5>>config.log
13440 {
13441 echo
13442 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13443 ## Running $as_me. ##
13444 _ASBOX
13445 $as_echo "$ac_log"
13446 } >&5
13447
13448 _ACEOF
13449 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13450 #
13451 # INIT-COMMANDS
13452 #
13453 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13454
13455
13456 # The HP-UX ksh and POSIX shell print the target directory to stdout
13457 # if CDPATH is set.
13458 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13459
13460 sed_quote_subst='$sed_quote_subst'
13461 double_quote_subst='$double_quote_subst'
13462 delay_variable_subst='$delay_variable_subst'
13463 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13464 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13465 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13466 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13467 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13468 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13469 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13470 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13471 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13472 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13473 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13474 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13475 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13476 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13477 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13478 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13479 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13480 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13481 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13482 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13483 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13484 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13485 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13486 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13487 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13488 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13489 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13490 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13491 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13492 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13493 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13494 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13495 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13496 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13497 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13498 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13499 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13500 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13501 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13502 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13503 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13504 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13505 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13506 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13507 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
13508 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13509 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13510 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13511 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13512 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13513 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13514 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13515 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13516 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13517 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13518 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13519 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13520 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13521 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13522 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13523 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13524 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13525 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13526 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13527 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13528 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13529 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13530 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13531 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13532 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13533 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13534 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13535 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13536 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13537 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13538 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13539 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13540 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13541 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13542 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13543 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13544 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13545 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13546 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13547 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13548 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13549 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13550 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13551 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13552 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13553 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13554 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13555 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13556 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13557 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13558 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13559 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13560 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13561 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13562 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13563 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13564 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13565 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13566 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13567 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13568 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13569 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13570 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13571 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13572 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13573 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13574 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13575 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13576 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13577 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13578 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13579 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13580 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13581
13582 LTCC='$LTCC'
13583 LTCFLAGS='$LTCFLAGS'
13584 compiler='$compiler_DEFAULT'
13585
13586 # Quote evaled strings.
13587 for var in SED \
13588 GREP \
13589 EGREP \
13590 FGREP \
13591 LD \
13592 NM \
13593 LN_S \
13594 lt_SP2NL \
13595 lt_NL2SP \
13596 reload_flag \
13597 OBJDUMP \
13598 deplibs_check_method \
13599 file_magic_cmd \
13600 AR \
13601 AR_FLAGS \
13602 STRIP \
13603 RANLIB \
13604 CC \
13605 CFLAGS \
13606 compiler \
13607 lt_cv_sys_global_symbol_pipe \
13608 lt_cv_sys_global_symbol_to_cdecl \
13609 lt_cv_sys_global_symbol_to_c_name_address \
13610 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13611 SHELL \
13612 ECHO \
13613 lt_prog_compiler_no_builtin_flag \
13614 lt_prog_compiler_wl \
13615 lt_prog_compiler_pic \
13616 lt_prog_compiler_static \
13617 lt_cv_prog_compiler_c_o \
13618 need_locks \
13619 DSYMUTIL \
13620 NMEDIT \
13621 LIPO \
13622 OTOOL \
13623 OTOOL64 \
13624 shrext_cmds \
13625 export_dynamic_flag_spec \
13626 whole_archive_flag_spec \
13627 compiler_needs_object \
13628 with_gnu_ld \
13629 allow_undefined_flag \
13630 no_undefined_flag \
13631 hardcode_libdir_flag_spec \
13632 hardcode_libdir_flag_spec_ld \
13633 hardcode_libdir_separator \
13634 fix_srcfile_path \
13635 exclude_expsyms \
13636 include_expsyms \
13637 file_list_spec \
13638 variables_saved_for_relink \
13639 libname_spec \
13640 library_names_spec \
13641 soname_spec \
13642 finish_eval \
13643 old_striplib \
13644 striplib; do
13645 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13646 *[\\\\\\\`\\"\\\$]*)
13647 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13648 ;;
13649 *)
13650 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13651 ;;
13652 esac
13653 done
13654
13655 # Double-quote double-evaled strings.
13656 for var in reload_cmds \
13657 old_postinstall_cmds \
13658 old_postuninstall_cmds \
13659 old_archive_cmds \
13660 extract_expsyms_cmds \
13661 old_archive_from_new_cmds \
13662 old_archive_from_expsyms_cmds \
13663 archive_cmds \
13664 archive_expsym_cmds \
13665 module_cmds \
13666 module_expsym_cmds \
13667 export_symbols_cmds \
13668 prelink_cmds \
13669 postinstall_cmds \
13670 postuninstall_cmds \
13671 finish_cmds \
13672 sys_lib_search_path_spec \
13673 sys_lib_dlsearch_path_spec; do
13674 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13675 *[\\\\\\\`\\"\\\$]*)
13676 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13677 ;;
13678 *)
13679 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13680 ;;
13681 esac
13682 done
13683
13684 # Fix-up fallback echo if it was mangled by the above quoting rules.
13685 case \$lt_ECHO in
13686 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13687 ;;
13688 esac
13689
13690 ac_aux_dir='$ac_aux_dir'
13691 xsi_shell='$xsi_shell'
13692 lt_shell_append='$lt_shell_append'
13693
13694 # See if we are running on zsh, and set the options which allow our
13695 # commands through without removal of \ escapes INIT.
13696 if test -n "\${ZSH_VERSION+set}" ; then
13697 setopt NO_GLOB_SUBST
13698 fi
13699
13700
13701 PACKAGE='$PACKAGE'
13702 VERSION='$VERSION'
13703 TIMESTAMP='$TIMESTAMP'
13704 RM='$RM'
13705 ofile='$ofile'
13706
13707
13708
13709
13710 _ACEOF
13711
13712 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13713
13714 # Handling of arguments.
13715 for ac_config_target in $ac_config_targets
13716 do
13717 case $ac_config_target in
13718 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13719 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13720 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13721 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13722 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13723
13724 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13725 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13726 { (exit 1); exit 1; }; };;
13727 esac
13728 done
13729
13730
13731 # If the user did not use the arguments to specify the items to instantiate,
13732 # then the envvar interface is used. Set only those that are not.
13733 # We use the long form for the default assignment because of an extremely
13734 # bizarre bug on SunOS 4.1.3.
13735 if $ac_need_defaults; then
13736 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13737 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13738 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13739 fi
13740
13741 # Have a temporary directory for convenience. Make it in the build tree
13742 # simply because there is no reason against having it here, and in addition,
13743 # creating and moving files from /tmp can sometimes cause problems.
13744 # Hook for its removal unless debugging.
13745 # Note that there is a small window in which the directory will not be cleaned:
13746 # after its creation but before its name has been assigned to `$tmp'.
13747 $debug ||
13748 {
13749 tmp=
13750 trap 'exit_status=$?
13751 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13752 ' 0
13753 trap '{ (exit 1); exit 1; }' 1 2 13 15
13754 }
13755 # Create a (secure) tmp directory for tmp files.
13756
13757 {
13758 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13759 test -n "$tmp" && test -d "$tmp"
13760 } ||
13761 {
13762 tmp=./conf$$-$RANDOM
13763 (umask 077 && mkdir "$tmp")
13764 } ||
13765 {
13766 $as_echo "$as_me: cannot create a temporary directory in ." >&2
13767 { (exit 1); exit 1; }
13768 }
13769
13770 # Set up the scripts for CONFIG_FILES section.
13771 # No need to generate them if there are no CONFIG_FILES.
13772 # This happens for instance with `./config.status config.h'.
13773 if test -n "$CONFIG_FILES"; then
13774
13775
13776 ac_cr=' '
13777 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13778 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13779 ac_cs_awk_cr='\\r'
13780 else
13781 ac_cs_awk_cr=$ac_cr
13782 fi
13783
13784 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13785 _ACEOF
13786
13787
13788 {
13789 echo "cat >conf$$subs.awk <<_ACEOF" &&
13790 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13791 echo "_ACEOF"
13792 } >conf$$subs.sh ||
13793 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13794 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13795 { (exit 1); exit 1; }; }
13796 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13797 ac_delim='%!_!# '
13798 for ac_last_try in false false false false false :; do
13799 . ./conf$$subs.sh ||
13800 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13801 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13802 { (exit 1); exit 1; }; }
13803
13804 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13805 if test $ac_delim_n = $ac_delim_num; then
13806 break
13807 elif $ac_last_try; then
13808 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13809 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13810 { (exit 1); exit 1; }; }
13811 else
13812 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13813 fi
13814 done
13815 rm -f conf$$subs.sh
13816
13817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13818 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13819 _ACEOF
13820 sed -n '
13821 h
13822 s/^/S["/; s/!.*/"]=/
13823 p
13824 g
13825 s/^[^!]*!//
13826 :repl
13827 t repl
13828 s/'"$ac_delim"'$//
13829 t delim
13830 :nl
13831 h
13832 s/\(.\{148\}\).*/\1/
13833 t more1
13834 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13835 p
13836 n
13837 b repl
13838 :more1
13839 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13840 p
13841 g
13842 s/.\{148\}//
13843 t nl
13844 :delim
13845 h
13846 s/\(.\{148\}\).*/\1/
13847 t more2
13848 s/["\\]/\\&/g; s/^/"/; s/$/"/
13849 p
13850 b
13851 :more2
13852 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13853 p
13854 g
13855 s/.\{148\}//
13856 t delim
13857 ' <conf$$subs.awk | sed '
13858 /^[^""]/{
13859 N
13860 s/\n//
13861 }
13862 ' >>$CONFIG_STATUS || ac_write_fail=1
13863 rm -f conf$$subs.awk
13864 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13865 _ACAWK
13866 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13867 for (key in S) S_is_set[key] = 1
13868 FS = ""
13869
13870 }
13871 {
13872 line = $ 0
13873 nfields = split(line, field, "@")
13874 substed = 0
13875 len = length(field[1])
13876 for (i = 2; i < nfields; i++) {
13877 key = field[i]
13878 keylen = length(key)
13879 if (S_is_set[key]) {
13880 value = S[key]
13881 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13882 len += length(value) + length(field[++i])
13883 substed = 1
13884 } else
13885 len += 1 + keylen
13886 }
13887
13888 print line
13889 }
13890
13891 _ACAWK
13892 _ACEOF
13893 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13894 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13895 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13896 else
13897 cat
13898 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13899 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13900 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
13901 { (exit 1); exit 1; }; }
13902 _ACEOF
13903
13904 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13905 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13906 # trailing colons and then remove the whole line if VPATH becomes empty
13907 # (actually we leave an empty line to preserve line numbers).
13908 if test "x$srcdir" = x.; then
13909 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13910 s/:*\$(srcdir):*/:/
13911 s/:*\${srcdir}:*/:/
13912 s/:*@srcdir@:*/:/
13913 s/^\([^=]*=[ ]*\):*/\1/
13914 s/:*$//
13915 s/^[^=]*=[ ]*$//
13916 }'
13917 fi
13918
13919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13920 fi # test -n "$CONFIG_FILES"
13921
13922 # Set up the scripts for CONFIG_HEADERS section.
13923 # No need to generate them if there are no CONFIG_HEADERS.
13924 # This happens for instance with `./config.status Makefile'.
13925 if test -n "$CONFIG_HEADERS"; then
13926 cat >"$tmp/defines.awk" <<\_ACAWK ||
13927 BEGIN {
13928 _ACEOF
13929
13930 # Transform confdefs.h into an awk script `defines.awk', embedded as
13931 # here-document in config.status, that substitutes the proper values into
13932 # config.h.in to produce config.h.
13933
13934 # Create a delimiter string that does not exist in confdefs.h, to ease
13935 # handling of long lines.
13936 ac_delim='%!_!# '
13937 for ac_last_try in false false :; do
13938 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13939 if test -z "$ac_t"; then
13940 break
13941 elif $ac_last_try; then
13942 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
13943 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
13944 { (exit 1); exit 1; }; }
13945 else
13946 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13947 fi
13948 done
13949
13950 # For the awk script, D is an array of macro values keyed by name,
13951 # likewise P contains macro parameters if any. Preserve backslash
13952 # newline sequences.
13953
13954 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13955 sed -n '
13956 s/.\{148\}/&'"$ac_delim"'/g
13957 t rset
13958 :rset
13959 s/^[ ]*#[ ]*define[ ][ ]*/ /
13960 t def
13961 d
13962 :def
13963 s/\\$//
13964 t bsnl
13965 s/["\\]/\\&/g
13966 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13967 D["\1"]=" \3"/p
13968 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13969 d
13970 :bsnl
13971 s/["\\]/\\&/g
13972 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13973 D["\1"]=" \3\\\\\\n"\\/p
13974 t cont
13975 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13976 t cont
13977 d
13978 :cont
13979 n
13980 s/.\{148\}/&'"$ac_delim"'/g
13981 t clear
13982 :clear
13983 s/\\$//
13984 t bsnlc
13985 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13986 d
13987 :bsnlc
13988 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13989 b cont
13990 ' <confdefs.h | sed '
13991 s/'"$ac_delim"'/"\\\
13992 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13993
13994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13995 for (key in D) D_is_set[key] = 1
13996 FS = ""
13997 }
13998 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13999 line = \$ 0
14000 split(line, arg, " ")
14001 if (arg[1] == "#") {
14002 defundef = arg[2]
14003 mac1 = arg[3]
14004 } else {
14005 defundef = substr(arg[1], 2)
14006 mac1 = arg[2]
14007 }
14008 split(mac1, mac2, "(") #)
14009 macro = mac2[1]
14010 prefix = substr(line, 1, index(line, defundef) - 1)
14011 if (D_is_set[macro]) {
14012 # Preserve the white space surrounding the "#".
14013 print prefix "define", macro P[macro] D[macro]
14014 next
14015 } else {
14016 # Replace #undef with comments. This is necessary, for example,
14017 # in the case of _POSIX_SOURCE, which is predefined and required
14018 # on some systems where configure will not decide to define it.
14019 if (defundef == "undef") {
14020 print "/*", prefix defundef, macro, "*/"
14021 next
14022 }
14023 }
14024 }
14025 { print }
14026 _ACAWK
14027 _ACEOF
14028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14029 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14030 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14031 { (exit 1); exit 1; }; }
14032 fi # test -n "$CONFIG_HEADERS"
14033
14034
14035 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14036 shift
14037 for ac_tag
14038 do
14039 case $ac_tag in
14040 :[FHLC]) ac_mode=$ac_tag; continue;;
14041 esac
14042 case $ac_mode$ac_tag in
14043 :[FHL]*:*);;
14044 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14045 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
14046 { (exit 1); exit 1; }; };;
14047 :[FH]-) ac_tag=-:-;;
14048 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14049 esac
14050 ac_save_IFS=$IFS
14051 IFS=:
14052 set x $ac_tag
14053 IFS=$ac_save_IFS
14054 shift
14055 ac_file=$1
14056 shift
14057
14058 case $ac_mode in
14059 :L) ac_source=$1;;
14060 :[FH])
14061 ac_file_inputs=
14062 for ac_f
14063 do
14064 case $ac_f in
14065 -) ac_f="$tmp/stdin";;
14066 *) # Look for the file first in the build tree, then in the source tree
14067 # (if the path is not absolute). The absolute path cannot be DOS-style,
14068 # because $ac_f cannot contain `:'.
14069 test -f "$ac_f" ||
14070 case $ac_f in
14071 [\\/$]*) false;;
14072 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14073 esac ||
14074 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14075 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14076 { (exit 1); exit 1; }; };;
14077 esac
14078 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14079 ac_file_inputs="$ac_file_inputs '$ac_f'"
14080 done
14081
14082 # Let's still pretend it is `configure' which instantiates (i.e., don't
14083 # use $as_me), people would be surprised to read:
14084 # /* config.h. Generated by config.status. */
14085 configure_input='Generated from '`
14086 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14087 `' by configure.'
14088 if test x"$ac_file" != x-; then
14089 configure_input="$ac_file. $configure_input"
14090 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14091 $as_echo "$as_me: creating $ac_file" >&6;}
14092 fi
14093 # Neutralize special characters interpreted by sed in replacement strings.
14094 case $configure_input in #(
14095 *\&* | *\|* | *\\* )
14096 ac_sed_conf_input=`$as_echo "$configure_input" |
14097 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14098 *) ac_sed_conf_input=$configure_input;;
14099 esac
14100
14101 case $ac_tag in
14102 *:-:* | *:-) cat >"$tmp/stdin" \
14103 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14104 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14105 { (exit 1); exit 1; }; } ;;
14106 esac
14107 ;;
14108 esac
14109
14110 ac_dir=`$as_dirname -- "$ac_file" ||
14111 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14112 X"$ac_file" : 'X\(//\)[^/]' \| \
14113 X"$ac_file" : 'X\(//\)$' \| \
14114 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14115 $as_echo X"$ac_file" |
14116 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14117 s//\1/
14118 q
14119 }
14120 /^X\(\/\/\)[^/].*/{
14121 s//\1/
14122 q
14123 }
14124 /^X\(\/\/\)$/{
14125 s//\1/
14126 q
14127 }
14128 /^X\(\/\).*/{
14129 s//\1/
14130 q
14131 }
14132 s/.*/./; q'`
14133 { as_dir="$ac_dir"
14134 case $as_dir in #(
14135 -*) as_dir=./$as_dir;;
14136 esac
14137 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14138 as_dirs=
14139 while :; do
14140 case $as_dir in #(
14141 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14142 *) as_qdir=$as_dir;;
14143 esac
14144 as_dirs="'$as_qdir' $as_dirs"
14145 as_dir=`$as_dirname -- "$as_dir" ||
14146 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14147 X"$as_dir" : 'X\(//\)[^/]' \| \
14148 X"$as_dir" : 'X\(//\)$' \| \
14149 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14150 $as_echo X"$as_dir" |
14151 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14152 s//\1/
14153 q
14154 }
14155 /^X\(\/\/\)[^/].*/{
14156 s//\1/
14157 q
14158 }
14159 /^X\(\/\/\)$/{
14160 s//\1/
14161 q
14162 }
14163 /^X\(\/\).*/{
14164 s//\1/
14165 q
14166 }
14167 s/.*/./; q'`
14168 test -d "$as_dir" && break
14169 done
14170 test -z "$as_dirs" || eval "mkdir $as_dirs"
14171 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14172 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14173 { (exit 1); exit 1; }; }; }
14174 ac_builddir=.
14175
14176 case "$ac_dir" in
14177 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14178 *)
14179 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14180 # A ".." for each directory in $ac_dir_suffix.
14181 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14182 case $ac_top_builddir_sub in
14183 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14184 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14185 esac ;;
14186 esac
14187 ac_abs_top_builddir=$ac_pwd
14188 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14189 # for backward compatibility:
14190 ac_top_builddir=$ac_top_build_prefix
14191
14192 case $srcdir in
14193 .) # We are building in place.
14194 ac_srcdir=.
14195 ac_top_srcdir=$ac_top_builddir_sub
14196 ac_abs_top_srcdir=$ac_pwd ;;
14197 [\\/]* | ?:[\\/]* ) # Absolute name.
14198 ac_srcdir=$srcdir$ac_dir_suffix;
14199 ac_top_srcdir=$srcdir
14200 ac_abs_top_srcdir=$srcdir ;;
14201 *) # Relative name.
14202 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14203 ac_top_srcdir=$ac_top_build_prefix$srcdir
14204 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14205 esac
14206 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14207
14208
14209 case $ac_mode in
14210 :F)
14211 #
14212 # CONFIG_FILE
14213 #
14214
14215 case $INSTALL in
14216 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14217 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14218 esac
14219 ac_MKDIR_P=$MKDIR_P
14220 case $MKDIR_P in
14221 [\\/$]* | ?:[\\/]* ) ;;
14222 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14223 esac
14224 _ACEOF
14225
14226 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14227 # If the template does not know about datarootdir, expand it.
14228 # FIXME: This hack should be removed a few years after 2.60.
14229 ac_datarootdir_hack=; ac_datarootdir_seen=
14230
14231 ac_sed_dataroot='
14232 /datarootdir/ {
14233 p
14234 q
14235 }
14236 /@datadir@/p
14237 /@docdir@/p
14238 /@infodir@/p
14239 /@localedir@/p
14240 /@mandir@/p
14241 '
14242 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14243 *datarootdir*) ac_datarootdir_seen=yes;;
14244 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14245 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14246 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14247 _ACEOF
14248 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14249 ac_datarootdir_hack='
14250 s&@datadir@&$datadir&g
14251 s&@docdir@&$docdir&g
14252 s&@infodir@&$infodir&g
14253 s&@localedir@&$localedir&g
14254 s&@mandir@&$mandir&g
14255 s&\\\${datarootdir}&$datarootdir&g' ;;
14256 esac
14257 _ACEOF
14258
14259 # Neutralize VPATH when `$srcdir' = `.'.
14260 # Shell code in configure.ac might set extrasub.
14261 # FIXME: do we really want to maintain this feature?
14262 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14263 ac_sed_extra="$ac_vpsub
14264 $extrasub
14265 _ACEOF
14266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14267 :t
14268 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14269 s|@configure_input@|$ac_sed_conf_input|;t t
14270 s&@top_builddir@&$ac_top_builddir_sub&;t t
14271 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14272 s&@srcdir@&$ac_srcdir&;t t
14273 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14274 s&@top_srcdir@&$ac_top_srcdir&;t t
14275 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14276 s&@builddir@&$ac_builddir&;t t
14277 s&@abs_builddir@&$ac_abs_builddir&;t t
14278 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14279 s&@INSTALL@&$ac_INSTALL&;t t
14280 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14281 $ac_datarootdir_hack
14282 "
14283 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14284 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14285 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14286 { (exit 1); exit 1; }; }
14287
14288 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14289 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14290 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14291 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14292 which seems to be undefined. Please make sure it is defined." >&5
14293 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14294 which seems to be undefined. Please make sure it is defined." >&2;}
14295
14296 rm -f "$tmp/stdin"
14297 case $ac_file in
14298 -) cat "$tmp/out" && rm -f "$tmp/out";;
14299 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14300 esac \
14301 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14302 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14303 { (exit 1); exit 1; }; }
14304 ;;
14305 :H)
14306 #
14307 # CONFIG_HEADER
14308 #
14309 if test x"$ac_file" != x-; then
14310 {
14311 $as_echo "/* $configure_input */" \
14312 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14313 } >"$tmp/config.h" \
14314 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14315 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14316 { (exit 1); exit 1; }; }
14317 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14318 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14319 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14320 else
14321 rm -f "$ac_file"
14322 mv "$tmp/config.h" "$ac_file" \
14323 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14324 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14325 { (exit 1); exit 1; }; }
14326 fi
14327 else
14328 $as_echo "/* $configure_input */" \
14329 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14330 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14331 $as_echo "$as_me: error: could not create -" >&2;}
14332 { (exit 1); exit 1; }; }
14333 fi
14334 # Compute "$ac_file"'s index in $config_headers.
14335 _am_arg="$ac_file"
14336 _am_stamp_count=1
14337 for _am_header in $config_headers :; do
14338 case $_am_header in
14339 $_am_arg | $_am_arg:* )
14340 break ;;
14341 * )
14342 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14343 esac
14344 done
14345 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14346 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14347 X"$_am_arg" : 'X\(//\)[^/]' \| \
14348 X"$_am_arg" : 'X\(//\)$' \| \
14349 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14350 $as_echo X"$_am_arg" |
14351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14352 s//\1/
14353 q
14354 }
14355 /^X\(\/\/\)[^/].*/{
14356 s//\1/
14357 q
14358 }
14359 /^X\(\/\/\)$/{
14360 s//\1/
14361 q
14362 }
14363 /^X\(\/\).*/{
14364 s//\1/
14365 q
14366 }
14367 s/.*/./; q'`/stamp-h$_am_stamp_count
14368 ;;
14369
14370 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14371 $as_echo "$as_me: executing $ac_file commands" >&6;}
14372 ;;
14373 esac
14374
14375
14376 case $ac_file$ac_mode in
14377 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14378 # Strip MF so we end up with the name of the file.
14379 mf=`echo "$mf" | sed -e 's/:.*$//'`
14380 # Check whether this is an Automake generated Makefile or not.
14381 # We used to match only the files named `Makefile.in', but
14382 # some people rename them; so instead we look at the file content.
14383 # Grep'ing the first line is not enough: some people post-process
14384 # each Makefile.in and add a new line on top of each file to say so.
14385 # Grep'ing the whole file is not good either: AIX grep has a line
14386 # limit of 2048, but all sed's we know have understand at least 4000.
14387 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14388 dirpart=`$as_dirname -- "$mf" ||
14389 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14390 X"$mf" : 'X\(//\)[^/]' \| \
14391 X"$mf" : 'X\(//\)$' \| \
14392 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14393 $as_echo X"$mf" |
14394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14395 s//\1/
14396 q
14397 }
14398 /^X\(\/\/\)[^/].*/{
14399 s//\1/
14400 q
14401 }
14402 /^X\(\/\/\)$/{
14403 s//\1/
14404 q
14405 }
14406 /^X\(\/\).*/{
14407 s//\1/
14408 q
14409 }
14410 s/.*/./; q'`
14411 else
14412 continue
14413 fi
14414 # Extract the definition of DEPDIR, am__include, and am__quote
14415 # from the Makefile without running `make'.
14416 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14417 test -z "$DEPDIR" && continue
14418 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14419 test -z "am__include" && continue
14420 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14421 # When using ansi2knr, U may be empty or an underscore; expand it
14422 U=`sed -n 's/^U = //p' < "$mf"`
14423 # Find all dependency output files, they are included files with
14424 # $(DEPDIR) in their names. We invoke sed twice because it is the
14425 # simplest approach to changing $(DEPDIR) to its actual value in the
14426 # expansion.
14427 for file in `sed -n "
14428 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14429 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14430 # Make sure the directory exists.
14431 test -f "$dirpart/$file" && continue
14432 fdir=`$as_dirname -- "$file" ||
14433 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14434 X"$file" : 'X\(//\)[^/]' \| \
14435 X"$file" : 'X\(//\)$' \| \
14436 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14437 $as_echo X"$file" |
14438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14439 s//\1/
14440 q
14441 }
14442 /^X\(\/\/\)[^/].*/{
14443 s//\1/
14444 q
14445 }
14446 /^X\(\/\/\)$/{
14447 s//\1/
14448 q
14449 }
14450 /^X\(\/\).*/{
14451 s//\1/
14452 q
14453 }
14454 s/.*/./; q'`
14455 { as_dir=$dirpart/$fdir
14456 case $as_dir in #(
14457 -*) as_dir=./$as_dir;;
14458 esac
14459 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14460 as_dirs=
14461 while :; do
14462 case $as_dir in #(
14463 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14464 *) as_qdir=$as_dir;;
14465 esac
14466 as_dirs="'$as_qdir' $as_dirs"
14467 as_dir=`$as_dirname -- "$as_dir" ||
14468 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14469 X"$as_dir" : 'X\(//\)[^/]' \| \
14470 X"$as_dir" : 'X\(//\)$' \| \
14471 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14472 $as_echo X"$as_dir" |
14473 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14474 s//\1/
14475 q
14476 }
14477 /^X\(\/\/\)[^/].*/{
14478 s//\1/
14479 q
14480 }
14481 /^X\(\/\/\)$/{
14482 s//\1/
14483 q
14484 }
14485 /^X\(\/\).*/{
14486 s//\1/
14487 q
14488 }
14489 s/.*/./; q'`
14490 test -d "$as_dir" && break
14491 done
14492 test -z "$as_dirs" || eval "mkdir $as_dirs"
14493 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14494 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14495 { (exit 1); exit 1; }; }; }
14496 # echo "creating $dirpart/$file"
14497 echo '# dummy' > "$dirpart/$file"
14498 done
14499 done
14500 ;;
14501 "libtool":C)
14502
14503 # See if we are running on zsh, and set the options which allow our
14504 # commands through without removal of \ escapes.
14505 if test -n "${ZSH_VERSION+set}" ; then
14506 setopt NO_GLOB_SUBST
14507 fi
14508
14509 cfgfile="${ofile}T"
14510 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14511 $RM "$cfgfile"
14512
14513 cat <<_LT_EOF >> "$cfgfile"
14514 #! $SHELL
14515
14516 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14517 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14518 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14519 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14520 #
14521 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14522 # 2006, 2007, 2008 Free Software Foundation, Inc.
14523 # Written by Gordon Matzigkeit, 1996
14524 #
14525 # This file is part of GNU Libtool.
14526 #
14527 # GNU Libtool is free software; you can redistribute it and/or
14528 # modify it under the terms of the GNU General Public License as
14529 # published by the Free Software Foundation; either version 2 of
14530 # the License, or (at your option) any later version.
14531 #
14532 # As a special exception to the GNU General Public License,
14533 # if you distribute this file as part of a program or library that
14534 # is built using GNU Libtool, you may include this file under the
14535 # same distribution terms that you use for the rest of that program.
14536 #
14537 # GNU Libtool is distributed in the hope that it will be useful,
14538 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14539 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14540 # GNU General Public License for more details.
14541 #
14542 # You should have received a copy of the GNU General Public License
14543 # along with GNU Libtool; see the file COPYING. If not, a copy
14544 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14545 # obtained by writing to the Free Software Foundation, Inc.,
14546 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14547
14548
14549 # The names of the tagged configurations supported by this script.
14550 available_tags=""
14551
14552 # ### BEGIN LIBTOOL CONFIG
14553
14554 # Whether or not to build static libraries.
14555 build_old_libs=$enable_static
14556
14557 # Whether or not to build shared libraries.
14558 build_libtool_libs=$enable_shared
14559
14560 # Which release of libtool.m4 was used?
14561 macro_version=$macro_version
14562 macro_revision=$macro_revision
14563
14564 # What type of objects to build.
14565 pic_mode=$pic_mode
14566
14567 # Whether or not to optimize for fast installation.
14568 fast_install=$enable_fast_install
14569
14570 # The host system.
14571 host_alias=$host_alias
14572 host=$host
14573 host_os=$host_os
14574
14575 # The build system.
14576 build_alias=$build_alias
14577 build=$build
14578 build_os=$build_os
14579
14580 # A sed program that does not truncate output.
14581 SED=$lt_SED
14582
14583 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14584 Xsed="\$SED -e 1s/^X//"
14585
14586 # A grep program that handles long lines.
14587 GREP=$lt_GREP
14588
14589 # An ERE matcher.
14590 EGREP=$lt_EGREP
14591
14592 # A literal string matcher.
14593 FGREP=$lt_FGREP
14594
14595 # A BSD- or MS-compatible name lister.
14596 NM=$lt_NM
14597
14598 # Whether we need soft or hard links.
14599 LN_S=$lt_LN_S
14600
14601 # What is the maximum length of a command?
14602 max_cmd_len=$max_cmd_len
14603
14604 # Object file suffix (normally "o").
14605 objext=$ac_objext
14606
14607 # Executable file suffix (normally "").
14608 exeext=$exeext
14609
14610 # whether the shell understands "unset".
14611 lt_unset=$lt_unset
14612
14613 # turn spaces into newlines.
14614 SP2NL=$lt_lt_SP2NL
14615
14616 # turn newlines into spaces.
14617 NL2SP=$lt_lt_NL2SP
14618
14619 # How to create reloadable object files.
14620 reload_flag=$lt_reload_flag
14621 reload_cmds=$lt_reload_cmds
14622
14623 # An object symbol dumper.
14624 OBJDUMP=$lt_OBJDUMP
14625
14626 # Method to check whether dependent libraries are shared objects.
14627 deplibs_check_method=$lt_deplibs_check_method
14628
14629 # Command to use when deplibs_check_method == "file_magic".
14630 file_magic_cmd=$lt_file_magic_cmd
14631
14632 # The archiver.
14633 AR=$lt_AR
14634 AR_FLAGS=$lt_AR_FLAGS
14635
14636 # A symbol stripping program.
14637 STRIP=$lt_STRIP
14638
14639 # Commands used to install an old-style archive.
14640 RANLIB=$lt_RANLIB
14641 old_postinstall_cmds=$lt_old_postinstall_cmds
14642 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14643
14644 # A C compiler.
14645 LTCC=$lt_CC
14646
14647 # LTCC compiler flags.
14648 LTCFLAGS=$lt_CFLAGS
14649
14650 # Take the output of nm and produce a listing of raw symbols and C names.
14651 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14652
14653 # Transform the output of nm in a proper C declaration.
14654 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14655
14656 # Transform the output of nm in a C name address pair.
14657 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14658
14659 # Transform the output of nm in a C name address pair when lib prefix is needed.
14660 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14661
14662 # The name of the directory that contains temporary libtool files.
14663 objdir=$objdir
14664
14665 # Shell to use when invoking shell scripts.
14666 SHELL=$lt_SHELL
14667
14668 # An echo program that does not interpret backslashes.
14669 ECHO=$lt_ECHO
14670
14671 # Used to examine libraries when file_magic_cmd begins with "file".
14672 MAGIC_CMD=$MAGIC_CMD
14673
14674 # Must we lock files when doing compilation?
14675 need_locks=$lt_need_locks
14676
14677 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14678 DSYMUTIL=$lt_DSYMUTIL
14679
14680 # Tool to change global to local symbols on Mac OS X.
14681 NMEDIT=$lt_NMEDIT
14682
14683 # Tool to manipulate fat objects and archives on Mac OS X.
14684 LIPO=$lt_LIPO
14685
14686 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14687 OTOOL=$lt_OTOOL
14688
14689 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14690 OTOOL64=$lt_OTOOL64
14691
14692 # Old archive suffix (normally "a").
14693 libext=$libext
14694
14695 # Shared library suffix (normally ".so").
14696 shrext_cmds=$lt_shrext_cmds
14697
14698 # The commands to extract the exported symbol list from a shared archive.
14699 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14700
14701 # Variables whose values should be saved in libtool wrapper scripts and
14702 # restored at link time.
14703 variables_saved_for_relink=$lt_variables_saved_for_relink
14704
14705 # Do we need the "lib" prefix for modules?
14706 need_lib_prefix=$need_lib_prefix
14707
14708 # Do we need a version for libraries?
14709 need_version=$need_version
14710
14711 # Library versioning type.
14712 version_type=$version_type
14713
14714 # Shared library runtime path variable.
14715 runpath_var=$runpath_var
14716
14717 # Shared library path variable.
14718 shlibpath_var=$shlibpath_var
14719
14720 # Is shlibpath searched before the hard-coded library search path?
14721 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14722
14723 # Format of library name prefix.
14724 libname_spec=$lt_libname_spec
14725
14726 # List of archive names. First name is the real one, the rest are links.
14727 # The last name is the one that the linker finds with -lNAME
14728 library_names_spec=$lt_library_names_spec
14729
14730 # The coded name of the library, if different from the real name.
14731 soname_spec=$lt_soname_spec
14732
14733 # Command to use after installation of a shared archive.
14734 postinstall_cmds=$lt_postinstall_cmds
14735
14736 # Command to use after uninstallation of a shared archive.
14737 postuninstall_cmds=$lt_postuninstall_cmds
14738
14739 # Commands used to finish a libtool library installation in a directory.
14740 finish_cmds=$lt_finish_cmds
14741
14742 # As "finish_cmds", except a single script fragment to be evaled but
14743 # not shown.
14744 finish_eval=$lt_finish_eval
14745
14746 # Whether we should hardcode library paths into libraries.
14747 hardcode_into_libs=$hardcode_into_libs
14748
14749 # Compile-time system search path for libraries.
14750 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14751
14752 # Run-time system search path for libraries.
14753 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14754
14755 # Whether dlopen is supported.
14756 dlopen_support=$enable_dlopen
14757
14758 # Whether dlopen of programs is supported.
14759 dlopen_self=$enable_dlopen_self
14760
14761 # Whether dlopen of statically linked programs is supported.
14762 dlopen_self_static=$enable_dlopen_self_static
14763
14764 # Commands to strip libraries.
14765 old_striplib=$lt_old_striplib
14766 striplib=$lt_striplib
14767
14768
14769 # The linker used to build libraries.
14770 LD=$lt_LD
14771
14772 # Commands used to build an old-style archive.
14773 old_archive_cmds=$lt_old_archive_cmds
14774
14775 # A language specific compiler.
14776 CC=$lt_compiler
14777
14778 # Is the compiler the GNU compiler?
14779 with_gcc=$GCC
14780
14781 # Compiler flag to turn off builtin functions.
14782 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14783
14784 # How to pass a linker flag through the compiler.
14785 wl=$lt_lt_prog_compiler_wl
14786
14787 # Additional compiler flags for building library objects.
14788 pic_flag=$lt_lt_prog_compiler_pic
14789
14790 # Compiler flag to prevent dynamic linking.
14791 link_static_flag=$lt_lt_prog_compiler_static
14792
14793 # Does compiler simultaneously support -c and -o options?
14794 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14795
14796 # Whether or not to add -lc for building shared libraries.
14797 build_libtool_need_lc=$archive_cmds_need_lc
14798
14799 # Whether or not to disallow shared libs when runtime libs are static.
14800 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14801
14802 # Compiler flag to allow reflexive dlopens.
14803 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14804
14805 # Compiler flag to generate shared objects directly from archives.
14806 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14807
14808 # Whether the compiler copes with passing no objects directly.
14809 compiler_needs_object=$lt_compiler_needs_object
14810
14811 # Create an old-style archive from a shared archive.
14812 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14813
14814 # Create a temporary old-style archive to link instead of a shared archive.
14815 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14816
14817 # Commands used to build a shared archive.
14818 archive_cmds=$lt_archive_cmds
14819 archive_expsym_cmds=$lt_archive_expsym_cmds
14820
14821 # Commands used to build a loadable module if different from building
14822 # a shared archive.
14823 module_cmds=$lt_module_cmds
14824 module_expsym_cmds=$lt_module_expsym_cmds
14825
14826 # Whether we are building with GNU ld or not.
14827 with_gnu_ld=$lt_with_gnu_ld
14828
14829 # Flag that allows shared libraries with undefined symbols to be built.
14830 allow_undefined_flag=$lt_allow_undefined_flag
14831
14832 # Flag that enforces no undefined symbols.
14833 no_undefined_flag=$lt_no_undefined_flag
14834
14835 # Flag to hardcode \$libdir into a binary during linking.
14836 # This must work even if \$libdir does not exist
14837 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14838
14839 # If ld is used when linking, flag to hardcode \$libdir into a binary
14840 # during linking. This must work even if \$libdir does not exist.
14841 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14842
14843 # Whether we need a single "-rpath" flag with a separated argument.
14844 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14845
14846 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14847 # DIR into the resulting binary.
14848 hardcode_direct=$hardcode_direct
14849
14850 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14851 # DIR into the resulting binary and the resulting library dependency is
14852 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14853 # library is relocated.
14854 hardcode_direct_absolute=$hardcode_direct_absolute
14855
14856 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14857 # into the resulting binary.
14858 hardcode_minus_L=$hardcode_minus_L
14859
14860 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14861 # into the resulting binary.
14862 hardcode_shlibpath_var=$hardcode_shlibpath_var
14863
14864 # Set to "yes" if building a shared library automatically hardcodes DIR
14865 # into the library and all subsequent libraries and executables linked
14866 # against it.
14867 hardcode_automatic=$hardcode_automatic
14868
14869 # Set to yes if linker adds runtime paths of dependent libraries
14870 # to runtime path list.
14871 inherit_rpath=$inherit_rpath
14872
14873 # Whether libtool must link a program against all its dependency libraries.
14874 link_all_deplibs=$link_all_deplibs
14875
14876 # Fix the shell variable \$srcfile for the compiler.
14877 fix_srcfile_path=$lt_fix_srcfile_path
14878
14879 # Set to "yes" if exported symbols are required.
14880 always_export_symbols=$always_export_symbols
14881
14882 # The commands to list exported symbols.
14883 export_symbols_cmds=$lt_export_symbols_cmds
14884
14885 # Symbols that should not be listed in the preloaded symbols.
14886 exclude_expsyms=$lt_exclude_expsyms
14887
14888 # Symbols that must always be exported.
14889 include_expsyms=$lt_include_expsyms
14890
14891 # Commands necessary for linking programs (against libraries) with templates.
14892 prelink_cmds=$lt_prelink_cmds
14893
14894 # Specify filename containing input files.
14895 file_list_spec=$lt_file_list_spec
14896
14897 # How to hardcode a shared library path into an executable.
14898 hardcode_action=$hardcode_action
14899
14900 # ### END LIBTOOL CONFIG
14901
14902 _LT_EOF
14903
14904 case $host_os in
14905 aix3*)
14906 cat <<\_LT_EOF >> "$cfgfile"
14907 # AIX sometimes has problems with the GCC collect2 program. For some
14908 # reason, if we set the COLLECT_NAMES environment variable, the problems
14909 # vanish in a puff of smoke.
14910 if test "X${COLLECT_NAMES+set}" != Xset; then
14911 COLLECT_NAMES=
14912 export COLLECT_NAMES
14913 fi
14914 _LT_EOF
14915 ;;
14916 esac
14917
14918
14919 ltmain="$ac_aux_dir/ltmain.sh"
14920
14921
14922 # We use sed instead of cat because bash on DJGPP gets confused if
14923 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14924 # text mode, it properly converts lines to CR/LF. This bash problem
14925 # is reportedly fixed, but why not run on old versions too?
14926 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14927 || (rm -f "$cfgfile"; exit 1)
14928
14929 case $xsi_shell in
14930 yes)
14931 cat << \_LT_EOF >> "$cfgfile"
14932
14933 # func_dirname file append nondir_replacement
14934 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14935 # otherwise set result to NONDIR_REPLACEMENT.
14936 func_dirname ()
14937 {
14938 case ${1} in
14939 */*) func_dirname_result="${1%/*}${2}" ;;
14940 * ) func_dirname_result="${3}" ;;
14941 esac
14942 }
14943
14944 # func_basename file
14945 func_basename ()
14946 {
14947 func_basename_result="${1##*/}"
14948 }
14949
14950 # func_dirname_and_basename file append nondir_replacement
14951 # perform func_basename and func_dirname in a single function
14952 # call:
14953 # dirname: Compute the dirname of FILE. If nonempty,
14954 # add APPEND to the result, otherwise set result
14955 # to NONDIR_REPLACEMENT.
14956 # value returned in "$func_dirname_result"
14957 # basename: Compute filename of FILE.
14958 # value retuned in "$func_basename_result"
14959 # Implementation must be kept synchronized with func_dirname
14960 # and func_basename. For efficiency, we do not delegate to
14961 # those functions but instead duplicate the functionality here.
14962 func_dirname_and_basename ()
14963 {
14964 case ${1} in
14965 */*) func_dirname_result="${1%/*}${2}" ;;
14966 * ) func_dirname_result="${3}" ;;
14967 esac
14968 func_basename_result="${1##*/}"
14969 }
14970
14971 # func_stripname prefix suffix name
14972 # strip PREFIX and SUFFIX off of NAME.
14973 # PREFIX and SUFFIX must not contain globbing or regex special
14974 # characters, hashes, percent signs, but SUFFIX may contain a leading
14975 # dot (in which case that matches only a dot).
14976 func_stripname ()
14977 {
14978 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14979 # positional parameters, so assign one to ordinary parameter first.
14980 func_stripname_result=${3}
14981 func_stripname_result=${func_stripname_result#"${1}"}
14982 func_stripname_result=${func_stripname_result%"${2}"}
14983 }
14984
14985 # func_opt_split
14986 func_opt_split ()
14987 {
14988 func_opt_split_opt=${1%%=*}
14989 func_opt_split_arg=${1#*=}
14990 }
14991
14992 # func_lo2o object
14993 func_lo2o ()
14994 {
14995 case ${1} in
14996 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14997 *) func_lo2o_result=${1} ;;
14998 esac
14999 }
15000
15001 # func_xform libobj-or-source
15002 func_xform ()
15003 {
15004 func_xform_result=${1%.*}.lo
15005 }
15006
15007 # func_arith arithmetic-term...
15008 func_arith ()
15009 {
15010 func_arith_result=$(( $* ))
15011 }
15012
15013 # func_len string
15014 # STRING may not start with a hyphen.
15015 func_len ()
15016 {
15017 func_len_result=${#1}
15018 }
15019
15020 _LT_EOF
15021 ;;
15022 *) # Bourne compatible functions.
15023 cat << \_LT_EOF >> "$cfgfile"
15024
15025 # func_dirname file append nondir_replacement
15026 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15027 # otherwise set result to NONDIR_REPLACEMENT.
15028 func_dirname ()
15029 {
15030 # Extract subdirectory from the argument.
15031 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15032 if test "X$func_dirname_result" = "X${1}"; then
15033 func_dirname_result="${3}"
15034 else
15035 func_dirname_result="$func_dirname_result${2}"
15036 fi
15037 }
15038
15039 # func_basename file
15040 func_basename ()
15041 {
15042 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15043 }
15044
15045
15046 # func_stripname prefix suffix name
15047 # strip PREFIX and SUFFIX off of NAME.
15048 # PREFIX and SUFFIX must not contain globbing or regex special
15049 # characters, hashes, percent signs, but SUFFIX may contain a leading
15050 # dot (in which case that matches only a dot).
15051 # func_strip_suffix prefix name
15052 func_stripname ()
15053 {
15054 case ${2} in
15055 .*) func_stripname_result=`$ECHO "X${3}" \
15056 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15057 *) func_stripname_result=`$ECHO "X${3}" \
15058 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15059 esac
15060 }
15061
15062 # sed scripts:
15063 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15064 my_sed_long_arg='1s/^-[^=]*=//'
15065
15066 # func_opt_split
15067 func_opt_split ()
15068 {
15069 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15070 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15071 }
15072
15073 # func_lo2o object
15074 func_lo2o ()
15075 {
15076 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15077 }
15078
15079 # func_xform libobj-or-source
15080 func_xform ()
15081 {
15082 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15083 }
15084
15085 # func_arith arithmetic-term...
15086 func_arith ()
15087 {
15088 func_arith_result=`expr "$@"`
15089 }
15090
15091 # func_len string
15092 # STRING may not start with a hyphen.
15093 func_len ()
15094 {
15095 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15096 }
15097
15098 _LT_EOF
15099 esac
15100
15101 case $lt_shell_append in
15102 yes)
15103 cat << \_LT_EOF >> "$cfgfile"
15104
15105 # func_append var value
15106 # Append VALUE to the end of shell variable VAR.
15107 func_append ()
15108 {
15109 eval "$1+=\$2"
15110 }
15111 _LT_EOF
15112 ;;
15113 *)
15114 cat << \_LT_EOF >> "$cfgfile"
15115
15116 # func_append var value
15117 # Append VALUE to the end of shell variable VAR.
15118 func_append ()
15119 {
15120 eval "$1=\$$1\$2"
15121 }
15122
15123 _LT_EOF
15124 ;;
15125 esac
15126
15127
15128 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15129 || (rm -f "$cfgfile"; exit 1)
15130
15131 mv -f "$cfgfile" "$ofile" ||
15132 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15133 chmod +x "$ofile"
15134
15135 ;;
15136
15137 esac
15138 done # for ac_tag
15139
15140
15141 { (exit 0); exit 0; }
15142 _ACEOF
15143 chmod +x $CONFIG_STATUS
15144 ac_clean_files=$ac_clean_files_save
15145
15146 test $ac_write_fail = 0 ||
15147 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15148 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15149 { (exit 1); exit 1; }; }
15150
15151
15152 # configure is writing to config.log, and then calls config.status.
15153 # config.status does its own redirection, appending to config.log.
15154 # Unfortunately, on DOS this fails, as config.log is still kept open
15155 # by configure, so config.status won't be able to write to it; its
15156 # output is simply discarded. So we exec the FD to /dev/null,
15157 # effectively closing config.log, so it can be properly (re)opened and
15158 # appended to by config.status. When coming back to configure, we
15159 # need to make the FD available again.
15160 if test "$no_create" != yes; then
15161 ac_cs_success=:
15162 ac_config_status_args=
15163 test "$silent" = yes &&
15164 ac_config_status_args="$ac_config_status_args --quiet"
15165 exec 5>/dev/null
15166 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15167 exec 5>>config.log
15168 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15169 # would make configure fail if this is the last instruction.
15170 $ac_cs_success || { (exit 1); exit 1; }
15171 fi
15172 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15173 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15174 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15175 fi
15176
15177