Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libmikmod 3.3.13.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
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*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell [email protected] about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='libmikmod'
589 PACKAGE_TARNAME='libmikmod'
590 PACKAGE_VERSION='3.3.13'
591 PACKAGE_STRING='libmikmod 3.3.13'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="include/mikmod_internals.h"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 LIB_LDADD
637 LT_EXTRA
638 LIBMIKMOD_VERSION
639 LIBMIKMOD_MICRO_VERSION
640 LIBMIKMOD_MINOR_VERSION
641 LIBMIKMOD_MAJOR_VERSION
642 LIBRARY_LIB
643 REENTRANT
644 BUILD_DOCS_FALSE
645 BUILD_DOCS_TRUE
646 SDL_CONFIG
647 SDL2_CONFIG
648 SDL_LIBS
649 SDL_CFLAGS
650 XMKMF
651 ESD_LIBS
652 ESD_CFLAGS
653 ESD_CONFIG
654 PKG_CONFIG_LIBDIR
655 PKG_CONFIG_PATH
656 PKG_CONFIG
657 CPP
658 LT_SYS_LIBRARY_PATH
659 OTOOL64
660 OTOOL
661 LIPO
662 NMEDIT
663 DSYMUTIL
664 MANIFEST_TOOL
665 RANLIB
666 ac_ct_AR
667 AR
668 NM
669 ac_ct_DUMPBIN
670 DUMPBIN
671 LD
672 FGREP
673 SED
674 LIBTOOL
675 OBJDUMP
676 DLLTOOL
677 AS
678 LN_S
679 EGREP
680 GREP
681 am__fastdepCC_FALSE
682 am__fastdepCC_TRUE
683 CCDEPMODE
684 am__nodep
685 AMDEPBACKSLASH
686 AMDEP_FALSE
687 AMDEP_TRUE
688 am__include
689 DEPDIR
690 OBJEXT
691 EXEEXT
692 ac_ct_CC
693 CPPFLAGS
694 LDFLAGS
695 CFLAGS
696 CC
697 host_os
698 host_vendor
699 host_cpu
700 host
701 build_os
702 build_vendor
703 build_cpu
704 build
705 MIKMOD_LT_AGE
706 MIKMOD_LT_REVISION
707 MIKMOD_LT_CURRENT
708 MAINT
709 MAINTAINER_MODE_FALSE
710 MAINTAINER_MODE_TRUE
711 AM_BACKSLASH
712 AM_DEFAULT_VERBOSITY
713 AM_DEFAULT_V
714 AM_V
715 CSCOPE
716 ETAGS
717 CTAGS
718 am__untar
719 am__tar
720 AMTAR
721 am__leading_dot
722 SET_MAKE
723 AWK
724 mkdir_p
725 MKDIR_P
726 INSTALL_STRIP_PROGRAM
727 STRIP
728 install_sh
729 MAKEINFO
730 AUTOHEADER
731 AUTOMAKE
732 AUTOCONF
733 ACLOCAL
734 VERSION
735 PACKAGE
736 CYGPATH_W
737 am__isrc
738 INSTALL_DATA
739 INSTALL_SCRIPT
740 INSTALL_PROGRAM
741 target_alias
742 host_alias
743 build_alias
744 LIBS
745 ECHO_T
746 ECHO_N
747 ECHO_C
748 DEFS
749 mandir
750 localedir
751 libdir
752 psdir
753 pdfdir
754 dvidir
755 htmldir
756 infodir
757 docdir
758 oldincludedir
759 includedir
760 localstatedir
761 sharedstatedir
762 sysconfdir
763 datadir
764 datarootdir
765 libexecdir
766 sbindir
767 bindir
768 program_transform_name
769 prefix
770 exec_prefix
771 PACKAGE_URL
772 PACKAGE_BUGREPORT
773 PACKAGE_STRING
774 PACKAGE_VERSION
775 PACKAGE_TARNAME
776 PACKAGE_NAME
777 PATH_SEPARATOR
778 SHELL
779 am__quote'
780 ac_subst_files=''
781 ac_user_opts='
782 enable_option_checking
783 enable_silent_rules
784 enable_maintainer_mode
785 enable_hqmixer
786 enable_depackers
787 enable_alldrv
788 enable_af
789 enable_alsa
790 enable_oss
791 enable_sunaudio
792 enable_sndio
793 enable_aix
794 enable_sgi
795 enable_hp
796 enable_ahi
797 enable_pulseaudio
798 enable_esd
799 enable_nas
800 enable_aiff
801 enable_wav
802 enable_raw
803 enable_stdout
804 enable_pipe
805 enable_sdl
806 enable_sdl2
807 enable_openal
808 enable_osx
809 enable_mac
810 enable_win
811 enable_ds
812 enable_xaudio2
813 enable_xaudio28
814 enable_os2
815 enable_dart
816 enable_sam9407
817 enable_ultra
818 enable_dl
819 enable_debug
820 enable_threads
821 enable_simd
822 enable_unix
823 enable_doc
824 enable_dependency_tracking
825 enable_shared
826 enable_static
827 with_pic
828 enable_fast_install
829 with_aix_soname
830 with_gnu_ld
831 with_sysroot
832 enable_libtool_lock
833 with_esd_prefix
834 with_esd_exec_prefix
835 enable_esdtest
836 with_x
837 with_sdl_prefix
838 with_sdl_exec_prefix
839 enable_sdltest
840 '
841 ac_precious_vars='build_alias
842 host_alias
843 target_alias
844 CC
845 CFLAGS
846 LDFLAGS
847 LIBS
848 CPPFLAGS
849 LT_SYS_LIBRARY_PATH
850 CPP
851 PKG_CONFIG
852 PKG_CONFIG_PATH
853 PKG_CONFIG_LIBDIR
854 XMKMF
855 SDL_CFLAGS
856 SDL_LIBS'
857
858
859 # Initialize some variables set by options.
860 ac_init_help=
861 ac_init_version=false
862 ac_unrecognized_opts=
863 ac_unrecognized_sep=
864 # The variables have the same names as the options, with
865 # dashes changed to underlines.
866 cache_file=/dev/null
867 exec_prefix=NONE
868 no_create=
869 no_recursion=
870 prefix=NONE
871 program_prefix=NONE
872 program_suffix=NONE
873 program_transform_name=s,x,x,
874 silent=
875 site=
876 srcdir=
877 verbose=
878 x_includes=NONE
879 x_libraries=NONE
880
881 # Installation directory options.
882 # These are left unexpanded so users can "make install exec_prefix=/foo"
883 # and all the variables that are supposed to be based on exec_prefix
884 # by default will actually change.
885 # Use braces instead of parens because sh, perl, etc. also accept them.
886 # (The list follows the same order as the GNU Coding Standards.)
887 bindir='${exec_prefix}/bin'
888 sbindir='${exec_prefix}/sbin'
889 libexecdir='${exec_prefix}/libexec'
890 datarootdir='${prefix}/share'
891 datadir='${datarootdir}'
892 sysconfdir='${prefix}/etc'
893 sharedstatedir='${prefix}/com'
894 localstatedir='${prefix}/var'
895 includedir='${prefix}/include'
896 oldincludedir='/usr/include'
897 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
898 infodir='${datarootdir}/info'
899 htmldir='${docdir}'
900 dvidir='${docdir}'
901 pdfdir='${docdir}'
902 psdir='${docdir}'
903 libdir='${exec_prefix}/lib'
904 localedir='${datarootdir}/locale'
905 mandir='${datarootdir}/man'
906
907 ac_prev=
908 ac_dashdash=
909 for ac_option
910 do
911 # If the previous option needs an argument, assign it.
912 if test -n "$ac_prev"; then
913 eval $ac_prev=\$ac_option
914 ac_prev=
915 continue
916 fi
917
918 case $ac_option in
919 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
920 *=) ac_optarg= ;;
921 *) ac_optarg=yes ;;
922 esac
923
924 # Accept the important Cygnus configure options, so we can diagnose typos.
925
926 case $ac_dashdash$ac_option in
927 --)
928 ac_dashdash=yes ;;
929
930 -bindir | --bindir | --bindi | --bind | --bin | --bi)
931 ac_prev=bindir ;;
932 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
933 bindir=$ac_optarg ;;
934
935 -build | --build | --buil | --bui | --bu)
936 ac_prev=build_alias ;;
937 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
938 build_alias=$ac_optarg ;;
939
940 -cache-file | --cache-file | --cache-fil | --cache-fi \
941 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
942 ac_prev=cache_file ;;
943 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
944 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
945 cache_file=$ac_optarg ;;
946
947 --config-cache | -C)
948 cache_file=config.cache ;;
949
950 -datadir | --datadir | --datadi | --datad)
951 ac_prev=datadir ;;
952 -datadir=* | --datadir=* | --datadi=* | --datad=*)
953 datadir=$ac_optarg ;;
954
955 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
956 | --dataroo | --dataro | --datar)
957 ac_prev=datarootdir ;;
958 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
959 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
960 datarootdir=$ac_optarg ;;
961
962 -disable-* | --disable-*)
963 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
964 # Reject names that are not valid shell variable names.
965 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
966 as_fn_error $? "invalid feature name: $ac_useropt"
967 ac_useropt_orig=$ac_useropt
968 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
969 case $ac_user_opts in
970 *"
971 "enable_$ac_useropt"
972 "*) ;;
973 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
974 ac_unrecognized_sep=', ';;
975 esac
976 eval enable_$ac_useropt=no ;;
977
978 -docdir | --docdir | --docdi | --doc | --do)
979 ac_prev=docdir ;;
980 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
981 docdir=$ac_optarg ;;
982
983 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
984 ac_prev=dvidir ;;
985 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
986 dvidir=$ac_optarg ;;
987
988 -enable-* | --enable-*)
989 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
990 # Reject names that are not valid shell variable names.
991 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
992 as_fn_error $? "invalid feature name: $ac_useropt"
993 ac_useropt_orig=$ac_useropt
994 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
995 case $ac_user_opts in
996 *"
997 "enable_$ac_useropt"
998 "*) ;;
999 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1000 ac_unrecognized_sep=', ';;
1001 esac
1002 eval enable_$ac_useropt=\$ac_optarg ;;
1003
1004 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1005 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1006 | --exec | --exe | --ex)
1007 ac_prev=exec_prefix ;;
1008 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1009 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1010 | --exec=* | --exe=* | --ex=*)
1011 exec_prefix=$ac_optarg ;;
1012
1013 -gas | --gas | --ga | --g)
1014 # Obsolete; use --with-gas.
1015 with_gas=yes ;;
1016
1017 -help | --help | --hel | --he | -h)
1018 ac_init_help=long ;;
1019 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1020 ac_init_help=recursive ;;
1021 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1022 ac_init_help=short ;;
1023
1024 -host | --host | --hos | --ho)
1025 ac_prev=host_alias ;;
1026 -host=* | --host=* | --hos=* | --ho=*)
1027 host_alias=$ac_optarg ;;
1028
1029 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1030 ac_prev=htmldir ;;
1031 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1032 | --ht=*)
1033 htmldir=$ac_optarg ;;
1034
1035 -includedir | --includedir | --includedi | --included | --include \
1036 | --includ | --inclu | --incl | --inc)
1037 ac_prev=includedir ;;
1038 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1039 | --includ=* | --inclu=* | --incl=* | --inc=*)
1040 includedir=$ac_optarg ;;
1041
1042 -infodir | --infodir | --infodi | --infod | --info | --inf)
1043 ac_prev=infodir ;;
1044 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1045 infodir=$ac_optarg ;;
1046
1047 -libdir | --libdir | --libdi | --libd)
1048 ac_prev=libdir ;;
1049 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1050 libdir=$ac_optarg ;;
1051
1052 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1053 | --libexe | --libex | --libe)
1054 ac_prev=libexecdir ;;
1055 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1056 | --libexe=* | --libex=* | --libe=*)
1057 libexecdir=$ac_optarg ;;
1058
1059 -localedir | --localedir | --localedi | --localed | --locale)
1060 ac_prev=localedir ;;
1061 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1062 localedir=$ac_optarg ;;
1063
1064 -localstatedir | --localstatedir | --localstatedi | --localstated \
1065 | --localstate | --localstat | --localsta | --localst | --locals)
1066 ac_prev=localstatedir ;;
1067 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1068 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1069 localstatedir=$ac_optarg ;;
1070
1071 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1072 ac_prev=mandir ;;
1073 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1074 mandir=$ac_optarg ;;
1075
1076 -nfp | --nfp | --nf)
1077 # Obsolete; use --without-fp.
1078 with_fp=no ;;
1079
1080 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1081 | --no-cr | --no-c | -n)
1082 no_create=yes ;;
1083
1084 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1085 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1086 no_recursion=yes ;;
1087
1088 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1089 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1090 | --oldin | --oldi | --old | --ol | --o)
1091 ac_prev=oldincludedir ;;
1092 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1093 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1094 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1095 oldincludedir=$ac_optarg ;;
1096
1097 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1098 ac_prev=prefix ;;
1099 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1100 prefix=$ac_optarg ;;
1101
1102 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1103 | --program-pre | --program-pr | --program-p)
1104 ac_prev=program_prefix ;;
1105 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1106 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1107 program_prefix=$ac_optarg ;;
1108
1109 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1110 | --program-suf | --program-su | --program-s)
1111 ac_prev=program_suffix ;;
1112 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1113 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1114 program_suffix=$ac_optarg ;;
1115
1116 -program-transform-name | --program-transform-name \
1117 | --program-transform-nam | --program-transform-na \
1118 | --program-transform-n | --program-transform- \
1119 | --program-transform | --program-transfor \
1120 | --program-transfo | --program-transf \
1121 | --program-trans | --program-tran \
1122 | --progr-tra | --program-tr | --program-t)
1123 ac_prev=program_transform_name ;;
1124 -program-transform-name=* | --program-transform-name=* \
1125 | --program-transform-nam=* | --program-transform-na=* \
1126 | --program-transform-n=* | --program-transform-=* \
1127 | --program-transform=* | --program-transfor=* \
1128 | --program-transfo=* | --program-transf=* \
1129 | --program-trans=* | --program-tran=* \
1130 | --progr-tra=* | --program-tr=* | --program-t=*)
1131 program_transform_name=$ac_optarg ;;
1132
1133 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1134 ac_prev=pdfdir ;;
1135 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1136 pdfdir=$ac_optarg ;;
1137
1138 -psdir | --psdir | --psdi | --psd | --ps)
1139 ac_prev=psdir ;;
1140 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1141 psdir=$ac_optarg ;;
1142
1143 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1144 | -silent | --silent | --silen | --sile | --sil)
1145 silent=yes ;;
1146
1147 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1148 ac_prev=sbindir ;;
1149 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1150 | --sbi=* | --sb=*)
1151 sbindir=$ac_optarg ;;
1152
1153 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1154 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1155 | --sharedst | --shareds | --shared | --share | --shar \
1156 | --sha | --sh)
1157 ac_prev=sharedstatedir ;;
1158 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1159 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1160 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1161 | --sha=* | --sh=*)
1162 sharedstatedir=$ac_optarg ;;
1163
1164 -site | --site | --sit)
1165 ac_prev=site ;;
1166 -site=* | --site=* | --sit=*)
1167 site=$ac_optarg ;;
1168
1169 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1170 ac_prev=srcdir ;;
1171 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1172 srcdir=$ac_optarg ;;
1173
1174 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1175 | --syscon | --sysco | --sysc | --sys | --sy)
1176 ac_prev=sysconfdir ;;
1177 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1178 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1179 sysconfdir=$ac_optarg ;;
1180
1181 -target | --target | --targe | --targ | --tar | --ta | --t)
1182 ac_prev=target_alias ;;
1183 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1184 target_alias=$ac_optarg ;;
1185
1186 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1187 verbose=yes ;;
1188
1189 -version | --version | --versio | --versi | --vers | -V)
1190 ac_init_version=: ;;
1191
1192 -with-* | --with-*)
1193 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196 as_fn_error $? "invalid package name: $ac_useropt"
1197 ac_useropt_orig=$ac_useropt
1198 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1200 *"
1201 "with_$ac_useropt"
1202 "*) ;;
1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1204 ac_unrecognized_sep=', ';;
1205 esac
1206 eval with_$ac_useropt=\$ac_optarg ;;
1207
1208 -without-* | --without-*)
1209 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1210 # Reject names that are not valid shell variable names.
1211 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1212 as_fn_error $? "invalid package name: $ac_useropt"
1213 ac_useropt_orig=$ac_useropt
1214 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1215 case $ac_user_opts in
1216 *"
1217 "with_$ac_useropt"
1218 "*) ;;
1219 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1220 ac_unrecognized_sep=', ';;
1221 esac
1222 eval with_$ac_useropt=no ;;
1223
1224 --x)
1225 # Obsolete; use --with-x.
1226 with_x=yes ;;
1227
1228 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1229 | --x-incl | --x-inc | --x-in | --x-i)
1230 ac_prev=x_includes ;;
1231 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1232 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1233 x_includes=$ac_optarg ;;
1234
1235 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1236 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1237 ac_prev=x_libraries ;;
1238 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1239 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1240 x_libraries=$ac_optarg ;;
1241
1242 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1243 Try \`$0 --help' for more information"
1244 ;;
1245
1246 *=*)
1247 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1248 # Reject names that are not valid shell variable names.
1249 case $ac_envvar in #(
1250 '' | [0-9]* | *[!_$as_cr_alnum]* )
1251 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1252 esac
1253 eval $ac_envvar=\$ac_optarg
1254 export $ac_envvar ;;
1255
1256 *)
1257 # FIXME: should be removed in autoconf 3.0.
1258 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1259 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1260 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1261 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1262 ;;
1263
1264 esac
1265 done
1266
1267 if test -n "$ac_prev"; then
1268 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1269 as_fn_error $? "missing argument to $ac_option"
1270 fi
1271
1272 if test -n "$ac_unrecognized_opts"; then
1273 case $enable_option_checking in
1274 no) ;;
1275 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1276 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1277 esac
1278 fi
1279
1280 # Check all directory arguments for consistency.
1281 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282 datadir sysconfdir sharedstatedir localstatedir includedir \
1283 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1284 libdir localedir mandir
1285 do
1286 eval ac_val=\$$ac_var
1287 # Remove trailing slashes.
1288 case $ac_val in
1289 */ )
1290 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1291 eval $ac_var=\$ac_val;;
1292 esac
1293 # Be sure to have absolute directory names.
1294 case $ac_val in
1295 [\\/$]* | ?:[\\/]* ) continue;;
1296 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1297 esac
1298 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1299 done
1300
1301 # There might be people who depend on the old broken behavior: `$host'
1302 # used to hold the argument of --host etc.
1303 # FIXME: To remove some day.
1304 build=$build_alias
1305 host=$host_alias
1306 target=$target_alias
1307
1308 # FIXME: To remove some day.
1309 if test "x$host_alias" != x; then
1310 if test "x$build_alias" = x; then
1311 cross_compiling=maybe
1312 elif test "x$build_alias" != "x$host_alias"; then
1313 cross_compiling=yes
1314 fi
1315 fi
1316
1317 ac_tool_prefix=
1318 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1319
1320 test "$silent" = yes && exec 6>/dev/null
1321
1322
1323 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1324 ac_ls_di=`ls -di .` &&
1325 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1326 as_fn_error $? "working directory cannot be determined"
1327 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1328 as_fn_error $? "pwd does not report name of working directory"
1329
1330
1331 # Find the source files, if location was not specified.
1332 if test -z "$srcdir"; then
1333 ac_srcdir_defaulted=yes
1334 # Try the directory containing this script, then the parent directory.
1335 ac_confdir=`$as_dirname -- "$as_myself" ||
1336 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1337 X"$as_myself" : 'X\(//\)[^/]' \| \
1338 X"$as_myself" : 'X\(//\)$' \| \
1339 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1340 $as_echo X"$as_myself" |
1341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1342 s//\1/
1343 q
1344 }
1345 /^X\(\/\/\)[^/].*/{
1346 s//\1/
1347 q
1348 }
1349 /^X\(\/\/\)$/{
1350 s//\1/
1351 q
1352 }
1353 /^X\(\/\).*/{
1354 s//\1/
1355 q
1356 }
1357 s/.*/./; q'`
1358 srcdir=$ac_confdir
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1360 srcdir=..
1361 fi
1362 else
1363 ac_srcdir_defaulted=no
1364 fi
1365 if test ! -r "$srcdir/$ac_unique_file"; then
1366 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1367 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1368 fi
1369 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1370 ac_abs_confdir=`(
1371 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1372 pwd)`
1373 # When building in place, set srcdir=.
1374 if test "$ac_abs_confdir" = "$ac_pwd"; then
1375 srcdir=.
1376 fi
1377 # Remove unnecessary trailing slashes from srcdir.
1378 # Double slashes in file names in object file debugging info
1379 # mess up M-x gdb in Emacs.
1380 case $srcdir in
1381 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382 esac
1383 for ac_var in $ac_precious_vars; do
1384 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_env_${ac_var}_value=\$${ac_var}
1386 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388 done
1389
1390 #
1391 # Report the --help message.
1392 #
1393 if test "$ac_init_help" = "long"; then
1394 # Omit some internal or obsolete options to make the list less imposing.
1395 # This message is too long to be a string in the A/UX 3.1 sh.
1396 cat <<_ACEOF
1397 \`configure' configures libmikmod 3.3.13 to adapt to many kinds of systems.
1398
1399 Usage: $0 [OPTION]... [VAR=VALUE]...
1400
1401 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402 VAR=VALUE. See below for descriptions of some of the useful variables.
1403
1404 Defaults for the options are specified in brackets.
1405
1406 Configuration:
1407 -h, --help display this help and exit
1408 --help=short display options specific to this package
1409 --help=recursive display the short help of all the included packages
1410 -V, --version display version information and exit
1411 -q, --quiet, --silent do not print \`checking ...' messages
1412 --cache-file=FILE cache test results in FILE [disabled]
1413 -C, --config-cache alias for \`--cache-file=config.cache'
1414 -n, --no-create do not create output files
1415 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1416
1417 Installation directories:
1418 --prefix=PREFIX install architecture-independent files in PREFIX
1419 [$ac_default_prefix]
1420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1421 [PREFIX]
1422
1423 By default, \`make install' will install all the files in
1424 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1425 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426 for instance \`--prefix=\$HOME'.
1427
1428 For better control, use the options below.
1429
1430 Fine tuning of the installation directories:
1431 --bindir=DIR user executables [EPREFIX/bin]
1432 --sbindir=DIR system admin executables [EPREFIX/sbin]
1433 --libexecdir=DIR program executables [EPREFIX/libexec]
1434 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1435 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1436 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1437 --libdir=DIR object code libraries [EPREFIX/lib]
1438 --includedir=DIR C header files [PREFIX/include]
1439 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1440 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1441 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1442 --infodir=DIR info documentation [DATAROOTDIR/info]
1443 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1444 --mandir=DIR man documentation [DATAROOTDIR/man]
1445 --docdir=DIR documentation root [DATAROOTDIR/doc/libmikmod]
1446 --htmldir=DIR html documentation [DOCDIR]
1447 --dvidir=DIR dvi documentation [DOCDIR]
1448 --pdfdir=DIR pdf documentation [DOCDIR]
1449 --psdir=DIR ps documentation [DOCDIR]
1450 _ACEOF
1451
1452 cat <<\_ACEOF
1453
1454 Program names:
1455 --program-prefix=PREFIX prepend PREFIX to installed program names
1456 --program-suffix=SUFFIX append SUFFIX to installed program names
1457 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1458
1459 X features:
1460 --x-includes=DIR X include files are in DIR
1461 --x-libraries=DIR X library files are in DIR
1462
1463 System types:
1464 --build=BUILD configure for building on BUILD [guessed]
1465 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1466 _ACEOF
1467 fi
1468
1469 if test -n "$ac_init_help"; then
1470 case $ac_init_help in
1471 short | recursive ) echo "Configuration of libmikmod 3.3.13:";;
1472 esac
1473 cat <<\_ACEOF
1474
1475 Optional Features:
1476 --disable-option-checking ignore unrecognized --enable/--with options
1477 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1478 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1479 --enable-silent-rules less verbose build output (undo: "make V=1")
1480 --disable-silent-rules verbose build output (undo: "make V=0")
1481 --enable-maintainer-mode
1482 enable make rules and dependencies not useful (and
1483 sometimes confusing) to the casual installer
1484 --disable-hqmixer exclude support for high quality mixer [default=no]
1485 --disable-depackers exclude support for module depackers [default=no]
1486 --disable-alldrv disable all of the audio drivers. using additional
1487 --enable-XXX options enables the specified drivers.
1488 --enable-af include DEC AudioFile server driver [default=no]
1489 --enable-alsa Linux only: include ALSA driver [guessed]
1490 --enable-oss include OSS driver [guessed]
1491 --enable-sunaudio For SunOS, Solaris, NetBSD or OpenBSD: include
1492 sunaudio driver [guessed]
1493 --enable-sndio OpenBSD only: include sndio driver [guessed]
1494 --enable-aix AIX only: include AIX audio driver [guessed]
1495 --enable-sgi IRIX only: include SGI audio driver [guessed]
1496 --enable-hp HP/UX only: include HP/UX audio driver [guessed]
1497 --enable-ahi Amiga only: include AHI driver [guessed]
1498 --enable-pulseaudio include PulseAudio driver [guessed]
1499 --enable-esd include EsounD (Enlightened Sound Daemon) driver
1500 [default=no]
1501 --enable-nas include the Network Audio System driver [default=no]
1502 --enable-aiff include support for output to an aiff file
1503 [default=yes]
1504 --enable-wav include support for output to a wav file
1505 [default=yes]
1506 --enable-raw include support for output raw data to a file
1507 [default=yes]
1508 --enable-stdout include support for output to stdout [guessed]
1509 --enable-pipe include support for output via a pipe to another
1510 command [guessed]
1511 --enable-sdl include SDL driver [default=no]
1512 --enable-sdl2 try SDL2 first, then SDL-1.2 as libsdl [default=yes]
1513 --enable-openal include OpenAL driver [default=no]
1514 --enable-osx Darwin only: include OSX CoreAudio driver [guessed]
1515 --enable-mac Darwin only: include MAC carbon driver [default=no]
1516 --enable-win Windows only: include Windows MCI driver [guessed]
1517 --enable-ds Windows only: include Direct Sound driver [guessed]
1518 --enable-xaudio2 Windows only: include XAudio2 driver [default=no]
1519 --enable-xaudio28 Windows only: use XAudio2.8 for Windows8 instead of
1520 XAudio2.7 [default=no]
1521 --enable-os2 OS/2 only: include the OS/2 MCI driver [guessed]
1522 --enable-dart OS/2 (Warp 4) only: include OS/2 direct audio (DART)
1523 [guessed]
1524 --enable-sam9407 Linux only: include sam9407 driver [default=no]
1525 --enable-ultra Linux only: include Ultra driver [default=no]
1526 --enable-dl load alsa, pulseaudio or esound drivers at runtime
1527 [default=yes]
1528 --enable-debug build a debug version of libmikmod [default=no]
1529 --enable-threads build a thread-safe version of libmikmod [guessed]
1530 --enable-simd include SIMD (AltiVec or SSE2) mixer optimizations
1531 (Unstable!) [default=no]
1532 --enable-unix override the default value of MIKMOD_UNIX in
1533 mikmod_internals.h (if you *really* need to.)
1534 --enable-doc Build and install the documentation [default=yes]
1535 --enable-dependency-tracking
1536 do not reject slow dependency extractors
1537 --disable-dependency-tracking
1538 speeds up one-time build
1539 --enable-shared[=PKGS] build shared libraries [default=yes]
1540 --enable-static[=PKGS] build static libraries [default=yes]
1541 --enable-fast-install[=PKGS]
1542 optimize for fast installation [default=yes]
1543 --disable-libtool-lock avoid locking (might break parallel builds)
1544 --disable-esdtest Do not try to compile and run a test ESD program
1545 --disable-sdltest Do not try to compile and run a test SDL program
1546
1547 Optional Packages:
1548 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1549 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1550 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1551 both]
1552 --with-aix-soname=aix|svr4|both
1553 shared library versioning (aka "SONAME") variant to
1554 provide on AIX, [default=aix].
1555 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1556 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1557 compiler's sysroot if not specified).
1558 --with-esd-prefix=PFX Prefix where ESD is installed (optional)
1559 --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
1560 --with-x use the X Window System
1561 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1562 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1563
1564 Some influential environment variables:
1565 CC C compiler command
1566 CFLAGS C compiler flags
1567 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1568 nonstandard directory <lib dir>
1569 LIBS libraries to pass to the linker, e.g. -l<library>
1570 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1571 you have headers in a nonstandard directory <include dir>
1572 LT_SYS_LIBRARY_PATH
1573 User-defined run-time library search path.
1574 CPP C preprocessor
1575 PKG_CONFIG path to pkg-config utility
1576 PKG_CONFIG_PATH
1577 directories to add to pkg-config's search path
1578 PKG_CONFIG_LIBDIR
1579 path overriding pkg-config's built-in search path
1580 XMKMF Path to xmkmf, Makefile generator for X Window System
1581 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1582 SDL_LIBS linker flags for SDL, overriding pkg-config
1583
1584 Use these variables to override the choices made by `configure' or to help
1585 it to find libraries and programs with nonstandard names/locations.
1586
1587 Report bugs to the package provider.
1588 _ACEOF
1589 ac_status=$?
1590 fi
1591
1592 if test "$ac_init_help" = "recursive"; then
1593 # If there are subdirs, report their specific --help.
1594 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1595 test -d "$ac_dir" ||
1596 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1597 continue
1598 ac_builddir=.
1599
1600 case "$ac_dir" in
1601 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1602 *)
1603 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1604 # A ".." for each directory in $ac_dir_suffix.
1605 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1606 case $ac_top_builddir_sub in
1607 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1608 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1609 esac ;;
1610 esac
1611 ac_abs_top_builddir=$ac_pwd
1612 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1613 # for backward compatibility:
1614 ac_top_builddir=$ac_top_build_prefix
1615
1616 case $srcdir in
1617 .) # We are building in place.
1618 ac_srcdir=.
1619 ac_top_srcdir=$ac_top_builddir_sub
1620 ac_abs_top_srcdir=$ac_pwd ;;
1621 [\\/]* | ?:[\\/]* ) # Absolute name.
1622 ac_srcdir=$srcdir$ac_dir_suffix;
1623 ac_top_srcdir=$srcdir
1624 ac_abs_top_srcdir=$srcdir ;;
1625 *) # Relative name.
1626 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1627 ac_top_srcdir=$ac_top_build_prefix$srcdir
1628 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1629 esac
1630 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1631
1632 cd "$ac_dir" || { ac_status=$?; continue; }
1633 # Check for guested configure.
1634 if test -f "$ac_srcdir/configure.gnu"; then
1635 echo &&
1636 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1637 elif test -f "$ac_srcdir/configure"; then
1638 echo &&
1639 $SHELL "$ac_srcdir/configure" --help=recursive
1640 else
1641 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1642 fi || ac_status=$?
1643 cd "$ac_pwd" || { ac_status=$?; break; }
1644 done
1645 fi
1646
1647 test -n "$ac_init_help" && exit $ac_status
1648 if $ac_init_version; then
1649 cat <<\_ACEOF
1650 libmikmod configure 3.3.13
1651 generated by GNU Autoconf 2.69
1652
1653 Copyright (C) 2012 Free Software Foundation, Inc.
1654 This configure script is free software; the Free Software Foundation
1655 gives unlimited permission to copy, distribute and modify it.
1656 _ACEOF
1657 exit
1658 fi
1659
1660 ## ------------------------ ##
1661 ## Autoconf initialization. ##
1662 ## ------------------------ ##
1663
1664 # ac_fn_c_try_compile LINENO
1665 # --------------------------
1666 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1667 ac_fn_c_try_compile ()
1668 {
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 rm -f conftest.$ac_objext
1671 if { { ac_try="$ac_compile"
1672 case "(($ac_try" in
1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1675 esac
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_compile") 2>conftest.err
1679 ac_status=$?
1680 if test -s conftest.err; then
1681 grep -v '^ *+' conftest.err >conftest.er1
1682 cat conftest.er1 >&5
1683 mv -f conftest.er1 conftest.err
1684 fi
1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686 test $ac_status = 0; } && {
1687 test -z "$ac_c_werror_flag" ||
1688 test ! -s conftest.err
1689 } && test -s conftest.$ac_objext; then :
1690 ac_retval=0
1691 else
1692 $as_echo "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1694
1695 ac_retval=1
1696 fi
1697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698 as_fn_set_status $ac_retval
1699
1700 } # ac_fn_c_try_compile
1701
1702 # ac_fn_c_try_link LINENO
1703 # -----------------------
1704 # Try to link conftest.$ac_ext, and return whether this succeeded.
1705 ac_fn_c_try_link ()
1706 {
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 rm -f conftest.$ac_objext conftest$ac_exeext
1709 if { { ac_try="$ac_link"
1710 case "(($ac_try" in
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1713 esac
1714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715 $as_echo "$ac_try_echo"; } >&5
1716 (eval "$ac_link") 2>conftest.err
1717 ac_status=$?
1718 if test -s conftest.err; then
1719 grep -v '^ *+' conftest.err >conftest.er1
1720 cat conftest.er1 >&5
1721 mv -f conftest.er1 conftest.err
1722 fi
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } && {
1725 test -z "$ac_c_werror_flag" ||
1726 test ! -s conftest.err
1727 } && test -s conftest$ac_exeext && {
1728 test "$cross_compiling" = yes ||
1729 test -x conftest$ac_exeext
1730 }; then :
1731 ac_retval=0
1732 else
1733 $as_echo "$as_me: failed program was:" >&5
1734 sed 's/^/| /' conftest.$ac_ext >&5
1735
1736 ac_retval=1
1737 fi
1738 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1739 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1740 # interfere with the next link command; also delete a directory that is
1741 # left behind by Apple's compiler. We do this before executing the actions.
1742 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744 as_fn_set_status $ac_retval
1745
1746 } # ac_fn_c_try_link
1747
1748 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1749 # -------------------------------------------------------
1750 # Tests whether HEADER exists and can be compiled using the include files in
1751 # INCLUDES, setting the cache variable VAR accordingly.
1752 ac_fn_c_check_header_compile ()
1753 {
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1756 $as_echo_n "checking for $2... " >&6; }
1757 if eval \${$3+:} false; then :
1758 $as_echo_n "(cached) " >&6
1759 else
1760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1761 /* end confdefs.h. */
1762 $4
1763 #include <$2>
1764 _ACEOF
1765 if ac_fn_c_try_compile "$LINENO"; then :
1766 eval "$3=yes"
1767 else
1768 eval "$3=no"
1769 fi
1770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1771 fi
1772 eval ac_res=\$$3
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774 $as_echo "$ac_res" >&6; }
1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776
1777 } # ac_fn_c_check_header_compile
1778
1779 # ac_fn_c_try_cpp LINENO
1780 # ----------------------
1781 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1782 ac_fn_c_try_cpp ()
1783 {
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 if { { ac_try="$ac_cpp conftest.$ac_ext"
1786 case "(($ac_try" in
1787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788 *) ac_try_echo=$ac_try;;
1789 esac
1790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791 $as_echo "$ac_try_echo"; } >&5
1792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1793 ac_status=$?
1794 if test -s conftest.err; then
1795 grep -v '^ *+' conftest.err >conftest.er1
1796 cat conftest.er1 >&5
1797 mv -f conftest.er1 conftest.err
1798 fi
1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 test $ac_status = 0; } > conftest.i && {
1801 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1802 test ! -s conftest.err
1803 }; then :
1804 ac_retval=0
1805 else
1806 $as_echo "$as_me: failed program was:" >&5
1807 sed 's/^/| /' conftest.$ac_ext >&5
1808
1809 ac_retval=1
1810 fi
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812 as_fn_set_status $ac_retval
1813
1814 } # ac_fn_c_try_cpp
1815
1816 # ac_fn_c_try_run LINENO
1817 # ----------------------
1818 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1819 # executables *can* be run.
1820 ac_fn_c_try_run ()
1821 {
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 if { { ac_try="$ac_link"
1824 case "(($ac_try" in
1825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826 *) ac_try_echo=$ac_try;;
1827 esac
1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 $as_echo "$ac_try_echo"; } >&5
1830 (eval "$ac_link") 2>&5
1831 ac_status=$?
1832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1834 { { case "(($ac_try" in
1835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836 *) ac_try_echo=$ac_try;;
1837 esac
1838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839 $as_echo "$ac_try_echo"; } >&5
1840 (eval "$ac_try") 2>&5
1841 ac_status=$?
1842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843 test $ac_status = 0; }; }; then :
1844 ac_retval=0
1845 else
1846 $as_echo "$as_me: program exited with status $ac_status" >&5
1847 $as_echo "$as_me: failed program was:" >&5
1848 sed 's/^/| /' conftest.$ac_ext >&5
1849
1850 ac_retval=$ac_status
1851 fi
1852 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854 as_fn_set_status $ac_retval
1855
1856 } # ac_fn_c_try_run
1857
1858 # ac_fn_c_check_func LINENO FUNC VAR
1859 # ----------------------------------
1860 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1861 ac_fn_c_check_func ()
1862 {
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1865 $as_echo_n "checking for $2... " >&6; }
1866 if eval \${$3+:} false; then :
1867 $as_echo_n "(cached) " >&6
1868 else
1869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1870 /* end confdefs.h. */
1871 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1873 #define $2 innocuous_$2
1874
1875 /* System header to define __stub macros and hopefully few prototypes,
1876 which can conflict with char $2 (); below.
1877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1878 <limits.h> exists even on freestanding compilers. */
1879
1880 #ifdef __STDC__
1881 # include <limits.h>
1882 #else
1883 # include <assert.h>
1884 #endif
1885
1886 #undef $2
1887
1888 /* Override any GCC internal prototype to avoid an error.
1889 Use char because int might match the return type of a GCC
1890 builtin and then its argument prototype would still apply. */
1891 #ifdef __cplusplus
1892 extern "C"
1893 #endif
1894 char $2 ();
1895 /* The GNU C library defines this for functions which it implements
1896 to always fail with ENOSYS. Some functions are actually named
1897 something starting with __ and the normal name is an alias. */
1898 #if defined __stub_$2 || defined __stub___$2
1899 choke me
1900 #endif
1901
1902 int
1903 main ()
1904 {
1905 return $2 ();
1906 ;
1907 return 0;
1908 }
1909 _ACEOF
1910 if ac_fn_c_try_link "$LINENO"; then :
1911 eval "$3=yes"
1912 else
1913 eval "$3=no"
1914 fi
1915 rm -f core conftest.err conftest.$ac_objext \
1916 conftest$ac_exeext conftest.$ac_ext
1917 fi
1918 eval ac_res=\$$3
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1920 $as_echo "$ac_res" >&6; }
1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922
1923 } # ac_fn_c_check_func
1924
1925 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1926 # -------------------------------------------
1927 # Tests whether TYPE exists after having included INCLUDES, setting cache
1928 # variable VAR accordingly.
1929 ac_fn_c_check_type ()
1930 {
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1933 $as_echo_n "checking for $2... " >&6; }
1934 if eval \${$3+:} false; then :
1935 $as_echo_n "(cached) " >&6
1936 else
1937 eval "$3=no"
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h. */
1940 $4
1941 int
1942 main ()
1943 {
1944 if (sizeof ($2))
1945 return 0;
1946 ;
1947 return 0;
1948 }
1949 _ACEOF
1950 if ac_fn_c_try_compile "$LINENO"; then :
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1953 $4
1954 int
1955 main ()
1956 {
1957 if (sizeof (($2)))
1958 return 0;
1959 ;
1960 return 0;
1961 }
1962 _ACEOF
1963 if ac_fn_c_try_compile "$LINENO"; then :
1964
1965 else
1966 eval "$3=yes"
1967 fi
1968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1969 fi
1970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1971 fi
1972 eval ac_res=\$$3
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1974 $as_echo "$ac_res" >&6; }
1975 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1976
1977 } # ac_fn_c_check_type
1978
1979 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1980 # -------------------------------------------------------
1981 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1982 # the include files in INCLUDES and setting the cache variable VAR
1983 # accordingly.
1984 ac_fn_c_check_header_mongrel ()
1985 {
1986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987 if eval \${$3+:} false; then :
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1989 $as_echo_n "checking for $2... " >&6; }
1990 if eval \${$3+:} false; then :
1991 $as_echo_n "(cached) " >&6
1992 fi
1993 eval ac_res=\$$3
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1995 $as_echo "$ac_res" >&6; }
1996 else
1997 # Is the header compilable?
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1999 $as_echo_n "checking $2 usability... " >&6; }
2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h. */
2002 $4
2003 #include <$2>
2004 _ACEOF
2005 if ac_fn_c_try_compile "$LINENO"; then :
2006 ac_header_compiler=yes
2007 else
2008 ac_header_compiler=no
2009 fi
2010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2012 $as_echo "$ac_header_compiler" >&6; }
2013
2014 # Is the header present?
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2016 $as_echo_n "checking $2 presence... " >&6; }
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2019 #include <$2>
2020 _ACEOF
2021 if ac_fn_c_try_cpp "$LINENO"; then :
2022 ac_header_preproc=yes
2023 else
2024 ac_header_preproc=no
2025 fi
2026 rm -f conftest.err conftest.i conftest.$ac_ext
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2028 $as_echo "$ac_header_preproc" >&6; }
2029
2030 # So? What about this header?
2031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2032 yes:no: )
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2034 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2036 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2037 ;;
2038 no:yes:* )
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2040 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2042 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2044 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2046 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2048 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2049 ;;
2050 esac
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2052 $as_echo_n "checking for $2... " >&6; }
2053 if eval \${$3+:} false; then :
2054 $as_echo_n "(cached) " >&6
2055 else
2056 eval "$3=\$ac_header_compiler"
2057 fi
2058 eval ac_res=\$$3
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2060 $as_echo "$ac_res" >&6; }
2061 fi
2062 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2063
2064 } # ac_fn_c_check_header_mongrel
2065 cat >config.log <<_ACEOF
2066 This file contains any messages produced by compilers while
2067 running configure, to aid debugging if configure makes a mistake.
2068
2069 It was created by libmikmod $as_me 3.3.13, which was
2070 generated by GNU Autoconf 2.69. Invocation command line was
2071
2072 $ $0 $@
2073
2074 _ACEOF
2075 exec 5>>config.log
2076 {
2077 cat <<_ASUNAME
2078 ## --------- ##
2079 ## Platform. ##
2080 ## --------- ##
2081
2082 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2083 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2084 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2085 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2086 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2087
2088 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2089 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2090
2091 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2092 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2093 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2094 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2095 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2096 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2097 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2098
2099 _ASUNAME
2100
2101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2102 for as_dir in $PATH
2103 do
2104 IFS=$as_save_IFS
2105 test -z "$as_dir" && as_dir=.
2106 $as_echo "PATH: $as_dir"
2107 done
2108 IFS=$as_save_IFS
2109
2110 } >&5
2111
2112 cat >&5 <<_ACEOF
2113
2114
2115 ## ----------- ##
2116 ## Core tests. ##
2117 ## ----------- ##
2118
2119 _ACEOF
2120
2121
2122 # Keep a trace of the command line.
2123 # Strip out --no-create and --no-recursion so they do not pile up.
2124 # Strip out --silent because we don't want to record it for future runs.
2125 # Also quote any args containing shell meta-characters.
2126 # Make two passes to allow for proper duplicate-argument suppression.
2127 ac_configure_args=
2128 ac_configure_args0=
2129 ac_configure_args1=
2130 ac_must_keep_next=false
2131 for ac_pass in 1 2
2132 do
2133 for ac_arg
2134 do
2135 case $ac_arg in
2136 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2137 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2138 | -silent | --silent | --silen | --sile | --sil)
2139 continue ;;
2140 *\'*)
2141 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2142 esac
2143 case $ac_pass in
2144 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2145 2)
2146 as_fn_append ac_configure_args1 " '$ac_arg'"
2147 if test $ac_must_keep_next = true; then
2148 ac_must_keep_next=false # Got value, back to normal.
2149 else
2150 case $ac_arg in
2151 *=* | --config-cache | -C | -disable-* | --disable-* \
2152 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2153 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2154 | -with-* | --with-* | -without-* | --without-* | --x)
2155 case "$ac_configure_args0 " in
2156 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2157 esac
2158 ;;
2159 -* ) ac_must_keep_next=true ;;
2160 esac
2161 fi
2162 as_fn_append ac_configure_args " '$ac_arg'"
2163 ;;
2164 esac
2165 done
2166 done
2167 { ac_configure_args0=; unset ac_configure_args0;}
2168 { ac_configure_args1=; unset ac_configure_args1;}
2169
2170 # When interrupted or exit'd, cleanup temporary files, and complete
2171 # config.log. We remove comments because anyway the quotes in there
2172 # would cause problems or look ugly.
2173 # WARNING: Use '\'' to represent an apostrophe within the trap.
2174 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2175 trap 'exit_status=$?
2176 # Sanitize IFS.
2177 IFS=" "" $as_nl"
2178 # Save into config.log some information that might help in debugging.
2179 {
2180 echo
2181
2182 $as_echo "## ---------------- ##
2183 ## Cache variables. ##
2184 ## ---------------- ##"
2185 echo
2186 # The following way of writing the cache mishandles newlines in values,
2187 (
2188 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2189 eval ac_val=\$$ac_var
2190 case $ac_val in #(
2191 *${as_nl}*)
2192 case $ac_var in #(
2193 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2194 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2195 esac
2196 case $ac_var in #(
2197 _ | IFS | as_nl) ;; #(
2198 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2199 *) { eval $ac_var=; unset $ac_var;} ;;
2200 esac ;;
2201 esac
2202 done
2203 (set) 2>&1 |
2204 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2205 *${as_nl}ac_space=\ *)
2206 sed -n \
2207 "s/'\''/'\''\\\\'\'''\''/g;
2208 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2209 ;; #(
2210 *)
2211 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2212 ;;
2213 esac |
2214 sort
2215 )
2216 echo
2217
2218 $as_echo "## ----------------- ##
2219 ## Output variables. ##
2220 ## ----------------- ##"
2221 echo
2222 for ac_var in $ac_subst_vars
2223 do
2224 eval ac_val=\$$ac_var
2225 case $ac_val in
2226 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2227 esac
2228 $as_echo "$ac_var='\''$ac_val'\''"
2229 done | sort
2230 echo
2231
2232 if test -n "$ac_subst_files"; then
2233 $as_echo "## ------------------- ##
2234 ## File substitutions. ##
2235 ## ------------------- ##"
2236 echo
2237 for ac_var in $ac_subst_files
2238 do
2239 eval ac_val=\$$ac_var
2240 case $ac_val in
2241 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2242 esac
2243 $as_echo "$ac_var='\''$ac_val'\''"
2244 done | sort
2245 echo
2246 fi
2247
2248 if test -s confdefs.h; then
2249 $as_echo "## ----------- ##
2250 ## confdefs.h. ##
2251 ## ----------- ##"
2252 echo
2253 cat confdefs.h
2254 echo
2255 fi
2256 test "$ac_signal" != 0 &&
2257 $as_echo "$as_me: caught signal $ac_signal"
2258 $as_echo "$as_me: exit $exit_status"
2259 } >&5
2260 rm -f core *.core core.conftest.* &&
2261 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2262 exit $exit_status
2263 ' 0
2264 for ac_signal in 1 2 13 15; do
2265 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2266 done
2267 ac_signal=0
2268
2269 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2270 rm -f -r conftest* confdefs.h
2271
2272 $as_echo "/* confdefs.h */" > confdefs.h
2273
2274 # Predefined preprocessor variables.
2275
2276 cat >>confdefs.h <<_ACEOF
2277 #define PACKAGE_NAME "$PACKAGE_NAME"
2278 _ACEOF
2279
2280 cat >>confdefs.h <<_ACEOF
2281 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2282 _ACEOF
2283
2284 cat >>confdefs.h <<_ACEOF
2285 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2286 _ACEOF
2287
2288 cat >>confdefs.h <<_ACEOF
2289 #define PACKAGE_STRING "$PACKAGE_STRING"
2290 _ACEOF
2291
2292 cat >>confdefs.h <<_ACEOF
2293 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2294 _ACEOF
2295
2296 cat >>confdefs.h <<_ACEOF
2297 #define PACKAGE_URL "$PACKAGE_URL"
2298 _ACEOF
2299
2300
2301 # Let the site file select an alternate cache file if it wants to.
2302 # Prefer an explicitly selected file to automatically selected ones.
2303 ac_site_file1=NONE
2304 ac_site_file2=NONE
2305 if test -n "$CONFIG_SITE"; then
2306 # We do not want a PATH search for config.site.
2307 case $CONFIG_SITE in #((
2308 -*) ac_site_file1=./$CONFIG_SITE;;
2309 */*) ac_site_file1=$CONFIG_SITE;;
2310 *) ac_site_file1=./$CONFIG_SITE;;
2311 esac
2312 elif test "x$prefix" != xNONE; then
2313 ac_site_file1=$prefix/share/config.site
2314 ac_site_file2=$prefix/etc/config.site
2315 else
2316 ac_site_file1=$ac_default_prefix/share/config.site
2317 ac_site_file2=$ac_default_prefix/etc/config.site
2318 fi
2319 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2320 do
2321 test "x$ac_site_file" = xNONE && continue
2322 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2324 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2325 sed 's/^/| /' "$ac_site_file" >&5
2326 . "$ac_site_file" \
2327 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2328 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2329 as_fn_error $? "failed to load site script $ac_site_file
2330 See \`config.log' for more details" "$LINENO" 5; }
2331 fi
2332 done
2333
2334 if test -r "$cache_file"; then
2335 # Some versions of bash will fail to source /dev/null (special files
2336 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2337 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2339 $as_echo "$as_me: loading cache $cache_file" >&6;}
2340 case $cache_file in
2341 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2342 *) . "./$cache_file";;
2343 esac
2344 fi
2345 else
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2347 $as_echo "$as_me: creating cache $cache_file" >&6;}
2348 >$cache_file
2349 fi
2350
2351 # Check that the precious variables saved in the cache have kept the same
2352 # value.
2353 ac_cache_corrupted=false
2354 for ac_var in $ac_precious_vars; do
2355 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2356 eval ac_new_set=\$ac_env_${ac_var}_set
2357 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2358 eval ac_new_val=\$ac_env_${ac_var}_value
2359 case $ac_old_set,$ac_new_set in
2360 set,)
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2362 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2363 ac_cache_corrupted=: ;;
2364 ,set)
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2366 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2367 ac_cache_corrupted=: ;;
2368 ,);;
2369 *)
2370 if test "x$ac_old_val" != "x$ac_new_val"; then
2371 # differences in whitespace do not lead to failure.
2372 ac_old_val_w=`echo x $ac_old_val`
2373 ac_new_val_w=`echo x $ac_new_val`
2374 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2376 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2377 ac_cache_corrupted=:
2378 else
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2380 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2381 eval $ac_var=\$ac_old_val
2382 fi
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2384 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2386 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2387 fi;;
2388 esac
2389 # Pass precious variables to config.status.
2390 if test "$ac_new_set" = set; then
2391 case $ac_new_val in
2392 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2393 *) ac_arg=$ac_var=$ac_new_val ;;
2394 esac
2395 case " $ac_configure_args " in
2396 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2397 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2398 esac
2399 fi
2400 done
2401 if $ac_cache_corrupted; then
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2405 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2406 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2407 fi
2408 ## -------------------- ##
2409 ## Main body of script. ##
2410 ## -------------------- ##
2411
2412 ac_ext=c
2413 ac_cpp='$CPP $CPPFLAGS'
2414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2417
2418
2419 LIBMIKMOD_MAJOR_VERSION=3
2420 LIBMIKMOD_MINOR_VERSION=3
2421 LIBMIKMOD_MICRO_VERSION=13
2422 LIBMIKMOD_VERSION=$LIBMIKMOD_MAJOR_VERSION.$LIBMIKMOD_MINOR_VERSION.$LIBMIKMOD_MICRO_VERSION
2423
2424 ac_aux_dir=
2425 for ac_dir in autotools "$srcdir"/autotools; do
2426 if test -f "$ac_dir/install-sh"; then
2427 ac_aux_dir=$ac_dir
2428 ac_install_sh="$ac_aux_dir/install-sh -c"
2429 break
2430 elif test -f "$ac_dir/install.sh"; then
2431 ac_aux_dir=$ac_dir
2432 ac_install_sh="$ac_aux_dir/install.sh -c"
2433 break
2434 elif test -f "$ac_dir/shtool"; then
2435 ac_aux_dir=$ac_dir
2436 ac_install_sh="$ac_aux_dir/shtool install -c"
2437 break
2438 fi
2439 done
2440 if test -z "$ac_aux_dir"; then
2441 as_fn_error $? "cannot find install-sh, install.sh, or shtool in autotools \"$srcdir\"/autotools" "$LINENO" 5
2442 fi
2443
2444 # These three variables are undocumented and unsupported,
2445 # and are intended to be withdrawn in a future Autoconf release.
2446 # They can cause serious problems if a builder's source tree is in a directory
2447 # whose full name contains unusual characters.
2448 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2449 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2450 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2451
2452
2453 am__api_version='1.16'
2454
2455 # Find a good install program. We prefer a C program (faster),
2456 # so one script is as good as another. But avoid the broken or
2457 # incompatible versions:
2458 # SysV /etc/install, /usr/sbin/install
2459 # SunOS /usr/etc/install
2460 # IRIX /sbin/install
2461 # AIX /bin/install
2462 # AmigaOS /C/install, which installs bootblocks on floppy discs
2463 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2464 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2465 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2466 # OS/2's system install, which has a completely different semantic
2467 # ./install, which can be erroneously created by make from ./install.sh.
2468 # Reject install programs that cannot install multiple files.
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2470 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2471 if test -z "$INSTALL"; then
2472 if ${ac_cv_path_install+:} false; then :
2473 $as_echo_n "(cached) " >&6
2474 else
2475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2476 for as_dir in $PATH
2477 do
2478 IFS=$as_save_IFS
2479 test -z "$as_dir" && as_dir=.
2480 # Account for people who put trailing slashes in PATH elements.
2481 case $as_dir/ in #((
2482 ./ | .// | /[cC]/* | \
2483 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2484 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2485 /usr/ucb/* ) ;;
2486 *)
2487 # OSF1 and SCO ODT 3.0 have their own names for install.
2488 # Don't use installbsd from OSF since it installs stuff as root
2489 # by default.
2490 for ac_prog in ginstall scoinst install; do
2491 for ac_exec_ext in '' $ac_executable_extensions; do
2492 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2493 if test $ac_prog = install &&
2494 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2495 # AIX install. It has an incompatible calling convention.
2496 :
2497 elif test $ac_prog = install &&
2498 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2499 # program-specific install script used by HP pwplus--don't use.
2500 :
2501 else
2502 rm -rf conftest.one conftest.two conftest.dir
2503 echo one > conftest.one
2504 echo two > conftest.two
2505 mkdir conftest.dir
2506 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2507 test -s conftest.one && test -s conftest.two &&
2508 test -s conftest.dir/conftest.one &&
2509 test -s conftest.dir/conftest.two
2510 then
2511 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2512 break 3
2513 fi
2514 fi
2515 fi
2516 done
2517 done
2518 ;;
2519 esac
2520
2521 done
2522 IFS=$as_save_IFS
2523
2524 rm -rf conftest.one conftest.two conftest.dir
2525
2526 fi
2527 if test "${ac_cv_path_install+set}" = set; then
2528 INSTALL=$ac_cv_path_install
2529 else
2530 # As a last resort, use the slow shell script. Don't cache a
2531 # value for INSTALL within a source directory, because that will
2532 # break other packages using the cache if that directory is
2533 # removed, or if the value is a relative name.
2534 INSTALL=$ac_install_sh
2535 fi
2536 fi
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2538 $as_echo "$INSTALL" >&6; }
2539
2540 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2541 # It thinks the first close brace ends the variable substitution.
2542 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2543
2544 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2545
2546 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2547
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2549 $as_echo_n "checking whether build environment is sane... " >&6; }
2550 # Reject unsafe characters in $srcdir or the absolute working directory
2551 # name. Accept space and tab only in the latter.
2552 am_lf='
2553 '
2554 case `pwd` in
2555 *[\\\"\#\$\&\'\`$am_lf]*)
2556 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2557 esac
2558 case $srcdir in
2559 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2560 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2561 esac
2562
2563 # Do 'set' in a subshell so we don't clobber the current shell's
2564 # arguments. Must try -L first in case configure is actually a
2565 # symlink; some systems play weird games with the mod time of symlinks
2566 # (eg FreeBSD returns the mod time of the symlink's containing
2567 # directory).
2568 if (
2569 am_has_slept=no
2570 for am_try in 1 2; do
2571 echo "timestamp, slept: $am_has_slept" > conftest.file
2572 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2573 if test "$*" = "X"; then
2574 # -L didn't work.
2575 set X `ls -t "$srcdir/configure" conftest.file`
2576 fi
2577 if test "$*" != "X $srcdir/configure conftest.file" \
2578 && test "$*" != "X conftest.file $srcdir/configure"; then
2579
2580 # If neither matched, then we have a broken ls. This can happen
2581 # if, for instance, CONFIG_SHELL is bash and it inherits a
2582 # broken ls alias from the environment. This has actually
2583 # happened. Such a system could not be considered "sane".
2584 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2585 alias in your environment" "$LINENO" 5
2586 fi
2587 if test "$2" = conftest.file || test $am_try -eq 2; then
2588 break
2589 fi
2590 # Just in case.
2591 sleep 1
2592 am_has_slept=yes
2593 done
2594 test "$2" = conftest.file
2595 )
2596 then
2597 # Ok.
2598 :
2599 else
2600 as_fn_error $? "newly created file is older than distributed files!
2601 Check your system clock" "$LINENO" 5
2602 fi
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2604 $as_echo "yes" >&6; }
2605 # If we didn't sleep, we still need to ensure time stamps of config.status and
2606 # generated files are strictly newer.
2607 am_sleep_pid=
2608 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2609 ( sleep 1 ) &
2610 am_sleep_pid=$!
2611 fi
2612
2613 rm -f conftest.file
2614
2615 test "$program_prefix" != NONE &&
2616 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2617 # Use a double $ so make ignores it.
2618 test "$program_suffix" != NONE &&
2619 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2620 # Double any \ or $.
2621 # By default was `s,x,x', remove it if useless.
2622 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2623 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2624
2625 # Expand $ac_aux_dir to an absolute path.
2626 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2627
2628 if test x"${MISSING+set}" != xset; then
2629 MISSING="\${SHELL} '$am_aux_dir/missing'"
2630 fi
2631 # Use eval to expand $SHELL
2632 if eval "$MISSING --is-lightweight"; then
2633 am_missing_run="$MISSING "
2634 else
2635 am_missing_run=
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2637 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2638 fi
2639
2640 if test x"${install_sh+set}" != xset; then
2641 case $am_aux_dir in
2642 *\ * | *\ *)
2643 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2644 *)
2645 install_sh="\${SHELL} $am_aux_dir/install-sh"
2646 esac
2647 fi
2648
2649 # Installed binaries are usually stripped using 'strip' when the user
2650 # run "make install-strip". However 'strip' might not be the right
2651 # tool to use in cross-compilation environments, therefore Automake
2652 # will honor the 'STRIP' environment variable to overrule this program.
2653 if test "$cross_compiling" != no; then
2654 if test -n "$ac_tool_prefix"; then
2655 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2656 set dummy ${ac_tool_prefix}strip; ac_word=$2
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2658 $as_echo_n "checking for $ac_word... " >&6; }
2659 if ${ac_cv_prog_STRIP+:} false; then :
2660 $as_echo_n "(cached) " >&6
2661 else
2662 if test -n "$STRIP"; then
2663 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2664 else
2665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666 for as_dir in $PATH
2667 do
2668 IFS=$as_save_IFS
2669 test -z "$as_dir" && as_dir=.
2670 for ac_exec_ext in '' $ac_executable_extensions; do
2671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2672 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2674 break 2
2675 fi
2676 done
2677 done
2678 IFS=$as_save_IFS
2679
2680 fi
2681 fi
2682 STRIP=$ac_cv_prog_STRIP
2683 if test -n "$STRIP"; then
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2685 $as_echo "$STRIP" >&6; }
2686 else
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2688 $as_echo "no" >&6; }
2689 fi
2690
2691
2692 fi
2693 if test -z "$ac_cv_prog_STRIP"; then
2694 ac_ct_STRIP=$STRIP
2695 # Extract the first word of "strip", so it can be a program name with args.
2696 set dummy strip; ac_word=$2
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2698 $as_echo_n "checking for $ac_word... " >&6; }
2699 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2700 $as_echo_n "(cached) " >&6
2701 else
2702 if test -n "$ac_ct_STRIP"; then
2703 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2704 else
2705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706 for as_dir in $PATH
2707 do
2708 IFS=$as_save_IFS
2709 test -z "$as_dir" && as_dir=.
2710 for ac_exec_ext in '' $ac_executable_extensions; do
2711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2712 ac_cv_prog_ac_ct_STRIP="strip"
2713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2714 break 2
2715 fi
2716 done
2717 done
2718 IFS=$as_save_IFS
2719
2720 fi
2721 fi
2722 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2723 if test -n "$ac_ct_STRIP"; then
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2725 $as_echo "$ac_ct_STRIP" >&6; }
2726 else
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2728 $as_echo "no" >&6; }
2729 fi
2730
2731 if test "x$ac_ct_STRIP" = x; then
2732 STRIP=":"
2733 else
2734 case $cross_compiling:$ac_tool_warned in
2735 yes:)
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2738 ac_tool_warned=yes ;;
2739 esac
2740 STRIP=$ac_ct_STRIP
2741 fi
2742 else
2743 STRIP="$ac_cv_prog_STRIP"
2744 fi
2745
2746 fi
2747 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2748
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2750 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2751 if test -z "$MKDIR_P"; then
2752 if ${ac_cv_path_mkdir+:} false; then :
2753 $as_echo_n "(cached) " >&6
2754 else
2755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2757 do
2758 IFS=$as_save_IFS
2759 test -z "$as_dir" && as_dir=.
2760 for ac_prog in mkdir gmkdir; do
2761 for ac_exec_ext in '' $ac_executable_extensions; do
2762 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2763 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2764 'mkdir (GNU coreutils) '* | \
2765 'mkdir (coreutils) '* | \
2766 'mkdir (fileutils) '4.1*)
2767 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2768 break 3;;
2769 esac
2770 done
2771 done
2772 done
2773 IFS=$as_save_IFS
2774
2775 fi
2776
2777 test -d ./--version && rmdir ./--version
2778 if test "${ac_cv_path_mkdir+set}" = set; then
2779 MKDIR_P="$ac_cv_path_mkdir -p"
2780 else
2781 # As a last resort, use the slow shell script. Don't cache a
2782 # value for MKDIR_P within a source directory, because that will
2783 # break other packages using the cache if that directory is
2784 # removed, or if the value is a relative name.
2785 MKDIR_P="$ac_install_sh -d"
2786 fi
2787 fi
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2789 $as_echo "$MKDIR_P" >&6; }
2790
2791 for ac_prog in gawk mawk nawk awk
2792 do
2793 # Extract the first word of "$ac_prog", so it can be a program name with args.
2794 set dummy $ac_prog; ac_word=$2
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2796 $as_echo_n "checking for $ac_word... " >&6; }
2797 if ${ac_cv_prog_AWK+:} false; then :
2798 $as_echo_n "(cached) " >&6
2799 else
2800 if test -n "$AWK"; then
2801 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2802 else
2803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804 for as_dir in $PATH
2805 do
2806 IFS=$as_save_IFS
2807 test -z "$as_dir" && as_dir=.
2808 for ac_exec_ext in '' $ac_executable_extensions; do
2809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2810 ac_cv_prog_AWK="$ac_prog"
2811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2812 break 2
2813 fi
2814 done
2815 done
2816 IFS=$as_save_IFS
2817
2818 fi
2819 fi
2820 AWK=$ac_cv_prog_AWK
2821 if test -n "$AWK"; then
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2823 $as_echo "$AWK" >&6; }
2824 else
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2826 $as_echo "no" >&6; }
2827 fi
2828
2829
2830 test -n "$AWK" && break
2831 done
2832
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2834 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2835 set x ${MAKE-make}
2836 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2837 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2838 $as_echo_n "(cached) " >&6
2839 else
2840 cat >conftest.make <<\_ACEOF
2841 SHELL = /bin/sh
2842 all:
2843 @echo '@@@%%%=$(MAKE)=@@@%%%'
2844 _ACEOF
2845 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2846 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2847 *@@@%%%=?*=@@@%%%*)
2848 eval ac_cv_prog_make_${ac_make}_set=yes;;
2849 *)
2850 eval ac_cv_prog_make_${ac_make}_set=no;;
2851 esac
2852 rm -f conftest.make
2853 fi
2854 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2856 $as_echo "yes" >&6; }
2857 SET_MAKE=
2858 else
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2860 $as_echo "no" >&6; }
2861 SET_MAKE="MAKE=${MAKE-make}"
2862 fi
2863
2864 rm -rf .tst 2>/dev/null
2865 mkdir .tst 2>/dev/null
2866 if test -d .tst; then
2867 am__leading_dot=.
2868 else
2869 am__leading_dot=_
2870 fi
2871 rmdir .tst 2>/dev/null
2872
2873 # Check whether --enable-silent-rules was given.
2874 if test "${enable_silent_rules+set}" = set; then :
2875 enableval=$enable_silent_rules;
2876 fi
2877
2878 case $enable_silent_rules in # (((
2879 yes) AM_DEFAULT_VERBOSITY=0;;
2880 no) AM_DEFAULT_VERBOSITY=1;;
2881 *) AM_DEFAULT_VERBOSITY=1;;
2882 esac
2883 am_make=${MAKE-make}
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2885 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2886 if ${am_cv_make_support_nested_variables+:} false; then :
2887 $as_echo_n "(cached) " >&6
2888 else
2889 if $as_echo 'TRUE=$(BAR$(V))
2890 BAR0=false
2891 BAR1=true
2892 V=1
2893 am__doit:
2894 @$(TRUE)
2895 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2896 am_cv_make_support_nested_variables=yes
2897 else
2898 am_cv_make_support_nested_variables=no
2899 fi
2900 fi
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2902 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2903 if test $am_cv_make_support_nested_variables = yes; then
2904 AM_V='$(V)'
2905 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2906 else
2907 AM_V=$AM_DEFAULT_VERBOSITY
2908 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2909 fi
2910 AM_BACKSLASH='\'
2911
2912 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2913 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2914 # is not polluted with repeated "-I."
2915 am__isrc=' -I$(srcdir)'
2916 # test to see if srcdir already configured
2917 if test -f $srcdir/config.status; then
2918 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2919 fi
2920 fi
2921
2922 # test whether we have cygpath
2923 if test -z "$CYGPATH_W"; then
2924 if (cygpath --version) >/dev/null 2>/dev/null; then
2925 CYGPATH_W='cygpath -w'
2926 else
2927 CYGPATH_W=echo
2928 fi
2929 fi
2930
2931
2932 # Define the identity of the package.
2933 PACKAGE='libmikmod'
2934 VERSION='3.3.13'
2935
2936
2937 cat >>confdefs.h <<_ACEOF
2938 #define PACKAGE "$PACKAGE"
2939 _ACEOF
2940
2941
2942 cat >>confdefs.h <<_ACEOF
2943 #define VERSION "$VERSION"
2944 _ACEOF
2945
2946 # Some tools Automake needs.
2947
2948 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2949
2950
2951 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2952
2953
2954 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2955
2956
2957 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2958
2959
2960 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2961
2962 # For better backward compatibility. To be removed once Automake 1.9.x
2963 # dies out for good. For more background, see:
2964 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2965 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2966 mkdir_p='$(MKDIR_P)'
2967
2968 # We need awk for the "check" target (and possibly the TAP driver). The
2969 # system "awk" is bad on some platforms.
2970 # Always define AMTAR for backward compatibility. Yes, it's still used
2971 # in the wild :-( We should find a proper way to deprecate it ...
2972 AMTAR='$${TAR-tar}'
2973
2974
2975 # We'll loop over all known methods to create a tar archive until one works.
2976 _am_tools='gnutar pax cpio none'
2977
2978 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2979
2980
2981
2982
2983
2984 # Variables for tags utilities; see am/tags.am
2985 if test -z "$CTAGS"; then
2986 CTAGS=ctags
2987 fi
2988
2989 if test -z "$ETAGS"; then
2990 ETAGS=etags
2991 fi
2992
2993 if test -z "$CSCOPE"; then
2994 CSCOPE=cscope
2995 fi
2996
2997
2998
2999 # POSIX will say in a future version that running "rm -f" with no argument
3000 # is OK; and we want to be able to make that assumption in our Makefile
3001 # recipes. So use an aggressive probe to check that the usage we want is
3002 # actually supported "in the wild" to an acceptable degree.
3003 # See automake bug#10828.
3004 # To make any issue more visible, cause the running configure to be aborted
3005 # by default if the 'rm' program in use doesn't match our expectations; the
3006 # user can still override this though.
3007 if rm -f && rm -fr && rm -rf; then : OK; else
3008 cat >&2 <<'END'
3009 Oops!
3010
3011 Your 'rm' program seems unable to run without file operands specified
3012 on the command line, even when the '-f' option is present. This is contrary
3013 to the behaviour of most rm programs out there, and not conforming with
3014 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3015
3016 Please tell [email protected] about your system, including the value
3017 of your $PATH and any error possibly output before this message. This
3018 can help us improve future automake versions.
3019
3020 END
3021 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3022 echo 'Configuration will proceed anyway, since you have set the' >&2
3023 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3024 echo >&2
3025 else
3026 cat >&2 <<'END'
3027 Aborting the configuration process, to ensure you take notice of the issue.
3028
3029 You can download and install GNU coreutils to get an 'rm' implementation
3030 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3031
3032 If you want to complete the configuration process using your problematic
3033 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3034 to "yes", and re-run configure.
3035
3036 END
3037 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3038 fi
3039 fi
3040
3041
3042
3043
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3045 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3046 # Check whether --enable-maintainer-mode was given.
3047 if test "${enable_maintainer_mode+set}" = set; then :
3048 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3049 else
3050 USE_MAINTAINER_MODE=no
3051 fi
3052
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3054 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3055 if test $USE_MAINTAINER_MODE = yes; then
3056 MAINTAINER_MODE_TRUE=
3057 MAINTAINER_MODE_FALSE='#'
3058 else
3059 MAINTAINER_MODE_TRUE='#'
3060 MAINTAINER_MODE_FALSE=
3061 fi
3062
3063 MAINT=$MAINTAINER_MODE_TRUE
3064
3065
3066
3067 # Library versioning for libtool: CURRENT, REVISION, AGE
3068 # - library source changed -> increment REVISION
3069 # - interfaces added/removed/changed -> increment CURRENT, REVISION = 0
3070 # - interfaces added -> increment AGE
3071 # - interfaces removed -> AGE = 0
3072 MIKMOD_LT_CURRENT=6
3073 MIKMOD_LT_REVISION=0
3074 MIKMOD_LT_AGE=3
3075
3076
3077
3078
3079
3080 # ===================
3081 # build target:
3082 # ===================
3083
3084 # Make sure we can run config.sub.
3085 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3086 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3087
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3089 $as_echo_n "checking build system type... " >&6; }
3090 if ${ac_cv_build+:} false; then :
3091 $as_echo_n "(cached) " >&6
3092 else
3093 ac_build_alias=$build_alias
3094 test "x$ac_build_alias" = x &&
3095 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3096 test "x$ac_build_alias" = x &&
3097 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3098 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3099 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3100
3101 fi
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3103 $as_echo "$ac_cv_build" >&6; }
3104 case $ac_cv_build in
3105 *-*-*) ;;
3106 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3107 esac
3108 build=$ac_cv_build
3109 ac_save_IFS=$IFS; IFS='-'
3110 set x $ac_cv_build
3111 shift
3112 build_cpu=$1
3113 build_vendor=$2
3114 shift; shift
3115 # Remember, the first character of IFS is used to create $*,
3116 # except with old shells:
3117 build_os=$*
3118 IFS=$ac_save_IFS
3119 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3120
3121
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3123 $as_echo_n "checking host system type... " >&6; }
3124 if ${ac_cv_host+:} false; then :
3125 $as_echo_n "(cached) " >&6
3126 else
3127 if test "x$host_alias" = x; then
3128 ac_cv_host=$ac_cv_build
3129 else
3130 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3131 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3132 fi
3133
3134 fi
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3136 $as_echo "$ac_cv_host" >&6; }
3137 case $ac_cv_host in
3138 *-*-*) ;;
3139 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3140 esac
3141 host=$ac_cv_host
3142 ac_save_IFS=$IFS; IFS='-'
3143 set x $ac_cv_host
3144 shift
3145 host_cpu=$1
3146 host_vendor=$2
3147 shift; shift
3148 # Remember, the first character of IFS is used to create $*,
3149 # except with old shells:
3150 host_os=$*
3151 IFS=$ac_save_IFS
3152 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3153
3154
3155
3156 # these for convenience
3157 libmikmod_mingw=no
3158 libmikmod_cygwin=no
3159 libmikmod_linux=no
3160 libmikmod_darwin=no
3161 libmikmod_netbsd=no
3162 libmikmod_openbsd=no
3163 libmikmod_os2=no
3164 libmikmod_djgpp=no
3165 libmikmod_amiga=no
3166 libmikmod_haiku=no
3167 libmikmod_irix=no
3168 libmikmod_sun=no
3169 libmikmod_aix=no
3170 libmikmod_hpux=no
3171
3172 case $host_os in
3173 mingw*) libmikmod_mingw=yes ;;
3174 msys*) libmikmod_mingw=yes ;;
3175 cygwin*) libmikmod_cygwin=yes ;;
3176 linux*) libmikmod_linux=yes ;;
3177 darwin*) libmikmod_darwin=yes ;;
3178 netbsd*) libmikmod_netbsd=yes ;;
3179 openbsd*) libmikmod_openbsd=yes ;;
3180 emx*) libmikmod_os2=yes ;;
3181 *djgpp) libmikmod_djgpp=yes ;;
3182 amigaos*|aros*|morphos*)
3183 libmikmod_amiga=yes ;;
3184 haiku*) libmikmod_haiku=yes ;;
3185 hpux*) libmikmod_hpux=yes ;;
3186 irix*) libmikmod_irix=yes ;;
3187 aix*) libmikmod_aix=yes ;;
3188 sunos*|solaris*)
3189 if test "$cross_compiling" != yes
3190 then
3191 case `uname -r` in
3192 4*)
3193 $as_echo "#define SUNOS 1" >>confdefs.h
3194 ;;
3195 esac
3196 fi
3197 libmikmod_sun=yes ;;
3198 esac
3199
3200 # ==============================================================
3201 # libmikmod specific control variables and their default values.
3202 # ==============================================================
3203
3204 libmikmod_depackers=yes
3205 libmikmod_hqmixer=yes
3206
3207 libmikmod_driverlist=nosound
3208
3209 libmikmod_driver_af=no
3210 libmikmod_driver_ahi=$libmikmod_amiga
3211 libmikmod_driver_aix=$libmikmod_aix
3212 libmikmod_driver_alsa=$libmikmod_linux
3213 libmikmod_driver_pulseaudio=yes
3214 libmikmod_driver_esd=no
3215 libmikmod_driver_nas=no
3216 libmikmod_driver_hp=$libmikmod_hpux
3217 libmikmod_driver_sdl=no
3218 libmikmod_driver_openal=no
3219 libmikmod_driver_oss=yes
3220 if test $libmikmod_openbsd = yes
3221 then
3222 libmikmod_driver_oss=no
3223 fi
3224 libmikmod_driver_sam9407=no
3225 libmikmod_driver_sgi=$libmikmod_irix
3226 libmikmod_driver_sndio=$libmikmod_openbsd
3227 libmikmod_driver_sun=$libmikmod_sun
3228 if test $libmikmod_netbsd = yes
3229 then
3230 libmikmod_driver_sun=yes
3231 fi
3232 libmikmod_driver_osx=$libmikmod_darwin
3233 libmikmod_driver_mac=no
3234 libmikmod_driver_win=yes
3235 libmikmod_driver_ds=yes
3236 libmikmod_driver_xaudio2=no
3237 libmikmod_driver_ultra=no
3238 libmikmod_driver_os2=$libmikmod_os2
3239 libmikmod_driver_dart=$libmikmod_os2
3240 libmikmod_driver_aiff=yes
3241 libmikmod_driver_wav=yes
3242 libmikmod_driver_raw=yes
3243 libmikmod_driver_stdout=yes
3244 libmikmod_driver_pipe=yes
3245 # FIXME: ANDROID and DRV_OSLES are not configury-integrated.
3246 libmikmod_driver_osles=no
3247
3248 libmikmod_dynload=yes
3249 libmikmod_dynload_underscores=no
3250 libmikmod_dynload_used=no
3251 libmikmod_dynload_style=none
3252 libmikmod_debug=no
3253 libmikmod_threads=yes
3254 libmikmod_simd=no
3255 libmikmod_altivec=no
3256 libmikmod_sse2=no
3257
3258 libmikmod_unix=default
3259
3260 libmikmod_docs=yes
3261
3262 # =========================
3263 # Configure script options.
3264 # =========================
3265
3266 # Check whether --enable-hqmixer was given.
3267 if test "${enable_hqmixer+set}" = set; then :
3268 enableval=$enable_hqmixer; if test "$enableval" = "no"
3269 then
3270 libmikmod_hqmixer=no
3271 else
3272 libmikmod_hqmixer=yes
3273 fi
3274 fi
3275
3276
3277 # Check whether --enable-depackers was given.
3278 if test "${enable_depackers+set}" = set; then :
3279 enableval=$enable_depackers; if test "$enableval" = "no"
3280 then
3281 libmikmod_depackers=no
3282 else
3283 libmikmod_depackers=yes
3284 fi
3285 fi
3286
3287
3288 # Check whether --enable-alldrv was given.
3289 if test "${enable_alldrv+set}" = set; then :
3290 enableval=$enable_alldrv; if test "$enableval" = "no"
3291 then
3292 libmikmod_driver_af=no
3293 libmikmod_driver_ahi=no
3294 libmikmod_driver_aix=no
3295 libmikmod_driver_alsa=no
3296 libmikmod_driver_pulseaudio=no
3297 libmikmod_driver_esd=no
3298 libmikmod_driver_nas=no
3299 libmikmod_driver_hp=no
3300 libmikmod_driver_sdl=no
3301 libmikmod_driver_openal=no
3302 libmikmod_driver_oss=no
3303 libmikmod_driver_sam9407=no
3304 libmikmod_driver_sgi=no
3305 libmikmod_driver_sndio=no
3306 libmikmod_driver_sun=no
3307 libmikmod_driver_osx=no
3308 libmikmod_driver_mac=no
3309 libmikmod_driver_win=no
3310 libmikmod_driver_ds=no
3311 libmikmod_driver_xaudio2=no
3312 libmikmod_driver_ultra=no
3313 libmikmod_driver_os2=no
3314 libmikmod_driver_dart=no
3315 libmikmod_driver_aiff=no
3316 libmikmod_driver_wav=no
3317 libmikmod_driver_raw=no
3318 libmikmod_driver_stdout=no
3319 libmikmod_driver_pipe=no
3320 libmikmod_driver_osles=no
3321 fi
3322 fi
3323
3324
3325 # Check whether --enable-af was given.
3326 if test "${enable_af+set}" = set; then :
3327 enableval=$enable_af; if test "$enableval" = "yes"
3328 then
3329 libmikmod_driver_af=yes
3330 else
3331 libmikmod_driver_af=no
3332 fi
3333 fi
3334
3335
3336 # Check whether --enable-alsa was given.
3337 if test "${enable_alsa+set}" = set; then :
3338 enableval=$enable_alsa; if test "$enableval" = "yes"
3339 then
3340 libmikmod_driver_alsa=yes
3341 else
3342 libmikmod_driver_alsa=no
3343 fi
3344 fi
3345
3346
3347 # Check whether --enable-oss was given.
3348 if test "${enable_oss+set}" = set; then :
3349 enableval=$enable_oss; if test "$enableval" = "yes"
3350 then
3351 libmikmod_driver_oss=yes
3352 else
3353 libmikmod_driver_oss=no
3354 fi
3355 fi
3356
3357
3358 # Check whether --enable-sunaudio was given.
3359 if test "${enable_sunaudio+set}" = set; then :
3360 enableval=$enable_sunaudio; if test "$enableval" = "yes"
3361 then
3362 libmikmod_driver_sun=yes
3363 else
3364 libmikmod_driver_sun=no
3365 fi
3366 fi
3367
3368
3369 # Check whether --enable-sndio was given.
3370 if test "${enable_sndio+set}" = set; then :
3371 enableval=$enable_sndio; if test "$enableval" = "yes"
3372 then
3373 libmikmod_driver_sndio=yes
3374 else
3375 libmikmod_driver_sndio=no
3376 fi
3377 fi
3378
3379
3380 # Check whether --enable-aix was given.
3381 if test "${enable_aix+set}" = set; then :
3382 enableval=$enable_aix; if test "$enableval" = "yes"
3383 then
3384 libmikmod_driver_aix=$libmikmod_aix
3385 else
3386 libmikmod_driver_aix=no
3387 fi
3388 fi
3389
3390
3391 # Check whether --enable-sgi was given.
3392 if test "${enable_sgi+set}" = set; then :
3393 enableval=$enable_sgi; if test "$enableval" = "yes"
3394 then
3395 libmikmod_driver_sgi=$libmikmod_irix
3396 else
3397 libmikmod_driver_sgi=no
3398 fi
3399 fi
3400
3401
3402 # Check whether --enable-hp was given.
3403 if test "${enable_hp+set}" = set; then :
3404 enableval=$enable_hp; if test "$enableval" = "yes"
3405 then
3406 libmikmod_driver_hp=$libmikmod_hpux
3407 else
3408 libmikmod_driver_hp=no
3409 fi
3410 fi
3411
3412
3413 # Check whether --enable-ahi was given.
3414 if test "${enable_ahi+set}" = set; then :
3415 enableval=$enable_ahi; if test "$enableval" = "yes"
3416 then
3417 libmikmod_driver_ahi=$libmikmod_amiga
3418 else
3419 libmikmod_driver_ahi=no
3420 fi
3421 fi
3422
3423
3424 # Check whether --enable-pulseaudio was given.
3425 if test "${enable_pulseaudio+set}" = set; then :
3426 enableval=$enable_pulseaudio; if test "$enableval" = "yes"
3427 then
3428 libmikmod_driver_pulseaudio=yes
3429 else
3430 libmikmod_driver_pulseaudio=no
3431 fi
3432 fi
3433
3434
3435 # Check whether --enable-esd was given.
3436 if test "${enable_esd+set}" = set; then :
3437 enableval=$enable_esd; if test "$enableval" = "yes"
3438 then
3439 libmikmod_driver_esd=yes
3440 else
3441 libmikmod_driver_esd=no
3442 fi
3443 fi
3444
3445
3446 # Check whether --enable-nas was given.
3447 if test "${enable_nas+set}" = set; then :
3448 enableval=$enable_nas; if test "$enableval" = "yes"
3449 then
3450 libmikmod_driver_nas=yes
3451 else
3452 libmikmod_driver_nas=no
3453 fi
3454 fi
3455
3456
3457 case $host_os in
3458 mingw*|emx*|*djgpp|amigaos*|aros*|morphos*)
3459 libmikmod_driver_oss=no
3460 libmikmod_driver_esd=no
3461 libmikmod_driver_nas=no
3462 libmikmod_driver_af=no
3463 # windows, dos, os2 don't need sdl, stdout, or pipe.
3464 # so default to disabled, but still user-selectable.
3465 libmikmod_driver_pipe=no
3466 libmikmod_driver_pulseaudio=no
3467 libmikmod_driver_stdout=no
3468 libmikmod_driver_sdl=no ;;
3469 cygwin*|darwin*)
3470 libmikmod_driver_oss=no
3471 libmikmod_driver_esd=no
3472 libmikmod_driver_nas=no
3473 libmikmod_driver_af=no
3474 libmikmod_driver_pulseaudio=no
3475 # cygwin, osx don't need sdl.
3476 libmikmod_driver_sdl=no ;;
3477 *) ;;
3478 esac
3479
3480 # Check whether --enable-aiff was given.
3481 if test "${enable_aiff+set}" = set; then :
3482 enableval=$enable_aiff; if test "$enableval" = "yes"
3483 then
3484 libmikmod_driver_aiff=yes
3485 else
3486 libmikmod_driver_aiff=no
3487 fi
3488 fi
3489
3490
3491 # Check whether --enable-wav was given.
3492 if test "${enable_wav+set}" = set; then :
3493 enableval=$enable_wav; if test "$enableval" = "yes"
3494 then
3495 libmikmod_driver_wav=yes
3496 else
3497 libmikmod_driver_wav=no
3498 fi
3499 fi
3500
3501
3502 # Check whether --enable-raw was given.
3503 if test "${enable_raw+set}" = set; then :
3504 enableval=$enable_raw; if test "$enableval" = "yes"
3505 then
3506 libmikmod_driver_raw=yes
3507 else
3508 libmikmod_driver_raw=no
3509 fi
3510 fi
3511
3512
3513 # Check whether --enable-stdout was given.
3514 if test "${enable_stdout+set}" = set; then :
3515 enableval=$enable_stdout; if test "$enableval" = "yes"
3516 then
3517 libmikmod_driver_stdout=yes
3518 else
3519 libmikmod_driver_stdout=no
3520 fi
3521 fi
3522
3523
3524 # Check whether --enable-pipe was given.
3525 if test "${enable_pipe+set}" = set; then :
3526 enableval=$enable_pipe; if test "$enableval" = "yes"
3527 then
3528 libmikmod_driver_pipe=yes
3529 else
3530 libmikmod_driver_pipe=no
3531 fi
3532 fi
3533
3534
3535 # Check whether --enable-sdl was given.
3536 if test "${enable_sdl+set}" = set; then :
3537 enableval=$enable_sdl; if test "$enableval" = "yes"
3538 then
3539 libmikmod_driver_sdl=yes
3540 else
3541 libmikmod_driver_sdl=no
3542 fi
3543 fi
3544
3545
3546 try_sdl2=yes
3547 # Check whether --enable-sdl2 was given.
3548 if test "${enable_sdl2+set}" = set; then :
3549 enableval=$enable_sdl2; if test "$enableval" = "yes"
3550 then
3551 try_sdl2=yes
3552 else
3553 try_sdl2=no
3554 fi
3555 fi
3556
3557
3558 # Check whether --enable-openal was given.
3559 if test "${enable_openal+set}" = set; then :
3560 enableval=$enable_openal; if test "$enableval" = "yes"
3561 then
3562 libmikmod_driver_openal=yes
3563 else
3564 libmikmod_driver_openal=no
3565 fi
3566 fi
3567
3568
3569 # Check whether --enable-osx was given.
3570 if test "${enable_osx+set}" = set; then :
3571 enableval=$enable_osx; if test "$enableval" = "yes"
3572 then
3573 libmikmod_driver_osx=$libmikmod_darwin
3574 else
3575 libmikmod_driver_osx=no
3576 fi
3577 fi
3578
3579
3580 # Check whether --enable-mac was given.
3581 if test "${enable_mac+set}" = set; then :
3582 enableval=$enable_mac; if test "$enableval" = "yes"
3583 then
3584 libmikmod_driver_mac=$libmikmod_darwin
3585 else
3586 libmikmod_driver_mac=no
3587 fi
3588 fi
3589
3590
3591 # Check whether --enable-win was given.
3592 if test "${enable_win+set}" = set; then :
3593 enableval=$enable_win; if test "$enableval" = "yes"
3594 then
3595 libmikmod_driver_win=yes
3596 else
3597 libmikmod_driver_win=no
3598 fi
3599 fi
3600
3601
3602 # Check whether --enable-ds was given.
3603 if test "${enable_ds+set}" = set; then :
3604 enableval=$enable_ds; if test "$enableval" = "yes"
3605 then
3606 libmikmod_driver_ds=yes
3607 else
3608 libmikmod_driver_ds=no
3609 fi
3610 fi
3611
3612
3613 # Check whether --enable-xaudio2 was given.
3614 if test "${enable_xaudio2+set}" = set; then :
3615 enableval=$enable_xaudio2; if test "$enableval" = "yes"
3616 then
3617 libmikmod_driver_xaudio2=yes
3618 else
3619 libmikmod_driver_xaudio2=no
3620 fi
3621 fi
3622
3623
3624 use_xaudio28=no
3625 # Check whether --enable-xaudio28 was given.
3626 if test "${enable_xaudio28+set}" = set; then :
3627 enableval=$enable_xaudio28; if test "$enableval" = "yes"
3628 then
3629 use_xaudio28=yes
3630 else
3631 use_xaudio28=no
3632 fi
3633 fi
3634
3635
3636 # Check whether --enable-os2 was given.
3637 if test "${enable_os2+set}" = set; then :
3638 enableval=$enable_os2; if test "$enableval" = "yes"
3639 then
3640 libmikmod_driver_os2=$libmikmod_os2
3641 else
3642 libmikmod_driver_os2=no
3643 fi
3644 fi
3645
3646
3647 # Check whether --enable-dart was given.
3648 if test "${enable_dart+set}" = set; then :
3649 enableval=$enable_dart; if test "$enableval" = "yes"
3650 then
3651 libmikmod_driver_dart=$libmikmod_os2
3652 else
3653 libmikmod_driver_dart=no
3654 fi
3655 fi
3656
3657
3658 # Check whether --enable-sam9407 was given.
3659 if test "${enable_sam9407+set}" = set; then :
3660 enableval=$enable_sam9407; if test "$enableval" = "yes"
3661 then
3662 libmikmod_driver_sam9407=$libmikmod_linux
3663 else
3664 libmikmod_driver_sam9407=no
3665 fi
3666 fi
3667
3668
3669 # Check whether --enable-ultra was given.
3670 if test "${enable_ultra+set}" = set; then :
3671 enableval=$enable_ultra; if test "$enableval" = "yes"
3672 then
3673 libmikmod_driver_ultra=$libmikmod_linux
3674 else
3675 libmikmod_driver_ultra=no
3676 fi
3677 fi
3678
3679
3680 # Check whether --enable-dl was given.
3681 if test "${enable_dl+set}" = set; then :
3682 enableval=$enable_dl; if test "$enableval" = "yes"
3683 then
3684 libmikmod_dynload=yes
3685 else
3686 libmikmod_dynload=no
3687 fi
3688 fi
3689
3690
3691 # Check whether --enable-debug was given.
3692 if test "${enable_debug+set}" = set; then :
3693 enableval=$enable_debug; if test "$enableval" = "yes"
3694 then
3695 libmikmod_debug=yes
3696 else
3697 libmikmod_debug=no
3698 fi
3699 fi
3700
3701
3702 # Check whether --enable-threads was given.
3703 if test "${enable_threads+set}" = set; then :
3704 enableval=$enable_threads; if test "$enableval" = "yes"
3705 then
3706 libmikmod_threads=yes
3707 else
3708 libmikmod_threads=no
3709 fi
3710 fi
3711
3712
3713 # Check whether --enable-simd was given.
3714 if test "${enable_simd+set}" = set; then :
3715 enableval=$enable_simd; if test "$enableval" = "yes"
3716 then
3717 libmikmod_simd=yes
3718 else
3719 libmikmod_simd=no
3720 fi
3721 fi
3722
3723
3724 # Check whether --enable-unix was given.
3725 if test "${enable_unix+set}" = set; then :
3726 enableval=$enable_unix; if test "$enableval" = "yes"
3727 then
3728 libmikmod_unix=1
3729 elif test "$enableval" = "no"
3730 then
3731 libmikmod_unix=0
3732 else
3733 libmikmod_unix=default
3734 fi
3735 fi
3736
3737
3738 # Check whether --enable-doc was given.
3739 if test "${enable_doc+set}" = set; then :
3740 enableval=$enable_doc; if test "$enableval" = "yes"
3741 then
3742 libmikmod_docs=yes
3743 else
3744 libmikmod_docs=no
3745 fi
3746 fi
3747
3748
3749 # ===================
3750 # Check for programs.
3751 # ===================
3752
3753 ac_ext=c
3754 ac_cpp='$CPP $CPPFLAGS'
3755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3758 if test -n "$ac_tool_prefix"; then
3759 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3760 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3762 $as_echo_n "checking for $ac_word... " >&6; }
3763 if ${ac_cv_prog_CC+:} false; then :
3764 $as_echo_n "(cached) " >&6
3765 else
3766 if test -n "$CC"; then
3767 ac_cv_prog_CC="$CC" # Let the user override the test.
3768 else
3769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770 for as_dir in $PATH
3771 do
3772 IFS=$as_save_IFS
3773 test -z "$as_dir" && as_dir=.
3774 for ac_exec_ext in '' $ac_executable_extensions; do
3775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3776 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3778 break 2
3779 fi
3780 done
3781 done
3782 IFS=$as_save_IFS
3783
3784 fi
3785 fi
3786 CC=$ac_cv_prog_CC
3787 if test -n "$CC"; then
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3789 $as_echo "$CC" >&6; }
3790 else
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3792 $as_echo "no" >&6; }
3793 fi
3794
3795
3796 fi
3797 if test -z "$ac_cv_prog_CC"; then
3798 ac_ct_CC=$CC
3799 # Extract the first word of "gcc", so it can be a program name with args.
3800 set dummy gcc; ac_word=$2
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3802 $as_echo_n "checking for $ac_word... " >&6; }
3803 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3804 $as_echo_n "(cached) " >&6
3805 else
3806 if test -n "$ac_ct_CC"; then
3807 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3808 else
3809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810 for as_dir in $PATH
3811 do
3812 IFS=$as_save_IFS
3813 test -z "$as_dir" && as_dir=.
3814 for ac_exec_ext in '' $ac_executable_extensions; do
3815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3816 ac_cv_prog_ac_ct_CC="gcc"
3817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3818 break 2
3819 fi
3820 done
3821 done
3822 IFS=$as_save_IFS
3823
3824 fi
3825 fi
3826 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3827 if test -n "$ac_ct_CC"; then
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3829 $as_echo "$ac_ct_CC" >&6; }
3830 else
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3832 $as_echo "no" >&6; }
3833 fi
3834
3835 if test "x$ac_ct_CC" = x; then
3836 CC=""
3837 else
3838 case $cross_compiling:$ac_tool_warned in
3839 yes:)
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3842 ac_tool_warned=yes ;;
3843 esac
3844 CC=$ac_ct_CC
3845 fi
3846 else
3847 CC="$ac_cv_prog_CC"
3848 fi
3849
3850 if test -z "$CC"; then
3851 if test -n "$ac_tool_prefix"; then
3852 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3853 set dummy ${ac_tool_prefix}cc; ac_word=$2
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3855 $as_echo_n "checking for $ac_word... " >&6; }
3856 if ${ac_cv_prog_CC+:} false; then :
3857 $as_echo_n "(cached) " >&6
3858 else
3859 if test -n "$CC"; then
3860 ac_cv_prog_CC="$CC" # Let the user override the test.
3861 else
3862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863 for as_dir in $PATH
3864 do
3865 IFS=$as_save_IFS
3866 test -z "$as_dir" && as_dir=.
3867 for ac_exec_ext in '' $ac_executable_extensions; do
3868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3869 ac_cv_prog_CC="${ac_tool_prefix}cc"
3870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3871 break 2
3872 fi
3873 done
3874 done
3875 IFS=$as_save_IFS
3876
3877 fi
3878 fi
3879 CC=$ac_cv_prog_CC
3880 if test -n "$CC"; then
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3882 $as_echo "$CC" >&6; }
3883 else
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885 $as_echo "no" >&6; }
3886 fi
3887
3888
3889 fi
3890 fi
3891 if test -z "$CC"; then
3892 # Extract the first word of "cc", so it can be a program name with args.
3893 set dummy cc; ac_word=$2
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3895 $as_echo_n "checking for $ac_word... " >&6; }
3896 if ${ac_cv_prog_CC+:} false; then :
3897 $as_echo_n "(cached) " >&6
3898 else
3899 if test -n "$CC"; then
3900 ac_cv_prog_CC="$CC" # Let the user override the test.
3901 else
3902 ac_prog_rejected=no
3903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904 for as_dir in $PATH
3905 do
3906 IFS=$as_save_IFS
3907 test -z "$as_dir" && as_dir=.
3908 for ac_exec_ext in '' $ac_executable_extensions; do
3909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3910 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3911 ac_prog_rejected=yes
3912 continue
3913 fi
3914 ac_cv_prog_CC="cc"
3915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3916 break 2
3917 fi
3918 done
3919 done
3920 IFS=$as_save_IFS
3921
3922 if test $ac_prog_rejected = yes; then
3923 # We found a bogon in the path, so make sure we never use it.
3924 set dummy $ac_cv_prog_CC
3925 shift
3926 if test $# != 0; then
3927 # We chose a different compiler from the bogus one.
3928 # However, it has the same basename, so the bogon will be chosen
3929 # first if we set CC to just the basename; use the full file name.
3930 shift
3931 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3932 fi
3933 fi
3934 fi
3935 fi
3936 CC=$ac_cv_prog_CC
3937 if test -n "$CC"; then
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3939 $as_echo "$CC" >&6; }
3940 else
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3942 $as_echo "no" >&6; }
3943 fi
3944
3945
3946 fi
3947 if test -z "$CC"; then
3948 if test -n "$ac_tool_prefix"; then
3949 for ac_prog in cl.exe
3950 do
3951 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3952 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3954 $as_echo_n "checking for $ac_word... " >&6; }
3955 if ${ac_cv_prog_CC+:} false; then :
3956 $as_echo_n "(cached) " >&6
3957 else
3958 if test -n "$CC"; then
3959 ac_cv_prog_CC="$CC" # Let the user override the test.
3960 else
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962 for as_dir in $PATH
3963 do
3964 IFS=$as_save_IFS
3965 test -z "$as_dir" && as_dir=.
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3968 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3970 break 2
3971 fi
3972 done
3973 done
3974 IFS=$as_save_IFS
3975
3976 fi
3977 fi
3978 CC=$ac_cv_prog_CC
3979 if test -n "$CC"; then
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3981 $as_echo "$CC" >&6; }
3982 else
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3984 $as_echo "no" >&6; }
3985 fi
3986
3987
3988 test -n "$CC" && break
3989 done
3990 fi
3991 if test -z "$CC"; then
3992 ac_ct_CC=$CC
3993 for ac_prog in cl.exe
3994 do
3995 # Extract the first word of "$ac_prog", so it can be a program name with args.
3996 set dummy $ac_prog; ac_word=$2
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3998 $as_echo_n "checking for $ac_word... " >&6; }
3999 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4000 $as_echo_n "(cached) " >&6
4001 else
4002 if test -n "$ac_ct_CC"; then
4003 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4004 else
4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006 for as_dir in $PATH
4007 do
4008 IFS=$as_save_IFS
4009 test -z "$as_dir" && as_dir=.
4010 for ac_exec_ext in '' $ac_executable_extensions; do
4011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4012 ac_cv_prog_ac_ct_CC="$ac_prog"
4013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4014 break 2
4015 fi
4016 done
4017 done
4018 IFS=$as_save_IFS
4019
4020 fi
4021 fi
4022 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4023 if test -n "$ac_ct_CC"; then
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4025 $as_echo "$ac_ct_CC" >&6; }
4026 else
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4028 $as_echo "no" >&6; }
4029 fi
4030
4031
4032 test -n "$ac_ct_CC" && break
4033 done
4034
4035 if test "x$ac_ct_CC" = x; then
4036 CC=""
4037 else
4038 case $cross_compiling:$ac_tool_warned in
4039 yes:)
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4041 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4042 ac_tool_warned=yes ;;
4043 esac
4044 CC=$ac_ct_CC
4045 fi
4046 fi
4047
4048 fi
4049
4050
4051 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4053 as_fn_error $? "no acceptable C compiler found in \$PATH
4054 See \`config.log' for more details" "$LINENO" 5; }
4055
4056 # Provide some information about the compiler.
4057 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4058 set X $ac_compile
4059 ac_compiler=$2
4060 for ac_option in --version -v -V -qversion; do
4061 { { ac_try="$ac_compiler $ac_option >&5"
4062 case "(($ac_try" in
4063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4064 *) ac_try_echo=$ac_try;;
4065 esac
4066 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4067 $as_echo "$ac_try_echo"; } >&5
4068 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4069 ac_status=$?
4070 if test -s conftest.err; then
4071 sed '10a\
4072 ... rest of stderr output deleted ...
4073 10q' conftest.err >conftest.er1
4074 cat conftest.er1 >&5
4075 fi
4076 rm -f conftest.er1 conftest.err
4077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4078 test $ac_status = 0; }
4079 done
4080
4081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4082 /* end confdefs.h. */
4083
4084 int
4085 main ()
4086 {
4087
4088 ;
4089 return 0;
4090 }
4091 _ACEOF
4092 ac_clean_files_save=$ac_clean_files
4093 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4094 # Try to create an executable without -o first, disregard a.out.
4095 # It will help us diagnose broken compilers, and finding out an intuition
4096 # of exeext.
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4098 $as_echo_n "checking whether the C compiler works... " >&6; }
4099 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4100
4101 # The possible output files:
4102 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4103
4104 ac_rmfiles=
4105 for ac_file in $ac_files
4106 do
4107 case $ac_file in
4108 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4109 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4110 esac
4111 done
4112 rm -f $ac_rmfiles
4113
4114 if { { ac_try="$ac_link_default"
4115 case "(($ac_try" in
4116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4117 *) ac_try_echo=$ac_try;;
4118 esac
4119 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4120 $as_echo "$ac_try_echo"; } >&5
4121 (eval "$ac_link_default") 2>&5
4122 ac_status=$?
4123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4124 test $ac_status = 0; }; then :
4125 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4126 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4127 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4128 # so that the user can short-circuit this test for compilers unknown to
4129 # Autoconf.
4130 for ac_file in $ac_files ''
4131 do
4132 test -f "$ac_file" || continue
4133 case $ac_file in
4134 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4135 ;;
4136 [ab].out )
4137 # We found the default executable, but exeext='' is most
4138 # certainly right.
4139 break;;
4140 *.* )
4141 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4142 then :; else
4143 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4144 fi
4145 # We set ac_cv_exeext here because the later test for it is not
4146 # safe: cross compilers may not add the suffix if given an `-o'
4147 # argument, so we may need to know it at that point already.
4148 # Even if this section looks crufty: it has the advantage of
4149 # actually working.
4150 break;;
4151 * )
4152 break;;
4153 esac
4154 done
4155 test "$ac_cv_exeext" = no && ac_cv_exeext=
4156
4157 else
4158 ac_file=''
4159 fi
4160 if test -z "$ac_file"; then :
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4162 $as_echo "no" >&6; }
4163 $as_echo "$as_me: failed program was:" >&5
4164 sed 's/^/| /' conftest.$ac_ext >&5
4165
4166 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4168 as_fn_error 77 "C compiler cannot create executables
4169 See \`config.log' for more details" "$LINENO" 5; }
4170 else
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4172 $as_echo "yes" >&6; }
4173 fi
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4175 $as_echo_n "checking for C compiler default output file name... " >&6; }
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4177 $as_echo "$ac_file" >&6; }
4178 ac_exeext=$ac_cv_exeext
4179
4180 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4181 ac_clean_files=$ac_clean_files_save
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4183 $as_echo_n "checking for suffix of executables... " >&6; }
4184 if { { ac_try="$ac_link"
4185 case "(($ac_try" in
4186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4187 *) ac_try_echo=$ac_try;;
4188 esac
4189 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4190 $as_echo "$ac_try_echo"; } >&5
4191 (eval "$ac_link") 2>&5
4192 ac_status=$?
4193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4194 test $ac_status = 0; }; then :
4195 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4196 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4197 # work properly (i.e., refer to `conftest.exe'), while it won't with
4198 # `rm'.
4199 for ac_file in conftest.exe conftest conftest.*; do
4200 test -f "$ac_file" || continue
4201 case $ac_file in
4202 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4203 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4204 break;;
4205 * ) break;;
4206 esac
4207 done
4208 else
4209 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4211 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4212 See \`config.log' for more details" "$LINENO" 5; }
4213 fi
4214 rm -f conftest conftest$ac_cv_exeext
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4216 $as_echo "$ac_cv_exeext" >&6; }
4217
4218 rm -f conftest.$ac_ext
4219 EXEEXT=$ac_cv_exeext
4220 ac_exeext=$EXEEXT
4221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4222 /* end confdefs.h. */
4223 #include <stdio.h>
4224 int
4225 main ()
4226 {
4227 FILE *f = fopen ("conftest.out", "w");
4228 if (!f)
4229 return 1;
4230 return ferror (f) || fclose (f) != 0;
4231
4232 ;
4233 return 0;
4234 }
4235 _ACEOF
4236 ac_clean_files="$ac_clean_files conftest.out"
4237 # Check that the compiler produces executables we can run. If not, either
4238 # the compiler is broken, or we cross compile.
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4240 $as_echo_n "checking whether we are cross compiling... " >&6; }
4241 if test "$cross_compiling" = maybe && test "x$build" != "x$host"; then
4242 cross_compiling=yes
4243 elif test "$cross_compiling" != yes; then
4244 { { ac_try="$ac_link"
4245 case "(($ac_try" in
4246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247 *) ac_try_echo=$ac_try;;
4248 esac
4249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4250 $as_echo "$ac_try_echo"; } >&5
4251 (eval "$ac_link") 2>&5
4252 ac_status=$?
4253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4254 test $ac_status = 0; }
4255 if { ac_try='./conftest$ac_cv_exeext'
4256 { { case "(($ac_try" in
4257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258 *) ac_try_echo=$ac_try;;
4259 esac
4260 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4261 $as_echo "$ac_try_echo"; } >&5
4262 (eval "$ac_try") 2>&5
4263 ac_status=$?
4264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4265 test $ac_status = 0; }; }; then
4266 cross_compiling=no
4267 else
4268 if test "$cross_compiling" = maybe; then
4269 cross_compiling=yes
4270 else
4271 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4273 as_fn_error $? "cannot run C compiled programs.
4274 If you meant to cross compile, use \`--host'.
4275 See \`config.log' for more details" "$LINENO" 5; }
4276 fi
4277 fi
4278 fi
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4280 $as_echo "$cross_compiling" >&6; }
4281
4282 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4283 ac_clean_files=$ac_clean_files_save
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4285 $as_echo_n "checking for suffix of object files... " >&6; }
4286 if ${ac_cv_objext+:} false; then :
4287 $as_echo_n "(cached) " >&6
4288 else
4289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4290 /* end confdefs.h. */
4291
4292 int
4293 main ()
4294 {
4295
4296 ;
4297 return 0;
4298 }
4299 _ACEOF
4300 rm -f conftest.o conftest.obj
4301 if { { ac_try="$ac_compile"
4302 case "(($ac_try" in
4303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304 *) ac_try_echo=$ac_try;;
4305 esac
4306 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4307 $as_echo "$ac_try_echo"; } >&5
4308 (eval "$ac_compile") 2>&5
4309 ac_status=$?
4310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4311 test $ac_status = 0; }; then :
4312 for ac_file in conftest.o conftest.obj conftest.*; do
4313 test -f "$ac_file" || continue;
4314 case $ac_file in
4315 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4316 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4317 break;;
4318 esac
4319 done
4320 else
4321 $as_echo "$as_me: failed program was:" >&5
4322 sed 's/^/| /' conftest.$ac_ext >&5
4323
4324 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4326 as_fn_error $? "cannot compute suffix of object files: cannot compile
4327 See \`config.log' for more details" "$LINENO" 5; }
4328 fi
4329 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4330 fi
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4332 $as_echo "$ac_cv_objext" >&6; }
4333 OBJEXT=$ac_cv_objext
4334 ac_objext=$OBJEXT
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4336 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4337 if ${ac_cv_c_compiler_gnu+:} false; then :
4338 $as_echo_n "(cached) " >&6
4339 else
4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h. */
4342
4343 int
4344 main ()
4345 {
4346 #ifndef __GNUC__
4347 choke me
4348 #endif
4349
4350 ;
4351 return 0;
4352 }
4353 _ACEOF
4354 if ac_fn_c_try_compile "$LINENO"; then :
4355 ac_compiler_gnu=yes
4356 else
4357 ac_compiler_gnu=no
4358 fi
4359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4360 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4361
4362 fi
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4364 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4365 if test $ac_compiler_gnu = yes; then
4366 GCC=yes
4367 else
4368 GCC=
4369 fi
4370 ac_test_CFLAGS=${CFLAGS+set}
4371 ac_save_CFLAGS=$CFLAGS
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4373 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4374 if ${ac_cv_prog_cc_g+:} false; then :
4375 $as_echo_n "(cached) " >&6
4376 else
4377 ac_save_c_werror_flag=$ac_c_werror_flag
4378 ac_c_werror_flag=yes
4379 ac_cv_prog_cc_g=no
4380 CFLAGS="-g"
4381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4382 /* end confdefs.h. */
4383
4384 int
4385 main ()
4386 {
4387
4388 ;
4389 return 0;
4390 }
4391 _ACEOF
4392 if ac_fn_c_try_compile "$LINENO"; then :
4393 ac_cv_prog_cc_g=yes
4394 else
4395 CFLAGS=""
4396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4397 /* end confdefs.h. */
4398
4399 int
4400 main ()
4401 {
4402
4403 ;
4404 return 0;
4405 }
4406 _ACEOF
4407 if ac_fn_c_try_compile "$LINENO"; then :
4408
4409 else
4410 ac_c_werror_flag=$ac_save_c_werror_flag
4411 CFLAGS="-g"
4412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413 /* end confdefs.h. */
4414
4415 int
4416 main ()
4417 {
4418
4419 ;
4420 return 0;
4421 }
4422 _ACEOF
4423 if ac_fn_c_try_compile "$LINENO"; then :
4424 ac_cv_prog_cc_g=yes
4425 fi
4426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4427 fi
4428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4429 fi
4430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4431 ac_c_werror_flag=$ac_save_c_werror_flag
4432 fi
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4434 $as_echo "$ac_cv_prog_cc_g" >&6; }
4435 if test "$ac_test_CFLAGS" = set; then
4436 CFLAGS=$ac_save_CFLAGS
4437 elif test $ac_cv_prog_cc_g = yes; then
4438 if test "$GCC" = yes; then
4439 CFLAGS="-g -O2"
4440 else
4441 CFLAGS="-g"
4442 fi
4443 else
4444 if test "$GCC" = yes; then
4445 CFLAGS="-O2"
4446 else
4447 CFLAGS=
4448 fi
4449 fi
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4451 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4452 if ${ac_cv_prog_cc_c89+:} false; then :
4453 $as_echo_n "(cached) " >&6
4454 else
4455 ac_cv_prog_cc_c89=no
4456 ac_save_CC=$CC
4457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458 /* end confdefs.h. */
4459 #include <stdarg.h>
4460 #include <stdio.h>
4461 struct stat;
4462 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4463 struct buf { int x; };
4464 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4465 static char *e (p, i)
4466 char **p;
4467 int i;
4468 {
4469 return p[i];
4470 }
4471 static char *f (char * (*g) (char **, int), char **p, ...)
4472 {
4473 char *s;
4474 va_list v;
4475 va_start (v,p);
4476 s = g (p, va_arg (v,int));
4477 va_end (v);
4478 return s;
4479 }
4480
4481 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4482 function prototypes and stuff, but not '\xHH' hex character constants.
4483 These don't provoke an error unfortunately, instead are silently treated
4484 as 'x'. The following induces an error, until -std is added to get
4485 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4486 array size at least. It's necessary to write '\x00'==0 to get something
4487 that's true only with -std. */
4488 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4489
4490 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4491 inside strings and character constants. */
4492 #define FOO(x) 'x'
4493 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4494
4495 int test (int i, double x);
4496 struct s1 {int (*f) (int a);};
4497 struct s2 {int (*f) (double a);};
4498 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4499 int argc;
4500 char **argv;
4501 int
4502 main ()
4503 {
4504 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4505 ;
4506 return 0;
4507 }
4508 _ACEOF
4509 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4510 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4511 do
4512 CC="$ac_save_CC $ac_arg"
4513 if ac_fn_c_try_compile "$LINENO"; then :
4514 ac_cv_prog_cc_c89=$ac_arg
4515 fi
4516 rm -f core conftest.err conftest.$ac_objext
4517 test "x$ac_cv_prog_cc_c89" != "xno" && break
4518 done
4519 rm -f conftest.$ac_ext
4520 CC=$ac_save_CC
4521
4522 fi
4523 # AC_CACHE_VAL
4524 case "x$ac_cv_prog_cc_c89" in
4525 x)
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4527 $as_echo "none needed" >&6; } ;;
4528 xno)
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4530 $as_echo "unsupported" >&6; } ;;
4531 *)
4532 CC="$CC $ac_cv_prog_cc_c89"
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4534 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4535 esac
4536 if test "x$ac_cv_prog_cc_c89" != xno; then :
4537
4538 fi
4539
4540 ac_ext=c
4541 ac_cpp='$CPP $CPPFLAGS'
4542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4545
4546 ac_ext=c
4547 ac_cpp='$CPP $CPPFLAGS'
4548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4552 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4553 if ${am_cv_prog_cc_c_o+:} false; then :
4554 $as_echo_n "(cached) " >&6
4555 else
4556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4557 /* end confdefs.h. */
4558
4559 int
4560 main ()
4561 {
4562
4563 ;
4564 return 0;
4565 }
4566 _ACEOF
4567 # Make sure it works both with $CC and with simple cc.
4568 # Following AC_PROG_CC_C_O, we do the test twice because some
4569 # compilers refuse to overwrite an existing .o file with -o,
4570 # though they will create one.
4571 am_cv_prog_cc_c_o=yes
4572 for am_i in 1 2; do
4573 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4574 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4575 ac_status=$?
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); } \
4578 && test -f conftest2.$ac_objext; then
4579 : OK
4580 else
4581 am_cv_prog_cc_c_o=no
4582 break
4583 fi
4584 done
4585 rm -f core conftest*
4586 unset am_i
4587 fi
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4589 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4590 if test "$am_cv_prog_cc_c_o" != yes; then
4591 # Losing compiler, so override with the script.
4592 # FIXME: It is wrong to rewrite CC.
4593 # But if we don't then we get into trouble of one sort or another.
4594 # A longer-term fix would be to have automake use am__CC in this case,
4595 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4596 CC="$am_aux_dir/compile $CC"
4597 fi
4598 ac_ext=c
4599 ac_cpp='$CPP $CPPFLAGS'
4600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4603
4604 DEPDIR="${am__leading_dot}deps"
4605
4606 ac_config_commands="$ac_config_commands depfiles"
4607
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4609 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4610 cat > confinc.mk << 'END'
4611 am__doit:
4612 @echo this is the am__doit target >confinc.out
4613 .PHONY: am__doit
4614 END
4615 am__include="#"
4616 am__quote=
4617 # BSD make does it like this.
4618 echo '.include "confinc.mk" # ignored' > confmf.BSD
4619 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4620 echo 'include confinc.mk # ignored' > confmf.GNU
4621 _am_result=no
4622 for s in GNU BSD; do
4623 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4624 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4625 ac_status=$?
4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627 (exit $ac_status); }
4628 case $?:`cat confinc.out 2>/dev/null` in #(
4629 '0:this is the am__doit target') :
4630 case $s in #(
4631 BSD) :
4632 am__include='.include' am__quote='"' ;; #(
4633 *) :
4634 am__include='include' am__quote='' ;;
4635 esac ;; #(
4636 *) :
4637 ;;
4638 esac
4639 if test "$am__include" != "#"; then
4640 _am_result="yes ($s style)"
4641 break
4642 fi
4643 done
4644 rm -f confinc.* confmf.*
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4646 $as_echo "${_am_result}" >&6; }
4647
4648 # Check whether --enable-dependency-tracking was given.
4649 if test "${enable_dependency_tracking+set}" = set; then :
4650 enableval=$enable_dependency_tracking;
4651 fi
4652
4653 if test "x$enable_dependency_tracking" != xno; then
4654 am_depcomp="$ac_aux_dir/depcomp"
4655 AMDEPBACKSLASH='\'
4656 am__nodep='_no'
4657 fi
4658 if test "x$enable_dependency_tracking" != xno; then
4659 AMDEP_TRUE=
4660 AMDEP_FALSE='#'
4661 else
4662 AMDEP_TRUE='#'
4663 AMDEP_FALSE=
4664 fi
4665
4666
4667
4668 depcc="$CC" am_compiler_list=
4669
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4671 $as_echo_n "checking dependency style of $depcc... " >&6; }
4672 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4673 $as_echo_n "(cached) " >&6
4674 else
4675 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4676 # We make a subdir and do the tests there. Otherwise we can end up
4677 # making bogus files that we don't know about and never remove. For
4678 # instance it was reported that on HP-UX the gcc test will end up
4679 # making a dummy file named 'D' -- because '-MD' means "put the output
4680 # in D".
4681 rm -rf conftest.dir
4682 mkdir conftest.dir
4683 # Copy depcomp to subdir because otherwise we won't find it if we're
4684 # using a relative directory.
4685 cp "$am_depcomp" conftest.dir
4686 cd conftest.dir
4687 # We will build objects and dependencies in a subdirectory because
4688 # it helps to detect inapplicable dependency modes. For instance
4689 # both Tru64's cc and ICC support -MD to output dependencies as a
4690 # side effect of compilation, but ICC will put the dependencies in
4691 # the current directory while Tru64 will put them in the object
4692 # directory.
4693 mkdir sub
4694
4695 am_cv_CC_dependencies_compiler_type=none
4696 if test "$am_compiler_list" = ""; then
4697 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4698 fi
4699 am__universal=false
4700 case " $depcc " in #(
4701 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4702 esac
4703
4704 for depmode in $am_compiler_list; do
4705 # Setup a source with many dependencies, because some compilers
4706 # like to wrap large dependency lists on column 80 (with \), and
4707 # we should not choose a depcomp mode which is confused by this.
4708 #
4709 # We need to recreate these files for each test, as the compiler may
4710 # overwrite some of them when testing with obscure command lines.
4711 # This happens at least with the AIX C compiler.
4712 : > sub/conftest.c
4713 for i in 1 2 3 4 5 6; do
4714 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4715 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4716 # Solaris 10 /bin/sh.
4717 echo '/* dummy */' > sub/conftst$i.h
4718 done
4719 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4720
4721 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4722 # mode. It turns out that the SunPro C++ compiler does not properly
4723 # handle '-M -o', and we need to detect this. Also, some Intel
4724 # versions had trouble with output in subdirs.
4725 am__obj=sub/conftest.${OBJEXT-o}
4726 am__minus_obj="-o $am__obj"
4727 case $depmode in
4728 gcc)
4729 # This depmode causes a compiler race in universal mode.
4730 test "$am__universal" = false || continue
4731 ;;
4732 nosideeffect)
4733 # After this tag, mechanisms are not by side-effect, so they'll
4734 # only be used when explicitly requested.
4735 if test "x$enable_dependency_tracking" = xyes; then
4736 continue
4737 else
4738 break
4739 fi
4740 ;;
4741 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4742 # This compiler won't grok '-c -o', but also, the minuso test has
4743 # not run yet. These depmodes are late enough in the game, and
4744 # so weak that their functioning should not be impacted.
4745 am__obj=conftest.${OBJEXT-o}
4746 am__minus_obj=
4747 ;;
4748 none) break ;;
4749 esac
4750 if depmode=$depmode \
4751 source=sub/conftest.c object=$am__obj \
4752 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4753 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4754 >/dev/null 2>conftest.err &&
4755 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4756 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4757 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4758 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4759 # icc doesn't choke on unknown options, it will just issue warnings
4760 # or remarks (even with -Werror). So we grep stderr for any message
4761 # that says an option was ignored or not supported.
4762 # When given -MP, icc 7.0 and 7.1 complain thusly:
4763 # icc: Command line warning: ignoring option '-M'; no argument required
4764 # The diagnosis changed in icc 8.0:
4765 # icc: Command line remark: option '-MP' not supported
4766 if (grep 'ignoring option' conftest.err ||
4767 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4768 am_cv_CC_dependencies_compiler_type=$depmode
4769 break
4770 fi
4771 fi
4772 done
4773
4774 cd ..
4775 rm -rf conftest.dir
4776 else
4777 am_cv_CC_dependencies_compiler_type=none
4778 fi
4779
4780 fi
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4782 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4783 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4784
4785 if
4786 test "x$enable_dependency_tracking" != xno \
4787 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4788 am__fastdepCC_TRUE=
4789 am__fastdepCC_FALSE='#'
4790 else
4791 am__fastdepCC_TRUE='#'
4792 am__fastdepCC_FALSE=
4793 fi
4794
4795
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4797 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4798 if ${ac_cv_path_GREP+:} false; then :
4799 $as_echo_n "(cached) " >&6
4800 else
4801 if test -z "$GREP"; then
4802 ac_path_GREP_found=false
4803 # Loop through the user's path and test for each of PROGNAME-LIST
4804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4806 do
4807 IFS=$as_save_IFS
4808 test -z "$as_dir" && as_dir=.
4809 for ac_prog in grep ggrep; do
4810 for ac_exec_ext in '' $ac_executable_extensions; do
4811 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4812 as_fn_executable_p "$ac_path_GREP" || continue
4813 # Check for GNU ac_path_GREP and select it if it is found.
4814 # Check for GNU $ac_path_GREP
4815 case `"$ac_path_GREP" --version 2>&1` in
4816 *GNU*)
4817 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4818 *)
4819 ac_count=0
4820 $as_echo_n 0123456789 >"conftest.in"
4821 while :
4822 do
4823 cat "conftest.in" "conftest.in" >"conftest.tmp"
4824 mv "conftest.tmp" "conftest.in"
4825 cp "conftest.in" "conftest.nl"
4826 $as_echo 'GREP' >> "conftest.nl"
4827 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4828 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4829 as_fn_arith $ac_count + 1 && ac_count=$as_val
4830 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4831 # Best one so far, save it but keep looking for a better one
4832 ac_cv_path_GREP="$ac_path_GREP"
4833 ac_path_GREP_max=$ac_count
4834 fi
4835 # 10*(2^10) chars as input seems more than enough
4836 test $ac_count -gt 10 && break
4837 done
4838 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4839 esac
4840
4841 $ac_path_GREP_found && break 3
4842 done
4843 done
4844 done
4845 IFS=$as_save_IFS
4846 if test -z "$ac_cv_path_GREP"; then
4847 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4848 fi
4849 else
4850 ac_cv_path_GREP=$GREP
4851 fi
4852
4853 fi
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4855 $as_echo "$ac_cv_path_GREP" >&6; }
4856 GREP="$ac_cv_path_GREP"
4857
4858
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4860 $as_echo_n "checking for egrep... " >&6; }
4861 if ${ac_cv_path_EGREP+:} false; then :
4862 $as_echo_n "(cached) " >&6
4863 else
4864 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4865 then ac_cv_path_EGREP="$GREP -E"
4866 else
4867 if test -z "$EGREP"; then
4868 ac_path_EGREP_found=false
4869 # Loop through the user's path and test for each of PROGNAME-LIST
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4872 do
4873 IFS=$as_save_IFS
4874 test -z "$as_dir" && as_dir=.
4875 for ac_prog in egrep; do
4876 for ac_exec_ext in '' $ac_executable_extensions; do
4877 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4878 as_fn_executable_p "$ac_path_EGREP" || continue
4879 # Check for GNU ac_path_EGREP and select it if it is found.
4880 # Check for GNU $ac_path_EGREP
4881 case `"$ac_path_EGREP" --version 2>&1` in
4882 *GNU*)
4883 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4884 *)
4885 ac_count=0
4886 $as_echo_n 0123456789 >"conftest.in"
4887 while :
4888 do
4889 cat "conftest.in" "conftest.in" >"conftest.tmp"
4890 mv "conftest.tmp" "conftest.in"
4891 cp "conftest.in" "conftest.nl"
4892 $as_echo 'EGREP' >> "conftest.nl"
4893 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4894 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4895 as_fn_arith $ac_count + 1 && ac_count=$as_val
4896 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4897 # Best one so far, save it but keep looking for a better one
4898 ac_cv_path_EGREP="$ac_path_EGREP"
4899 ac_path_EGREP_max=$ac_count
4900 fi
4901 # 10*(2^10) chars as input seems more than enough
4902 test $ac_count -gt 10 && break
4903 done
4904 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4905 esac
4906
4907 $ac_path_EGREP_found && break 3
4908 done
4909 done
4910 done
4911 IFS=$as_save_IFS
4912 if test -z "$ac_cv_path_EGREP"; then
4913 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4914 fi
4915 else
4916 ac_cv_path_EGREP=$EGREP
4917 fi
4918
4919 fi
4920 fi
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4922 $as_echo "$ac_cv_path_EGREP" >&6; }
4923 EGREP="$ac_cv_path_EGREP"
4924
4925
4926
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4928 $as_echo_n "checking whether ln -s works... " >&6; }
4929 LN_S=$as_ln_s
4930 if test "$LN_S" = "ln -s"; then
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4932 $as_echo "yes" >&6; }
4933 else
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4935 $as_echo "no, using $LN_S" >&6; }
4936 fi
4937
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4939 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4940 set x ${MAKE-make}
4941 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4942 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4943 $as_echo_n "(cached) " >&6
4944 else
4945 cat >conftest.make <<\_ACEOF
4946 SHELL = /bin/sh
4947 all:
4948 @echo '@@@%%%=$(MAKE)=@@@%%%'
4949 _ACEOF
4950 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4951 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4952 *@@@%%%=?*=@@@%%%*)
4953 eval ac_cv_prog_make_${ac_make}_set=yes;;
4954 *)
4955 eval ac_cv_prog_make_${ac_make}_set=no;;
4956 esac
4957 rm -f conftest.make
4958 fi
4959 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4961 $as_echo "yes" >&6; }
4962 SET_MAKE=
4963 else
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4965 $as_echo "no" >&6; }
4966 SET_MAKE="MAKE=${MAKE-make}"
4967 fi
4968
4969 case `pwd` in
4970 *\ * | *\ *)
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4972 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4973 esac
4974
4975
4976
4977 macro_version='2.4.6'
4978 macro_revision='2.4.6'
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992 ltmain=$ac_aux_dir/ltmain.sh
4993
4994 # Backslashify metacharacters that are still active within
4995 # double-quoted strings.
4996 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4997
4998 # Same as above, but do not quote variable references.
4999 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5000
5001 # Sed substitution to delay expansion of an escaped shell variable in a
5002 # double_quote_subst'ed string.
5003 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5004
5005 # Sed substitution to delay expansion of an escaped single quote.
5006 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5007
5008 # Sed substitution to avoid accidental globbing in evaled expressions
5009 no_glob_subst='s/\*/\\\*/g'
5010
5011 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5012 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5013 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5014
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5016 $as_echo_n "checking how to print strings... " >&6; }
5017 # Test print first, because it will be a builtin if present.
5018 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5019 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5020 ECHO='print -r --'
5021 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5022 ECHO='printf %s\n'
5023 else
5024 # Use this function as a fallback that always works.
5025 func_fallback_echo ()
5026 {
5027 eval 'cat <<_LTECHO_EOF
5028 $1
5029 _LTECHO_EOF'
5030 }
5031 ECHO='func_fallback_echo'
5032 fi
5033
5034 # func_echo_all arg...
5035 # Invoke $ECHO with all args, space-separated.
5036 func_echo_all ()
5037 {
5038 $ECHO ""
5039 }
5040
5041 case $ECHO in
5042 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5043 $as_echo "printf" >&6; } ;;
5044 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5045 $as_echo "print -r" >&6; } ;;
5046 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5047 $as_echo "cat" >&6; } ;;
5048 esac
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5064 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5065 if ${ac_cv_path_SED+:} false; then :
5066 $as_echo_n "(cached) " >&6
5067 else
5068 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5069 for ac_i in 1 2 3 4 5 6 7; do
5070 ac_script="$ac_script$as_nl$ac_script"
5071 done
5072 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5073 { ac_script=; unset ac_script;}
5074 if test -z "$SED"; then
5075 ac_path_SED_found=false
5076 # Loop through the user's path and test for each of PROGNAME-LIST
5077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078 for as_dir in $PATH
5079 do
5080 IFS=$as_save_IFS
5081 test -z "$as_dir" && as_dir=.
5082 for ac_prog in sed gsed; do
5083 for ac_exec_ext in '' $ac_executable_extensions; do
5084 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5085 as_fn_executable_p "$ac_path_SED" || continue
5086 # Check for GNU ac_path_SED and select it if it is found.
5087 # Check for GNU $ac_path_SED
5088 case `"$ac_path_SED" --version 2>&1` in
5089 *GNU*)
5090 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5091 *)
5092 ac_count=0
5093 $as_echo_n 0123456789 >"conftest.in"
5094 while :
5095 do
5096 cat "conftest.in" "conftest.in" >"conftest.tmp"
5097 mv "conftest.tmp" "conftest.in"
5098 cp "conftest.in" "conftest.nl"
5099 $as_echo '' >> "conftest.nl"
5100 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5101 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5102 as_fn_arith $ac_count + 1 && ac_count=$as_val
5103 if test $ac_count -gt ${ac_path_SED_max-0}; then
5104 # Best one so far, save it but keep looking for a better one
5105 ac_cv_path_SED="$ac_path_SED"
5106 ac_path_SED_max=$ac_count
5107 fi
5108 # 10*(2^10) chars as input seems more than enough
5109 test $ac_count -gt 10 && break
5110 done
5111 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5112 esac
5113
5114 $ac_path_SED_found && break 3
5115 done
5116 done
5117 done
5118 IFS=$as_save_IFS
5119 if test -z "$ac_cv_path_SED"; then
5120 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5121 fi
5122 else
5123 ac_cv_path_SED=$SED
5124 fi
5125
5126 fi
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5128 $as_echo "$ac_cv_path_SED" >&6; }
5129 SED="$ac_cv_path_SED"
5130 rm -f conftest.sed
5131
5132 test -z "$SED" && SED=sed
5133 Xsed="$SED -e 1s/^X//"
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5146 $as_echo_n "checking for fgrep... " >&6; }
5147 if ${ac_cv_path_FGREP+:} false; then :
5148 $as_echo_n "(cached) " >&6
5149 else
5150 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5151 then ac_cv_path_FGREP="$GREP -F"
5152 else
5153 if test -z "$FGREP"; then
5154 ac_path_FGREP_found=false
5155 # Loop through the user's path and test for each of PROGNAME-LIST
5156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5158 do
5159 IFS=$as_save_IFS
5160 test -z "$as_dir" && as_dir=.
5161 for ac_prog in fgrep; do
5162 for ac_exec_ext in '' $ac_executable_extensions; do
5163 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5164 as_fn_executable_p "$ac_path_FGREP" || continue
5165 # Check for GNU ac_path_FGREP and select it if it is found.
5166 # Check for GNU $ac_path_FGREP
5167 case `"$ac_path_FGREP" --version 2>&1` in
5168 *GNU*)
5169 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5170 *)
5171 ac_count=0
5172 $as_echo_n 0123456789 >"conftest.in"
5173 while :
5174 do
5175 cat "conftest.in" "conftest.in" >"conftest.tmp"
5176 mv "conftest.tmp" "conftest.in"
5177 cp "conftest.in" "conftest.nl"
5178 $as_echo 'FGREP' >> "conftest.nl"
5179 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5180 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5181 as_fn_arith $ac_count + 1 && ac_count=$as_val
5182 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5183 # Best one so far, save it but keep looking for a better one
5184 ac_cv_path_FGREP="$ac_path_FGREP"
5185 ac_path_FGREP_max=$ac_count
5186 fi
5187 # 10*(2^10) chars as input seems more than enough
5188 test $ac_count -gt 10 && break
5189 done
5190 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5191 esac
5192
5193 $ac_path_FGREP_found && break 3
5194 done
5195 done
5196 done
5197 IFS=$as_save_IFS
5198 if test -z "$ac_cv_path_FGREP"; then
5199 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5200 fi
5201 else
5202 ac_cv_path_FGREP=$FGREP
5203 fi
5204
5205 fi
5206 fi
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5208 $as_echo "$ac_cv_path_FGREP" >&6; }
5209 FGREP="$ac_cv_path_FGREP"
5210
5211
5212 test -z "$GREP" && GREP=grep
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232 # Check whether --with-gnu-ld was given.
5233 if test "${with_gnu_ld+set}" = set; then :
5234 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5235 else
5236 with_gnu_ld=no
5237 fi
5238
5239 ac_prog=ld
5240 if test yes = "$GCC"; then
5241 # Check if gcc -print-prog-name=ld gives a path.
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5243 $as_echo_n "checking for ld used by $CC... " >&6; }
5244 case $host in
5245 *-*-mingw* | *-*-windows*)
5246 # gcc leaves a trailing carriage return, which upsets mingw
5247 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5248 *)
5249 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5250 esac
5251 case $ac_prog in
5252 # Accept absolute paths.
5253 [\\/]* | ?:[\\/]*)
5254 re_direlt='/[^/][^/]*/\.\./'
5255 # Canonicalize the pathname of ld
5256 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5257 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5258 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5259 done
5260 test -z "$LD" && LD=$ac_prog
5261 ;;
5262 "")
5263 # If it fails, then pretend we aren't using GCC.
5264 ac_prog=ld
5265 ;;
5266 *)
5267 # If it is relative, then search for the first ld in PATH.
5268 with_gnu_ld=unknown
5269 ;;
5270 esac
5271 elif test yes = "$with_gnu_ld"; then
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5273 $as_echo_n "checking for GNU ld... " >&6; }
5274 else
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5276 $as_echo_n "checking for non-GNU ld... " >&6; }
5277 fi
5278 if ${lt_cv_path_LD+:} false; then :
5279 $as_echo_n "(cached) " >&6
5280 else
5281 if test -z "$LD"; then
5282 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5283 for ac_dir in $PATH; do
5284 IFS=$lt_save_ifs
5285 test -z "$ac_dir" && ac_dir=.
5286 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5287 lt_cv_path_LD=$ac_dir/$ac_prog
5288 # Check to see if the program is GNU ld. I'd rather use --version,
5289 # but apparently some variants of GNU ld only accept -v.
5290 # Break only if it was the GNU/non-GNU ld that we prefer.
5291 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5292 *GNU* | *'with BFD'*)
5293 test no != "$with_gnu_ld" && break
5294 ;;
5295 *)
5296 test yes != "$with_gnu_ld" && break
5297 ;;
5298 esac
5299 fi
5300 done
5301 IFS=$lt_save_ifs
5302 else
5303 lt_cv_path_LD=$LD # Let the user override the test with a path.
5304 fi
5305 fi
5306
5307 LD=$lt_cv_path_LD
5308 if test -n "$LD"; then
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5310 $as_echo "$LD" >&6; }
5311 else
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5313 $as_echo "no" >&6; }
5314 fi
5315 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5317 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5318 if ${lt_cv_prog_gnu_ld+:} false; then :
5319 $as_echo_n "(cached) " >&6
5320 else
5321 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5322 case `$LD -v 2>&1 </dev/null` in
5323 *GNU* | *'with BFD'*)
5324 lt_cv_prog_gnu_ld=yes
5325 ;;
5326 *)
5327 lt_cv_prog_gnu_ld=no
5328 ;;
5329 esac
5330 fi
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5332 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5333 with_gnu_ld=$lt_cv_prog_gnu_ld
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5344 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5345 if ${lt_cv_path_NM+:} false; then :
5346 $as_echo_n "(cached) " >&6
5347 else
5348 if test -n "$NM"; then
5349 # Let the user override the test.
5350 lt_cv_path_NM=$NM
5351 else
5352 lt_nm_to_check=${ac_tool_prefix}nm
5353 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5354 lt_nm_to_check="$lt_nm_to_check nm"
5355 fi
5356 for lt_tmp_nm in $lt_nm_to_check; do
5357 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5358 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5359 IFS=$lt_save_ifs
5360 test -z "$ac_dir" && ac_dir=.
5361 tmp_nm=$ac_dir/$lt_tmp_nm
5362 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5363 # Check to see if the nm accepts a BSD-compat flag.
5364 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5365 # nm: unknown option "B" ignored
5366 # Tru64's nm complains that /dev/null is an invalid object file
5367 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5368 case $build_os in
5369 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
5370 *) lt_bad_file=/dev/null ;;
5371 esac
5372 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5373 *$lt_bad_file* | *'Invalid file or object type'*)
5374 lt_cv_path_NM="$tmp_nm -B"
5375 break 2
5376 ;;
5377 *)
5378 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5379 */dev/null*)
5380 lt_cv_path_NM="$tmp_nm -p"
5381 break 2
5382 ;;
5383 *)
5384 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5385 continue # so that we can try to find one that supports BSD flags
5386 ;;
5387 esac
5388 ;;
5389 esac
5390 fi
5391 done
5392 IFS=$lt_save_ifs
5393 done
5394 : ${lt_cv_path_NM=no}
5395 fi
5396 fi
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5398 $as_echo "$lt_cv_path_NM" >&6; }
5399 if test no != "$lt_cv_path_NM"; then
5400 NM=$lt_cv_path_NM
5401 else
5402 # Didn't find any BSD compatible name lister, look for dumpbin.
5403 if test -n "$DUMPBIN"; then :
5404 # Let the user override the test.
5405 else
5406 if test -n "$ac_tool_prefix"; then
5407 for ac_prog in dumpbin "link -dump"
5408 do
5409 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5410 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5412 $as_echo_n "checking for $ac_word... " >&6; }
5413 if ${ac_cv_prog_DUMPBIN+:} false; then :
5414 $as_echo_n "(cached) " >&6
5415 else
5416 if test -n "$DUMPBIN"; then
5417 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5418 else
5419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5420 for as_dir in $PATH
5421 do
5422 IFS=$as_save_IFS
5423 test -z "$as_dir" && as_dir=.
5424 for ac_exec_ext in '' $ac_executable_extensions; do
5425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5426 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5428 break 2
5429 fi
5430 done
5431 done
5432 IFS=$as_save_IFS
5433
5434 fi
5435 fi
5436 DUMPBIN=$ac_cv_prog_DUMPBIN
5437 if test -n "$DUMPBIN"; then
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5439 $as_echo "$DUMPBIN" >&6; }
5440 else
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5442 $as_echo "no" >&6; }
5443 fi
5444
5445
5446 test -n "$DUMPBIN" && break
5447 done
5448 fi
5449 if test -z "$DUMPBIN"; then
5450 ac_ct_DUMPBIN=$DUMPBIN
5451 for ac_prog in dumpbin "link -dump"
5452 do
5453 # Extract the first word of "$ac_prog", so it can be a program name with args.
5454 set dummy $ac_prog; ac_word=$2
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5456 $as_echo_n "checking for $ac_word... " >&6; }
5457 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5458 $as_echo_n "(cached) " >&6
5459 else
5460 if test -n "$ac_ct_DUMPBIN"; then
5461 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5462 else
5463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464 for as_dir in $PATH
5465 do
5466 IFS=$as_save_IFS
5467 test -z "$as_dir" && as_dir=.
5468 for ac_exec_ext in '' $ac_executable_extensions; do
5469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5470 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5472 break 2
5473 fi
5474 done
5475 done
5476 IFS=$as_save_IFS
5477
5478 fi
5479 fi
5480 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5481 if test -n "$ac_ct_DUMPBIN"; then
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5483 $as_echo "$ac_ct_DUMPBIN" >&6; }
5484 else
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5486 $as_echo "no" >&6; }
5487 fi
5488
5489
5490 test -n "$ac_ct_DUMPBIN" && break
5491 done
5492
5493 if test "x$ac_ct_DUMPBIN" = x; then
5494 DUMPBIN=":"
5495 else
5496 case $cross_compiling:$ac_tool_warned in
5497 yes:)
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5499 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5500 ac_tool_warned=yes ;;
5501 esac
5502 DUMPBIN=$ac_ct_DUMPBIN
5503 fi
5504 fi
5505
5506 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5507 *COFF*)
5508 DUMPBIN="$DUMPBIN -symbols -headers"
5509 ;;
5510 *)
5511 DUMPBIN=:
5512 ;;
5513 esac
5514 fi
5515
5516 if test : != "$DUMPBIN"; then
5517 NM=$DUMPBIN
5518 fi
5519 fi
5520 test -z "$NM" && NM=nm
5521
5522
5523
5524
5525
5526
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5528 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5529 if ${lt_cv_nm_interface+:} false; then :
5530 $as_echo_n "(cached) " >&6
5531 else
5532 lt_cv_nm_interface="BSD nm"
5533 echo "int some_variable = 0;" > conftest.$ac_ext
5534 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5535 (eval "$ac_compile" 2>conftest.err)
5536 cat conftest.err >&5
5537 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5538 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5539 cat conftest.err >&5
5540 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5541 cat conftest.out >&5
5542 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5543 lt_cv_nm_interface="MS dumpbin"
5544 fi
5545 rm -f conftest*
5546 fi
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5548 $as_echo "$lt_cv_nm_interface" >&6; }
5549
5550 # find the maximum length of command line arguments
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5552 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5553 if ${lt_cv_sys_max_cmd_len+:} false; then :
5554 $as_echo_n "(cached) " >&6
5555 else
5556 i=0
5557 teststring=ABCD
5558
5559 case $build_os in
5560 msdosdjgpp*)
5561 # On DJGPP, this test can blow up pretty badly due to problems in libc
5562 # (any single argument exceeding 2000 bytes causes a buffer overrun
5563 # during glob expansion). Even if it were fixed, the result of this
5564 # check would be larger than it should be.
5565 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5566 ;;
5567
5568 gnu*)
5569 # Under GNU Hurd, this test is not required because there is
5570 # no limit to the length of command line arguments.
5571 # Libtool will interpret -1 as no limit whatsoever
5572 lt_cv_sys_max_cmd_len=-1;
5573 ;;
5574
5575 cygwin* | mingw* | windows* | cegcc*)
5576 # On Win9x/ME, this test blows up -- it succeeds, but takes
5577 # about 5 minutes as the teststring grows exponentially.
5578 # Worse, since 9x/ME are not pre-emptively multitasking,
5579 # you end up with a "frozen" computer, even though with patience
5580 # the test eventually succeeds (with a max line length of 256k).
5581 # Instead, let's just punt: use the minimum linelength reported by
5582 # all of the supported platforms: 8192 (on NT/2K/XP).
5583 lt_cv_sys_max_cmd_len=8192;
5584 ;;
5585
5586 mint*)
5587 # On MiNT this can take a long time and run out of memory.
5588 lt_cv_sys_max_cmd_len=8192;
5589 ;;
5590
5591 amigaos*)
5592 # On AmigaOS with pdksh, this test takes hours, literally.
5593 # So we just punt and use a minimum line length of 8192.
5594 lt_cv_sys_max_cmd_len=8192;
5595 ;;
5596
5597 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5598 # This has been around since 386BSD, at least. Likely further.
5599 if test -x /sbin/sysctl; then
5600 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5601 elif test -x /usr/sbin/sysctl; then
5602 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5603 else
5604 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5605 fi
5606 # And add a safety zone
5607 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5608 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5609 ;;
5610
5611 interix*)
5612 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5613 lt_cv_sys_max_cmd_len=196608
5614 ;;
5615
5616 os2*)
5617 # The test takes a long time on OS/2.
5618 lt_cv_sys_max_cmd_len=8192
5619 ;;
5620
5621 osf*)
5622 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5623 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5624 # nice to cause kernel panics so lets avoid the loop below.
5625 # First set a reasonable default.
5626 lt_cv_sys_max_cmd_len=16384
5627 #
5628 if test -x /sbin/sysconfig; then
5629 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5630 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5631 esac
5632 fi
5633 ;;
5634 sco3.2v5*)
5635 lt_cv_sys_max_cmd_len=102400
5636 ;;
5637 sysv5* | sco5v6* | sysv4.2uw2*)
5638 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5639 if test -n "$kargmax"; then
5640 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5641 else
5642 lt_cv_sys_max_cmd_len=32768
5643 fi
5644 ;;
5645 *)
5646 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5647 if test -n "$lt_cv_sys_max_cmd_len" && \
5648 test undefined != "$lt_cv_sys_max_cmd_len"; then
5649 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5650 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5651 else
5652 # Make teststring a little bigger before we do anything with it.
5653 # a 1K string should be a reasonable start.
5654 for i in 1 2 3 4 5 6 7 8; do
5655 teststring=$teststring$teststring
5656 done
5657 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5658 # If test is not a shell built-in, we'll probably end up computing a
5659 # maximum length that is only half of the actual maximum length, but
5660 # we can't tell.
5661 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5662 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5663 test 17 != "$i" # 1/2 MB should be enough
5664 do
5665 i=`expr $i + 1`
5666 teststring=$teststring$teststring
5667 done
5668 # Only check the string length outside the loop.
5669 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5670 teststring=
5671 # Add a significant safety factor because C++ compilers can tack on
5672 # massive amounts of additional arguments before passing them to the
5673 # linker. It appears as though 1/2 is a usable value.
5674 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5675 fi
5676 ;;
5677 esac
5678
5679 fi
5680
5681 if test -n "$lt_cv_sys_max_cmd_len"; then
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5683 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5684 else
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5686 $as_echo "none" >&6; }
5687 fi
5688 max_cmd_len=$lt_cv_sys_max_cmd_len
5689
5690
5691
5692
5693
5694
5695 : ${CP="cp -f"}
5696 : ${MV="mv -f"}
5697 : ${RM="rm -f"}
5698
5699 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5700 lt_unset=unset
5701 else
5702 lt_unset=false
5703 fi
5704
5705
5706
5707
5708
5709 # test EBCDIC or ASCII
5710 case `echo X|tr X '\101'` in
5711 A) # ASCII based system
5712 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5713 lt_SP2NL='tr \040 \012'
5714 lt_NL2SP='tr \015\012 \040\040'
5715 ;;
5716 *) # EBCDIC based system
5717 lt_SP2NL='tr \100 \n'
5718 lt_NL2SP='tr \r\n \100\100'
5719 ;;
5720 esac
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5731 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5732 if ${lt_cv_to_host_file_cmd+:} false; then :
5733 $as_echo_n "(cached) " >&6
5734 else
5735 case $host in
5736 *-*-mingw* )
5737 case $build in
5738 *-*-mingw* | *-*-windows* ) # actually msys
5739 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5740 ;;
5741 *-*-cygwin* )
5742 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5743 ;;
5744 * ) # otherwise, assume *nix
5745 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5746 ;;
5747 esac
5748 ;;
5749 *-*-cygwin* )
5750 case $build in
5751 *-*-mingw* | *-*-windows* ) # actually msys
5752 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5753 ;;
5754 *-*-cygwin* )
5755 lt_cv_to_host_file_cmd=func_convert_file_noop
5756 ;;
5757 * ) # otherwise, assume *nix
5758 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5759 ;;
5760 esac
5761 ;;
5762 * ) # unhandled hosts (and "normal" native builds)
5763 lt_cv_to_host_file_cmd=func_convert_file_noop
5764 ;;
5765 esac
5766
5767 fi
5768
5769 to_host_file_cmd=$lt_cv_to_host_file_cmd
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5771 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5772
5773
5774
5775
5776
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5778 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5779 if ${lt_cv_to_tool_file_cmd+:} false; then :
5780 $as_echo_n "(cached) " >&6
5781 else
5782 #assume ordinary cross tools, or native build.
5783 lt_cv_to_tool_file_cmd=func_convert_file_noop
5784 case $host in
5785 *-*-mingw* | *-*-windows* )
5786 case $build in
5787 *-*-mingw* | *-*-windows* ) # actually msys
5788 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5789 ;;
5790 esac
5791 ;;
5792 esac
5793
5794 fi
5795
5796 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5798 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5799
5800
5801
5802
5803
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5805 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5806 if ${lt_cv_ld_reload_flag+:} false; then :
5807 $as_echo_n "(cached) " >&6
5808 else
5809 lt_cv_ld_reload_flag='-r'
5810 fi
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5812 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5813 reload_flag=$lt_cv_ld_reload_flag
5814 case $reload_flag in
5815 "" | " "*) ;;
5816 *) reload_flag=" $reload_flag" ;;
5817 esac
5818 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5819 case $host_os in
5820 cygwin* | mingw* | windows* | pw32* | cegcc*)
5821 if test yes != "$GCC"; then
5822 reload_cmds=false
5823 fi
5824 ;;
5825 darwin*)
5826 if test yes = "$GCC"; then
5827 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5828 else
5829 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5830 fi
5831 ;;
5832 esac
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842 if test -n "$ac_tool_prefix"; then
5843 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5844 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5846 $as_echo_n "checking for $ac_word... " >&6; }
5847 if ${ac_cv_prog_OBJDUMP+:} false; then :
5848 $as_echo_n "(cached) " >&6
5849 else
5850 if test -n "$OBJDUMP"; then
5851 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5852 else
5853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5854 for as_dir in $PATH
5855 do
5856 IFS=$as_save_IFS
5857 test -z "$as_dir" && as_dir=.
5858 for ac_exec_ext in '' $ac_executable_extensions; do
5859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5860 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5862 break 2
5863 fi
5864 done
5865 done
5866 IFS=$as_save_IFS
5867
5868 fi
5869 fi
5870 OBJDUMP=$ac_cv_prog_OBJDUMP
5871 if test -n "$OBJDUMP"; then
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5873 $as_echo "$OBJDUMP" >&6; }
5874 else
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5876 $as_echo "no" >&6; }
5877 fi
5878
5879
5880 fi
5881 if test -z "$ac_cv_prog_OBJDUMP"; then
5882 ac_ct_OBJDUMP=$OBJDUMP
5883 # Extract the first word of "objdump", so it can be a program name with args.
5884 set dummy objdump; ac_word=$2
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5886 $as_echo_n "checking for $ac_word... " >&6; }
5887 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5888 $as_echo_n "(cached) " >&6
5889 else
5890 if test -n "$ac_ct_OBJDUMP"; then
5891 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5892 else
5893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5894 for as_dir in $PATH
5895 do
5896 IFS=$as_save_IFS
5897 test -z "$as_dir" && as_dir=.
5898 for ac_exec_ext in '' $ac_executable_extensions; do
5899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5900 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5902 break 2
5903 fi
5904 done
5905 done
5906 IFS=$as_save_IFS
5907
5908 fi
5909 fi
5910 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5911 if test -n "$ac_ct_OBJDUMP"; then
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5913 $as_echo "$ac_ct_OBJDUMP" >&6; }
5914 else
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5916 $as_echo "no" >&6; }
5917 fi
5918
5919 if test "x$ac_ct_OBJDUMP" = x; then
5920 OBJDUMP="false"
5921 else
5922 case $cross_compiling:$ac_tool_warned in
5923 yes:)
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5925 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5926 ac_tool_warned=yes ;;
5927 esac
5928 OBJDUMP=$ac_ct_OBJDUMP
5929 fi
5930 else
5931 OBJDUMP="$ac_cv_prog_OBJDUMP"
5932 fi
5933
5934 test -z "$OBJDUMP" && OBJDUMP=objdump
5935
5936
5937
5938
5939
5940
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5942 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5943 if ${lt_cv_deplibs_check_method+:} false; then :
5944 $as_echo_n "(cached) " >&6
5945 else
5946 lt_cv_file_magic_cmd='$MAGIC_CMD'
5947 lt_cv_file_magic_test_file=
5948 lt_cv_deplibs_check_method='unknown'
5949 # Need to set the preceding variable on all platforms that support
5950 # interlibrary dependencies.
5951 # 'none' -- dependencies not supported.
5952 # 'unknown' -- same as none, but documents that we really don't know.
5953 # 'pass_all' -- all dependencies passed with no checks.
5954 # 'test_compile' -- check by making test program.
5955 # 'file_magic [[regex]]' -- check by looking for files in library path
5956 # that responds to the $file_magic_cmd with a given extended regex.
5957 # If you have 'file' or equivalent on your system and you're not sure
5958 # whether 'pass_all' will *always* work, you probably want this one.
5959
5960 case $host_os in
5961 aix[4-9]*)
5962 lt_cv_deplibs_check_method=pass_all
5963 ;;
5964
5965 beos*)
5966 lt_cv_deplibs_check_method=pass_all
5967 ;;
5968
5969 bsdi[45]*)
5970 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5971 lt_cv_file_magic_cmd='/usr/bin/file -L'
5972 lt_cv_file_magic_test_file=/shlib/libc.so
5973 ;;
5974
5975 cygwin*)
5976 # func_win32_libid is a shell function defined in ltmain.sh
5977 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5978 lt_cv_file_magic_cmd='func_win32_libid'
5979 ;;
5980
5981 mingw* | windows* | pw32*)
5982 # Base MSYS/MinGW do not provide the 'file' command needed by
5983 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5984 # unless we find 'file', for example because we are cross-compiling.
5985 if ( file / ) >/dev/null 2>&1; then
5986 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5987 lt_cv_file_magic_cmd='func_win32_libid'
5988 else
5989 # Keep this pattern in sync with the one in func_win32_libid.
5990 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
5991 lt_cv_file_magic_cmd='$OBJDUMP -f'
5992 fi
5993 ;;
5994
5995 cegcc*)
5996 # use the weaker test based on 'objdump'. See mingw*.
5997 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5998 lt_cv_file_magic_cmd='$OBJDUMP -f'
5999 ;;
6000
6001 darwin* | rhapsody*)
6002 lt_cv_deplibs_check_method=pass_all
6003 ;;
6004
6005 freebsd* | dragonfly* | midnightbsd*)
6006 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6007 case $host_cpu in
6008 i*86 )
6009 # Not sure whether the presence of OpenBSD here was a mistake.
6010 # Let's accept both of them until this is cleared up.
6011 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6012 lt_cv_file_magic_cmd=/usr/bin/file
6013 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6014 ;;
6015 esac
6016 else
6017 lt_cv_deplibs_check_method=pass_all
6018 fi
6019 ;;
6020
6021 haiku*)
6022 lt_cv_deplibs_check_method=pass_all
6023 ;;
6024
6025 hpux10.20* | hpux11*)
6026 lt_cv_file_magic_cmd=/usr/bin/file
6027 case $host_cpu in
6028 ia64*)
6029 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6030 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6031 ;;
6032 hppa*64*)
6033 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6034 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6035 ;;
6036 *)
6037 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6038 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6039 ;;
6040 esac
6041 ;;
6042
6043 interix[3-9]*)
6044 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6045 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6046 ;;
6047
6048 irix5* | irix6* | nonstopux*)
6049 case $LD in
6050 *-32|*"-32 ") libmagic=32-bit;;
6051 *-n32|*"-n32 ") libmagic=N32;;
6052 *-64|*"-64 ") libmagic=64-bit;;
6053 *) libmagic=never-match;;
6054 esac
6055 lt_cv_deplibs_check_method=pass_all
6056 ;;
6057
6058 # This must be glibc/ELF.
6059 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6060 lt_cv_deplibs_check_method=pass_all
6061 ;;
6062
6063 netbsd*)
6064 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6065 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6066 else
6067 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6068 fi
6069 ;;
6070
6071 newos6*)
6072 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6073 lt_cv_file_magic_cmd=/usr/bin/file
6074 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6075 ;;
6076
6077 *nto* | *qnx*)
6078 lt_cv_deplibs_check_method=pass_all
6079 ;;
6080
6081 openbsd* | bitrig*)
6082 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6083 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6084 else
6085 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6086 fi
6087 ;;
6088
6089 osf3* | osf4* | osf5*)
6090 lt_cv_deplibs_check_method=pass_all
6091 ;;
6092
6093 rdos*)
6094 lt_cv_deplibs_check_method=pass_all
6095 ;;
6096
6097 solaris*)
6098 lt_cv_deplibs_check_method=pass_all
6099 ;;
6100
6101 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6102 lt_cv_deplibs_check_method=pass_all
6103 ;;
6104
6105 sysv4 | sysv4.3*)
6106 case $host_vendor in
6107 motorola)
6108 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]'
6109 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6110 ;;
6111 ncr)
6112 lt_cv_deplibs_check_method=pass_all
6113 ;;
6114 sequent)
6115 lt_cv_file_magic_cmd='/bin/file'
6116 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6117 ;;
6118 sni)
6119 lt_cv_file_magic_cmd='/bin/file'
6120 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6121 lt_cv_file_magic_test_file=/lib/libc.so
6122 ;;
6123 siemens)
6124 lt_cv_deplibs_check_method=pass_all
6125 ;;
6126 pc)
6127 lt_cv_deplibs_check_method=pass_all
6128 ;;
6129 esac
6130 ;;
6131
6132 tpf*)
6133 lt_cv_deplibs_check_method=pass_all
6134 ;;
6135 os2*)
6136 lt_cv_deplibs_check_method=pass_all
6137 ;;
6138 esac
6139
6140 fi
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6142 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6143
6144 file_magic_glob=
6145 want_nocaseglob=no
6146 if test "$build" = "$host"; then
6147 case $host_os in
6148 mingw* | windows* | pw32*)
6149 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6150 want_nocaseglob=yes
6151 else
6152 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6153 fi
6154 ;;
6155 esac
6156 fi
6157
6158 file_magic_cmd=$lt_cv_file_magic_cmd
6159 deplibs_check_method=$lt_cv_deplibs_check_method
6160 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183 if test -n "$ac_tool_prefix"; then
6184 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6185 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6187 $as_echo_n "checking for $ac_word... " >&6; }
6188 if ${ac_cv_prog_DLLTOOL+:} false; then :
6189 $as_echo_n "(cached) " >&6
6190 else
6191 if test -n "$DLLTOOL"; then
6192 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6193 else
6194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195 for as_dir in $PATH
6196 do
6197 IFS=$as_save_IFS
6198 test -z "$as_dir" && as_dir=.
6199 for ac_exec_ext in '' $ac_executable_extensions; do
6200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6201 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6203 break 2
6204 fi
6205 done
6206 done
6207 IFS=$as_save_IFS
6208
6209 fi
6210 fi
6211 DLLTOOL=$ac_cv_prog_DLLTOOL
6212 if test -n "$DLLTOOL"; then
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6214 $as_echo "$DLLTOOL" >&6; }
6215 else
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6217 $as_echo "no" >&6; }
6218 fi
6219
6220
6221 fi
6222 if test -z "$ac_cv_prog_DLLTOOL"; then
6223 ac_ct_DLLTOOL=$DLLTOOL
6224 # Extract the first word of "dlltool", so it can be a program name with args.
6225 set dummy dlltool; ac_word=$2
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6227 $as_echo_n "checking for $ac_word... " >&6; }
6228 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6229 $as_echo_n "(cached) " >&6
6230 else
6231 if test -n "$ac_ct_DLLTOOL"; then
6232 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6233 else
6234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6235 for as_dir in $PATH
6236 do
6237 IFS=$as_save_IFS
6238 test -z "$as_dir" && as_dir=.
6239 for ac_exec_ext in '' $ac_executable_extensions; do
6240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6241 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6243 break 2
6244 fi
6245 done
6246 done
6247 IFS=$as_save_IFS
6248
6249 fi
6250 fi
6251 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6252 if test -n "$ac_ct_DLLTOOL"; then
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6254 $as_echo "$ac_ct_DLLTOOL" >&6; }
6255 else
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6257 $as_echo "no" >&6; }
6258 fi
6259
6260 if test "x$ac_ct_DLLTOOL" = x; then
6261 DLLTOOL="false"
6262 else
6263 case $cross_compiling:$ac_tool_warned in
6264 yes:)
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6267 ac_tool_warned=yes ;;
6268 esac
6269 DLLTOOL=$ac_ct_DLLTOOL
6270 fi
6271 else
6272 DLLTOOL="$ac_cv_prog_DLLTOOL"
6273 fi
6274
6275 test -z "$DLLTOOL" && DLLTOOL=dlltool
6276
6277
6278
6279
6280
6281
6282
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6284 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6285 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6286 $as_echo_n "(cached) " >&6
6287 else
6288 lt_cv_sharedlib_from_linklib_cmd='unknown'
6289
6290 case $host_os in
6291 cygwin* | mingw* | windows* | pw32* | cegcc*)
6292 # two different shell functions defined in ltmain.sh;
6293 # decide which one to use based on capabilities of $DLLTOOL
6294 case `$DLLTOOL --help 2>&1` in
6295 *--identify-strict*)
6296 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6297 ;;
6298 *)
6299 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6300 ;;
6301 esac
6302 ;;
6303 *)
6304 # fallback: assume linklib IS sharedlib
6305 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6306 ;;
6307 esac
6308
6309 fi
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6311 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6312 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6313 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6314
6315
6316
6317
6318
6319
6320
6321
6322 if test -n "$ac_tool_prefix"; then
6323 for ac_prog in ar
6324 do
6325 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6326 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6328 $as_echo_n "checking for $ac_word... " >&6; }
6329 if ${ac_cv_prog_AR+:} false; then :
6330 $as_echo_n "(cached) " >&6
6331 else
6332 if test -n "$AR"; then
6333 ac_cv_prog_AR="$AR" # Let the user override the test.
6334 else
6335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336 for as_dir in $PATH
6337 do
6338 IFS=$as_save_IFS
6339 test -z "$as_dir" && as_dir=.
6340 for ac_exec_ext in '' $ac_executable_extensions; do
6341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6342 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6344 break 2
6345 fi
6346 done
6347 done
6348 IFS=$as_save_IFS
6349
6350 fi
6351 fi
6352 AR=$ac_cv_prog_AR
6353 if test -n "$AR"; then
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6355 $as_echo "$AR" >&6; }
6356 else
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6358 $as_echo "no" >&6; }
6359 fi
6360
6361
6362 test -n "$AR" && break
6363 done
6364 fi
6365 if test -z "$AR"; then
6366 ac_ct_AR=$AR
6367 for ac_prog in ar
6368 do
6369 # Extract the first word of "$ac_prog", so it can be a program name with args.
6370 set dummy $ac_prog; ac_word=$2
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6372 $as_echo_n "checking for $ac_word... " >&6; }
6373 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6374 $as_echo_n "(cached) " >&6
6375 else
6376 if test -n "$ac_ct_AR"; then
6377 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6378 else
6379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6380 for as_dir in $PATH
6381 do
6382 IFS=$as_save_IFS
6383 test -z "$as_dir" && as_dir=.
6384 for ac_exec_ext in '' $ac_executable_extensions; do
6385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6386 ac_cv_prog_ac_ct_AR="$ac_prog"
6387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6388 break 2
6389 fi
6390 done
6391 done
6392 IFS=$as_save_IFS
6393
6394 fi
6395 fi
6396 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6397 if test -n "$ac_ct_AR"; then
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6399 $as_echo "$ac_ct_AR" >&6; }
6400 else
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6402 $as_echo "no" >&6; }
6403 fi
6404
6405
6406 test -n "$ac_ct_AR" && break
6407 done
6408
6409 if test "x$ac_ct_AR" = x; then
6410 AR="false"
6411 else
6412 case $cross_compiling:$ac_tool_warned in
6413 yes:)
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6416 ac_tool_warned=yes ;;
6417 esac
6418 AR=$ac_ct_AR
6419 fi
6420 fi
6421
6422 : ${AR=ar}
6423 : ${AR_FLAGS=cru}
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6436 $as_echo_n "checking for archiver @FILE support... " >&6; }
6437 if ${lt_cv_ar_at_file+:} false; then :
6438 $as_echo_n "(cached) " >&6
6439 else
6440 lt_cv_ar_at_file=no
6441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6442 /* end confdefs.h. */
6443
6444 int
6445 main ()
6446 {
6447
6448 ;
6449 return 0;
6450 }
6451 _ACEOF
6452 if ac_fn_c_try_compile "$LINENO"; then :
6453 echo conftest.$ac_objext > conftest.lst
6454 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6456 (eval $lt_ar_try) 2>&5
6457 ac_status=$?
6458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6459 test $ac_status = 0; }
6460 if test 0 -eq "$ac_status"; then
6461 # Ensure the archiver fails upon bogus file names.
6462 rm -f conftest.$ac_objext libconftest.a
6463 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6464 (eval $lt_ar_try) 2>&5
6465 ac_status=$?
6466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6467 test $ac_status = 0; }
6468 if test 0 -ne "$ac_status"; then
6469 lt_cv_ar_at_file=@
6470 fi
6471 fi
6472 rm -f conftest.* libconftest.a
6473
6474 fi
6475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6476
6477 fi
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6479 $as_echo "$lt_cv_ar_at_file" >&6; }
6480
6481 if test no = "$lt_cv_ar_at_file"; then
6482 archiver_list_spec=
6483 else
6484 archiver_list_spec=$lt_cv_ar_at_file
6485 fi
6486
6487
6488
6489
6490
6491
6492
6493 if test -n "$ac_tool_prefix"; then
6494 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6495 set dummy ${ac_tool_prefix}strip; ac_word=$2
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6497 $as_echo_n "checking for $ac_word... " >&6; }
6498 if ${ac_cv_prog_STRIP+:} false; then :
6499 $as_echo_n "(cached) " >&6
6500 else
6501 if test -n "$STRIP"; then
6502 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6503 else
6504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505 for as_dir in $PATH
6506 do
6507 IFS=$as_save_IFS
6508 test -z "$as_dir" && as_dir=.
6509 for ac_exec_ext in '' $ac_executable_extensions; do
6510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6511 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6513 break 2
6514 fi
6515 done
6516 done
6517 IFS=$as_save_IFS
6518
6519 fi
6520 fi
6521 STRIP=$ac_cv_prog_STRIP
6522 if test -n "$STRIP"; then
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6524 $as_echo "$STRIP" >&6; }
6525 else
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6527 $as_echo "no" >&6; }
6528 fi
6529
6530
6531 fi
6532 if test -z "$ac_cv_prog_STRIP"; then
6533 ac_ct_STRIP=$STRIP
6534 # Extract the first word of "strip", so it can be a program name with args.
6535 set dummy strip; ac_word=$2
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6537 $as_echo_n "checking for $ac_word... " >&6; }
6538 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6539 $as_echo_n "(cached) " >&6
6540 else
6541 if test -n "$ac_ct_STRIP"; then
6542 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6543 else
6544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545 for as_dir in $PATH
6546 do
6547 IFS=$as_save_IFS
6548 test -z "$as_dir" && as_dir=.
6549 for ac_exec_ext in '' $ac_executable_extensions; do
6550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6551 ac_cv_prog_ac_ct_STRIP="strip"
6552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6553 break 2
6554 fi
6555 done
6556 done
6557 IFS=$as_save_IFS
6558
6559 fi
6560 fi
6561 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6562 if test -n "$ac_ct_STRIP"; then
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6564 $as_echo "$ac_ct_STRIP" >&6; }
6565 else
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6567 $as_echo "no" >&6; }
6568 fi
6569
6570 if test "x$ac_ct_STRIP" = x; then
6571 STRIP=":"
6572 else
6573 case $cross_compiling:$ac_tool_warned in
6574 yes:)
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6577 ac_tool_warned=yes ;;
6578 esac
6579 STRIP=$ac_ct_STRIP
6580 fi
6581 else
6582 STRIP="$ac_cv_prog_STRIP"
6583 fi
6584
6585 test -z "$STRIP" && STRIP=:
6586
6587
6588
6589
6590
6591
6592 if test -n "$ac_tool_prefix"; then
6593 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6594 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6596 $as_echo_n "checking for $ac_word... " >&6; }
6597 if ${ac_cv_prog_RANLIB+:} false; then :
6598 $as_echo_n "(cached) " >&6
6599 else
6600 if test -n "$RANLIB"; then
6601 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6602 else
6603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6604 for as_dir in $PATH
6605 do
6606 IFS=$as_save_IFS
6607 test -z "$as_dir" && as_dir=.
6608 for ac_exec_ext in '' $ac_executable_extensions; do
6609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6610 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6612 break 2
6613 fi
6614 done
6615 done
6616 IFS=$as_save_IFS
6617
6618 fi
6619 fi
6620 RANLIB=$ac_cv_prog_RANLIB
6621 if test -n "$RANLIB"; then
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6623 $as_echo "$RANLIB" >&6; }
6624 else
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6626 $as_echo "no" >&6; }
6627 fi
6628
6629
6630 fi
6631 if test -z "$ac_cv_prog_RANLIB"; then
6632 ac_ct_RANLIB=$RANLIB
6633 # Extract the first word of "ranlib", so it can be a program name with args.
6634 set dummy ranlib; ac_word=$2
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6636 $as_echo_n "checking for $ac_word... " >&6; }
6637 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6638 $as_echo_n "(cached) " >&6
6639 else
6640 if test -n "$ac_ct_RANLIB"; then
6641 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6642 else
6643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644 for as_dir in $PATH
6645 do
6646 IFS=$as_save_IFS
6647 test -z "$as_dir" && as_dir=.
6648 for ac_exec_ext in '' $ac_executable_extensions; do
6649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6650 ac_cv_prog_ac_ct_RANLIB="ranlib"
6651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6652 break 2
6653 fi
6654 done
6655 done
6656 IFS=$as_save_IFS
6657
6658 fi
6659 fi
6660 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6661 if test -n "$ac_ct_RANLIB"; then
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6663 $as_echo "$ac_ct_RANLIB" >&6; }
6664 else
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6666 $as_echo "no" >&6; }
6667 fi
6668
6669 if test "x$ac_ct_RANLIB" = x; then
6670 RANLIB=":"
6671 else
6672 case $cross_compiling:$ac_tool_warned in
6673 yes:)
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6675 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6676 ac_tool_warned=yes ;;
6677 esac
6678 RANLIB=$ac_ct_RANLIB
6679 fi
6680 else
6681 RANLIB="$ac_cv_prog_RANLIB"
6682 fi
6683
6684 test -z "$RANLIB" && RANLIB=:
6685
6686
6687
6688
6689
6690
6691 # Determine commands to create old-style static archives.
6692 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6693 old_postinstall_cmds='chmod 644 $oldlib'
6694 old_postuninstall_cmds=
6695
6696 if test -n "$RANLIB"; then
6697 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6698 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6699 fi
6700
6701 case $host_os in
6702 darwin*)
6703 lock_old_archive_extraction=yes ;;
6704 *)
6705 lock_old_archive_extraction=no ;;
6706 esac
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746 # If no C compiler was specified, use CC.
6747 LTCC=${LTCC-"$CC"}
6748
6749 # If no C compiler flags were specified, use CFLAGS.
6750 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6751
6752 # Allow CC to be a program name with arguments.
6753 compiler=$CC
6754
6755
6756 # Check for command to grab the raw symbol name followed by C symbol from nm.
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6758 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6759 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6760 $as_echo_n "(cached) " >&6
6761 else
6762
6763 # These are sane defaults that work on at least a few old systems.
6764 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6765
6766 # Character class describing NM global symbol codes.
6767 symcode='[BCDEGRST]'
6768
6769 # Regexp to match symbols that can be accessed directly from C.
6770 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6771
6772 # Define system-specific variables.
6773 case $host_os in
6774 aix*)
6775 symcode='[BCDT]'
6776 ;;
6777 cygwin* | mingw* | windows* | pw32* | cegcc*)
6778 symcode='[ABCDGISTW]'
6779 ;;
6780 hpux*)
6781 if test ia64 = "$host_cpu"; then
6782 symcode='[ABCDEGRST]'
6783 fi
6784 ;;
6785 irix* | nonstopux*)
6786 symcode='[BCDEGRST]'
6787 ;;
6788 osf*)
6789 symcode='[BCDEGQRST]'
6790 ;;
6791 solaris*)
6792 symcode='[BCDRT]'
6793 ;;
6794 sco3.2v5*)
6795 symcode='[DT]'
6796 ;;
6797 sysv4.2uw2*)
6798 symcode='[DT]'
6799 ;;
6800 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6801 symcode='[ABDT]'
6802 ;;
6803 sysv4)
6804 symcode='[DFNSTU]'
6805 ;;
6806 esac
6807
6808 # If we're using GNU nm, then use its standard symbol codes.
6809 case `$NM -V 2>&1` in
6810 *GNU* | *'with BFD'*)
6811 symcode='[ABCDGIRSTW]' ;;
6812 esac
6813
6814 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6815 # Gets list of data symbols to import.
6816 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6817 # Adjust the below global symbol transforms to fixup imported variables.
6818 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6819 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6820 lt_c_name_lib_hook="\
6821 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6822 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6823 else
6824 # Disable hooks by default.
6825 lt_cv_sys_global_symbol_to_import=
6826 lt_cdecl_hook=
6827 lt_c_name_hook=
6828 lt_c_name_lib_hook=
6829 fi
6830
6831 # Transform an extracted symbol line into a proper C declaration.
6832 # Some systems (esp. on ia64) link data and code symbols differently,
6833 # so use this general approach.
6834 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6835 $lt_cdecl_hook\
6836 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6837 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6838
6839 # Transform an extracted symbol line into symbol name and symbol address
6840 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6841 $lt_c_name_hook\
6842 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6843 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6844
6845 # Transform an extracted symbol line into symbol name with lib prefix and
6846 # symbol address.
6847 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6848 $lt_c_name_lib_hook\
6849 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6850 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6851 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6852
6853 # Handle CRLF in mingw tool chain
6854 opt_cr=
6855 case $build_os in
6856 mingw* | windows*)
6857 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6858 ;;
6859 esac
6860
6861 # Try without a prefix underscore, then with it.
6862 for ac_symprfx in "" "_"; do
6863
6864 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6865 symxfrm="\\1 $ac_symprfx\\2 \\2"
6866
6867 # Write the raw and C identifiers.
6868 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6869 # Fake it for dumpbin and say T for any non-static function,
6870 # D for any global variable and I for any imported variable.
6871 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6872 # which start with @ or ?.
6873 lt_cv_sys_global_symbol_pipe="$AWK '"\
6874 " {last_section=section; section=\$ 3};"\
6875 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6876 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6877 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6878 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6879 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6880 " \$ 0!~/External *\|/{next};"\
6881 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6882 " {if(hide[section]) next};"\
6883 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6884 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6885 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6886 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6887 " ' prfx=^$ac_symprfx"
6888 else
6889 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6890 fi
6891 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6892
6893 # Check to see that the pipe works correctly.
6894 pipe_works=no
6895
6896 rm -f conftest*
6897 cat > conftest.$ac_ext <<_LT_EOF
6898 #ifdef __cplusplus
6899 extern "C" {
6900 #endif
6901 char nm_test_var;
6902 void nm_test_func(void);
6903 void nm_test_func(void){}
6904 #ifdef __cplusplus
6905 }
6906 #endif
6907 int main(void){nm_test_var='a';nm_test_func();return(0);}
6908 _LT_EOF
6909
6910 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6911 (eval $ac_compile) 2>&5
6912 ac_status=$?
6913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6914 test $ac_status = 0; }; then
6915 # Now try to grab the symbols.
6916 nlist=conftest.nm
6917 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6918 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6919 ac_status=$?
6920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6921 test $ac_status = 0; } && test -s "$nlist"; then
6922 # Try sorting and uniquifying the output.
6923 if sort "$nlist" | uniq > "$nlist"T; then
6924 mv -f "$nlist"T "$nlist"
6925 else
6926 rm -f "$nlist"T
6927 fi
6928
6929 # Make sure that we snagged all the symbols we need.
6930 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6931 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6932 cat <<_LT_EOF > conftest.$ac_ext
6933 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6934 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6935 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6936 relocations are performed -- see ld's documentation on pseudo-relocs. */
6937 # define LT_DLSYM_CONST
6938 #elif defined __osf__
6939 /* This system does not cope well with relocations in const data. */
6940 # define LT_DLSYM_CONST
6941 #else
6942 # define LT_DLSYM_CONST const
6943 #endif
6944
6945 #ifdef __cplusplus
6946 extern "C" {
6947 #endif
6948
6949 _LT_EOF
6950 # Now generate the symbol file.
6951 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6952
6953 cat <<_LT_EOF >> conftest.$ac_ext
6954
6955 /* The mapping between symbol names and symbols. */
6956 LT_DLSYM_CONST struct {
6957 const char *name;
6958 void *address;
6959 }
6960 lt__PROGRAM__LTX_preloaded_symbols[] =
6961 {
6962 { "@PROGRAM@", (void *) 0 },
6963 _LT_EOF
6964 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6965 cat <<\_LT_EOF >> conftest.$ac_ext
6966 {0, (void *) 0}
6967 };
6968
6969 /* This works around a problem in FreeBSD linker */
6970 #ifdef FREEBSD_WORKAROUND
6971 static const void *lt_preloaded_setup() {
6972 return lt__PROGRAM__LTX_preloaded_symbols;
6973 }
6974 #endif
6975
6976 #ifdef __cplusplus
6977 }
6978 #endif
6979 _LT_EOF
6980 # Now try linking the two files.
6981 mv conftest.$ac_objext conftstm.$ac_objext
6982 lt_globsym_save_LIBS=$LIBS
6983 lt_globsym_save_CFLAGS=$CFLAGS
6984 LIBS=conftstm.$ac_objext
6985 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6986 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6987 (eval $ac_link) 2>&5
6988 ac_status=$?
6989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6990 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6991 pipe_works=yes
6992 fi
6993 LIBS=$lt_globsym_save_LIBS
6994 CFLAGS=$lt_globsym_save_CFLAGS
6995 else
6996 echo "cannot find nm_test_func in $nlist" >&5
6997 fi
6998 else
6999 echo "cannot find nm_test_var in $nlist" >&5
7000 fi
7001 else
7002 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7003 fi
7004 else
7005 echo "$progname: failed program was:" >&5
7006 cat conftest.$ac_ext >&5
7007 fi
7008 rm -rf conftest* conftst*
7009
7010 # Do not use the global_symbol_pipe unless it works.
7011 if test yes = "$pipe_works"; then
7012 break
7013 else
7014 lt_cv_sys_global_symbol_pipe=
7015 fi
7016 done
7017
7018 fi
7019
7020 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7021 lt_cv_sys_global_symbol_to_cdecl=
7022 fi
7023 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7025 $as_echo "failed" >&6; }
7026 else
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7028 $as_echo "ok" >&6; }
7029 fi
7030
7031 # Response file support.
7032 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7033 nm_file_list_spec='@'
7034 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7035 nm_file_list_spec='@'
7036 fi
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7075 $as_echo_n "checking for sysroot... " >&6; }
7076
7077 # Check whether --with-sysroot was given.
7078 if test "${with_sysroot+set}" = set; then :
7079 withval=$with_sysroot;
7080 else
7081 with_sysroot=no
7082 fi
7083
7084
7085 lt_sysroot=
7086 case $with_sysroot in #(
7087 yes)
7088 if test yes = "$GCC"; then
7089 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7090 fi
7091 ;; #(
7092 /*)
7093 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7094 ;; #(
7095 no|'')
7096 ;; #(
7097 *)
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7099 $as_echo "$with_sysroot" >&6; }
7100 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7101 ;;
7102 esac
7103
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7105 $as_echo "${lt_sysroot:-no}" >&6; }
7106
7107
7108
7109
7110
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7112 $as_echo_n "checking for a working dd... " >&6; }
7113 if ${ac_cv_path_lt_DD+:} false; then :
7114 $as_echo_n "(cached) " >&6
7115 else
7116 printf 0123456789abcdef0123456789abcdef >conftest.i
7117 cat conftest.i conftest.i >conftest2.i
7118 : ${lt_DD:=$DD}
7119 if test -z "$lt_DD"; then
7120 ac_path_lt_DD_found=false
7121 # Loop through the user's path and test for each of PROGNAME-LIST
7122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123 for as_dir in $PATH
7124 do
7125 IFS=$as_save_IFS
7126 test -z "$as_dir" && as_dir=.
7127 for ac_prog in dd; do
7128 for ac_exec_ext in '' $ac_executable_extensions; do
7129 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7130 as_fn_executable_p "$ac_path_lt_DD" || continue
7131 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7132 cmp -s conftest.i conftest.out \
7133 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7134 fi
7135 $ac_path_lt_DD_found && break 3
7136 done
7137 done
7138 done
7139 IFS=$as_save_IFS
7140 if test -z "$ac_cv_path_lt_DD"; then
7141 :
7142 fi
7143 else
7144 ac_cv_path_lt_DD=$lt_DD
7145 fi
7146
7147 rm -f conftest.i conftest2.i conftest.out
7148 fi
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7150 $as_echo "$ac_cv_path_lt_DD" >&6; }
7151
7152
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7154 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7155 if ${lt_cv_truncate_bin+:} false; then :
7156 $as_echo_n "(cached) " >&6
7157 else
7158 printf 0123456789abcdef0123456789abcdef >conftest.i
7159 cat conftest.i conftest.i >conftest2.i
7160 lt_cv_truncate_bin=
7161 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7162 cmp -s conftest.i conftest.out \
7163 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7164 fi
7165 rm -f conftest.i conftest2.i conftest.out
7166 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7167 fi
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7169 $as_echo "$lt_cv_truncate_bin" >&6; }
7170
7171
7172
7173
7174
7175
7176
7177 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7178 func_cc_basename ()
7179 {
7180 for cc_temp in $*""; do
7181 case $cc_temp in
7182 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7183 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7184 \-*) ;;
7185 *) break;;
7186 esac
7187 done
7188 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7189 }
7190
7191 # Check whether --enable-libtool-lock was given.
7192 if test "${enable_libtool_lock+set}" = set; then :
7193 enableval=$enable_libtool_lock;
7194 fi
7195
7196 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7197
7198 # Some flags need to be propagated to the compiler or linker for good
7199 # libtool support.
7200 case $host in
7201 ia64-*-hpux*)
7202 # Find out what ABI is being produced by ac_compile, and set mode
7203 # options accordingly.
7204 echo 'int i;' > conftest.$ac_ext
7205 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7206 (eval $ac_compile) 2>&5
7207 ac_status=$?
7208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7209 test $ac_status = 0; }; then
7210 case `/usr/bin/file conftest.$ac_objext` in
7211 *ELF-32*)
7212 HPUX_IA64_MODE=32
7213 ;;
7214 *ELF-64*)
7215 HPUX_IA64_MODE=64
7216 ;;
7217 esac
7218 fi
7219 rm -rf conftest*
7220 ;;
7221 *-*-irix6*)
7222 # Find out what ABI is being produced by ac_compile, and set linker
7223 # options accordingly.
7224 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7225 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7226 (eval $ac_compile) 2>&5
7227 ac_status=$?
7228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7229 test $ac_status = 0; }; then
7230 if test yes = "$lt_cv_prog_gnu_ld"; then
7231 case `/usr/bin/file conftest.$ac_objext` in
7232 *32-bit*)
7233 LD="${LD-ld} -melf32bsmip"
7234 ;;
7235 *N32*)
7236 LD="${LD-ld} -melf32bmipn32"
7237 ;;
7238 *64-bit*)
7239 LD="${LD-ld} -melf64bmip"
7240 ;;
7241 esac
7242 else
7243 case `/usr/bin/file conftest.$ac_objext` in
7244 *32-bit*)
7245 LD="${LD-ld} -32"
7246 ;;
7247 *N32*)
7248 LD="${LD-ld} -n32"
7249 ;;
7250 *64-bit*)
7251 LD="${LD-ld} -64"
7252 ;;
7253 esac
7254 fi
7255 fi
7256 rm -rf conftest*
7257 ;;
7258
7259 mips64*-*linux*)
7260 # Find out what ABI is being produced by ac_compile, and set linker
7261 # options accordingly.
7262 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7263 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7264 (eval $ac_compile) 2>&5
7265 ac_status=$?
7266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7267 test $ac_status = 0; }; then
7268 emul=elf
7269 case `/usr/bin/file conftest.$ac_objext` in
7270 *32-bit*)
7271 emul="${emul}32"
7272 ;;
7273 *64-bit*)
7274 emul="${emul}64"
7275 ;;
7276 esac
7277 case `/usr/bin/file conftest.$ac_objext` in
7278 *MSB*)
7279 emul="${emul}btsmip"
7280 ;;
7281 *LSB*)
7282 emul="${emul}ltsmip"
7283 ;;
7284 esac
7285 case `/usr/bin/file conftest.$ac_objext` in
7286 *N32*)
7287 emul="${emul}n32"
7288 ;;
7289 esac
7290 LD="${LD-ld} -m $emul"
7291 fi
7292 rm -rf conftest*
7293 ;;
7294
7295 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7296 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
7297 # Find out what ABI is being produced by ac_compile, and set linker
7298 # options accordingly. Note that the listed cases only cover the
7299 # situations where additional linker options are needed (such as when
7300 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7301 # vice versa); the common cases where no linker options are needed do
7302 # not appear in the list.
7303 echo 'int i;' > conftest.$ac_ext
7304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7305 (eval $ac_compile) 2>&5
7306 ac_status=$?
7307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7308 test $ac_status = 0; }; then
7309 case `/usr/bin/file conftest.o` in
7310 *32-bit*)
7311 case $host in
7312 x86_64-*kfreebsd*-gnu)
7313 LD="${LD-ld} -m elf_i386_fbsd"
7314 ;;
7315 x86_64-*linux*|x86_64-gnu*)
7316 case `/usr/bin/file conftest.o` in
7317 *x86-64*)
7318 LD="${LD-ld} -m elf32_x86_64"
7319 ;;
7320 *)
7321 LD="${LD-ld} -m elf_i386"
7322 ;;
7323 esac
7324 ;;
7325 powerpc64le-*linux*)
7326 LD="${LD-ld} -m elf32lppclinux"
7327 ;;
7328 powerpc64-*linux*)
7329 LD="${LD-ld} -m elf32ppclinux"
7330 ;;
7331 s390x-*linux*)
7332 LD="${LD-ld} -m elf_s390"
7333 ;;
7334 sparc64-*linux*)
7335 LD="${LD-ld} -m elf32_sparc"
7336 ;;
7337 esac
7338 ;;
7339 *64-bit*)
7340 case $host in
7341 x86_64-*kfreebsd*-gnu)
7342 LD="${LD-ld} -m elf_x86_64_fbsd"
7343 ;;
7344 x86_64-*linux*|x86_64-gnu*)
7345 LD="${LD-ld} -m elf_x86_64"
7346 ;;
7347 powerpcle-*linux*|powerpc64le-*linux*)
7348 LD="${LD-ld} -m elf64lppc"
7349 ;;
7350 powerpc-*linux*|powerpc64-*linux*)
7351 LD="${LD-ld} -m elf64ppc"
7352 ;;
7353 s390*-*linux*|s390*-*tpf*)
7354 LD="${LD-ld} -m elf64_s390"
7355 ;;
7356 sparc*-*linux*)
7357 LD="${LD-ld} -m elf64_sparc"
7358 ;;
7359 esac
7360 ;;
7361 esac
7362 fi
7363 rm -rf conftest*
7364 ;;
7365
7366 *-*-sco3.2v5*)
7367 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7368 SAVE_CFLAGS=$CFLAGS
7369 CFLAGS="$CFLAGS -belf"
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7371 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7372 if ${lt_cv_cc_needs_belf+:} false; then :
7373 $as_echo_n "(cached) " >&6
7374 else
7375 ac_ext=c
7376 ac_cpp='$CPP $CPPFLAGS'
7377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7380
7381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7382 /* end confdefs.h. */
7383
7384 int
7385 main ()
7386 {
7387
7388 ;
7389 return 0;
7390 }
7391 _ACEOF
7392 if ac_fn_c_try_link "$LINENO"; then :
7393 lt_cv_cc_needs_belf=yes
7394 else
7395 lt_cv_cc_needs_belf=no
7396 fi
7397 rm -f core conftest.err conftest.$ac_objext \
7398 conftest$ac_exeext conftest.$ac_ext
7399 ac_ext=c
7400 ac_cpp='$CPP $CPPFLAGS'
7401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7404
7405 fi
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7407 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7408 if test yes != "$lt_cv_cc_needs_belf"; then
7409 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7410 CFLAGS=$SAVE_CFLAGS
7411 fi
7412 ;;
7413 *-*solaris*)
7414 # Find out what ABI is being produced by ac_compile, and set linker
7415 # options accordingly.
7416 echo 'int i;' > conftest.$ac_ext
7417 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7418 (eval $ac_compile) 2>&5
7419 ac_status=$?
7420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7421 test $ac_status = 0; }; then
7422 case `/usr/bin/file conftest.o` in
7423 *64-bit*)
7424 case $lt_cv_prog_gnu_ld in
7425 yes*)
7426 case $host in
7427 i?86-*-solaris*|x86_64-*-solaris*)
7428 LD="${LD-ld} -m elf_x86_64"
7429 ;;
7430 sparc*-*-solaris*)
7431 LD="${LD-ld} -m elf64_sparc"
7432 ;;
7433 esac
7434 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7435 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7436 LD=${LD-ld}_sol2
7437 fi
7438 ;;
7439 *)
7440 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7441 LD="${LD-ld} -64"
7442 fi
7443 ;;
7444 esac
7445 ;;
7446 esac
7447 fi
7448 rm -rf conftest*
7449 ;;
7450 esac
7451
7452 need_locks=$enable_libtool_lock
7453
7454 if test -n "$ac_tool_prefix"; then
7455 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7456 set dummy ${ac_tool_prefix}mt; ac_word=$2
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7458 $as_echo_n "checking for $ac_word... " >&6; }
7459 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7460 $as_echo_n "(cached) " >&6
7461 else
7462 if test -n "$MANIFEST_TOOL"; then
7463 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7464 else
7465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466 for as_dir in $PATH
7467 do
7468 IFS=$as_save_IFS
7469 test -z "$as_dir" && as_dir=.
7470 for ac_exec_ext in '' $ac_executable_extensions; do
7471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7472 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7474 break 2
7475 fi
7476 done
7477 done
7478 IFS=$as_save_IFS
7479
7480 fi
7481 fi
7482 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7483 if test -n "$MANIFEST_TOOL"; then
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7485 $as_echo "$MANIFEST_TOOL" >&6; }
7486 else
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7488 $as_echo "no" >&6; }
7489 fi
7490
7491
7492 fi
7493 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7494 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7495 # Extract the first word of "mt", so it can be a program name with args.
7496 set dummy mt; ac_word=$2
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7498 $as_echo_n "checking for $ac_word... " >&6; }
7499 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7500 $as_echo_n "(cached) " >&6
7501 else
7502 if test -n "$ac_ct_MANIFEST_TOOL"; then
7503 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7504 else
7505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506 for as_dir in $PATH
7507 do
7508 IFS=$as_save_IFS
7509 test -z "$as_dir" && as_dir=.
7510 for ac_exec_ext in '' $ac_executable_extensions; do
7511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7512 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7514 break 2
7515 fi
7516 done
7517 done
7518 IFS=$as_save_IFS
7519
7520 fi
7521 fi
7522 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7523 if test -n "$ac_ct_MANIFEST_TOOL"; then
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7525 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7526 else
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7528 $as_echo "no" >&6; }
7529 fi
7530
7531 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7532 MANIFEST_TOOL=":"
7533 else
7534 case $cross_compiling:$ac_tool_warned in
7535 yes:)
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7537 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7538 ac_tool_warned=yes ;;
7539 esac
7540 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7541 fi
7542 else
7543 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7544 fi
7545
7546 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7548 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7549 if ${lt_cv_path_mainfest_tool+:} false; then :
7550 $as_echo_n "(cached) " >&6
7551 else
7552 lt_cv_path_mainfest_tool=no
7553 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7554 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7555 cat conftest.err >&5
7556 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7557 lt_cv_path_mainfest_tool=yes
7558 fi
7559 rm -f conftest*
7560 fi
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7562 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7563 if test yes != "$lt_cv_path_mainfest_tool"; then
7564 MANIFEST_TOOL=:
7565 fi
7566
7567
7568
7569
7570
7571
7572 case $host_os in
7573 rhapsody* | darwin*)
7574 if test -n "$ac_tool_prefix"; then
7575 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7576 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7578 $as_echo_n "checking for $ac_word... " >&6; }
7579 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7580 $as_echo_n "(cached) " >&6
7581 else
7582 if test -n "$DSYMUTIL"; then
7583 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7584 else
7585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7586 for as_dir in $PATH
7587 do
7588 IFS=$as_save_IFS
7589 test -z "$as_dir" && as_dir=.
7590 for ac_exec_ext in '' $ac_executable_extensions; do
7591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7592 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7594 break 2
7595 fi
7596 done
7597 done
7598 IFS=$as_save_IFS
7599
7600 fi
7601 fi
7602 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7603 if test -n "$DSYMUTIL"; then
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7605 $as_echo "$DSYMUTIL" >&6; }
7606 else
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7608 $as_echo "no" >&6; }
7609 fi
7610
7611
7612 fi
7613 if test -z "$ac_cv_prog_DSYMUTIL"; then
7614 ac_ct_DSYMUTIL=$DSYMUTIL
7615 # Extract the first word of "dsymutil", so it can be a program name with args.
7616 set dummy dsymutil; ac_word=$2
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7618 $as_echo_n "checking for $ac_word... " >&6; }
7619 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7620 $as_echo_n "(cached) " >&6
7621 else
7622 if test -n "$ac_ct_DSYMUTIL"; then
7623 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7624 else
7625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7626 for as_dir in $PATH
7627 do
7628 IFS=$as_save_IFS
7629 test -z "$as_dir" && as_dir=.
7630 for ac_exec_ext in '' $ac_executable_extensions; do
7631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7632 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7634 break 2
7635 fi
7636 done
7637 done
7638 IFS=$as_save_IFS
7639
7640 fi
7641 fi
7642 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7643 if test -n "$ac_ct_DSYMUTIL"; then
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7645 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7646 else
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7648 $as_echo "no" >&6; }
7649 fi
7650
7651 if test "x$ac_ct_DSYMUTIL" = x; then
7652 DSYMUTIL=":"
7653 else
7654 case $cross_compiling:$ac_tool_warned in
7655 yes:)
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7658 ac_tool_warned=yes ;;
7659 esac
7660 DSYMUTIL=$ac_ct_DSYMUTIL
7661 fi
7662 else
7663 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7664 fi
7665
7666 if test -n "$ac_tool_prefix"; then
7667 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7668 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7670 $as_echo_n "checking for $ac_word... " >&6; }
7671 if ${ac_cv_prog_NMEDIT+:} false; then :
7672 $as_echo_n "(cached) " >&6
7673 else
7674 if test -n "$NMEDIT"; then
7675 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7676 else
7677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678 for as_dir in $PATH
7679 do
7680 IFS=$as_save_IFS
7681 test -z "$as_dir" && as_dir=.
7682 for ac_exec_ext in '' $ac_executable_extensions; do
7683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7684 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7686 break 2
7687 fi
7688 done
7689 done
7690 IFS=$as_save_IFS
7691
7692 fi
7693 fi
7694 NMEDIT=$ac_cv_prog_NMEDIT
7695 if test -n "$NMEDIT"; then
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7697 $as_echo "$NMEDIT" >&6; }
7698 else
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7700 $as_echo "no" >&6; }
7701 fi
7702
7703
7704 fi
7705 if test -z "$ac_cv_prog_NMEDIT"; then
7706 ac_ct_NMEDIT=$NMEDIT
7707 # Extract the first word of "nmedit", so it can be a program name with args.
7708 set dummy nmedit; ac_word=$2
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7710 $as_echo_n "checking for $ac_word... " >&6; }
7711 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7712 $as_echo_n "(cached) " >&6
7713 else
7714 if test -n "$ac_ct_NMEDIT"; then
7715 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7716 else
7717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7718 for as_dir in $PATH
7719 do
7720 IFS=$as_save_IFS
7721 test -z "$as_dir" && as_dir=.
7722 for ac_exec_ext in '' $ac_executable_extensions; do
7723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7724 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7726 break 2
7727 fi
7728 done
7729 done
7730 IFS=$as_save_IFS
7731
7732 fi
7733 fi
7734 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7735 if test -n "$ac_ct_NMEDIT"; then
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7737 $as_echo "$ac_ct_NMEDIT" >&6; }
7738 else
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7740 $as_echo "no" >&6; }
7741 fi
7742
7743 if test "x$ac_ct_NMEDIT" = x; then
7744 NMEDIT=":"
7745 else
7746 case $cross_compiling:$ac_tool_warned in
7747 yes:)
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7749 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7750 ac_tool_warned=yes ;;
7751 esac
7752 NMEDIT=$ac_ct_NMEDIT
7753 fi
7754 else
7755 NMEDIT="$ac_cv_prog_NMEDIT"
7756 fi
7757
7758 if test -n "$ac_tool_prefix"; then
7759 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7760 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7762 $as_echo_n "checking for $ac_word... " >&6; }
7763 if ${ac_cv_prog_LIPO+:} false; then :
7764 $as_echo_n "(cached) " >&6
7765 else
7766 if test -n "$LIPO"; then
7767 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7768 else
7769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7770 for as_dir in $PATH
7771 do
7772 IFS=$as_save_IFS
7773 test -z "$as_dir" && as_dir=.
7774 for ac_exec_ext in '' $ac_executable_extensions; do
7775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7776 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7778 break 2
7779 fi
7780 done
7781 done
7782 IFS=$as_save_IFS
7783
7784 fi
7785 fi
7786 LIPO=$ac_cv_prog_LIPO
7787 if test -n "$LIPO"; then
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7789 $as_echo "$LIPO" >&6; }
7790 else
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792 $as_echo "no" >&6; }
7793 fi
7794
7795
7796 fi
7797 if test -z "$ac_cv_prog_LIPO"; then
7798 ac_ct_LIPO=$LIPO
7799 # Extract the first word of "lipo", so it can be a program name with args.
7800 set dummy lipo; ac_word=$2
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7802 $as_echo_n "checking for $ac_word... " >&6; }
7803 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7804 $as_echo_n "(cached) " >&6
7805 else
7806 if test -n "$ac_ct_LIPO"; then
7807 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7808 else
7809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7810 for as_dir in $PATH
7811 do
7812 IFS=$as_save_IFS
7813 test -z "$as_dir" && as_dir=.
7814 for ac_exec_ext in '' $ac_executable_extensions; do
7815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7816 ac_cv_prog_ac_ct_LIPO="lipo"
7817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7818 break 2
7819 fi
7820 done
7821 done
7822 IFS=$as_save_IFS
7823
7824 fi
7825 fi
7826 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7827 if test -n "$ac_ct_LIPO"; then
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7829 $as_echo "$ac_ct_LIPO" >&6; }
7830 else
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7832 $as_echo "no" >&6; }
7833 fi
7834
7835 if test "x$ac_ct_LIPO" = x; then
7836 LIPO=":"
7837 else
7838 case $cross_compiling:$ac_tool_warned in
7839 yes:)
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7842 ac_tool_warned=yes ;;
7843 esac
7844 LIPO=$ac_ct_LIPO
7845 fi
7846 else
7847 LIPO="$ac_cv_prog_LIPO"
7848 fi
7849
7850 if test -n "$ac_tool_prefix"; then
7851 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7852 set dummy ${ac_tool_prefix}otool; ac_word=$2
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7854 $as_echo_n "checking for $ac_word... " >&6; }
7855 if ${ac_cv_prog_OTOOL+:} false; then :
7856 $as_echo_n "(cached) " >&6
7857 else
7858 if test -n "$OTOOL"; then
7859 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7860 else
7861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7862 for as_dir in $PATH
7863 do
7864 IFS=$as_save_IFS
7865 test -z "$as_dir" && as_dir=.
7866 for ac_exec_ext in '' $ac_executable_extensions; do
7867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7868 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7870 break 2
7871 fi
7872 done
7873 done
7874 IFS=$as_save_IFS
7875
7876 fi
7877 fi
7878 OTOOL=$ac_cv_prog_OTOOL
7879 if test -n "$OTOOL"; then
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7881 $as_echo "$OTOOL" >&6; }
7882 else
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7884 $as_echo "no" >&6; }
7885 fi
7886
7887
7888 fi
7889 if test -z "$ac_cv_prog_OTOOL"; then
7890 ac_ct_OTOOL=$OTOOL
7891 # Extract the first word of "otool", so it can be a program name with args.
7892 set dummy otool; ac_word=$2
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7894 $as_echo_n "checking for $ac_word... " >&6; }
7895 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7896 $as_echo_n "(cached) " >&6
7897 else
7898 if test -n "$ac_ct_OTOOL"; then
7899 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7900 else
7901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7902 for as_dir in $PATH
7903 do
7904 IFS=$as_save_IFS
7905 test -z "$as_dir" && as_dir=.
7906 for ac_exec_ext in '' $ac_executable_extensions; do
7907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7908 ac_cv_prog_ac_ct_OTOOL="otool"
7909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7910 break 2
7911 fi
7912 done
7913 done
7914 IFS=$as_save_IFS
7915
7916 fi
7917 fi
7918 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7919 if test -n "$ac_ct_OTOOL"; then
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7921 $as_echo "$ac_ct_OTOOL" >&6; }
7922 else
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7924 $as_echo "no" >&6; }
7925 fi
7926
7927 if test "x$ac_ct_OTOOL" = x; then
7928 OTOOL=":"
7929 else
7930 case $cross_compiling:$ac_tool_warned in
7931 yes:)
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7933 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7934 ac_tool_warned=yes ;;
7935 esac
7936 OTOOL=$ac_ct_OTOOL
7937 fi
7938 else
7939 OTOOL="$ac_cv_prog_OTOOL"
7940 fi
7941
7942 if test -n "$ac_tool_prefix"; then
7943 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7944 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7946 $as_echo_n "checking for $ac_word... " >&6; }
7947 if ${ac_cv_prog_OTOOL64+:} false; then :
7948 $as_echo_n "(cached) " >&6
7949 else
7950 if test -n "$OTOOL64"; then
7951 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7952 else
7953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7954 for as_dir in $PATH
7955 do
7956 IFS=$as_save_IFS
7957 test -z "$as_dir" && as_dir=.
7958 for ac_exec_ext in '' $ac_executable_extensions; do
7959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7960 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7962 break 2
7963 fi
7964 done
7965 done
7966 IFS=$as_save_IFS
7967
7968 fi
7969 fi
7970 OTOOL64=$ac_cv_prog_OTOOL64
7971 if test -n "$OTOOL64"; then
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7973 $as_echo "$OTOOL64" >&6; }
7974 else
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7976 $as_echo "no" >&6; }
7977 fi
7978
7979
7980 fi
7981 if test -z "$ac_cv_prog_OTOOL64"; then
7982 ac_ct_OTOOL64=$OTOOL64
7983 # Extract the first word of "otool64", so it can be a program name with args.
7984 set dummy otool64; ac_word=$2
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7986 $as_echo_n "checking for $ac_word... " >&6; }
7987 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7988 $as_echo_n "(cached) " >&6
7989 else
7990 if test -n "$ac_ct_OTOOL64"; then
7991 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7992 else
7993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7994 for as_dir in $PATH
7995 do
7996 IFS=$as_save_IFS
7997 test -z "$as_dir" && as_dir=.
7998 for ac_exec_ext in '' $ac_executable_extensions; do
7999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8000 ac_cv_prog_ac_ct_OTOOL64="otool64"
8001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8002 break 2
8003 fi
8004 done
8005 done
8006 IFS=$as_save_IFS
8007
8008 fi
8009 fi
8010 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8011 if test -n "$ac_ct_OTOOL64"; then
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8013 $as_echo "$ac_ct_OTOOL64" >&6; }
8014 else
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8016 $as_echo "no" >&6; }
8017 fi
8018
8019 if test "x$ac_ct_OTOOL64" = x; then
8020 OTOOL64=":"
8021 else
8022 case $cross_compiling:$ac_tool_warned in
8023 yes:)
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8026 ac_tool_warned=yes ;;
8027 esac
8028 OTOOL64=$ac_ct_OTOOL64
8029 fi
8030 else
8031 OTOOL64="$ac_cv_prog_OTOOL64"
8032 fi
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8061 $as_echo_n "checking for -single_module linker flag... " >&6; }
8062 if ${lt_cv_apple_cc_single_mod+:} false; then :
8063 $as_echo_n "(cached) " >&6
8064 else
8065 lt_cv_apple_cc_single_mod=no
8066 if test -z "$LT_MULTI_MODULE"; then
8067 # By default we will add the -single_module flag. You can override
8068 # by either setting the environment variable LT_MULTI_MODULE
8069 # non-empty at configure time, or by adding -multi_module to the
8070 # link flags.
8071 rm -rf libconftest.dylib*
8072 echo "int foo(void){return 1;}" > conftest.c
8073 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8074 -dynamiclib -Wl,-single_module conftest.c" >&5
8075 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8076 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8077 _lt_result=$?
8078 # If there is a non-empty error log, and "single_module"
8079 # appears in it, assume the flag caused a linker warning
8080 if test -s conftest.err && $GREP single_module conftest.err; then
8081 cat conftest.err >&5
8082 # Otherwise, if the output was created with a 0 exit code from
8083 # the compiler, it worked.
8084 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8085 lt_cv_apple_cc_single_mod=yes
8086 else
8087 cat conftest.err >&5
8088 fi
8089 rm -rf libconftest.dylib*
8090 rm -f conftest.*
8091 fi
8092 fi
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8094 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8095
8096 # Feature test to disable chained fixups since it is not
8097 # compatible with '-undefined dynamic_lookup'
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
8099 $as_echo_n "checking for -no_fixup_chains linker flag... " >&6; }
8100 if ${lt_cv_support_no_fixup_chains+:} false; then :
8101 $as_echo_n "(cached) " >&6
8102 else
8103 save_LDFLAGS=$LDFLAGS
8104 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
8105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8106 /* end confdefs.h. */
8107
8108 int
8109 main ()
8110 {
8111
8112 ;
8113 return 0;
8114 }
8115 _ACEOF
8116 if ac_fn_c_try_link "$LINENO"; then :
8117 lt_cv_support_no_fixup_chains=yes
8118 else
8119 lt_cv_support_no_fixup_chains=no
8120
8121 fi
8122 rm -f core conftest.err conftest.$ac_objext \
8123 conftest$ac_exeext conftest.$ac_ext
8124 LDFLAGS=$save_LDFLAGS
8125
8126
8127 fi
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
8129 $as_echo "$lt_cv_support_no_fixup_chains" >&6; }
8130
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8132 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8133 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8134 $as_echo_n "(cached) " >&6
8135 else
8136 lt_cv_ld_exported_symbols_list=no
8137 save_LDFLAGS=$LDFLAGS
8138 echo "_main" > conftest.sym
8139 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8141 /* end confdefs.h. */
8142
8143 int
8144 main ()
8145 {
8146
8147 ;
8148 return 0;
8149 }
8150 _ACEOF
8151 if ac_fn_c_try_link "$LINENO"; then :
8152 lt_cv_ld_exported_symbols_list=yes
8153 else
8154 lt_cv_ld_exported_symbols_list=no
8155 fi
8156 rm -f core conftest.err conftest.$ac_objext \
8157 conftest$ac_exeext conftest.$ac_ext
8158 LDFLAGS=$save_LDFLAGS
8159
8160 fi
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8162 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8163
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8165 $as_echo_n "checking for -force_load linker flag... " >&6; }
8166 if ${lt_cv_ld_force_load+:} false; then :
8167 $as_echo_n "(cached) " >&6
8168 else
8169 lt_cv_ld_force_load=no
8170 cat > conftest.c << _LT_EOF
8171 int forced_loaded() { return 2;}
8172 _LT_EOF
8173 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8174 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8175 echo "$AR cru libconftest.a conftest.o" >&5
8176 $AR cru libconftest.a conftest.o 2>&5
8177 echo "$RANLIB libconftest.a" >&5
8178 $RANLIB libconftest.a 2>&5
8179 cat > conftest.c << _LT_EOF
8180 int main(void) { return 0;}
8181 _LT_EOF
8182 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8183 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8184 _lt_result=$?
8185 if test -s conftest.err && $GREP force_load conftest.err; then
8186 cat conftest.err >&5
8187 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8188 lt_cv_ld_force_load=yes
8189 else
8190 cat conftest.err >&5
8191 fi
8192 rm -f conftest.err libconftest.a conftest conftest.c
8193 rm -rf conftest.dSYM
8194
8195 fi
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8197 $as_echo "$lt_cv_ld_force_load" >&6; }
8198 case $host_os in
8199 rhapsody* | darwin1.[012])
8200 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8201 darwin1.*)
8202 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8203 darwin*)
8204 case $MACOSX_DEPLOYMENT_TARGET,$host in
8205 10.[012],*|,*powerpc*-darwin[5-8]*)
8206 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8207 *)
8208 if test yes = "$lt_cv_support_no_fixup_chains"; then
8209 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup $wl-no_fixup_chains'
8210 else
8211 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
8212 fi
8213 ;;
8214 esac
8215 ;;
8216 esac
8217 if test yes = "$lt_cv_apple_cc_single_mod"; then
8218 _lt_dar_single_mod='$single_module'
8219 fi
8220 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8221 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8222 else
8223 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8224 fi
8225 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8226 _lt_dsymutil='~$DSYMUTIL $lib || :'
8227 else
8228 _lt_dsymutil=
8229 fi
8230 ;;
8231 esac
8232
8233 # func_munge_path_list VARIABLE PATH
8234 # -----------------------------------
8235 # VARIABLE is name of variable containing _space_ separated list of
8236 # directories to be munged by the contents of PATH, which is string
8237 # having a format:
8238 # "DIR[:DIR]:"
8239 # string "DIR[ DIR]" will be prepended to VARIABLE
8240 # ":DIR[:DIR]"
8241 # string "DIR[ DIR]" will be appended to VARIABLE
8242 # "DIRP[:DIRP]::[DIRA:]DIRA"
8243 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8244 # "DIRA[ DIRA]" will be appended to VARIABLE
8245 # "DIR[:DIR]"
8246 # VARIABLE will be replaced by "DIR[ DIR]"
8247 func_munge_path_list ()
8248 {
8249 case x$2 in
8250 x)
8251 ;;
8252 *:)
8253 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8254 ;;
8255 x:*)
8256 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8257 ;;
8258 *::*)
8259 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8260 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8261 ;;
8262 *)
8263 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8264 ;;
8265 esac
8266 }
8267
8268 ac_ext=c
8269 ac_cpp='$CPP $CPPFLAGS'
8270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8274 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8275 # On Suns, sometimes $CPP names a directory.
8276 if test -n "$CPP" && test -d "$CPP"; then
8277 CPP=
8278 fi
8279 if test -z "$CPP"; then
8280 if ${ac_cv_prog_CPP+:} false; then :
8281 $as_echo_n "(cached) " >&6
8282 else
8283 # Double quotes because CPP needs to be expanded
8284 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8285 do
8286 ac_preproc_ok=false
8287 for ac_c_preproc_warn_flag in '' yes
8288 do
8289 # Use a header file that comes with gcc, so configuring glibc
8290 # with a fresh cross-compiler works.
8291 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8292 # <limits.h> exists even on freestanding compilers.
8293 # On the NeXT, cc -E runs the code through the compiler's parser,
8294 # not just through cpp. "Syntax error" is here to catch this case.
8295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8296 /* end confdefs.h. */
8297 #ifdef __STDC__
8298 # include <limits.h>
8299 #else
8300 # include <assert.h>
8301 #endif
8302 Syntax error
8303 _ACEOF
8304 if ac_fn_c_try_cpp "$LINENO"; then :
8305
8306 else
8307 # Broken: fails on valid input.
8308 continue
8309 fi
8310 rm -f conftest.err conftest.i conftest.$ac_ext
8311
8312 # OK, works on sane cases. Now check whether nonexistent headers
8313 # can be detected and how.
8314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8315 /* end confdefs.h. */
8316 #include <ac_nonexistent.h>
8317 _ACEOF
8318 if ac_fn_c_try_cpp "$LINENO"; then :
8319 # Broken: success on invalid input.
8320 continue
8321 else
8322 # Passes both tests.
8323 ac_preproc_ok=:
8324 break
8325 fi
8326 rm -f conftest.err conftest.i conftest.$ac_ext
8327
8328 done
8329 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8330 rm -f conftest.i conftest.err conftest.$ac_ext
8331 if $ac_preproc_ok; then :
8332 break
8333 fi
8334
8335 done
8336 ac_cv_prog_CPP=$CPP
8337
8338 fi
8339 CPP=$ac_cv_prog_CPP
8340 else
8341 ac_cv_prog_CPP=$CPP
8342 fi
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8344 $as_echo "$CPP" >&6; }
8345 ac_preproc_ok=false
8346 for ac_c_preproc_warn_flag in '' yes
8347 do
8348 # Use a header file that comes with gcc, so configuring glibc
8349 # with a fresh cross-compiler works.
8350 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8351 # <limits.h> exists even on freestanding compilers.
8352 # On the NeXT, cc -E runs the code through the compiler's parser,
8353 # not just through cpp. "Syntax error" is here to catch this case.
8354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8355 /* end confdefs.h. */
8356 #ifdef __STDC__
8357 # include <limits.h>
8358 #else
8359 # include <assert.h>
8360 #endif
8361 Syntax error
8362 _ACEOF
8363 if ac_fn_c_try_cpp "$LINENO"; then :
8364
8365 else
8366 # Broken: fails on valid input.
8367 continue
8368 fi
8369 rm -f conftest.err conftest.i conftest.$ac_ext
8370
8371 # OK, works on sane cases. Now check whether nonexistent headers
8372 # can be detected and how.
8373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8374 /* end confdefs.h. */
8375 #include <ac_nonexistent.h>
8376 _ACEOF
8377 if ac_fn_c_try_cpp "$LINENO"; then :
8378 # Broken: success on invalid input.
8379 continue
8380 else
8381 # Passes both tests.
8382 ac_preproc_ok=:
8383 break
8384 fi
8385 rm -f conftest.err conftest.i conftest.$ac_ext
8386
8387 done
8388 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8389 rm -f conftest.i conftest.err conftest.$ac_ext
8390 if $ac_preproc_ok; then :
8391
8392 else
8393 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8394 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8395 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8396 See \`config.log' for more details" "$LINENO" 5; }
8397 fi
8398
8399 ac_ext=c
8400 ac_cpp='$CPP $CPPFLAGS'
8401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8404
8405
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8407 $as_echo_n "checking for ANSI C header files... " >&6; }
8408 if ${ac_cv_header_stdc+:} false; then :
8409 $as_echo_n "(cached) " >&6
8410 else
8411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8412 /* end confdefs.h. */
8413 #include <stdlib.h>
8414 #include <stdarg.h>
8415 #include <string.h>
8416 #include <float.h>
8417
8418 int
8419 main ()
8420 {
8421
8422 ;
8423 return 0;
8424 }
8425 _ACEOF
8426 if ac_fn_c_try_compile "$LINENO"; then :
8427 ac_cv_header_stdc=yes
8428 else
8429 ac_cv_header_stdc=no
8430 fi
8431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8432
8433 if test $ac_cv_header_stdc = yes; then
8434 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8436 /* end confdefs.h. */
8437 #include <string.h>
8438
8439 _ACEOF
8440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8441 $EGREP "memchr" >/dev/null 2>&1; then :
8442
8443 else
8444 ac_cv_header_stdc=no
8445 fi
8446 rm -f conftest*
8447
8448 fi
8449
8450 if test $ac_cv_header_stdc = yes; then
8451 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8453 /* end confdefs.h. */
8454 #include <stdlib.h>
8455
8456 _ACEOF
8457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8458 $EGREP "free" >/dev/null 2>&1; then :
8459
8460 else
8461 ac_cv_header_stdc=no
8462 fi
8463 rm -f conftest*
8464
8465 fi
8466
8467 if test $ac_cv_header_stdc = yes; then
8468 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8469 if test "$cross_compiling" = yes; then :
8470 :
8471 else
8472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8473 /* end confdefs.h. */
8474 #include <ctype.h>
8475 #include <stdlib.h>
8476 #if ((' ' & 0x0FF) == 0x020)
8477 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8478 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8479 #else
8480 # define ISLOWER(c) \
8481 (('a' <= (c) && (c) <= 'i') \
8482 || ('j' <= (c) && (c) <= 'r') \
8483 || ('s' <= (c) && (c) <= 'z'))
8484 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8485 #endif
8486
8487 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8488 int
8489 main ()
8490 {
8491 int i;
8492 for (i = 0; i < 256; i++)
8493 if (XOR (islower (i), ISLOWER (i))
8494 || toupper (i) != TOUPPER (i))
8495 return 2;
8496 return 0;
8497 }
8498 _ACEOF
8499 if ac_fn_c_try_run "$LINENO"; then :
8500
8501 else
8502 ac_cv_header_stdc=no
8503 fi
8504 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8505 conftest.$ac_objext conftest.beam conftest.$ac_ext
8506 fi
8507
8508 fi
8509 fi
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8511 $as_echo "$ac_cv_header_stdc" >&6; }
8512 if test $ac_cv_header_stdc = yes; then
8513
8514 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8515
8516 fi
8517
8518 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8519 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8520 inttypes.h stdint.h unistd.h
8521 do :
8522 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8523 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8524 "
8525 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8526 cat >>confdefs.h <<_ACEOF
8527 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8528 _ACEOF
8529
8530 fi
8531
8532 done
8533
8534
8535 for ac_header in dlfcn.h
8536 do :
8537 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8538 "
8539 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8540 cat >>confdefs.h <<_ACEOF
8541 #define HAVE_DLFCN_H 1
8542 _ACEOF
8543
8544 fi
8545
8546 done
8547
8548
8549
8550
8551
8552 # Set options
8553 enable_win32_dll=yes
8554
8555 case $host in
8556 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
8557 if test -n "$ac_tool_prefix"; then
8558 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8559 set dummy ${ac_tool_prefix}as; ac_word=$2
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8561 $as_echo_n "checking for $ac_word... " >&6; }
8562 if ${ac_cv_prog_AS+:} false; then :
8563 $as_echo_n "(cached) " >&6
8564 else
8565 if test -n "$AS"; then
8566 ac_cv_prog_AS="$AS" # Let the user override the test.
8567 else
8568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8569 for as_dir in $PATH
8570 do
8571 IFS=$as_save_IFS
8572 test -z "$as_dir" && as_dir=.
8573 for ac_exec_ext in '' $ac_executable_extensions; do
8574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8575 ac_cv_prog_AS="${ac_tool_prefix}as"
8576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8577 break 2
8578 fi
8579 done
8580 done
8581 IFS=$as_save_IFS
8582
8583 fi
8584 fi
8585 AS=$ac_cv_prog_AS
8586 if test -n "$AS"; then
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8588 $as_echo "$AS" >&6; }
8589 else
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8591 $as_echo "no" >&6; }
8592 fi
8593
8594
8595 fi
8596 if test -z "$ac_cv_prog_AS"; then
8597 ac_ct_AS=$AS
8598 # Extract the first word of "as", so it can be a program name with args.
8599 set dummy as; ac_word=$2
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8601 $as_echo_n "checking for $ac_word... " >&6; }
8602 if ${ac_cv_prog_ac_ct_AS+:} false; then :
8603 $as_echo_n "(cached) " >&6
8604 else
8605 if test -n "$ac_ct_AS"; then
8606 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8607 else
8608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8609 for as_dir in $PATH
8610 do
8611 IFS=$as_save_IFS
8612 test -z "$as_dir" && as_dir=.
8613 for ac_exec_ext in '' $ac_executable_extensions; do
8614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8615 ac_cv_prog_ac_ct_AS="as"
8616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8617 break 2
8618 fi
8619 done
8620 done
8621 IFS=$as_save_IFS
8622
8623 fi
8624 fi
8625 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8626 if test -n "$ac_ct_AS"; then
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8628 $as_echo "$ac_ct_AS" >&6; }
8629 else
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8631 $as_echo "no" >&6; }
8632 fi
8633
8634 if test "x$ac_ct_AS" = x; then
8635 AS="false"
8636 else
8637 case $cross_compiling:$ac_tool_warned in
8638 yes:)
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8641 ac_tool_warned=yes ;;
8642 esac
8643 AS=$ac_ct_AS
8644 fi
8645 else
8646 AS="$ac_cv_prog_AS"
8647 fi
8648
8649 if test -n "$ac_tool_prefix"; then
8650 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8651 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8653 $as_echo_n "checking for $ac_word... " >&6; }
8654 if ${ac_cv_prog_DLLTOOL+:} false; then :
8655 $as_echo_n "(cached) " >&6
8656 else
8657 if test -n "$DLLTOOL"; then
8658 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8659 else
8660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8661 for as_dir in $PATH
8662 do
8663 IFS=$as_save_IFS
8664 test -z "$as_dir" && as_dir=.
8665 for ac_exec_ext in '' $ac_executable_extensions; do
8666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8667 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8669 break 2
8670 fi
8671 done
8672 done
8673 IFS=$as_save_IFS
8674
8675 fi
8676 fi
8677 DLLTOOL=$ac_cv_prog_DLLTOOL
8678 if test -n "$DLLTOOL"; then
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8680 $as_echo "$DLLTOOL" >&6; }
8681 else
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8683 $as_echo "no" >&6; }
8684 fi
8685
8686
8687 fi
8688 if test -z "$ac_cv_prog_DLLTOOL"; then
8689 ac_ct_DLLTOOL=$DLLTOOL
8690 # Extract the first word of "dlltool", so it can be a program name with args.
8691 set dummy dlltool; ac_word=$2
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8693 $as_echo_n "checking for $ac_word... " >&6; }
8694 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8695 $as_echo_n "(cached) " >&6
8696 else
8697 if test -n "$ac_ct_DLLTOOL"; then
8698 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8699 else
8700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8701 for as_dir in $PATH
8702 do
8703 IFS=$as_save_IFS
8704 test -z "$as_dir" && as_dir=.
8705 for ac_exec_ext in '' $ac_executable_extensions; do
8706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8707 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8709 break 2
8710 fi
8711 done
8712 done
8713 IFS=$as_save_IFS
8714
8715 fi
8716 fi
8717 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8718 if test -n "$ac_ct_DLLTOOL"; then
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8720 $as_echo "$ac_ct_DLLTOOL" >&6; }
8721 else
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8723 $as_echo "no" >&6; }
8724 fi
8725
8726 if test "x$ac_ct_DLLTOOL" = x; then
8727 DLLTOOL="false"
8728 else
8729 case $cross_compiling:$ac_tool_warned in
8730 yes:)
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8733 ac_tool_warned=yes ;;
8734 esac
8735 DLLTOOL=$ac_ct_DLLTOOL
8736 fi
8737 else
8738 DLLTOOL="$ac_cv_prog_DLLTOOL"
8739 fi
8740
8741 if test -n "$ac_tool_prefix"; then
8742 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8743 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8745 $as_echo_n "checking for $ac_word... " >&6; }
8746 if ${ac_cv_prog_OBJDUMP+:} false; then :
8747 $as_echo_n "(cached) " >&6
8748 else
8749 if test -n "$OBJDUMP"; then
8750 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8751 else
8752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8753 for as_dir in $PATH
8754 do
8755 IFS=$as_save_IFS
8756 test -z "$as_dir" && as_dir=.
8757 for ac_exec_ext in '' $ac_executable_extensions; do
8758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8759 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8761 break 2
8762 fi
8763 done
8764 done
8765 IFS=$as_save_IFS
8766
8767 fi
8768 fi
8769 OBJDUMP=$ac_cv_prog_OBJDUMP
8770 if test -n "$OBJDUMP"; then
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8772 $as_echo "$OBJDUMP" >&6; }
8773 else
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8775 $as_echo "no" >&6; }
8776 fi
8777
8778
8779 fi
8780 if test -z "$ac_cv_prog_OBJDUMP"; then
8781 ac_ct_OBJDUMP=$OBJDUMP
8782 # Extract the first word of "objdump", so it can be a program name with args.
8783 set dummy objdump; ac_word=$2
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8785 $as_echo_n "checking for $ac_word... " >&6; }
8786 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8787 $as_echo_n "(cached) " >&6
8788 else
8789 if test -n "$ac_ct_OBJDUMP"; then
8790 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8791 else
8792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8793 for as_dir in $PATH
8794 do
8795 IFS=$as_save_IFS
8796 test -z "$as_dir" && as_dir=.
8797 for ac_exec_ext in '' $ac_executable_extensions; do
8798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8799 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8801 break 2
8802 fi
8803 done
8804 done
8805 IFS=$as_save_IFS
8806
8807 fi
8808 fi
8809 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8810 if test -n "$ac_ct_OBJDUMP"; then
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8812 $as_echo "$ac_ct_OBJDUMP" >&6; }
8813 else
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8815 $as_echo "no" >&6; }
8816 fi
8817
8818 if test "x$ac_ct_OBJDUMP" = x; then
8819 OBJDUMP="false"
8820 else
8821 case $cross_compiling:$ac_tool_warned in
8822 yes:)
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8825 ac_tool_warned=yes ;;
8826 esac
8827 OBJDUMP=$ac_ct_OBJDUMP
8828 fi
8829 else
8830 OBJDUMP="$ac_cv_prog_OBJDUMP"
8831 fi
8832
8833 ;;
8834 esac
8835
8836 test -z "$AS" && AS=as
8837
8838
8839
8840
8841
8842 test -z "$DLLTOOL" && DLLTOOL=dlltool
8843
8844
8845
8846
8847
8848 test -z "$OBJDUMP" && OBJDUMP=objdump
8849
8850
8851
8852
8853
8854
8855
8856 enable_dlopen=no
8857
8858
8859
8860 # Check whether --enable-shared was given.
8861 if test "${enable_shared+set}" = set; then :
8862 enableval=$enable_shared; p=${PACKAGE-default}
8863 case $enableval in
8864 yes) enable_shared=yes ;;
8865 no) enable_shared=no ;;
8866 *)
8867 enable_shared=no
8868 # Look at the argument we got. We use all the common list separators.
8869 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8870 for pkg in $enableval; do
8871 IFS=$lt_save_ifs
8872 if test "X$pkg" = "X$p"; then
8873 enable_shared=yes
8874 fi
8875 done
8876 IFS=$lt_save_ifs
8877 ;;
8878 esac
8879 else
8880 enable_shared=yes
8881 fi
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891 # Check whether --enable-static was given.
8892 if test "${enable_static+set}" = set; then :
8893 enableval=$enable_static; p=${PACKAGE-default}
8894 case $enableval in
8895 yes) enable_static=yes ;;
8896 no) enable_static=no ;;
8897 *)
8898 enable_static=no
8899 # Look at the argument we got. We use all the common list separators.
8900 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8901 for pkg in $enableval; do
8902 IFS=$lt_save_ifs
8903 if test "X$pkg" = "X$p"; then
8904 enable_static=yes
8905 fi
8906 done
8907 IFS=$lt_save_ifs
8908 ;;
8909 esac
8910 else
8911 enable_static=yes
8912 fi
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923 # Check whether --with-pic was given.
8924 if test "${with_pic+set}" = set; then :
8925 withval=$with_pic; lt_p=${PACKAGE-default}
8926 case $withval in
8927 yes|no) pic_mode=$withval ;;
8928 *)
8929 pic_mode=default
8930 # Look at the argument we got. We use all the common list separators.
8931 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8932 for lt_pkg in $withval; do
8933 IFS=$lt_save_ifs
8934 if test "X$lt_pkg" = "X$lt_p"; then
8935 pic_mode=yes
8936 fi
8937 done
8938 IFS=$lt_save_ifs
8939 ;;
8940 esac
8941 else
8942 pic_mode=default
8943 fi
8944
8945
8946
8947
8948
8949
8950
8951
8952 # Check whether --enable-fast-install was given.
8953 if test "${enable_fast_install+set}" = set; then :
8954 enableval=$enable_fast_install; p=${PACKAGE-default}
8955 case $enableval in
8956 yes) enable_fast_install=yes ;;
8957 no) enable_fast_install=no ;;
8958 *)
8959 enable_fast_install=no
8960 # Look at the argument we got. We use all the common list separators.
8961 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8962 for pkg in $enableval; do
8963 IFS=$lt_save_ifs
8964 if test "X$pkg" = "X$p"; then
8965 enable_fast_install=yes
8966 fi
8967 done
8968 IFS=$lt_save_ifs
8969 ;;
8970 esac
8971 else
8972 enable_fast_install=yes
8973 fi
8974
8975
8976
8977
8978
8979
8980
8981
8982 shared_archive_member_spec=
8983 case $host,$enable_shared in
8984 power*-*-aix[5-9]*,yes)
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8986 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8987
8988 # Check whether --with-aix-soname was given.
8989 if test "${with_aix_soname+set}" = set; then :
8990 withval=$with_aix_soname; case $withval in
8991 aix|svr4|both)
8992 ;;
8993 *)
8994 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8995 ;;
8996 esac
8997 lt_cv_with_aix_soname=$with_aix_soname
8998 else
8999 if ${lt_cv_with_aix_soname+:} false; then :
9000 $as_echo_n "(cached) " >&6
9001 else
9002 lt_cv_with_aix_soname=aix
9003 fi
9004
9005 with_aix_soname=$lt_cv_with_aix_soname
9006 fi
9007
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9009 $as_echo "$with_aix_soname" >&6; }
9010 if test aix != "$with_aix_soname"; then
9011 # For the AIX way of multilib, we name the shared archive member
9012 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9013 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9014 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9015 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9016 if test 64 = "${OBJECT_MODE-32}"; then
9017 shared_archive_member_spec=shr_64
9018 else
9019 shared_archive_member_spec=shr
9020 fi
9021 fi
9022 ;;
9023 *)
9024 with_aix_soname=aix
9025 ;;
9026 esac
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037 # This can be used to rebuild libtool when needed
9038 LIBTOOL_DEPS=$ltmain
9039
9040 # Always use our own libtool.
9041 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072 test -z "$LN_S" && LN_S="ln -s"
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087 if test -n "${ZSH_VERSION+set}"; then
9088 setopt NO_GLOB_SUBST
9089 fi
9090
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9092 $as_echo_n "checking for objdir... " >&6; }
9093 if ${lt_cv_objdir+:} false; then :
9094 $as_echo_n "(cached) " >&6
9095 else
9096 rm -f .libs 2>/dev/null
9097 mkdir .libs 2>/dev/null
9098 if test -d .libs; then
9099 lt_cv_objdir=.libs
9100 else
9101 # MS-DOS does not allow filenames that begin with a dot.
9102 lt_cv_objdir=_libs
9103 fi
9104 rmdir .libs 2>/dev/null
9105 fi
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9107 $as_echo "$lt_cv_objdir" >&6; }
9108 objdir=$lt_cv_objdir
9109
9110
9111
9112
9113
9114 cat >>confdefs.h <<_ACEOF
9115 #define LT_OBJDIR "$lt_cv_objdir/"
9116 _ACEOF
9117
9118
9119
9120
9121 case $host_os in
9122 aix3*)
9123 # AIX sometimes has problems with the GCC collect2 program. For some
9124 # reason, if we set the COLLECT_NAMES environment variable, the problems
9125 # vanish in a puff of smoke.
9126 if test set != "${COLLECT_NAMES+set}"; then
9127 COLLECT_NAMES=
9128 export COLLECT_NAMES
9129 fi
9130 ;;
9131 esac
9132
9133 # Global variables:
9134 ofile=libtool
9135 can_build_shared=yes
9136
9137 # All known linkers require a '.a' archive for static linking (except MSVC and
9138 # ICC, which need '.lib').
9139 libext=a
9140
9141 with_gnu_ld=$lt_cv_prog_gnu_ld
9142
9143 old_CC=$CC
9144 old_CFLAGS=$CFLAGS
9145
9146 # Set sane defaults for various variables
9147 test -z "$CC" && CC=cc
9148 test -z "$LTCC" && LTCC=$CC
9149 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9150 test -z "$LD" && LD=ld
9151 test -z "$ac_objext" && ac_objext=o
9152
9153 func_cc_basename $compiler
9154 cc_basename=$func_cc_basename_result
9155
9156
9157 # Only perform the check for file, if the check method requires it
9158 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9159 case $deplibs_check_method in
9160 file_magic*)
9161 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9163 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9164 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9165 $as_echo_n "(cached) " >&6
9166 else
9167 case $MAGIC_CMD in
9168 [\\/*] | ?:[\\/]*)
9169 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9170 ;;
9171 *)
9172 lt_save_MAGIC_CMD=$MAGIC_CMD
9173 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9174 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9175 for ac_dir in $ac_dummy; do
9176 IFS=$lt_save_ifs
9177 test -z "$ac_dir" && ac_dir=.
9178 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9179 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9180 if test -n "$file_magic_test_file"; then
9181 case $deplibs_check_method in
9182 "file_magic "*)
9183 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9184 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9185 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9186 $EGREP "$file_magic_regex" > /dev/null; then
9187 :
9188 else
9189 cat <<_LT_EOF 1>&2
9190
9191 *** Warning: the command libtool uses to detect shared libraries,
9192 *** $file_magic_cmd, produces output that libtool cannot recognize.
9193 *** The result is that libtool may fail to recognize shared libraries
9194 *** as such. This will affect the creation of libtool libraries that
9195 *** depend on shared libraries, but programs linked with such libtool
9196 *** libraries will work regardless of this problem. Nevertheless, you
9197 *** may want to report the problem to your system manager and/or to
9198 *** [email protected]
9199
9200 _LT_EOF
9201 fi ;;
9202 esac
9203 fi
9204 break
9205 fi
9206 done
9207 IFS=$lt_save_ifs
9208 MAGIC_CMD=$lt_save_MAGIC_CMD
9209 ;;
9210 esac
9211 fi
9212
9213 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9214 if test -n "$MAGIC_CMD"; then
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9216 $as_echo "$MAGIC_CMD" >&6; }
9217 else
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9219 $as_echo "no" >&6; }
9220 fi
9221
9222
9223
9224
9225
9226 if test -z "$lt_cv_path_MAGIC_CMD"; then
9227 if test -n "$ac_tool_prefix"; then
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9229 $as_echo_n "checking for file... " >&6; }
9230 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9231 $as_echo_n "(cached) " >&6
9232 else
9233 case $MAGIC_CMD in
9234 [\\/*] | ?:[\\/]*)
9235 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9236 ;;
9237 *)
9238 lt_save_MAGIC_CMD=$MAGIC_CMD
9239 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9240 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9241 for ac_dir in $ac_dummy; do
9242 IFS=$lt_save_ifs
9243 test -z "$ac_dir" && ac_dir=.
9244 if test -f "$ac_dir/file"; then
9245 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9246 if test -n "$file_magic_test_file"; then
9247 case $deplibs_check_method in
9248 "file_magic "*)
9249 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9250 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9251 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9252 $EGREP "$file_magic_regex" > /dev/null; then
9253 :
9254 else
9255 cat <<_LT_EOF 1>&2
9256
9257 *** Warning: the command libtool uses to detect shared libraries,
9258 *** $file_magic_cmd, produces output that libtool cannot recognize.
9259 *** The result is that libtool may fail to recognize shared libraries
9260 *** as such. This will affect the creation of libtool libraries that
9261 *** depend on shared libraries, but programs linked with such libtool
9262 *** libraries will work regardless of this problem. Nevertheless, you
9263 *** may want to report the problem to your system manager and/or to
9264 *** [email protected]
9265
9266 _LT_EOF
9267 fi ;;
9268 esac
9269 fi
9270 break
9271 fi
9272 done
9273 IFS=$lt_save_ifs
9274 MAGIC_CMD=$lt_save_MAGIC_CMD
9275 ;;
9276 esac
9277 fi
9278
9279 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9280 if test -n "$MAGIC_CMD"; then
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9282 $as_echo "$MAGIC_CMD" >&6; }
9283 else
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9285 $as_echo "no" >&6; }
9286 fi
9287
9288
9289 else
9290 MAGIC_CMD=:
9291 fi
9292 fi
9293
9294 fi
9295 ;;
9296 esac
9297
9298 # Use C for the default configuration in the libtool script
9299
9300 lt_save_CC=$CC
9301 ac_ext=c
9302 ac_cpp='$CPP $CPPFLAGS'
9303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9306
9307
9308 # Source file extension for C test sources.
9309 ac_ext=c
9310
9311 # Object file extension for compiled C test sources.
9312 objext=o
9313 objext=$objext
9314
9315 # Code to be used in simple compile tests
9316 lt_simple_compile_test_code="int some_variable = 0;"
9317
9318 # Code to be used in simple link tests
9319 lt_simple_link_test_code='int main(void){return(0);}'
9320
9321
9322
9323
9324
9325
9326
9327 # If no C compiler was specified, use CC.
9328 LTCC=${LTCC-"$CC"}
9329
9330 # If no C compiler flags were specified, use CFLAGS.
9331 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9332
9333 # Allow CC to be a program name with arguments.
9334 compiler=$CC
9335
9336 # Save the default compiler, since it gets overwritten when the other
9337 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9338 compiler_DEFAULT=$CC
9339
9340 # save warnings/boilerplate of simple test code
9341 ac_outfile=conftest.$ac_objext
9342 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9343 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9344 _lt_compiler_boilerplate=`cat conftest.err`
9345 $RM conftest*
9346
9347 ac_outfile=conftest.$ac_objext
9348 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9349 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9350 _lt_linker_boilerplate=`cat conftest.err`
9351 $RM -r conftest*
9352
9353
9354 ## CAVEAT EMPTOR:
9355 ## There is no encapsulation within the following macros, do not change
9356 ## the running order or otherwise move them around unless you know exactly
9357 ## what you are doing...
9358 if test -n "$compiler"; then
9359
9360 lt_prog_compiler_no_builtin_flag=
9361
9362 if test yes = "$GCC"; then
9363 case $cc_basename in
9364 nvcc*)
9365 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9366 *)
9367 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9368 esac
9369
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9371 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9372 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9373 $as_echo_n "(cached) " >&6
9374 else
9375 lt_cv_prog_compiler_rtti_exceptions=no
9376 ac_outfile=conftest.$ac_objext
9377 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9378 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9379 # Insert the option either (1) after the last *FLAGS variable, or
9380 # (2) before a word containing "conftest.", or (3) at the end.
9381 # Note that $ac_compile itself does not contain backslashes and begins
9382 # with a dollar sign (not a hyphen), so the echo should work correctly.
9383 # The option is referenced via a variable to avoid confusing sed.
9384 lt_compile=`echo "$ac_compile" | $SED \
9385 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9386 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9387 -e 's:$: $lt_compiler_flag:'`
9388 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9389 (eval "$lt_compile" 2>conftest.err)
9390 ac_status=$?
9391 cat conftest.err >&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 if (exit $ac_status) && test -s "$ac_outfile"; then
9394 # The compiler can only warn and ignore the option if not recognized
9395 # So say no if there are warnings other than the usual output.
9396 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9397 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9398 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9399 lt_cv_prog_compiler_rtti_exceptions=yes
9400 fi
9401 fi
9402 $RM conftest*
9403
9404 fi
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9406 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9407
9408 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9409 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9410 else
9411 :
9412 fi
9413
9414 fi
9415
9416
9417
9418
9419
9420
9421 lt_prog_compiler_wl=
9422 lt_prog_compiler_pic=
9423 lt_prog_compiler_static=
9424
9425
9426 if test yes = "$GCC"; then
9427 lt_prog_compiler_wl='-Wl,'
9428 lt_prog_compiler_static='-static'
9429
9430 case $host_os in
9431 aix*)
9432 # All AIX code is PIC.
9433 if test ia64 = "$host_cpu"; then
9434 # AIX 5 now supports IA64 processor
9435 lt_prog_compiler_static='-Bstatic'
9436 fi
9437 lt_prog_compiler_pic='-fPIC'
9438 ;;
9439
9440 amigaos*)
9441 case $host_cpu in
9442 powerpc)
9443 # see comment about AmigaOS4 .so support
9444 lt_prog_compiler_pic='-fPIC'
9445 ;;
9446 m68k)
9447 # FIXME: we need at least 68020 code to build shared libraries, but
9448 # adding the '-m68020' flag to GCC prevents building anything better,
9449 # like '-m68040'.
9450 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9451 ;;
9452 esac
9453 ;;
9454
9455 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9456 # PIC is the default for these OSes.
9457 ;;
9458
9459 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9460 # This hack is so that the source file can tell whether it is being
9461 # built for inclusion in a dll (and should export symbols for example).
9462 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9463 # (--disable-auto-import) libraries
9464 lt_prog_compiler_pic='-DDLL_EXPORT'
9465 case $host_os in
9466 os2*)
9467 lt_prog_compiler_static='$wl-static'
9468 ;;
9469 esac
9470 ;;
9471
9472 darwin* | rhapsody*)
9473 # PIC is the default on this platform
9474 # Common symbols not allowed in MH_DYLIB files
9475 lt_prog_compiler_pic='-fno-common'
9476 ;;
9477
9478 haiku*)
9479 # PIC is the default for Haiku.
9480 # The "-static" flag exists, but is broken.
9481 lt_prog_compiler_static=
9482 ;;
9483
9484 hpux*)
9485 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9486 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9487 # sets the default TLS model and affects inlining.
9488 case $host_cpu in
9489 hppa*64*)
9490 # +Z the default
9491 ;;
9492 *)
9493 lt_prog_compiler_pic='-fPIC'
9494 ;;
9495 esac
9496 ;;
9497
9498 interix[3-9]*)
9499 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9500 # Instead, we relocate shared libraries at runtime.
9501 ;;
9502
9503 msdosdjgpp*)
9504 # Just because we use GCC doesn't mean we suddenly get shared libraries
9505 # on systems that don't support them.
9506 lt_prog_compiler_can_build_shared=no
9507 enable_shared=no
9508 ;;
9509
9510 *nto* | *qnx*)
9511 # QNX uses GNU C++, but need to define -shared option too, otherwise
9512 # it will coredump.
9513 lt_prog_compiler_pic='-fPIC -shared'
9514 ;;
9515
9516 sysv4*MP*)
9517 if test -d /usr/nec; then
9518 lt_prog_compiler_pic=-Kconform_pic
9519 fi
9520 ;;
9521
9522 *)
9523 lt_prog_compiler_pic='-fPIC'
9524 ;;
9525 esac
9526
9527 case $cc_basename in
9528 nvcc*) # Cuda Compiler Driver 2.2
9529 lt_prog_compiler_wl='-Xlinker '
9530 if test -n "$lt_prog_compiler_pic"; then
9531 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9532 fi
9533 ;;
9534 esac
9535 else
9536 # PORTME Check for flag to pass linker flags through the system compiler.
9537 case $host_os in
9538 aix*)
9539 lt_prog_compiler_wl='-Wl,'
9540 if test ia64 = "$host_cpu"; then
9541 # AIX 5 now supports IA64 processor
9542 lt_prog_compiler_static='-Bstatic'
9543 else
9544 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9545 fi
9546 ;;
9547
9548 darwin* | rhapsody*)
9549 # PIC is the default on this platform
9550 # Common symbols not allowed in MH_DYLIB files
9551 lt_prog_compiler_pic='-fno-common'
9552 case $cc_basename in
9553 nagfor*)
9554 # NAG Fortran compiler
9555 lt_prog_compiler_wl='-Wl,-Wl,,'
9556 lt_prog_compiler_pic='-PIC'
9557 lt_prog_compiler_static='-Bstatic'
9558 ;;
9559 esac
9560 ;;
9561
9562 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9563 # This hack is so that the source file can tell whether it is being
9564 # built for inclusion in a dll (and should export symbols for example).
9565 lt_prog_compiler_pic='-DDLL_EXPORT'
9566 case $host_os in
9567 os2*)
9568 lt_prog_compiler_static='$wl-static'
9569 ;;
9570 esac
9571 ;;
9572
9573 hpux9* | hpux10* | hpux11*)
9574 lt_prog_compiler_wl='-Wl,'
9575 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9576 # not for PA HP-UX.
9577 case $host_cpu in
9578 hppa*64*|ia64*)
9579 # +Z the default
9580 ;;
9581 *)
9582 lt_prog_compiler_pic='+Z'
9583 ;;
9584 esac
9585 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9586 lt_prog_compiler_static='$wl-a ${wl}archive'
9587 ;;
9588
9589 irix5* | irix6* | nonstopux*)
9590 lt_prog_compiler_wl='-Wl,'
9591 # PIC (with -KPIC) is the default.
9592 lt_prog_compiler_static='-non_shared'
9593 ;;
9594
9595 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9596 case $cc_basename in
9597 # old Intel for x86_64, which still supported -KPIC.
9598 ecc*)
9599 lt_prog_compiler_wl='-Wl,'
9600 lt_prog_compiler_pic='-KPIC'
9601 lt_prog_compiler_static='-static'
9602 ;;
9603 # icc used to be incompatible with GCC.
9604 # ICC 10 doesn't accept -KPIC any more.
9605 icc* | ifort*)
9606 lt_prog_compiler_wl='-Wl,'
9607 lt_prog_compiler_pic='-fPIC'
9608 lt_prog_compiler_static='-static'
9609 ;;
9610 # Lahey Fortran 8.1.
9611 lf95*)
9612 lt_prog_compiler_wl='-Wl,'
9613 lt_prog_compiler_pic='--shared'
9614 lt_prog_compiler_static='--static'
9615 ;;
9616 nagfor*)
9617 # NAG Fortran compiler
9618 lt_prog_compiler_wl='-Wl,-Wl,,'
9619 lt_prog_compiler_pic='-PIC'
9620 lt_prog_compiler_static='-Bstatic'
9621 ;;
9622 tcc*)
9623 # Fabrice Bellard et al's Tiny C Compiler
9624 lt_prog_compiler_wl='-Wl,'
9625 lt_prog_compiler_pic='-fPIC'
9626 lt_prog_compiler_static='-static'
9627 ;;
9628 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9629 # Portland Group compilers (*not* the Pentium gcc compiler,
9630 # which looks to be a dead project)
9631 lt_prog_compiler_wl='-Wl,'
9632 lt_prog_compiler_pic='-fpic'
9633 lt_prog_compiler_static='-Bstatic'
9634 ;;
9635 ccc*)
9636 lt_prog_compiler_wl='-Wl,'
9637 # All Alpha code is PIC.
9638 lt_prog_compiler_static='-non_shared'
9639 ;;
9640 xl* | bgxl* | bgf* | mpixl*)
9641 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9642 lt_prog_compiler_wl='-Wl,'
9643 lt_prog_compiler_pic='-qpic'
9644 lt_prog_compiler_static='-qstaticlink'
9645 ;;
9646 *)
9647 case `$CC -V 2>&1 | sed 5q` in
9648 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9649 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9650 lt_prog_compiler_pic='-KPIC'
9651 lt_prog_compiler_static='-Bstatic'
9652 lt_prog_compiler_wl=''
9653 ;;
9654 *Sun\ F* | *Sun*Fortran*)
9655 lt_prog_compiler_pic='-KPIC'
9656 lt_prog_compiler_static='-Bstatic'
9657 lt_prog_compiler_wl='-Qoption ld '
9658 ;;
9659 *Sun\ C*)
9660 # Sun C 5.9
9661 lt_prog_compiler_pic='-KPIC'
9662 lt_prog_compiler_static='-Bstatic'
9663 lt_prog_compiler_wl='-Wl,'
9664 ;;
9665 *Intel*\ [CF]*Compiler*)
9666 lt_prog_compiler_wl='-Wl,'
9667 lt_prog_compiler_pic='-fPIC'
9668 lt_prog_compiler_static='-static'
9669 ;;
9670 *Portland\ Group*)
9671 lt_prog_compiler_wl='-Wl,'
9672 lt_prog_compiler_pic='-fpic'
9673 lt_prog_compiler_static='-Bstatic'
9674 ;;
9675 esac
9676 ;;
9677 esac
9678 ;;
9679
9680 newsos6)
9681 lt_prog_compiler_pic='-KPIC'
9682 lt_prog_compiler_static='-Bstatic'
9683 ;;
9684
9685 *nto* | *qnx*)
9686 # QNX uses GNU C++, but need to define -shared option too, otherwise
9687 # it will coredump.
9688 lt_prog_compiler_pic='-fPIC -shared'
9689 ;;
9690
9691 osf3* | osf4* | osf5*)
9692 lt_prog_compiler_wl='-Wl,'
9693 # All OSF/1 code is PIC.
9694 lt_prog_compiler_static='-non_shared'
9695 ;;
9696
9697 rdos*)
9698 lt_prog_compiler_static='-non_shared'
9699 ;;
9700
9701 solaris*)
9702 lt_prog_compiler_pic='-KPIC'
9703 lt_prog_compiler_static='-Bstatic'
9704 case $cc_basename in
9705 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9706 lt_prog_compiler_wl='-Qoption ld ';;
9707 *)
9708 lt_prog_compiler_wl='-Wl,';;
9709 esac
9710 ;;
9711
9712 sunos4*)
9713 lt_prog_compiler_wl='-Qoption ld '
9714 lt_prog_compiler_pic='-PIC'
9715 lt_prog_compiler_static='-Bstatic'
9716 ;;
9717
9718 sysv4 | sysv4.2uw2* | sysv4.3*)
9719 lt_prog_compiler_wl='-Wl,'
9720 lt_prog_compiler_pic='-KPIC'
9721 lt_prog_compiler_static='-Bstatic'
9722 ;;
9723
9724 sysv4*MP*)
9725 if test -d /usr/nec; then
9726 lt_prog_compiler_pic='-Kconform_pic'
9727 lt_prog_compiler_static='-Bstatic'
9728 fi
9729 ;;
9730
9731 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9732 lt_prog_compiler_wl='-Wl,'
9733 lt_prog_compiler_pic='-KPIC'
9734 lt_prog_compiler_static='-Bstatic'
9735 ;;
9736
9737 unicos*)
9738 lt_prog_compiler_wl='-Wl,'
9739 lt_prog_compiler_can_build_shared=no
9740 ;;
9741
9742 uts4*)
9743 lt_prog_compiler_pic='-pic'
9744 lt_prog_compiler_static='-Bstatic'
9745 ;;
9746
9747 *)
9748 lt_prog_compiler_can_build_shared=no
9749 ;;
9750 esac
9751 fi
9752
9753 case $host_os in
9754 # For platforms that do not support PIC, -DPIC is meaningless:
9755 *djgpp*)
9756 lt_prog_compiler_pic=
9757 ;;
9758 *)
9759 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9760 ;;
9761 esac
9762
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9764 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9765 if ${lt_cv_prog_compiler_pic+:} false; then :
9766 $as_echo_n "(cached) " >&6
9767 else
9768 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9769 fi
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9771 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9772 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9773
9774 #
9775 # Check to make sure the PIC flag actually works.
9776 #
9777 if test -n "$lt_prog_compiler_pic"; then
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9779 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9780 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9781 $as_echo_n "(cached) " >&6
9782 else
9783 lt_cv_prog_compiler_pic_works=no
9784 ac_outfile=conftest.$ac_objext
9785 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9786 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9787 # Insert the option either (1) after the last *FLAGS variable, or
9788 # (2) before a word containing "conftest.", or (3) at the end.
9789 # Note that $ac_compile itself does not contain backslashes and begins
9790 # with a dollar sign (not a hyphen), so the echo should work correctly.
9791 # The option is referenced via a variable to avoid confusing sed.
9792 lt_compile=`echo "$ac_compile" | $SED \
9793 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9794 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9795 -e 's:$: $lt_compiler_flag:'`
9796 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9797 (eval "$lt_compile" 2>conftest.err)
9798 ac_status=$?
9799 cat conftest.err >&5
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 if (exit $ac_status) && test -s "$ac_outfile"; then
9802 # The compiler can only warn and ignore the option if not recognized
9803 # So say no if there are warnings other than the usual output.
9804 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9805 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9806 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9807 lt_cv_prog_compiler_pic_works=yes
9808 fi
9809 fi
9810 $RM conftest*
9811
9812 fi
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9814 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9815
9816 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9817 case $lt_prog_compiler_pic in
9818 "" | " "*) ;;
9819 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9820 esac
9821 else
9822 lt_prog_compiler_pic=
9823 lt_prog_compiler_can_build_shared=no
9824 fi
9825
9826 fi
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838 #
9839 # Check to make sure the static flag actually works.
9840 #
9841 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9843 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9844 if ${lt_cv_prog_compiler_static_works+:} false; then :
9845 $as_echo_n "(cached) " >&6
9846 else
9847 lt_cv_prog_compiler_static_works=no
9848 save_LDFLAGS=$LDFLAGS
9849 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9850 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9851 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9852 # The linker can only warn and ignore the option if not recognized
9853 # So say no if there are warnings
9854 if test -s conftest.err; then
9855 # Append any errors to the config.log.
9856 cat conftest.err 1>&5
9857 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9858 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9859 if diff conftest.exp conftest.er2 >/dev/null; then
9860 lt_cv_prog_compiler_static_works=yes
9861 fi
9862 else
9863 lt_cv_prog_compiler_static_works=yes
9864 fi
9865 fi
9866 $RM -r conftest*
9867 LDFLAGS=$save_LDFLAGS
9868
9869 fi
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9871 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9872
9873 if test yes = "$lt_cv_prog_compiler_static_works"; then
9874 :
9875 else
9876 lt_prog_compiler_static=
9877 fi
9878
9879
9880
9881
9882
9883
9884
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9886 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9887 if ${lt_cv_prog_compiler_c_o+:} false; then :
9888 $as_echo_n "(cached) " >&6
9889 else
9890 lt_cv_prog_compiler_c_o=no
9891 $RM -r conftest 2>/dev/null
9892 mkdir conftest
9893 cd conftest
9894 mkdir out
9895 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9896
9897 lt_compiler_flag="-o out/conftest2.$ac_objext"
9898 # Insert the option either (1) after the last *FLAGS variable, or
9899 # (2) before a word containing "conftest.", or (3) at the end.
9900 # Note that $ac_compile itself does not contain backslashes and begins
9901 # with a dollar sign (not a hyphen), so the echo should work correctly.
9902 lt_compile=`echo "$ac_compile" | $SED \
9903 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9904 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9905 -e 's:$: $lt_compiler_flag:'`
9906 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9907 (eval "$lt_compile" 2>out/conftest.err)
9908 ac_status=$?
9909 cat out/conftest.err >&5
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9912 then
9913 # The compiler can only warn and ignore the option if not recognized
9914 # So say no if there are warnings
9915 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9916 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9917 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9918 lt_cv_prog_compiler_c_o=yes
9919 fi
9920 fi
9921 chmod u+w . 2>&5
9922 $RM conftest*
9923 # SGI C++ compiler will create directory out/ii_files/ for
9924 # template instantiation
9925 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9926 $RM out/* && rmdir out
9927 cd ..
9928 $RM -r conftest
9929 $RM conftest*
9930
9931 fi
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9933 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9934
9935
9936
9937
9938
9939
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9941 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9942 if ${lt_cv_prog_compiler_c_o+:} false; then :
9943 $as_echo_n "(cached) " >&6
9944 else
9945 lt_cv_prog_compiler_c_o=no
9946 $RM -r conftest 2>/dev/null
9947 mkdir conftest
9948 cd conftest
9949 mkdir out
9950 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9951
9952 lt_compiler_flag="-o out/conftest2.$ac_objext"
9953 # Insert the option either (1) after the last *FLAGS variable, or
9954 # (2) before a word containing "conftest.", or (3) at the end.
9955 # Note that $ac_compile itself does not contain backslashes and begins
9956 # with a dollar sign (not a hyphen), so the echo should work correctly.
9957 lt_compile=`echo "$ac_compile" | $SED \
9958 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9959 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9960 -e 's:$: $lt_compiler_flag:'`
9961 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9962 (eval "$lt_compile" 2>out/conftest.err)
9963 ac_status=$?
9964 cat out/conftest.err >&5
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9967 then
9968 # The compiler can only warn and ignore the option if not recognized
9969 # So say no if there are warnings
9970 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9971 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9972 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9973 lt_cv_prog_compiler_c_o=yes
9974 fi
9975 fi
9976 chmod u+w . 2>&5
9977 $RM conftest*
9978 # SGI C++ compiler will create directory out/ii_files/ for
9979 # template instantiation
9980 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9981 $RM out/* && rmdir out
9982 cd ..
9983 $RM -r conftest
9984 $RM conftest*
9985
9986 fi
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9988 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9989
9990
9991
9992
9993 hard_links=nottested
9994 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9995 # do not overwrite the value of need_locks provided by the user
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9997 $as_echo_n "checking if we can lock with hard links... " >&6; }
9998 hard_links=yes
9999 $RM conftest*
10000 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10001 touch conftest.a
10002 ln conftest.a conftest.b 2>&5 || hard_links=no
10003 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10005 $as_echo "$hard_links" >&6; }
10006 if test no = "$hard_links"; then
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10008 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10009 need_locks=warn
10010 fi
10011 else
10012 need_locks=no
10013 fi
10014
10015
10016
10017
10018
10019
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10021 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10022
10023 runpath_var=
10024 allow_undefined_flag=
10025 always_export_symbols=no
10026 archive_cmds=
10027 archive_expsym_cmds=
10028 compiler_needs_object=no
10029 enable_shared_with_static_runtimes=no
10030 export_dynamic_flag_spec=
10031 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10032 hardcode_automatic=no
10033 hardcode_direct=no
10034 hardcode_direct_absolute=no
10035 hardcode_libdir_flag_spec=
10036 hardcode_libdir_separator=
10037 hardcode_minus_L=no
10038 hardcode_shlibpath_var=unsupported
10039 inherit_rpath=no
10040 link_all_deplibs=unknown
10041 module_cmds=
10042 module_expsym_cmds=
10043 old_archive_from_new_cmds=
10044 old_archive_from_expsyms_cmds=
10045 thread_safe_flag_spec=
10046 whole_archive_flag_spec=
10047 # include_expsyms should be a list of space-separated symbols to be *always*
10048 # included in the symbol list
10049 include_expsyms=
10050 # exclude_expsyms can be an extended regexp of symbols to exclude
10051 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10052 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10053 # as well as any symbol that contains 'd'.
10054 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10055 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10056 # platforms (ab)use it in PIC code, but their linkers get confused if
10057 # the symbol is explicitly referenced. Since portable code cannot
10058 # rely on this symbol name, it's probably fine to never include it in
10059 # preloaded symbol tables.
10060 # Exclude shared library initialization/finalization symbols.
10061 extract_expsyms_cmds=
10062
10063 case $host_os in
10064 cygwin* | mingw* | windows* | pw32* | cegcc*)
10065 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10066 # When not using gcc, we currently assume that we are using
10067 # Microsoft Visual C++ or Intel C++ Compiler.
10068 if test yes != "$GCC"; then
10069 with_gnu_ld=no
10070 fi
10071 ;;
10072 interix*)
10073 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10074 with_gnu_ld=yes
10075 ;;
10076 openbsd* | bitrig*)
10077 with_gnu_ld=no
10078 ;;
10079 esac
10080
10081 ld_shlibs=yes
10082
10083 # On some targets, GNU ld is compatible enough with the native linker
10084 # that we're better off using the native interface for both.
10085 lt_use_gnu_ld_interface=no
10086 if test yes = "$with_gnu_ld"; then
10087 case $host_os in
10088 aix*)
10089 # The AIX port of GNU ld has always aspired to compatibility
10090 # with the native linker. However, as the warning in the GNU ld
10091 # block says, versions before 2.19.5* couldn't really create working
10092 # shared libraries, regardless of the interface used.
10093 case `$LD -v 2>&1` in
10094 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10095 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10096 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10097 *)
10098 lt_use_gnu_ld_interface=yes
10099 ;;
10100 esac
10101 ;;
10102 *)
10103 lt_use_gnu_ld_interface=yes
10104 ;;
10105 esac
10106 fi
10107
10108 if test yes = "$lt_use_gnu_ld_interface"; then
10109 # If archive_cmds runs LD, not CC, wlarc should be empty
10110 wlarc='$wl'
10111
10112 # Set some defaults for GNU ld with shared library support. These
10113 # are reset later if shared libraries are not supported. Putting them
10114 # here allows them to be overridden if necessary.
10115 runpath_var=LD_RUN_PATH
10116 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10117 export_dynamic_flag_spec='$wl--export-dynamic'
10118 # ancient GNU ld didn't support --whole-archive et. al.
10119 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10120 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10121 else
10122 whole_archive_flag_spec=
10123 fi
10124 supports_anon_versioning=no
10125 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10126 *GNU\ gold*) supports_anon_versioning=yes ;;
10127 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10128 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10129 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10130 *\ 2.11.*) ;; # other 2.11 versions
10131 *) supports_anon_versioning=yes ;;
10132 esac
10133
10134 # See if GNU ld supports shared libraries.
10135 case $host_os in
10136 aix[3-9]*)
10137 # On AIX/PPC, the GNU linker is very broken
10138 if test ia64 != "$host_cpu"; then
10139 ld_shlibs=no
10140 cat <<_LT_EOF 1>&2
10141
10142 *** Warning: the GNU linker, at least up to release 2.19, is reported
10143 *** to be unable to reliably create shared libraries on AIX.
10144 *** Therefore, libtool is disabling shared libraries support. If you
10145 *** really care for shared libraries, you may want to install binutils
10146 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10147 *** You will then need to restart the configuration process.
10148
10149 _LT_EOF
10150 fi
10151 ;;
10152
10153 amigaos*)
10154 case $host_cpu in
10155 powerpc)
10156 # see comment about AmigaOS4 .so support
10157 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10158 archive_expsym_cmds=''
10159 ;;
10160 m68k)
10161 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)'
10162 hardcode_libdir_flag_spec='-L$libdir'
10163 hardcode_minus_L=yes
10164 ;;
10165 esac
10166 ;;
10167
10168 beos*)
10169 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10170 allow_undefined_flag=unsupported
10171 # Joseph Beckenbach <[email protected]> says some releases of gcc
10172 # support --undefined. This deserves some investigation. FIXME
10173 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10174 else
10175 ld_shlibs=no
10176 fi
10177 ;;
10178
10179 cygwin* | mingw* | windows* | pw32* | cegcc*)
10180 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10181 # as there is no search path for DLLs.
10182 hardcode_libdir_flag_spec='-L$libdir'
10183 export_dynamic_flag_spec='$wl--export-all-symbols'
10184 allow_undefined_flag=unsupported
10185 always_export_symbols=no
10186 enable_shared_with_static_runtimes=yes
10187 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10188 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10189
10190 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10191 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10192 # If the export-symbols file already is a .def file, use it as
10193 # is; otherwise, prepend EXPORTS...
10194 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10195 cp $export_symbols $output_objdir/$soname.def;
10196 else
10197 echo EXPORTS > $output_objdir/$soname.def;
10198 cat $export_symbols >> $output_objdir/$soname.def;
10199 fi~
10200 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10201 else
10202 ld_shlibs=no
10203 fi
10204 ;;
10205
10206 haiku*)
10207 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10208 link_all_deplibs=yes
10209 ;;
10210
10211 os2*)
10212 hardcode_libdir_flag_spec='-L$libdir'
10213 hardcode_minus_L=yes
10214 allow_undefined_flag=unsupported
10215 shrext_cmds=.dll
10216 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10217 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10218 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10219 $ECHO EXPORTS >> $output_objdir/$libname.def~
10220 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10221 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10222 emximp -o $lib $output_objdir/$libname.def'
10223 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10224 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10225 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10226 $ECHO EXPORTS >> $output_objdir/$libname.def~
10227 prefix_cmds="$SED"~
10228 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10229 prefix_cmds="$prefix_cmds -e 1d";
10230 fi~
10231 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10232 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10233 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10234 emximp -o $lib $output_objdir/$libname.def'
10235 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10236 enable_shared_with_static_runtimes=yes
10237 file_list_spec='@'
10238 ;;
10239
10240 interix[3-9]*)
10241 hardcode_direct=no
10242 hardcode_shlibpath_var=no
10243 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10244 export_dynamic_flag_spec='$wl-E'
10245 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10246 # Instead, shared libraries are loaded at an image base (0x10000000 by
10247 # default) and relocated if they conflict, which is a slow very memory
10248 # consuming and fragmenting process. To avoid this, we pick a random,
10249 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10250 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10251 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10252 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'
10253 ;;
10254
10255 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10256 tmp_diet=no
10257 if test linux-dietlibc = "$host_os"; then
10258 case $cc_basename in
10259 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10260 esac
10261 fi
10262 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10263 && test no = "$tmp_diet"
10264 then
10265 tmp_addflag=' $pic_flag'
10266 tmp_sharedflag='-shared'
10267 case $cc_basename,$host_cpu in
10268 pgcc*) # Portland Group C compiler
10269 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10270 tmp_addflag=' $pic_flag'
10271 ;;
10272 pgf77* | pgf90* | pgf95* | pgfortran*)
10273 # Portland Group f77 and f90 compilers
10274 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10275 tmp_addflag=' $pic_flag -Mnomain' ;;
10276 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10277 tmp_addflag=' -i_dynamic' ;;
10278 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10279 tmp_addflag=' -i_dynamic -nofor_main' ;;
10280 ifc* | ifort*) # Intel Fortran compiler
10281 tmp_addflag=' -nofor_main' ;;
10282 lf95*) # Lahey Fortran 8.1
10283 whole_archive_flag_spec=
10284 tmp_sharedflag='--shared' ;;
10285 nagfor*) # NAGFOR 5.3
10286 tmp_sharedflag='-Wl,-shared' ;;
10287 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10288 tmp_sharedflag='-qmkshrobj'
10289 tmp_addflag= ;;
10290 nvcc*) # Cuda Compiler Driver 2.2
10291 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10292 compiler_needs_object=yes
10293 ;;
10294 esac
10295 case `$CC -V 2>&1 | sed 5q` in
10296 *Sun\ C*) # Sun C 5.9
10297 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10298 compiler_needs_object=yes
10299 tmp_sharedflag='-G' ;;
10300 *Sun\ F*) # Sun Fortran 8.3
10301 tmp_sharedflag='-G' ;;
10302 esac
10303 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10304
10305 if test yes = "$supports_anon_versioning"; then
10306 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10307 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10308 echo "local: *; };" >> $output_objdir/$libname.ver~
10309 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10310 fi
10311
10312 case $cc_basename in
10313 tcc*)
10314 export_dynamic_flag_spec='-rdynamic'
10315 ;;
10316 xlf* | bgf* | bgxlf* | mpixlf*)
10317 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10318 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10319 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10320 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10321 if test yes = "$supports_anon_versioning"; then
10322 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10323 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10324 echo "local: *; };" >> $output_objdir/$libname.ver~
10325 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10326 fi
10327 ;;
10328 esac
10329 else
10330 ld_shlibs=no
10331 fi
10332 ;;
10333
10334 netbsd*)
10335 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10336 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10337 wlarc=
10338 else
10339 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10340 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10341 fi
10342 ;;
10343
10344 solaris*)
10345 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10346 ld_shlibs=no
10347 cat <<_LT_EOF 1>&2
10348
10349 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10350 *** create shared libraries on Solaris systems. Therefore, libtool
10351 *** is disabling shared libraries support. We urge you to upgrade GNU
10352 *** binutils to release 2.9.1 or newer. Another option is to modify
10353 *** your PATH or compiler configuration so that the native linker is
10354 *** used, and then restart.
10355
10356 _LT_EOF
10357 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10358 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10359 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10360 else
10361 ld_shlibs=no
10362 fi
10363 ;;
10364
10365 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10366 case `$LD -v 2>&1` in
10367 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10368 ld_shlibs=no
10369 cat <<_LT_EOF 1>&2
10370
10371 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10372 *** reliably create shared libraries on SCO systems. Therefore, libtool
10373 *** is disabling shared libraries support. We urge you to upgrade GNU
10374 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10375 *** your PATH or compiler configuration so that the native linker is
10376 *** used, and then restart.
10377
10378 _LT_EOF
10379 ;;
10380 *)
10381 # For security reasons, it is highly recommended that you always
10382 # use absolute paths for naming shared libraries, and exclude the
10383 # DT_RUNPATH tag from executables and libraries. But doing so
10384 # requires that you compile everything twice, which is a pain.
10385 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10386 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10387 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10388 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10389 else
10390 ld_shlibs=no
10391 fi
10392 ;;
10393 esac
10394 ;;
10395
10396 sunos4*)
10397 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10398 wlarc=
10399 hardcode_direct=yes
10400 hardcode_shlibpath_var=no
10401 ;;
10402
10403 *)
10404 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10405 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10406 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10407 else
10408 ld_shlibs=no
10409 fi
10410 ;;
10411 esac
10412
10413 if test no = "$ld_shlibs"; then
10414 runpath_var=
10415 hardcode_libdir_flag_spec=
10416 export_dynamic_flag_spec=
10417 whole_archive_flag_spec=
10418 fi
10419 else
10420 # PORTME fill in a description of your system's linker (not GNU ld)
10421 case $host_os in
10422 aix3*)
10423 allow_undefined_flag=unsupported
10424 always_export_symbols=yes
10425 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'
10426 # Note: this linker hardcodes the directories in LIBPATH if there
10427 # are no directories specified by -L.
10428 hardcode_minus_L=yes
10429 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10430 # Neither direct hardcoding nor static linking is supported with a
10431 # broken collect2.
10432 hardcode_direct=unsupported
10433 fi
10434 ;;
10435
10436 aix[4-9]*)
10437 if test ia64 = "$host_cpu"; then
10438 # On IA64, the linker does run time linking by default, so we don't
10439 # have to do anything special.
10440 aix_use_runtimelinking=no
10441 exp_sym_flag='-Bexport'
10442 no_entry_flag=
10443 else
10444 # If we're using GNU nm, then we don't want the "-C" option.
10445 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10446 # Without the "-l" option, or with the "-B" option, AIX nm treats
10447 # weak defined symbols like other global defined symbols, whereas
10448 # GNU nm marks them as "W".
10449 # While the 'weak' keyword is ignored in the Export File, we need
10450 # it in the Import File for the 'aix-soname' feature, so we have
10451 # to replace the "-B" option with "-P" for AIX nm.
10452 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10453 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10454 else
10455 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10456 fi
10457 aix_use_runtimelinking=no
10458
10459 # Test if we are trying to use run time linking or normal
10460 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10461 # have runtime linking enabled, and use it for executables.
10462 # For shared libraries, we enable/disable runtime linking
10463 # depending on the kind of the shared library created -
10464 # when "with_aix_soname,aix_use_runtimelinking" is:
10465 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10466 # "aix,yes" lib.so shared, rtl:yes, for executables
10467 # lib.a static archive
10468 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10469 # lib.a(lib.so.V) shared, rtl:no, for executables
10470 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10471 # lib.a(lib.so.V) shared, rtl:no
10472 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10473 # lib.a static archive
10474 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10475 for ld_flag in $LDFLAGS; do
10476 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10477 aix_use_runtimelinking=yes
10478 break
10479 fi
10480 done
10481 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10482 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10483 # so we don't have lib.a shared libs to link our executables.
10484 # We have to force runtime linking in this case.
10485 aix_use_runtimelinking=yes
10486 LDFLAGS="$LDFLAGS -Wl,-brtl"
10487 fi
10488 ;;
10489 esac
10490
10491 exp_sym_flag='-bexport'
10492 no_entry_flag='-bnoentry'
10493 fi
10494
10495 # When large executables or shared objects are built, AIX ld can
10496 # have problems creating the table of contents. If linking a library
10497 # or program results in "error TOC overflow" add -mminimal-toc to
10498 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10499 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10500
10501 archive_cmds=''
10502 hardcode_direct=yes
10503 hardcode_direct_absolute=yes
10504 hardcode_libdir_separator=':'
10505 link_all_deplibs=yes
10506 file_list_spec='$wl-f,'
10507 case $with_aix_soname,$aix_use_runtimelinking in
10508 aix,*) ;; # traditional, no import file
10509 svr4,* | *,yes) # use import file
10510 # The Import File defines what to hardcode.
10511 hardcode_direct=no
10512 hardcode_direct_absolute=no
10513 ;;
10514 esac
10515
10516 if test yes = "$GCC"; then
10517 case $host_os in aix4.[012]|aix4.[012].*)
10518 # We only want to do this on AIX 4.2 and lower, the check
10519 # below for broken collect2 doesn't work under 4.3+
10520 collect2name=`$CC -print-prog-name=collect2`
10521 if test -f "$collect2name" &&
10522 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10523 then
10524 # We have reworked collect2
10525 :
10526 else
10527 # We have old collect2
10528 hardcode_direct=unsupported
10529 # It fails to find uninstalled libraries when the uninstalled
10530 # path is not listed in the libpath. Setting hardcode_minus_L
10531 # to unsupported forces relinking
10532 hardcode_minus_L=yes
10533 hardcode_libdir_flag_spec='-L$libdir'
10534 hardcode_libdir_separator=
10535 fi
10536 ;;
10537 esac
10538 shared_flag='-shared'
10539 if test yes = "$aix_use_runtimelinking"; then
10540 shared_flag="$shared_flag "'$wl-G'
10541 fi
10542 # Need to ensure runtime linking is disabled for the traditional
10543 # shared library, or the linker may eventually find shared libraries
10544 # /with/ Import File - we do not want to mix them.
10545 shared_flag_aix='-shared'
10546 shared_flag_svr4='-shared $wl-G'
10547 else
10548 # not using gcc
10549 if test ia64 = "$host_cpu"; then
10550 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10551 # chokes on -Wl,-G. The following line is correct:
10552 shared_flag='-G'
10553 else
10554 if test yes = "$aix_use_runtimelinking"; then
10555 shared_flag='$wl-G'
10556 else
10557 shared_flag='$wl-bM:SRE'
10558 fi
10559 shared_flag_aix='$wl-bM:SRE'
10560 shared_flag_svr4='$wl-G'
10561 fi
10562 fi
10563
10564 export_dynamic_flag_spec='$wl-bexpall'
10565 # It seems that -bexpall does not export symbols beginning with
10566 # underscore (_), so it is better to generate a list of symbols to export.
10567 always_export_symbols=yes
10568 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10569 # Warning - without using the other runtime loading flags (-brtl),
10570 # -berok will link without error, but may produce a broken library.
10571 allow_undefined_flag='-berok'
10572 # Determine the default libpath from the value encoded in an
10573 # empty executable.
10574 if test set = "${lt_cv_aix_libpath+set}"; then
10575 aix_libpath=$lt_cv_aix_libpath
10576 else
10577 if ${lt_cv_aix_libpath_+:} false; then :
10578 $as_echo_n "(cached) " >&6
10579 else
10580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10581 /* end confdefs.h. */
10582
10583 int
10584 main ()
10585 {
10586
10587 ;
10588 return 0;
10589 }
10590 _ACEOF
10591 if ac_fn_c_try_link "$LINENO"; then :
10592
10593 lt_aix_libpath_sed='
10594 /Import File Strings/,/^$/ {
10595 /^0/ {
10596 s/^0 *\([^ ]*\) *$/\1/
10597 p
10598 }
10599 }'
10600 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10601 # Check for a 64-bit object if we didn't find anything.
10602 if test -z "$lt_cv_aix_libpath_"; then
10603 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10604 fi
10605 fi
10606 rm -f core conftest.err conftest.$ac_objext \
10607 conftest$ac_exeext conftest.$ac_ext
10608 if test -z "$lt_cv_aix_libpath_"; then
10609 lt_cv_aix_libpath_=/usr/lib:/lib
10610 fi
10611
10612 fi
10613
10614 aix_libpath=$lt_cv_aix_libpath_
10615 fi
10616
10617 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10618 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10619 else
10620 if test ia64 = "$host_cpu"; then
10621 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10622 allow_undefined_flag="-z nodefs"
10623 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"
10624 else
10625 # Determine the default libpath from the value encoded in an
10626 # empty executable.
10627 if test set = "${lt_cv_aix_libpath+set}"; then
10628 aix_libpath=$lt_cv_aix_libpath
10629 else
10630 if ${lt_cv_aix_libpath_+:} false; then :
10631 $as_echo_n "(cached) " >&6
10632 else
10633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10634 /* end confdefs.h. */
10635
10636 int
10637 main ()
10638 {
10639
10640 ;
10641 return 0;
10642 }
10643 _ACEOF
10644 if ac_fn_c_try_link "$LINENO"; then :
10645
10646 lt_aix_libpath_sed='
10647 /Import File Strings/,/^$/ {
10648 /^0/ {
10649 s/^0 *\([^ ]*\) *$/\1/
10650 p
10651 }
10652 }'
10653 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10654 # Check for a 64-bit object if we didn't find anything.
10655 if test -z "$lt_cv_aix_libpath_"; then
10656 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10657 fi
10658 fi
10659 rm -f core conftest.err conftest.$ac_objext \
10660 conftest$ac_exeext conftest.$ac_ext
10661 if test -z "$lt_cv_aix_libpath_"; then
10662 lt_cv_aix_libpath_=/usr/lib:/lib
10663 fi
10664
10665 fi
10666
10667 aix_libpath=$lt_cv_aix_libpath_
10668 fi
10669
10670 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10671 # Warning - without using the other run time loading flags,
10672 # -berok will link without error, but may produce a broken library.
10673 no_undefined_flag=' $wl-bernotok'
10674 allow_undefined_flag=' $wl-berok'
10675 if test yes = "$with_gnu_ld"; then
10676 # We only use this code for GNU lds that support --whole-archive.
10677 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10678 else
10679 # Exported symbols can be pulled into shared objects from archives
10680 whole_archive_flag_spec='$convenience'
10681 fi
10682 archive_cmds_need_lc=yes
10683 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10684 # -brtl affects multiple linker settings, -berok does not and is overridden later
10685 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10686 if test svr4 != "$with_aix_soname"; then
10687 # This is similar to how AIX traditionally builds its shared libraries.
10688 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10689 fi
10690 if test aix != "$with_aix_soname"; then
10691 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10692 else
10693 # used by -dlpreopen to get the symbols
10694 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10695 fi
10696 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10697 fi
10698 fi
10699 ;;
10700
10701 amigaos*)
10702 case $host_cpu in
10703 powerpc)
10704 # see comment about AmigaOS4 .so support
10705 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10706 archive_expsym_cmds=''
10707 ;;
10708 m68k)
10709 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)'
10710 hardcode_libdir_flag_spec='-L$libdir'
10711 hardcode_minus_L=yes
10712 ;;
10713 esac
10714 ;;
10715
10716 bsdi[45]*)
10717 export_dynamic_flag_spec=-rdynamic
10718 ;;
10719
10720 cygwin* | mingw* | windows* | pw32* | cegcc*)
10721 # When not using gcc, we currently assume that we are using
10722 # Microsoft Visual C++ or Intel C++ Compiler.
10723 # hardcode_libdir_flag_spec is actually meaningless, as there is
10724 # no search path for DLLs.
10725 case $cc_basename in
10726 cl* | icl*)
10727 # Native MSVC or ICC
10728 hardcode_libdir_flag_spec=' '
10729 allow_undefined_flag=unsupported
10730 always_export_symbols=yes
10731 file_list_spec='@'
10732 # Tell ltmain to make .lib files, not .a files.
10733 libext=lib
10734 # Tell ltmain to make .dll files, not .so files.
10735 shrext_cmds=.dll
10736 # FIXME: Setting linknames here is a bad hack.
10737 archive_cmds='$CC -Fe $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10738 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10739 cp "$export_symbols" "$output_objdir/$soname.def";
10740 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10741 else
10742 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10743 fi~
10744 $CC -Fe $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10745 linknames='
10746 # The linker will not automatically build a static lib if we build a DLL.
10747 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10748 enable_shared_with_static_runtimes=yes
10749 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10750 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10751 # Don't use ranlib
10752 old_postinstall_cmds='chmod 644 $oldlib'
10753 postlink_cmds='lt_outputfile="@OUTPUT@"~
10754 lt_tool_outputfile="@TOOL_OUTPUT@"~
10755 case $lt_outputfile in
10756 *.exe|*.EXE) ;;
10757 *)
10758 lt_outputfile=$lt_outputfile.exe
10759 lt_tool_outputfile=$lt_tool_outputfile.exe
10760 ;;
10761 esac~
10762 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10763 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10764 $RM "$lt_outputfile.manifest";
10765 fi'
10766 ;;
10767 *)
10768 # Assume MSVC and ICC wrapper
10769 hardcode_libdir_flag_spec=' '
10770 allow_undefined_flag=unsupported
10771 # Tell ltmain to make .lib files, not .a files.
10772 libext=lib
10773 # Tell ltmain to make .dll files, not .so files.
10774 shrext_cmds=.dll
10775 # FIXME: Setting linknames here is a bad hack.
10776 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10777 # The linker will automatically build a .lib file if we build a DLL.
10778 old_archive_from_new_cmds='true'
10779 # FIXME: Should let the user specify the lib program.
10780 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10781 enable_shared_with_static_runtimes=yes
10782 ;;
10783 esac
10784 ;;
10785
10786 darwin* | rhapsody*)
10787
10788
10789 archive_cmds_need_lc=no
10790 hardcode_direct=no
10791 hardcode_automatic=yes
10792 hardcode_shlibpath_var=unsupported
10793 if test yes = "$lt_cv_ld_force_load"; then
10794 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10795
10796 else
10797 whole_archive_flag_spec=''
10798 fi
10799 link_all_deplibs=yes
10800 allow_undefined_flag=$_lt_dar_allow_undefined
10801 case $cc_basename in
10802 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10803 *) _lt_dar_can_shared=$GCC ;;
10804 esac
10805 if test yes = "$_lt_dar_can_shared"; then
10806 output_verbose_link_cmd=func_echo_all
10807 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10808 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10809 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"
10810 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"
10811
10812 else
10813 ld_shlibs=no
10814 fi
10815
10816 ;;
10817
10818 dgux*)
10819 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10820 hardcode_libdir_flag_spec='-L$libdir'
10821 hardcode_shlibpath_var=no
10822 ;;
10823
10824 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10825 # support. Future versions do this automatically, but an explicit c++rt0.o
10826 # does not break anything, and helps significantly (at the cost of a little
10827 # extra space).
10828 freebsd2.2*)
10829 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10830 hardcode_libdir_flag_spec='-R$libdir'
10831 hardcode_direct=yes
10832 hardcode_shlibpath_var=no
10833 ;;
10834
10835 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10836 freebsd2.*)
10837 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10838 hardcode_direct=yes
10839 hardcode_minus_L=yes
10840 hardcode_shlibpath_var=no
10841 ;;
10842
10843 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10844 freebsd* | dragonfly* | midnightbsd*)
10845 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10846 hardcode_libdir_flag_spec='-R$libdir'
10847 hardcode_direct=yes
10848 hardcode_shlibpath_var=no
10849 ;;
10850
10851 hpux9*)
10852 if test yes = "$GCC"; then
10853 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10854 else
10855 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10856 fi
10857 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10858 hardcode_libdir_separator=:
10859 hardcode_direct=yes
10860
10861 # hardcode_minus_L: Not really in the search PATH,
10862 # but as the default location of the library.
10863 hardcode_minus_L=yes
10864 export_dynamic_flag_spec='$wl-E'
10865 ;;
10866
10867 hpux10*)
10868 if test yes,no = "$GCC,$with_gnu_ld"; then
10869 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10870 else
10871 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10872 fi
10873 if test no = "$with_gnu_ld"; then
10874 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10875 hardcode_libdir_separator=:
10876 hardcode_direct=yes
10877 hardcode_direct_absolute=yes
10878 export_dynamic_flag_spec='$wl-E'
10879 # hardcode_minus_L: Not really in the search PATH,
10880 # but as the default location of the library.
10881 hardcode_minus_L=yes
10882 fi
10883 ;;
10884
10885 hpux11*)
10886 if test yes,no = "$GCC,$with_gnu_ld"; then
10887 case $host_cpu in
10888 hppa*64*)
10889 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10890 ;;
10891 ia64*)
10892 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10893 ;;
10894 *)
10895 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10896 ;;
10897 esac
10898 else
10899 case $host_cpu in
10900 hppa*64*)
10901 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10902 ;;
10903 ia64*)
10904 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10905 ;;
10906 *)
10907
10908 # Older versions of the 11.00 compiler do not understand -b yet
10909 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10911 $as_echo_n "checking if $CC understands -b... " >&6; }
10912 if ${lt_cv_prog_compiler__b+:} false; then :
10913 $as_echo_n "(cached) " >&6
10914 else
10915 lt_cv_prog_compiler__b=no
10916 save_LDFLAGS=$LDFLAGS
10917 LDFLAGS="$LDFLAGS -b"
10918 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10919 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10920 # The linker can only warn and ignore the option if not recognized
10921 # So say no if there are warnings
10922 if test -s conftest.err; then
10923 # Append any errors to the config.log.
10924 cat conftest.err 1>&5
10925 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10926 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10927 if diff conftest.exp conftest.er2 >/dev/null; then
10928 lt_cv_prog_compiler__b=yes
10929 fi
10930 else
10931 lt_cv_prog_compiler__b=yes
10932 fi
10933 fi
10934 $RM -r conftest*
10935 LDFLAGS=$save_LDFLAGS
10936
10937 fi
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10939 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10940
10941 if test yes = "$lt_cv_prog_compiler__b"; then
10942 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10943 else
10944 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10945 fi
10946
10947 ;;
10948 esac
10949 fi
10950 if test no = "$with_gnu_ld"; then
10951 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10952 hardcode_libdir_separator=:
10953
10954 case $host_cpu in
10955 hppa*64*|ia64*)
10956 hardcode_direct=no
10957 hardcode_shlibpath_var=no
10958 ;;
10959 *)
10960 hardcode_direct=yes
10961 hardcode_direct_absolute=yes
10962 export_dynamic_flag_spec='$wl-E'
10963
10964 # hardcode_minus_L: Not really in the search PATH,
10965 # but as the default location of the library.
10966 hardcode_minus_L=yes
10967 ;;
10968 esac
10969 fi
10970 ;;
10971
10972 irix5* | irix6* | nonstopux*)
10973 if test yes = "$GCC"; then
10974 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10975 # Try to use the -exported_symbol ld option, if it does not
10976 # work, assume that -exports_file does not work either and
10977 # implicitly export all symbols.
10978 # This should be the same for all languages, so no per-tag cache variable.
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10980 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10981 if ${lt_cv_irix_exported_symbol+:} false; then :
10982 $as_echo_n "(cached) " >&6
10983 else
10984 save_LDFLAGS=$LDFLAGS
10985 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10987 /* end confdefs.h. */
10988 int foo (void) { return 0; }
10989 _ACEOF
10990 if ac_fn_c_try_link "$LINENO"; then :
10991 lt_cv_irix_exported_symbol=yes
10992 else
10993 lt_cv_irix_exported_symbol=no
10994 fi
10995 rm -f core conftest.err conftest.$ac_objext \
10996 conftest$ac_exeext conftest.$ac_ext
10997 LDFLAGS=$save_LDFLAGS
10998 fi
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11000 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11001 if test yes = "$lt_cv_irix_exported_symbol"; then
11002 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
11003 fi
11004 else
11005 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11006 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
11007 fi
11008 archive_cmds_need_lc='no'
11009 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11010 hardcode_libdir_separator=:
11011 inherit_rpath=yes
11012 link_all_deplibs=yes
11013 ;;
11014
11015 linux*)
11016 case $cc_basename in
11017 tcc*)
11018 # Fabrice Bellard et al's Tiny C Compiler
11019 ld_shlibs=yes
11020 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11021 ;;
11022 esac
11023 ;;
11024
11025 netbsd*)
11026 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11027 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11028 else
11029 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11030 fi
11031 hardcode_libdir_flag_spec='-R$libdir'
11032 hardcode_direct=yes
11033 hardcode_shlibpath_var=no
11034 ;;
11035
11036 newsos6)
11037 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11038 hardcode_direct=yes
11039 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11040 hardcode_libdir_separator=:
11041 hardcode_shlibpath_var=no
11042 ;;
11043
11044 *nto* | *qnx*)
11045 ;;
11046
11047 openbsd* | bitrig*)
11048 if test -f /usr/libexec/ld.so; then
11049 hardcode_direct=yes
11050 hardcode_shlibpath_var=no
11051 hardcode_direct_absolute=yes
11052 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11053 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11054 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11055 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11056 export_dynamic_flag_spec='$wl-E'
11057 else
11058 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11059 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11060 fi
11061 else
11062 ld_shlibs=no
11063 fi
11064 ;;
11065
11066 os2*)
11067 hardcode_libdir_flag_spec='-L$libdir'
11068 hardcode_minus_L=yes
11069 allow_undefined_flag=unsupported
11070 shrext_cmds=.dll
11071 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11072 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11073 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11074 $ECHO EXPORTS >> $output_objdir/$libname.def~
11075 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11076 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11077 emximp -o $lib $output_objdir/$libname.def'
11078 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11079 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11080 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11081 $ECHO EXPORTS >> $output_objdir/$libname.def~
11082 prefix_cmds="$SED"~
11083 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11084 prefix_cmds="$prefix_cmds -e 1d";
11085 fi~
11086 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11087 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11088 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11089 emximp -o $lib $output_objdir/$libname.def'
11090 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11091 enable_shared_with_static_runtimes=yes
11092 file_list_spec='@'
11093 ;;
11094
11095 osf3*)
11096 if test yes = "$GCC"; then
11097 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11098 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11099 else
11100 allow_undefined_flag=' -expect_unresolved \*'
11101 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11102 fi
11103 archive_cmds_need_lc='no'
11104 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11105 hardcode_libdir_separator=:
11106 ;;
11107
11108 osf4* | osf5*) # as osf3* with the addition of -msym flag
11109 if test yes = "$GCC"; then
11110 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11111 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11112 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11113 else
11114 allow_undefined_flag=' -expect_unresolved \*'
11115 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11116 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~
11117 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
11118
11119 # Both c and cxx compiler support -rpath directly
11120 hardcode_libdir_flag_spec='-rpath $libdir'
11121 fi
11122 archive_cmds_need_lc='no'
11123 hardcode_libdir_separator=:
11124 ;;
11125
11126 solaris*)
11127 no_undefined_flag=' -z defs'
11128 if test yes = "$GCC"; then
11129 wlarc='$wl'
11130 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11131 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11132 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11133 else
11134 case `$CC -V 2>&1` in
11135 *"Compilers 5.0"*)
11136 wlarc=''
11137 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11138 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11139 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11140 ;;
11141 *)
11142 wlarc='$wl'
11143 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11144 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11145 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11146 ;;
11147 esac
11148 fi
11149 hardcode_libdir_flag_spec='-R$libdir'
11150 hardcode_shlibpath_var=no
11151 case $host_os in
11152 solaris2.[0-5] | solaris2.[0-5].*) ;;
11153 *)
11154 # The compiler driver will combine and reorder linker options,
11155 # but understands '-z linker_flag'. GCC discards it without '$wl',
11156 # but is careful enough not to reorder.
11157 # Supported since Solaris 2.6 (maybe 2.5.1?)
11158 if test yes = "$GCC"; then
11159 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11160 else
11161 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11162 fi
11163 ;;
11164 esac
11165 link_all_deplibs=yes
11166 ;;
11167
11168 sunos4*)
11169 if test sequent = "$host_vendor"; then
11170 # Use $CC to link under sequent, because it throws in some extra .o
11171 # files that make .init and .fini sections work.
11172 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11173 else
11174 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11175 fi
11176 hardcode_libdir_flag_spec='-L$libdir'
11177 hardcode_direct=yes
11178 hardcode_minus_L=yes
11179 hardcode_shlibpath_var=no
11180 ;;
11181
11182 sysv4)
11183 case $host_vendor in
11184 sni)
11185 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11186 hardcode_direct=yes # is this really true???
11187 ;;
11188 siemens)
11189 ## LD is ld it makes a PLAMLIB
11190 ## CC just makes a GrossModule.
11191 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11192 reload_cmds='$CC -r -o $output$reload_objs'
11193 hardcode_direct=no
11194 ;;
11195 motorola)
11196 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11197 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11198 ;;
11199 esac
11200 runpath_var='LD_RUN_PATH'
11201 hardcode_shlibpath_var=no
11202 ;;
11203
11204 sysv4.3*)
11205 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11206 hardcode_shlibpath_var=no
11207 export_dynamic_flag_spec='-Bexport'
11208 ;;
11209
11210 sysv4*MP*)
11211 if test -d /usr/nec; then
11212 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11213 hardcode_shlibpath_var=no
11214 runpath_var=LD_RUN_PATH
11215 hardcode_runpath_var=yes
11216 ld_shlibs=yes
11217 fi
11218 ;;
11219
11220 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11221 no_undefined_flag='$wl-z,text'
11222 archive_cmds_need_lc=no
11223 hardcode_shlibpath_var=no
11224 runpath_var='LD_RUN_PATH'
11225
11226 if test yes = "$GCC"; then
11227 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11228 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11229 else
11230 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11231 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11232 fi
11233 ;;
11234
11235 sysv5* | sco3.2v5* | sco5v6*)
11236 # Note: We CANNOT use -z defs as we might desire, because we do not
11237 # link with -lc, and that would cause any symbols used from libc to
11238 # always be unresolved, which means just about no library would
11239 # ever link correctly. If we're not using GNU ld we use -z text
11240 # though, which does catch some bad symbols but isn't as heavy-handed
11241 # as -z defs.
11242 no_undefined_flag='$wl-z,text'
11243 allow_undefined_flag='$wl-z,nodefs'
11244 archive_cmds_need_lc=no
11245 hardcode_shlibpath_var=no
11246 hardcode_libdir_flag_spec='$wl-R,$libdir'
11247 hardcode_libdir_separator=':'
11248 link_all_deplibs=yes
11249 export_dynamic_flag_spec='$wl-Bexport'
11250 runpath_var='LD_RUN_PATH'
11251
11252 if test yes = "$GCC"; then
11253 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11254 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11255 else
11256 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11257 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11258 fi
11259 ;;
11260
11261 uts4*)
11262 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11263 hardcode_libdir_flag_spec='-L$libdir'
11264 hardcode_shlibpath_var=no
11265 ;;
11266
11267 *)
11268 ld_shlibs=no
11269 ;;
11270 esac
11271
11272 if test sni = "$host_vendor"; then
11273 case $host in
11274 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11275 export_dynamic_flag_spec='$wl-Blargedynsym'
11276 ;;
11277 esac
11278 fi
11279 fi
11280
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11282 $as_echo "$ld_shlibs" >&6; }
11283 test no = "$ld_shlibs" && can_build_shared=no
11284
11285 with_gnu_ld=$with_gnu_ld
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301 #
11302 # Do we need to explicitly link libc?
11303 #
11304 case "x$archive_cmds_need_lc" in
11305 x|xyes)
11306 # Assume -lc should be added
11307 archive_cmds_need_lc=yes
11308
11309 if test yes,yes = "$GCC,$enable_shared"; then
11310 case $archive_cmds in
11311 *'~'*)
11312 # FIXME: we may have to deal with multi-command sequences.
11313 ;;
11314 '$CC '*)
11315 # Test whether the compiler implicitly links with -lc since on some
11316 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11317 # to ld, don't add -lc before -lgcc.
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11319 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11320 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11321 $as_echo_n "(cached) " >&6
11322 else
11323 $RM conftest*
11324 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11325
11326 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11327 (eval $ac_compile) 2>&5
11328 ac_status=$?
11329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11330 test $ac_status = 0; } 2>conftest.err; then
11331 soname=conftest
11332 lib=conftest
11333 libobjs=conftest.$ac_objext
11334 deplibs=
11335 wl=$lt_prog_compiler_wl
11336 pic_flag=$lt_prog_compiler_pic
11337 compiler_flags=-v
11338 linker_flags=-v
11339 verstring=
11340 output_objdir=.
11341 libname=conftest
11342 lt_save_allow_undefined_flag=$allow_undefined_flag
11343 allow_undefined_flag=
11344 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11345 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11346 ac_status=$?
11347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11348 test $ac_status = 0; }
11349 then
11350 lt_cv_archive_cmds_need_lc=no
11351 else
11352 lt_cv_archive_cmds_need_lc=yes
11353 fi
11354 allow_undefined_flag=$lt_save_allow_undefined_flag
11355 else
11356 cat conftest.err 1>&5
11357 fi
11358 $RM conftest*
11359
11360 fi
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11362 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11363 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11364 ;;
11365 esac
11366 fi
11367 ;;
11368 esac
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11522 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11523
11524 if test yes = "$GCC"; then
11525 case $host_os in
11526 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11527 *) lt_awk_arg='/^libraries:/' ;;
11528 esac
11529 case $host_os in
11530 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11531 *) lt_sed_strip_eq='s|=/|/|g' ;;
11532 esac
11533 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11534 case $lt_search_path_spec in
11535 *\;*)
11536 # if the path contains ";" then we assume it to be the separator
11537 # otherwise default to the standard path separator (i.e. ":") - it is
11538 # assumed that no part of a normal pathname contains ";" but that should
11539 # okay in the real world where ";" in dirpaths is itself problematic.
11540 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11541 ;;
11542 *)
11543 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11544 ;;
11545 esac
11546 # Ok, now we have the path, separated by spaces, we can step through it
11547 # and add multilib dir if necessary...
11548 lt_tmp_lt_search_path_spec=
11549 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11550 # ...but if some path component already ends with the multilib dir we assume
11551 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11552 case "$lt_multi_os_dir; $lt_search_path_spec " in
11553 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11554 lt_multi_os_dir=
11555 ;;
11556 esac
11557 for lt_sys_path in $lt_search_path_spec; do
11558 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11559 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11560 elif test -n "$lt_multi_os_dir"; then
11561 test -d "$lt_sys_path" && \
11562 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11563 fi
11564 done
11565 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11566 BEGIN {RS = " "; FS = "/|\n";} {
11567 lt_foo = "";
11568 lt_count = 0;
11569 for (lt_i = NF; lt_i > 0; lt_i--) {
11570 if ($lt_i != "" && $lt_i != ".") {
11571 if ($lt_i == "..") {
11572 lt_count++;
11573 } else {
11574 if (lt_count == 0) {
11575 lt_foo = "/" $lt_i lt_foo;
11576 } else {
11577 lt_count--;
11578 }
11579 }
11580 }
11581 }
11582 if (lt_foo != "") { lt_freq[lt_foo]++; }
11583 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11584 }'`
11585 # AWK program above erroneously prepends '/' to C:/dos/paths
11586 # for these hosts.
11587 case $host_os in
11588 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11589 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11590 esac
11591 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11592 else
11593 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11594 fi
11595 library_names_spec=
11596 libname_spec='lib$name'
11597 soname_spec=
11598 shrext_cmds=.so
11599 postinstall_cmds=
11600 postuninstall_cmds=
11601 finish_cmds=
11602 finish_eval=
11603 shlibpath_var=
11604 shlibpath_overrides_runpath=unknown
11605 version_type=none
11606 dynamic_linker="$host_os ld.so"
11607 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11608 need_lib_prefix=unknown
11609 hardcode_into_libs=no
11610
11611 # when you set need_version to no, make sure it does not cause -set_version
11612 # flags to be left without arguments
11613 need_version=unknown
11614
11615
11616
11617 case $host_os in
11618 aix3*)
11619 version_type=linux # correct to gnu/linux during the next big refactor
11620 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11621 shlibpath_var=LIBPATH
11622
11623 # AIX 3 has no versioning support, so we append a major version to the name.
11624 soname_spec='$libname$release$shared_ext$major'
11625 ;;
11626
11627 aix[4-9]*)
11628 version_type=linux # correct to gnu/linux during the next big refactor
11629 need_lib_prefix=no
11630 need_version=no
11631 hardcode_into_libs=yes
11632 if test ia64 = "$host_cpu"; then
11633 # AIX 5 supports IA64
11634 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11635 shlibpath_var=LD_LIBRARY_PATH
11636 else
11637 # With GCC up to 2.95.x, collect2 would create an import file
11638 # for dependence libraries. The import file would start with
11639 # the line '#! .'. This would cause the generated library to
11640 # depend on '.', always an invalid library. This was fixed in
11641 # development snapshots of GCC prior to 3.0.
11642 case $host_os in
11643 aix4 | aix4.[01] | aix4.[01].*)
11644 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11645 echo ' yes '
11646 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11647 :
11648 else
11649 can_build_shared=no
11650 fi
11651 ;;
11652 esac
11653 # Using Import Files as archive members, it is possible to support
11654 # filename-based versioning of shared library archives on AIX. While
11655 # this would work for both with and without runtime linking, it will
11656 # prevent static linking of such archives. So we do filename-based
11657 # shared library versioning with .so extension only, which is used
11658 # when both runtime linking and shared linking is enabled.
11659 # Unfortunately, runtime linking may impact performance, so we do
11660 # not want this to be the default eventually. Also, we use the
11661 # versioned .so libs for executables only if there is the -brtl
11662 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11663 # To allow for filename-based versioning support, we need to create
11664 # libNAME.so.V as an archive file, containing:
11665 # *) an Import File, referring to the versioned filename of the
11666 # archive as well as the shared archive member, telling the
11667 # bitwidth (32 or 64) of that shared object, and providing the
11668 # list of exported symbols of that shared object, eventually
11669 # decorated with the 'weak' keyword
11670 # *) the shared object with the F_LOADONLY flag set, to really avoid
11671 # it being seen by the linker.
11672 # At run time we better use the real file rather than another symlink,
11673 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11674
11675 case $with_aix_soname,$aix_use_runtimelinking in
11676 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11677 # soname into executable. Probably we can add versioning support to
11678 # collect2, so additional links can be useful in future.
11679 aix,yes) # traditional libtool
11680 dynamic_linker='AIX unversionable lib.so'
11681 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11682 # instead of lib<name>.a to let people know that these are not
11683 # typical AIX shared libraries.
11684 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11685 ;;
11686 aix,no) # traditional AIX only
11687 dynamic_linker='AIX lib.a(lib.so.V)'
11688 # We preserve .a as extension for shared libraries through AIX4.2
11689 # and later when we are not doing run time linking.
11690 library_names_spec='$libname$release.a $libname.a'
11691 soname_spec='$libname$release$shared_ext$major'
11692 ;;
11693 svr4,*) # full svr4 only
11694 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11695 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11696 # We do not specify a path in Import Files, so LIBPATH fires.
11697 shlibpath_overrides_runpath=yes
11698 ;;
11699 *,yes) # both, prefer svr4
11700 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11701 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11702 # unpreferred sharedlib libNAME.a needs extra handling
11703 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11704 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11705 # We do not specify a path in Import Files, so LIBPATH fires.
11706 shlibpath_overrides_runpath=yes
11707 ;;
11708 *,no) # both, prefer aix
11709 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11710 library_names_spec='$libname$release.a $libname.a'
11711 soname_spec='$libname$release$shared_ext$major'
11712 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11713 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11714 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11715 ;;
11716 esac
11717 shlibpath_var=LIBPATH
11718 fi
11719 ;;
11720
11721 amigaos*)
11722 case $host_cpu in
11723 powerpc)
11724 # Since July 2007 AmigaOS4 officially supports .so libraries.
11725 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11726 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11727 ;;
11728 m68k)
11729 library_names_spec='$libname.ixlibrary $libname.a'
11730 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11731 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11732 ;;
11733 esac
11734 ;;
11735
11736 beos*)
11737 library_names_spec='$libname$shared_ext'
11738 dynamic_linker="$host_os ld.so"
11739 shlibpath_var=LIBRARY_PATH
11740 ;;
11741
11742 bsdi[45]*)
11743 version_type=linux # correct to gnu/linux during the next big refactor
11744 need_version=no
11745 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11746 soname_spec='$libname$release$shared_ext$major'
11747 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11748 shlibpath_var=LD_LIBRARY_PATH
11749 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11750 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11751 # the default ld.so.conf also contains /usr/contrib/lib and
11752 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11753 # libtool to hard-code these into programs
11754 ;;
11755
11756 cygwin* | mingw* | windows* | pw32* | cegcc*)
11757 version_type=windows
11758 shrext_cmds=.dll
11759 need_version=no
11760 need_lib_prefix=no
11761
11762 case $GCC,$cc_basename in
11763 yes,*)
11764 # gcc
11765 library_names_spec='$libname.dll.a'
11766 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11767 postinstall_cmds='base_file=`basename \$file`~
11768 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11769 dldir=$destdir/`dirname \$dlpath`~
11770 test -d \$dldir || mkdir -p \$dldir~
11771 $install_prog $dir/$dlname \$dldir/$dlname~
11772 chmod a+x \$dldir/$dlname~
11773 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11774 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11775 fi'
11776 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11777 dlpath=$dir/\$dldll~
11778 $RM \$dlpath'
11779 shlibpath_overrides_runpath=yes
11780
11781 case $host_os in
11782 cygwin*)
11783 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11784 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11785
11786 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11787 ;;
11788 mingw* | windows* | cegcc*)
11789 # MinGW DLLs use traditional 'lib' prefix
11790 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11791 ;;
11792 pw32*)
11793 # pw32 DLLs use 'pw' prefix rather than 'lib'
11794 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11795 ;;
11796 esac
11797 dynamic_linker='Win32 ld.exe'
11798 ;;
11799
11800 *,cl* | *,icl*)
11801 # Native MSVC or ICC
11802 libname_spec='$name'
11803 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11804 library_names_spec='$libname.dll.lib'
11805
11806 case $build_os in
11807 mingw* | windows*)
11808 sys_lib_search_path_spec=
11809 lt_save_ifs=$IFS
11810 IFS=';'
11811 for lt_path in $LIB
11812 do
11813 IFS=$lt_save_ifs
11814 # Let DOS variable expansion print the short 8.3 style file name.
11815 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11816 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11817 done
11818 IFS=$lt_save_ifs
11819 # Convert to MSYS style.
11820 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11821 ;;
11822 cygwin*)
11823 # Convert to unix form, then to dos form, then back to unix form
11824 # but this time dos style (no spaces!) so that the unix form looks
11825 # like /cygdrive/c/PROGRA~1:/cygdr...
11826 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11827 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11828 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11829 ;;
11830 *)
11831 sys_lib_search_path_spec=$LIB
11832 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11833 # It is most probably a Windows format PATH.
11834 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11835 else
11836 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11837 fi
11838 # FIXME: find the short name or the path components, as spaces are
11839 # common. (e.g. "Program Files" -> "PROGRA~1")
11840 ;;
11841 esac
11842
11843 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11844 postinstall_cmds='base_file=`basename \$file`~
11845 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11846 dldir=$destdir/`dirname \$dlpath`~
11847 test -d \$dldir || mkdir -p \$dldir~
11848 $install_prog $dir/$dlname \$dldir/$dlname'
11849 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11850 dlpath=$dir/\$dldll~
11851 $RM \$dlpath'
11852 shlibpath_overrides_runpath=yes
11853 dynamic_linker='Win32 link.exe'
11854 ;;
11855
11856 *)
11857 # Assume MSVC and ICC wrapper
11858 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11859 dynamic_linker='Win32 ld.exe'
11860 ;;
11861 esac
11862 # FIXME: first we should search . and the directory the executable is in
11863 shlibpath_var=PATH
11864 ;;
11865
11866 darwin* | rhapsody*)
11867 dynamic_linker="$host_os dyld"
11868 version_type=darwin
11869 need_lib_prefix=no
11870 need_version=no
11871 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11872 soname_spec='$libname$release$major$shared_ext'
11873 shlibpath_overrides_runpath=yes
11874 shlibpath_var=DYLD_LIBRARY_PATH
11875 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11876
11877 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11878 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11879 ;;
11880
11881 dgux*)
11882 version_type=linux # correct to gnu/linux during the next big refactor
11883 need_lib_prefix=no
11884 need_version=no
11885 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11886 soname_spec='$libname$release$shared_ext$major'
11887 shlibpath_var=LD_LIBRARY_PATH
11888 ;;
11889
11890 freebsd* | dragonfly* | midnightbsd*)
11891 # DragonFly does not have aout. When/if they implement a new
11892 # versioning mechanism, adjust this.
11893 if test -x /usr/bin/objformat; then
11894 objformat=`/usr/bin/objformat`
11895 else
11896 case $host_os in
11897 freebsd[23].*) objformat=aout ;;
11898 *) objformat=elf ;;
11899 esac
11900 fi
11901 version_type=freebsd-$objformat
11902 case $version_type in
11903 freebsd-elf*)
11904 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11905 soname_spec='$libname$release$shared_ext$major'
11906 need_version=no
11907 need_lib_prefix=no
11908 ;;
11909 freebsd-*)
11910 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11911 need_version=yes
11912 ;;
11913 esac
11914 shlibpath_var=LD_LIBRARY_PATH
11915 case $host_os in
11916 freebsd2.*)
11917 shlibpath_overrides_runpath=yes
11918 ;;
11919 freebsd3.[01]* | freebsdelf3.[01]*)
11920 shlibpath_overrides_runpath=yes
11921 hardcode_into_libs=yes
11922 ;;
11923 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11924 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11925 shlibpath_overrides_runpath=no
11926 hardcode_into_libs=yes
11927 ;;
11928 *) # from 4.6 on, and DragonFly
11929 shlibpath_overrides_runpath=yes
11930 hardcode_into_libs=yes
11931 ;;
11932 esac
11933 ;;
11934
11935 haiku*)
11936 version_type=linux # correct to gnu/linux during the next big refactor
11937 need_lib_prefix=no
11938 need_version=no
11939 dynamic_linker="$host_os runtime_loader"
11940 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11941 soname_spec='$libname$release$shared_ext$major'
11942 shlibpath_var=LIBRARY_PATH
11943 shlibpath_overrides_runpath=no
11944 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11945 hardcode_into_libs=yes
11946 ;;
11947
11948 hpux9* | hpux10* | hpux11*)
11949 # Give a soname corresponding to the major version so that dld.sl refuses to
11950 # link against other versions.
11951 version_type=sunos
11952 need_lib_prefix=no
11953 need_version=no
11954 case $host_cpu in
11955 ia64*)
11956 shrext_cmds='.so'
11957 hardcode_into_libs=yes
11958 dynamic_linker="$host_os dld.so"
11959 shlibpath_var=LD_LIBRARY_PATH
11960 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11961 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11962 soname_spec='$libname$release$shared_ext$major'
11963 if test 32 = "$HPUX_IA64_MODE"; then
11964 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11965 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11966 else
11967 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11968 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11969 fi
11970 ;;
11971 hppa*64*)
11972 shrext_cmds='.sl'
11973 hardcode_into_libs=yes
11974 dynamic_linker="$host_os dld.sl"
11975 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11976 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11977 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11978 soname_spec='$libname$release$shared_ext$major'
11979 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11980 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11981 ;;
11982 *)
11983 shrext_cmds='.sl'
11984 dynamic_linker="$host_os dld.sl"
11985 shlibpath_var=SHLIB_PATH
11986 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11987 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11988 soname_spec='$libname$release$shared_ext$major'
11989 ;;
11990 esac
11991 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11992 postinstall_cmds='chmod 555 $lib'
11993 # or fails outright, so override atomically:
11994 install_override_mode=555
11995 ;;
11996
11997 interix[3-9]*)
11998 version_type=linux # correct to gnu/linux during the next big refactor
11999 need_lib_prefix=no
12000 need_version=no
12001 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12002 soname_spec='$libname$release$shared_ext$major'
12003 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12004 shlibpath_var=LD_LIBRARY_PATH
12005 shlibpath_overrides_runpath=no
12006 hardcode_into_libs=yes
12007 ;;
12008
12009 irix5* | irix6* | nonstopux*)
12010 case $host_os in
12011 nonstopux*) version_type=nonstopux ;;
12012 *)
12013 if test yes = "$lt_cv_prog_gnu_ld"; then
12014 version_type=linux # correct to gnu/linux during the next big refactor
12015 else
12016 version_type=irix
12017 fi ;;
12018 esac
12019 need_lib_prefix=no
12020 need_version=no
12021 soname_spec='$libname$release$shared_ext$major'
12022 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12023 case $host_os in
12024 irix5* | nonstopux*)
12025 libsuff= shlibsuff=
12026 ;;
12027 *)
12028 case $LD in # libtool.m4 will add one of these switches to LD
12029 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12030 libsuff= shlibsuff= libmagic=32-bit;;
12031 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12032 libsuff=32 shlibsuff=N32 libmagic=N32;;
12033 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12034 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12035 *) libsuff= shlibsuff= libmagic=never-match;;
12036 esac
12037 ;;
12038 esac
12039 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12040 shlibpath_overrides_runpath=no
12041 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12042 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12043 hardcode_into_libs=yes
12044 ;;
12045
12046 # No shared lib support for Linux oldld, aout, or coff.
12047 linux*oldld* | linux*aout* | linux*coff*)
12048 dynamic_linker=no
12049 ;;
12050
12051 linux*android*)
12052 version_type=none # Android doesn't support versioned libraries.
12053 need_lib_prefix=no
12054 need_version=no
12055 library_names_spec='$libname$release$shared_ext'
12056 soname_spec='$libname$release$shared_ext'
12057 finish_cmds=
12058 shlibpath_var=LD_LIBRARY_PATH
12059 shlibpath_overrides_runpath=yes
12060
12061 # This implies no fast_install, which is unacceptable.
12062 # Some rework will be needed to allow for fast_install
12063 # before this can be enabled.
12064 hardcode_into_libs=yes
12065
12066 dynamic_linker='Android linker'
12067 # Don't embed -rpath directories since the linker doesn't support them.
12068 hardcode_libdir_flag_spec='-L$libdir'
12069 ;;
12070
12071 # This must be glibc/ELF.
12072 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12073 version_type=linux # correct to gnu/linux during the next big refactor
12074 need_lib_prefix=no
12075 need_version=no
12076 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12077 soname_spec='$libname$release$shared_ext$major'
12078 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12079 shlibpath_var=LD_LIBRARY_PATH
12080 shlibpath_overrides_runpath=no
12081
12082 # Some binutils ld are patched to set DT_RUNPATH
12083 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12084 $as_echo_n "(cached) " >&6
12085 else
12086 lt_cv_shlibpath_overrides_runpath=no
12087 save_LDFLAGS=$LDFLAGS
12088 save_libdir=$libdir
12089 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12090 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12092 /* end confdefs.h. */
12093
12094 int
12095 main ()
12096 {
12097
12098 ;
12099 return 0;
12100 }
12101 _ACEOF
12102 if ac_fn_c_try_link "$LINENO"; then :
12103 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12104 lt_cv_shlibpath_overrides_runpath=yes
12105 fi
12106 fi
12107 rm -f core conftest.err conftest.$ac_objext \
12108 conftest$ac_exeext conftest.$ac_ext
12109 LDFLAGS=$save_LDFLAGS
12110 libdir=$save_libdir
12111
12112 fi
12113
12114 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12115
12116 # This implies no fast_install, which is unacceptable.
12117 # Some rework will be needed to allow for fast_install
12118 # before this can be enabled.
12119 hardcode_into_libs=yes
12120
12121 # Add ABI-specific directories to the system library path.
12122 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12123
12124 # Ideally, we could use ldconfig to report *all* directores which are
12125 # searched for libraries, however this is still not possible. Aside from not
12126 # being certain /sbin/ldconfig is available, command
12127 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12128 # even though it is searched at run-time. Try to do the best guess by
12129 # appending ld.so.conf contents (and includes) to the search path.
12130 if test -f /etc/ld.so.conf; then
12131 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;s/"//g;/^$/d' | tr '\n' ' '`
12132 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12133 fi
12134
12135 # We used to test for /lib/ld.so.1 and disable shared libraries on
12136 # powerpc, because MkLinux only supported shared libraries with the
12137 # GNU dynamic linker. Since this was broken with cross compilers,
12138 # most powerpc-linux boxes support dynamic linking these days and
12139 # people can always --disable-shared, the test was removed, and we
12140 # assume the GNU/Linux dynamic linker is in use.
12141 dynamic_linker='GNU/Linux ld.so'
12142 ;;
12143
12144 netbsd*)
12145 version_type=sunos
12146 need_lib_prefix=no
12147 need_version=no
12148 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12149 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12150 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12151 dynamic_linker='NetBSD (a.out) ld.so'
12152 else
12153 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12154 soname_spec='$libname$release$shared_ext$major'
12155 dynamic_linker='NetBSD ld.elf_so'
12156 fi
12157 shlibpath_var=LD_LIBRARY_PATH
12158 shlibpath_overrides_runpath=yes
12159 hardcode_into_libs=yes
12160 ;;
12161
12162 newsos6)
12163 version_type=linux # correct to gnu/linux during the next big refactor
12164 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12165 shlibpath_var=LD_LIBRARY_PATH
12166 shlibpath_overrides_runpath=yes
12167 ;;
12168
12169 *nto* | *qnx*)
12170 version_type=qnx
12171 need_lib_prefix=no
12172 need_version=no
12173 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12174 soname_spec='$libname$release$shared_ext$major'
12175 shlibpath_var=LD_LIBRARY_PATH
12176 shlibpath_overrides_runpath=no
12177 hardcode_into_libs=yes
12178 dynamic_linker='ldqnx.so'
12179 ;;
12180
12181 openbsd* | bitrig*)
12182 version_type=sunos
12183 sys_lib_dlsearch_path_spec=/usr/lib
12184 need_lib_prefix=no
12185 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12186 need_version=no
12187 else
12188 need_version=yes
12189 fi
12190 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12191 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12192 shlibpath_var=LD_LIBRARY_PATH
12193 shlibpath_overrides_runpath=yes
12194 ;;
12195
12196 os2*)
12197 libname_spec='$name'
12198 version_type=windows
12199 shrext_cmds=.dll
12200 need_version=no
12201 need_lib_prefix=no
12202 # OS/2 can only load a DLL with a base name of 8 characters or less.
12203 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12204 v=$($ECHO $release$versuffix | tr -d .-);
12205 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12206 $ECHO $n$v`$shared_ext'
12207 library_names_spec='${libname}_dll.$libext'
12208 dynamic_linker='OS/2 ld.exe'
12209 shlibpath_var=BEGINLIBPATH
12210 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12211 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12212 postinstall_cmds='base_file=`basename \$file`~
12213 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12214 dldir=$destdir/`dirname \$dlpath`~
12215 test -d \$dldir || mkdir -p \$dldir~
12216 $install_prog $dir/$dlname \$dldir/$dlname~
12217 chmod a+x \$dldir/$dlname~
12218 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12219 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12220 fi'
12221 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12222 dlpath=$dir/\$dldll~
12223 $RM \$dlpath'
12224 ;;
12225
12226 osf3* | osf4* | osf5*)
12227 version_type=osf
12228 need_lib_prefix=no
12229 need_version=no
12230 soname_spec='$libname$release$shared_ext$major'
12231 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12232 shlibpath_var=LD_LIBRARY_PATH
12233 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12234 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12235 ;;
12236
12237 rdos*)
12238 dynamic_linker=no
12239 ;;
12240
12241 solaris*)
12242 version_type=linux # correct to gnu/linux during the next big refactor
12243 need_lib_prefix=no
12244 need_version=no
12245 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12246 soname_spec='$libname$release$shared_ext$major'
12247 shlibpath_var=LD_LIBRARY_PATH
12248 shlibpath_overrides_runpath=yes
12249 hardcode_into_libs=yes
12250 # ldd complains unless libraries are executable
12251 postinstall_cmds='chmod +x $lib'
12252 ;;
12253
12254 sunos4*)
12255 version_type=sunos
12256 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12257 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12258 shlibpath_var=LD_LIBRARY_PATH
12259 shlibpath_overrides_runpath=yes
12260 if test yes = "$with_gnu_ld"; then
12261 need_lib_prefix=no
12262 fi
12263 need_version=yes
12264 ;;
12265
12266 sysv4 | sysv4.3*)
12267 version_type=linux # correct to gnu/linux during the next big refactor
12268 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12269 soname_spec='$libname$release$shared_ext$major'
12270 shlibpath_var=LD_LIBRARY_PATH
12271 case $host_vendor in
12272 sni)
12273 shlibpath_overrides_runpath=no
12274 need_lib_prefix=no
12275 runpath_var=LD_RUN_PATH
12276 ;;
12277 siemens)
12278 need_lib_prefix=no
12279 ;;
12280 motorola)
12281 need_lib_prefix=no
12282 need_version=no
12283 shlibpath_overrides_runpath=no
12284 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12285 ;;
12286 esac
12287 ;;
12288
12289 sysv4*MP*)
12290 if test -d /usr/nec; then
12291 version_type=linux # correct to gnu/linux during the next big refactor
12292 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12293 soname_spec='$libname$shared_ext.$major'
12294 shlibpath_var=LD_LIBRARY_PATH
12295 fi
12296 ;;
12297
12298 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12299 version_type=sco
12300 need_lib_prefix=no
12301 need_version=no
12302 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12303 soname_spec='$libname$release$shared_ext$major'
12304 shlibpath_var=LD_LIBRARY_PATH
12305 shlibpath_overrides_runpath=yes
12306 hardcode_into_libs=yes
12307 if test yes = "$with_gnu_ld"; then
12308 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12309 else
12310 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12311 case $host_os in
12312 sco3.2v5*)
12313 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12314 ;;
12315 esac
12316 fi
12317 sys_lib_dlsearch_path_spec='/usr/lib'
12318 ;;
12319
12320 tpf*)
12321 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12322 version_type=linux # correct to gnu/linux during the next big refactor
12323 need_lib_prefix=no
12324 need_version=no
12325 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12326 shlibpath_var=LD_LIBRARY_PATH
12327 shlibpath_overrides_runpath=no
12328 hardcode_into_libs=yes
12329 ;;
12330
12331 uts4*)
12332 version_type=linux # correct to gnu/linux during the next big refactor
12333 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12334 soname_spec='$libname$release$shared_ext$major'
12335 shlibpath_var=LD_LIBRARY_PATH
12336 ;;
12337
12338 *)
12339 dynamic_linker=no
12340 ;;
12341 esac
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12343 $as_echo "$dynamic_linker" >&6; }
12344 test no = "$dynamic_linker" && can_build_shared=no
12345
12346 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12347 if test yes = "$GCC"; then
12348 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12349 fi
12350
12351 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12352 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12353 fi
12354
12355 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12356 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12357 fi
12358
12359 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12360 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12361
12362 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12363 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12364
12365 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12366 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12465 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12466 hardcode_action=
12467 if test -n "$hardcode_libdir_flag_spec" ||
12468 test -n "$runpath_var" ||
12469 test yes = "$hardcode_automatic"; then
12470
12471 # We can hardcode non-existent directories.
12472 if test no != "$hardcode_direct" &&
12473 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12474 # have to relink, otherwise we might link with an installed library
12475 # when we should be linking with a yet-to-be-installed one
12476 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12477 test no != "$hardcode_minus_L"; then
12478 # Linking always hardcodes the temporary library directory.
12479 hardcode_action=relink
12480 else
12481 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12482 hardcode_action=immediate
12483 fi
12484 else
12485 # We cannot hardcode anything, or else we can only hardcode existing
12486 # directories.
12487 hardcode_action=unsupported
12488 fi
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12490 $as_echo "$hardcode_action" >&6; }
12491
12492 if test relink = "$hardcode_action" ||
12493 test yes = "$inherit_rpath"; then
12494 # Fast installation is not supported
12495 enable_fast_install=no
12496 elif test yes = "$shlibpath_overrides_runpath" ||
12497 test no = "$enable_shared"; then
12498 # Fast installation is not necessary
12499 enable_fast_install=needless
12500 fi
12501
12502
12503
12504
12505
12506
12507 if test yes != "$enable_dlopen"; then
12508 enable_dlopen=unknown
12509 enable_dlopen_self=unknown
12510 enable_dlopen_self_static=unknown
12511 else
12512 lt_cv_dlopen=no
12513 lt_cv_dlopen_libs=
12514
12515 case $host_os in
12516 beos*)
12517 lt_cv_dlopen=load_add_on
12518 lt_cv_dlopen_libs=
12519 lt_cv_dlopen_self=yes
12520 ;;
12521
12522 mingw* | windows* | pw32* | cegcc*)
12523 lt_cv_dlopen=LoadLibrary
12524 lt_cv_dlopen_libs=
12525 ;;
12526
12527 cygwin*)
12528 lt_cv_dlopen=dlopen
12529 lt_cv_dlopen_libs=
12530 ;;
12531
12532 darwin*)
12533 # if libdl is installed we need to link against it
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12535 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12536 if ${ac_cv_lib_dl_dlopen+:} false; then :
12537 $as_echo_n "(cached) " >&6
12538 else
12539 ac_check_lib_save_LIBS=$LIBS
12540 LIBS="-ldl $LIBS"
12541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12542 /* end confdefs.h. */
12543
12544 /* Override any GCC internal prototype to avoid an error.
12545 Use char because int might match the return type of a GCC
12546 builtin and then its argument prototype would still apply. */
12547 #ifdef __cplusplus
12548 extern "C"
12549 #endif
12550 char dlopen ();
12551 int
12552 main ()
12553 {
12554 return dlopen ();
12555 ;
12556 return 0;
12557 }
12558 _ACEOF
12559 if ac_fn_c_try_link "$LINENO"; then :
12560 ac_cv_lib_dl_dlopen=yes
12561 else
12562 ac_cv_lib_dl_dlopen=no
12563 fi
12564 rm -f core conftest.err conftest.$ac_objext \
12565 conftest$ac_exeext conftest.$ac_ext
12566 LIBS=$ac_check_lib_save_LIBS
12567 fi
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12569 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12570 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12571 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12572 else
12573
12574 lt_cv_dlopen=dyld
12575 lt_cv_dlopen_libs=
12576 lt_cv_dlopen_self=yes
12577
12578 fi
12579
12580 ;;
12581
12582 tpf*)
12583 # Don't try to run any link tests for TPF. We know it's impossible
12584 # because TPF is a cross-compiler, and we know how we open DSOs.
12585 lt_cv_dlopen=dlopen
12586 lt_cv_dlopen_libs=
12587 lt_cv_dlopen_self=no
12588 ;;
12589
12590 *)
12591 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12592 if test "x$ac_cv_func_shl_load" = xyes; then :
12593 lt_cv_dlopen=shl_load
12594 else
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12596 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12597 if ${ac_cv_lib_dld_shl_load+:} false; then :
12598 $as_echo_n "(cached) " >&6
12599 else
12600 ac_check_lib_save_LIBS=$LIBS
12601 LIBS="-ldld $LIBS"
12602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12603 /* end confdefs.h. */
12604
12605 /* Override any GCC internal prototype to avoid an error.
12606 Use char because int might match the return type of a GCC
12607 builtin and then its argument prototype would still apply. */
12608 #ifdef __cplusplus
12609 extern "C"
12610 #endif
12611 char shl_load ();
12612 int
12613 main ()
12614 {
12615 return shl_load ();
12616 ;
12617 return 0;
12618 }
12619 _ACEOF
12620 if ac_fn_c_try_link "$LINENO"; then :
12621 ac_cv_lib_dld_shl_load=yes
12622 else
12623 ac_cv_lib_dld_shl_load=no
12624 fi
12625 rm -f core conftest.err conftest.$ac_objext \
12626 conftest$ac_exeext conftest.$ac_ext
12627 LIBS=$ac_check_lib_save_LIBS
12628 fi
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12630 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12631 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12632 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12633 else
12634 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12635 if test "x$ac_cv_func_dlopen" = xyes; then :
12636 lt_cv_dlopen=dlopen
12637 else
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12639 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12640 if ${ac_cv_lib_dl_dlopen+:} false; then :
12641 $as_echo_n "(cached) " >&6
12642 else
12643 ac_check_lib_save_LIBS=$LIBS
12644 LIBS="-ldl $LIBS"
12645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12646 /* end confdefs.h. */
12647
12648 /* Override any GCC internal prototype to avoid an error.
12649 Use char because int might match the return type of a GCC
12650 builtin and then its argument prototype would still apply. */
12651 #ifdef __cplusplus
12652 extern "C"
12653 #endif
12654 char dlopen ();
12655 int
12656 main ()
12657 {
12658 return dlopen ();
12659 ;
12660 return 0;
12661 }
12662 _ACEOF
12663 if ac_fn_c_try_link "$LINENO"; then :
12664 ac_cv_lib_dl_dlopen=yes
12665 else
12666 ac_cv_lib_dl_dlopen=no
12667 fi
12668 rm -f core conftest.err conftest.$ac_objext \
12669 conftest$ac_exeext conftest.$ac_ext
12670 LIBS=$ac_check_lib_save_LIBS
12671 fi
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12673 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12674 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12675 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12676 else
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12678 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12679 if ${ac_cv_lib_svld_dlopen+:} false; then :
12680 $as_echo_n "(cached) " >&6
12681 else
12682 ac_check_lib_save_LIBS=$LIBS
12683 LIBS="-lsvld $LIBS"
12684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12685 /* end confdefs.h. */
12686
12687 /* Override any GCC internal prototype to avoid an error.
12688 Use char because int might match the return type of a GCC
12689 builtin and then its argument prototype would still apply. */
12690 #ifdef __cplusplus
12691 extern "C"
12692 #endif
12693 char dlopen ();
12694 int
12695 main ()
12696 {
12697 return dlopen ();
12698 ;
12699 return 0;
12700 }
12701 _ACEOF
12702 if ac_fn_c_try_link "$LINENO"; then :
12703 ac_cv_lib_svld_dlopen=yes
12704 else
12705 ac_cv_lib_svld_dlopen=no
12706 fi
12707 rm -f core conftest.err conftest.$ac_objext \
12708 conftest$ac_exeext conftest.$ac_ext
12709 LIBS=$ac_check_lib_save_LIBS
12710 fi
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12712 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12713 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12714 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12715 else
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12717 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12718 if ${ac_cv_lib_dld_dld_link+:} false; then :
12719 $as_echo_n "(cached) " >&6
12720 else
12721 ac_check_lib_save_LIBS=$LIBS
12722 LIBS="-ldld $LIBS"
12723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12724 /* end confdefs.h. */
12725
12726 /* Override any GCC internal prototype to avoid an error.
12727 Use char because int might match the return type of a GCC
12728 builtin and then its argument prototype would still apply. */
12729 #ifdef __cplusplus
12730 extern "C"
12731 #endif
12732 char dld_link ();
12733 int
12734 main ()
12735 {
12736 return dld_link ();
12737 ;
12738 return 0;
12739 }
12740 _ACEOF
12741 if ac_fn_c_try_link "$LINENO"; then :
12742 ac_cv_lib_dld_dld_link=yes
12743 else
12744 ac_cv_lib_dld_dld_link=no
12745 fi
12746 rm -f core conftest.err conftest.$ac_objext \
12747 conftest$ac_exeext conftest.$ac_ext
12748 LIBS=$ac_check_lib_save_LIBS
12749 fi
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12751 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12752 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12753 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12754 fi
12755
12756
12757 fi
12758
12759
12760 fi
12761
12762
12763 fi
12764
12765
12766 fi
12767
12768
12769 fi
12770
12771 ;;
12772 esac
12773
12774 if test no = "$lt_cv_dlopen"; then
12775 enable_dlopen=no
12776 else
12777 enable_dlopen=yes
12778 fi
12779
12780 case $lt_cv_dlopen in
12781 dlopen)
12782 save_CPPFLAGS=$CPPFLAGS
12783 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12784
12785 save_LDFLAGS=$LDFLAGS
12786 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12787
12788 save_LIBS=$LIBS
12789 LIBS="$lt_cv_dlopen_libs $LIBS"
12790
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12792 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12793 if ${lt_cv_dlopen_self+:} false; then :
12794 $as_echo_n "(cached) " >&6
12795 else
12796 if test yes = "$cross_compiling"; then :
12797 lt_cv_dlopen_self=cross
12798 else
12799 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12800 lt_status=$lt_dlunknown
12801 cat > conftest.$ac_ext <<_LT_EOF
12802 #line $LINENO "configure"
12803 #include "confdefs.h"
12804
12805 #if HAVE_DLFCN_H
12806 #include <dlfcn.h>
12807 #endif
12808
12809 #include <stdio.h>
12810
12811 #ifdef RTLD_GLOBAL
12812 # define LT_DLGLOBAL RTLD_GLOBAL
12813 #else
12814 # ifdef DL_GLOBAL
12815 # define LT_DLGLOBAL DL_GLOBAL
12816 # else
12817 # define LT_DLGLOBAL 0
12818 # endif
12819 #endif
12820
12821 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12822 find out it does not work in some platform. */
12823 #ifndef LT_DLLAZY_OR_NOW
12824 # ifdef RTLD_LAZY
12825 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12826 # else
12827 # ifdef DL_LAZY
12828 # define LT_DLLAZY_OR_NOW DL_LAZY
12829 # else
12830 # ifdef RTLD_NOW
12831 # define LT_DLLAZY_OR_NOW RTLD_NOW
12832 # else
12833 # ifdef DL_NOW
12834 # define LT_DLLAZY_OR_NOW DL_NOW
12835 # else
12836 # define LT_DLLAZY_OR_NOW 0
12837 # endif
12838 # endif
12839 # endif
12840 # endif
12841 #endif
12842
12843 /* When -fvisibility=hidden is used, assume the code has been annotated
12844 correspondingly for the symbols needed. */
12845 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12846 int fnord (void) __attribute__((visibility("default")));
12847 #endif
12848
12849 int fnord (void) { return 42; }
12850 int main (void)
12851 {
12852 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12853 int status = $lt_dlunknown;
12854
12855 if (self)
12856 {
12857 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12858 else
12859 {
12860 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12861 else puts (dlerror ());
12862 }
12863 /* dlclose (self); */
12864 }
12865 else
12866 puts (dlerror ());
12867
12868 return status;
12869 }
12870 _LT_EOF
12871 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12872 (eval $ac_link) 2>&5
12873 ac_status=$?
12874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12875 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12876 (./conftest; exit; ) >&5 2>/dev/null
12877 lt_status=$?
12878 case x$lt_status in
12879 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12880 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12881 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12882 esac
12883 else :
12884 # compilation failed
12885 lt_cv_dlopen_self=no
12886 fi
12887 fi
12888 rm -fr conftest*
12889
12890
12891 fi
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12893 $as_echo "$lt_cv_dlopen_self" >&6; }
12894
12895 if test yes = "$lt_cv_dlopen_self"; then
12896 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12898 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12899 if ${lt_cv_dlopen_self_static+:} false; then :
12900 $as_echo_n "(cached) " >&6
12901 else
12902 if test yes = "$cross_compiling"; then :
12903 lt_cv_dlopen_self_static=cross
12904 else
12905 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12906 lt_status=$lt_dlunknown
12907 cat > conftest.$ac_ext <<_LT_EOF
12908 #line $LINENO "configure"
12909 #include "confdefs.h"
12910
12911 #if HAVE_DLFCN_H
12912 #include <dlfcn.h>
12913 #endif
12914
12915 #include <stdio.h>
12916
12917 #ifdef RTLD_GLOBAL
12918 # define LT_DLGLOBAL RTLD_GLOBAL
12919 #else
12920 # ifdef DL_GLOBAL
12921 # define LT_DLGLOBAL DL_GLOBAL
12922 # else
12923 # define LT_DLGLOBAL 0
12924 # endif
12925 #endif
12926
12927 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12928 find out it does not work in some platform. */
12929 #ifndef LT_DLLAZY_OR_NOW
12930 # ifdef RTLD_LAZY
12931 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12932 # else
12933 # ifdef DL_LAZY
12934 # define LT_DLLAZY_OR_NOW DL_LAZY
12935 # else
12936 # ifdef RTLD_NOW
12937 # define LT_DLLAZY_OR_NOW RTLD_NOW
12938 # else
12939 # ifdef DL_NOW
12940 # define LT_DLLAZY_OR_NOW DL_NOW
12941 # else
12942 # define LT_DLLAZY_OR_NOW 0
12943 # endif
12944 # endif
12945 # endif
12946 # endif
12947 #endif
12948
12949 /* When -fvisibility=hidden is used, assume the code has been annotated
12950 correspondingly for the symbols needed. */
12951 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12952 int fnord (void) __attribute__((visibility("default")));
12953 #endif
12954
12955 int fnord (void) { return 42; }
12956 int main (void)
12957 {
12958 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12959 int status = $lt_dlunknown;
12960
12961 if (self)
12962 {
12963 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12964 else
12965 {
12966 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12967 else puts (dlerror ());
12968 }
12969 /* dlclose (self); */
12970 }
12971 else
12972 puts (dlerror ());
12973
12974 return status;
12975 }
12976 _LT_EOF
12977 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12978 (eval $ac_link) 2>&5
12979 ac_status=$?
12980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12981 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12982 (./conftest; exit; ) >&5 2>/dev/null
12983 lt_status=$?
12984 case x$lt_status in
12985 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12986 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12987 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12988 esac
12989 else :
12990 # compilation failed
12991 lt_cv_dlopen_self_static=no
12992 fi
12993 fi
12994 rm -fr conftest*
12995
12996
12997 fi
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12999 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13000 fi
13001
13002 CPPFLAGS=$save_CPPFLAGS
13003 LDFLAGS=$save_LDFLAGS
13004 LIBS=$save_LIBS
13005 ;;
13006 esac
13007
13008 case $lt_cv_dlopen_self in
13009 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13010 *) enable_dlopen_self=unknown ;;
13011 esac
13012
13013 case $lt_cv_dlopen_self_static in
13014 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13015 *) enable_dlopen_self_static=unknown ;;
13016 esac
13017 fi
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035 striplib=
13036 old_striplib=
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13038 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13039 if test -z "$STRIP"; then
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13041 $as_echo "no" >&6; }
13042 else
13043 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13044 old_striplib="$STRIP --strip-debug"
13045 striplib="$STRIP --strip-unneeded"
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13047 $as_echo "yes" >&6; }
13048 else
13049 case $host_os in
13050 darwin*)
13051 # FIXME - insert some real tests, host_os isn't really good enough
13052 striplib="$STRIP -x"
13053 old_striplib="$STRIP -S"
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13055 $as_echo "yes" >&6; }
13056 ;;
13057 freebsd*)
13058 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13059 old_striplib="$STRIP --strip-debug"
13060 striplib="$STRIP --strip-unneeded"
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13062 $as_echo "yes" >&6; }
13063 else
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13065 $as_echo "no" >&6; }
13066 fi
13067 ;;
13068 *)
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13070 $as_echo "no" >&6; }
13071 ;;
13072 esac
13073 fi
13074 fi
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087 # Report what library types will actually be built
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13089 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13091 $as_echo "$can_build_shared" >&6; }
13092
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13094 $as_echo_n "checking whether to build shared libraries... " >&6; }
13095 test no = "$can_build_shared" && enable_shared=no
13096
13097 # On AIX, shared libraries and static libraries use the same namespace, and
13098 # are all built from PIC.
13099 case $host_os in
13100 aix3*)
13101 test yes = "$enable_shared" && enable_static=no
13102 if test -n "$RANLIB"; then
13103 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13104 postinstall_cmds='$RANLIB $lib'
13105 fi
13106 ;;
13107
13108 aix[4-9]*)
13109 if test ia64 != "$host_cpu"; then
13110 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13111 yes,aix,yes) ;; # shared object as lib.so file only
13112 yes,svr4,*) ;; # shared object as lib.so archive member only
13113 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13114 esac
13115 fi
13116 ;;
13117 esac
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13119 $as_echo "$enable_shared" >&6; }
13120
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13122 $as_echo_n "checking whether to build static libraries... " >&6; }
13123 # Make sure either enable_shared or enable_static is yes.
13124 test yes = "$enable_shared" || enable_static=yes
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13126 $as_echo "$enable_static" >&6; }
13127
13128
13129
13130
13131 fi
13132 ac_ext=c
13133 ac_cpp='$CPP $CPPFLAGS'
13134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13137
13138 CC=$lt_save_CC
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154 ac_config_commands="$ac_config_commands libtool"
13155
13156
13157
13158
13159 # Only expand once:
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13170 if test -n "$ac_tool_prefix"; then
13171 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13172 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13174 $as_echo_n "checking for $ac_word... " >&6; }
13175 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13176 $as_echo_n "(cached) " >&6
13177 else
13178 case $PKG_CONFIG in
13179 [\\/]* | ?:[\\/]*)
13180 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13181 ;;
13182 *)
13183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13184 for as_dir in $PATH
13185 do
13186 IFS=$as_save_IFS
13187 test -z "$as_dir" && as_dir=.
13188 for ac_exec_ext in '' $ac_executable_extensions; do
13189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13190 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13192 break 2
13193 fi
13194 done
13195 done
13196 IFS=$as_save_IFS
13197
13198 ;;
13199 esac
13200 fi
13201 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13202 if test -n "$PKG_CONFIG"; then
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13204 $as_echo "$PKG_CONFIG" >&6; }
13205 else
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13207 $as_echo "no" >&6; }
13208 fi
13209
13210
13211 fi
13212 if test -z "$ac_cv_path_PKG_CONFIG"; then
13213 ac_pt_PKG_CONFIG=$PKG_CONFIG
13214 # Extract the first word of "pkg-config", so it can be a program name with args.
13215 set dummy pkg-config; ac_word=$2
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13217 $as_echo_n "checking for $ac_word... " >&6; }
13218 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13219 $as_echo_n "(cached) " >&6
13220 else
13221 case $ac_pt_PKG_CONFIG in
13222 [\\/]* | ?:[\\/]*)
13223 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13224 ;;
13225 *)
13226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13227 for as_dir in $PATH
13228 do
13229 IFS=$as_save_IFS
13230 test -z "$as_dir" && as_dir=.
13231 for ac_exec_ext in '' $ac_executable_extensions; do
13232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13233 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13235 break 2
13236 fi
13237 done
13238 done
13239 IFS=$as_save_IFS
13240
13241 ;;
13242 esac
13243 fi
13244 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13245 if test -n "$ac_pt_PKG_CONFIG"; then
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13247 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13248 else
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13250 $as_echo "no" >&6; }
13251 fi
13252
13253 if test "x$ac_pt_PKG_CONFIG" = x; then
13254 PKG_CONFIG=""
13255 else
13256 case $cross_compiling:$ac_tool_warned in
13257 yes:)
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13259 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13260 ac_tool_warned=yes ;;
13261 esac
13262 PKG_CONFIG=$ac_pt_PKG_CONFIG
13263 fi
13264 else
13265 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13266 fi
13267
13268 fi
13269 if test -n "$PKG_CONFIG"; then
13270 _pkg_min_version=0.9.0
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13272 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13273 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13275 $as_echo "yes" >&6; }
13276 else
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13278 $as_echo "no" >&6; }
13279 PKG_CONFIG=""
13280 fi
13281 fi
13282
13283 # =============================================================
13284 # Check for typedefs, structures, and compiler characteristics.
13285 # =============================================================
13286
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13288 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13289 if ${ac_cv_c_const+:} false; then :
13290 $as_echo_n "(cached) " >&6
13291 else
13292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13293 /* end confdefs.h. */
13294
13295 int
13296 main ()
13297 {
13298
13299 #ifndef __cplusplus
13300 /* Ultrix mips cc rejects this sort of thing. */
13301 typedef int charset[2];
13302 const charset cs = { 0, 0 };
13303 /* SunOS 4.1.1 cc rejects this. */
13304 char const *const *pcpcc;
13305 char **ppc;
13306 /* NEC SVR4.0.2 mips cc rejects this. */
13307 struct point {int x, y;};
13308 static struct point const zero = {0,0};
13309 /* AIX XL C 1.02.0.0 rejects this.
13310 It does not let you subtract one const X* pointer from another in
13311 an arm of an if-expression whose if-part is not a constant
13312 expression */
13313 const char *g = "string";
13314 pcpcc = &g + (g ? g-g : 0);
13315 /* HPUX 7.0 cc rejects these. */
13316 ++pcpcc;
13317 ppc = (char**) pcpcc;
13318 pcpcc = (char const *const *) ppc;
13319 { /* SCO 3.2v4 cc rejects this sort of thing. */
13320 char tx;
13321 char *t = &tx;
13322 char const *s = 0 ? (char *) 0 : (char const *) 0;
13323
13324 *t++ = 0;
13325 if (s) return 0;
13326 }
13327 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13328 int x[] = {25, 17};
13329 const int *foo = &x[0];
13330 ++foo;
13331 }
13332 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13333 typedef const int *iptr;
13334 iptr p = 0;
13335 ++p;
13336 }
13337 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13338 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13339 struct s { int j; const int *ap[3]; } bx;
13340 struct s *b = &bx; b->j = 5;
13341 }
13342 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13343 const int foo = 10;
13344 if (!foo) return 0;
13345 }
13346 return !cs[0] && !zero.x;
13347 #endif
13348
13349 ;
13350 return 0;
13351 }
13352 _ACEOF
13353 if ac_fn_c_try_compile "$LINENO"; then :
13354 ac_cv_c_const=yes
13355 else
13356 ac_cv_c_const=no
13357 fi
13358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13359 fi
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13361 $as_echo "$ac_cv_c_const" >&6; }
13362 if test $ac_cv_c_const = no; then
13363
13364 $as_echo "#define const /**/" >>confdefs.h
13365
13366 fi
13367
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13369 $as_echo_n "checking for inline... " >&6; }
13370 if ${ac_cv_c_inline+:} false; then :
13371 $as_echo_n "(cached) " >&6
13372 else
13373 ac_cv_c_inline=no
13374 for ac_kw in inline __inline__ __inline; do
13375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13376 /* end confdefs.h. */
13377 #ifndef __cplusplus
13378 typedef int foo_t;
13379 static $ac_kw foo_t static_foo () {return 0; }
13380 $ac_kw foo_t foo () {return 0; }
13381 #endif
13382
13383 _ACEOF
13384 if ac_fn_c_try_compile "$LINENO"; then :
13385 ac_cv_c_inline=$ac_kw
13386 fi
13387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13388 test "$ac_cv_c_inline" != no && break
13389 done
13390
13391 fi
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13393 $as_echo "$ac_cv_c_inline" >&6; }
13394
13395 case $ac_cv_c_inline in
13396 inline | yes) ;;
13397 *)
13398 case $ac_cv_c_inline in
13399 no) ac_val=;;
13400 *) ac_val=$ac_cv_c_inline;;
13401 esac
13402 cat >>confdefs.h <<_ACEOF
13403 #ifndef __cplusplus
13404 #define inline $ac_val
13405 #endif
13406 _ACEOF
13407 ;;
13408 esac
13409
13410
13411 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13412 if test "x$ac_cv_type_pid_t" = xyes; then :
13413
13414 else
13415
13416 cat >>confdefs.h <<_ACEOF
13417 #define pid_t int
13418 _ACEOF
13419
13420 fi
13421
13422 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13423 if test "x$ac_cv_type_size_t" = xyes; then :
13424
13425 else
13426
13427 cat >>confdefs.h <<_ACEOF
13428 #define size_t unsigned int
13429 _ACEOF
13430
13431 fi
13432
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13434 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13435 if ${ac_cv_c_bigendian+:} false; then :
13436 $as_echo_n "(cached) " >&6
13437 else
13438 ac_cv_c_bigendian=unknown
13439 # See if we're dealing with a universal compiler.
13440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13441 /* end confdefs.h. */
13442 #ifndef __APPLE_CC__
13443 not a universal capable compiler
13444 #endif
13445 typedef int dummy;
13446
13447 _ACEOF
13448 if ac_fn_c_try_compile "$LINENO"; then :
13449
13450 # Check for potential -arch flags. It is not universal unless
13451 # there are at least two -arch flags with different values.
13452 ac_arch=
13453 ac_prev=
13454 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13455 if test -n "$ac_prev"; then
13456 case $ac_word in
13457 i?86 | x86_64 | ppc | ppc64)
13458 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13459 ac_arch=$ac_word
13460 else
13461 ac_cv_c_bigendian=universal
13462 break
13463 fi
13464 ;;
13465 esac
13466 ac_prev=
13467 elif test "x$ac_word" = "x-arch"; then
13468 ac_prev=arch
13469 fi
13470 done
13471 fi
13472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13473 if test $ac_cv_c_bigendian = unknown; then
13474 # See if sys/param.h defines the BYTE_ORDER macro.
13475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13476 /* end confdefs.h. */
13477 #include <sys/types.h>
13478 #include <sys/param.h>
13479
13480 int
13481 main ()
13482 {
13483 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13484 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13485 && LITTLE_ENDIAN)
13486 bogus endian macros
13487 #endif
13488
13489 ;
13490 return 0;
13491 }
13492 _ACEOF
13493 if ac_fn_c_try_compile "$LINENO"; then :
13494 # It does; now see whether it defined to BIG_ENDIAN or not.
13495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13496 /* end confdefs.h. */
13497 #include <sys/types.h>
13498 #include <sys/param.h>
13499
13500 int
13501 main ()
13502 {
13503 #if BYTE_ORDER != BIG_ENDIAN
13504 not big endian
13505 #endif
13506
13507 ;
13508 return 0;
13509 }
13510 _ACEOF
13511 if ac_fn_c_try_compile "$LINENO"; then :
13512 ac_cv_c_bigendian=yes
13513 else
13514 ac_cv_c_bigendian=no
13515 fi
13516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13517 fi
13518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13519 fi
13520 if test $ac_cv_c_bigendian = unknown; then
13521 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13523 /* end confdefs.h. */
13524 #include <limits.h>
13525
13526 int
13527 main ()
13528 {
13529 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13530 bogus endian macros
13531 #endif
13532
13533 ;
13534 return 0;
13535 }
13536 _ACEOF
13537 if ac_fn_c_try_compile "$LINENO"; then :
13538 # It does; now see whether it defined to _BIG_ENDIAN or not.
13539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13540 /* end confdefs.h. */
13541 #include <limits.h>
13542
13543 int
13544 main ()
13545 {
13546 #ifndef _BIG_ENDIAN
13547 not big endian
13548 #endif
13549
13550 ;
13551 return 0;
13552 }
13553 _ACEOF
13554 if ac_fn_c_try_compile "$LINENO"; then :
13555 ac_cv_c_bigendian=yes
13556 else
13557 ac_cv_c_bigendian=no
13558 fi
13559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13560 fi
13561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13562 fi
13563 if test $ac_cv_c_bigendian = unknown; then
13564 # Compile a test program.
13565 if test "$cross_compiling" = yes; then :
13566 # Try to guess by grepping values from an object file.
13567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13568 /* end confdefs.h. */
13569 unsigned short int ascii_mm[] =
13570 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13571 unsigned short int ascii_ii[] =
13572 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13573 int use_ascii (int i) {
13574 return ascii_mm[i] + ascii_ii[i];
13575 }
13576 unsigned short int ebcdic_ii[] =
13577 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13578 unsigned short int ebcdic_mm[] =
13579 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13580 int use_ebcdic (int i) {
13581 return ebcdic_mm[i] + ebcdic_ii[i];
13582 }
13583 int
13584 main (int argc, char **argv)
13585 {
13586 /* Intimidate the compiler so that it does not
13587 optimize the arrays away. */
13588 char *p = argv[0];
13589 ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
13590 ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
13591 return use_ascii (argc) == use_ebcdic (*p);
13592 }
13593 _ACEOF
13594 if ac_fn_c_try_link "$LINENO"; then :
13595 if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
13596 ac_cv_c_bigendian=yes
13597 fi
13598 if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
13599 if test "$ac_cv_c_bigendian" = unknown; then
13600 ac_cv_c_bigendian=no
13601 else
13602 # finding both strings is unlikely to happen, but who knows?
13603 ac_cv_c_bigendian=unknown
13604 fi
13605 fi
13606 fi
13607 rm -f core conftest.err conftest.$ac_objext \
13608 conftest$ac_exeext conftest.$ac_ext
13609 else
13610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13611 /* end confdefs.h. */
13612 $ac_includes_default
13613 int
13614 main ()
13615 {
13616
13617 /* Are we little or big endian? From Harbison&Steele. */
13618 union
13619 {
13620 long int l;
13621 char c[sizeof (long int)];
13622 } u;
13623 u.l = 1;
13624 return u.c[sizeof (long int) - 1] == 1;
13625
13626 ;
13627 return 0;
13628 }
13629 _ACEOF
13630 if ac_fn_c_try_run "$LINENO"; then :
13631 ac_cv_c_bigendian=no
13632 else
13633 ac_cv_c_bigendian=yes
13634 fi
13635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13636 conftest.$ac_objext conftest.beam conftest.$ac_ext
13637 fi
13638
13639 fi
13640 fi
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13642 $as_echo "$ac_cv_c_bigendian" >&6; }
13643 case $ac_cv_c_bigendian in #(
13644 yes)
13645 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13646 ;; #(
13647 no)
13648 ;; #(
13649 universal)
13650
13651 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13652
13653 ;; #(
13654 *)
13655 as_fn_error $? "unknown endianness
13656 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13657 esac
13658
13659
13660 # =======================
13661 # Check for header files.
13662 # =======================
13663
13664 for ac_header in fcntl.h limits.h malloc.h memory.h sys/ioctl.h unistd.h
13665 do :
13666 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13667 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13668 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13669 cat >>confdefs.h <<_ACEOF
13670 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13671 _ACEOF
13672
13673 fi
13674
13675 done
13676
13677
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
13679 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
13680 if ${ac_cv_header_sys_wait_h+:} false; then :
13681 $as_echo_n "(cached) " >&6
13682 else
13683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13684 /* end confdefs.h. */
13685 #include <sys/types.h>
13686 #include <sys/wait.h>
13687 #ifndef WEXITSTATUS
13688 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
13689 #endif
13690 #ifndef WIFEXITED
13691 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13692 #endif
13693
13694 int
13695 main ()
13696 {
13697 int s;
13698 wait (&s);
13699 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13700 ;
13701 return 0;
13702 }
13703 _ACEOF
13704 if ac_fn_c_try_compile "$LINENO"; then :
13705 ac_cv_header_sys_wait_h=yes
13706 else
13707 ac_cv_header_sys_wait_h=no
13708 fi
13709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13710 fi
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
13712 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
13713 if test $ac_cv_header_sys_wait_h = yes; then
13714
13715 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
13716
13717 fi
13718
13719
13720 # ============================
13721 # Check for library functions.
13722 # ============================
13723
13724 for ac_func in posix_memalign setenv snprintf srandom
13725 do :
13726 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13727 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13728 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13729 cat >>confdefs.h <<_ACEOF
13730 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13731 _ACEOF
13732
13733 fi
13734 done
13735
13736
13737 # ====================
13738 # Check for libraries.
13739 # ====================
13740
13741 # dl functions
13742 # ------------
13743 if test $libmikmod_mingw = yes
13744 then
13745 # libmikmod_dynload variable is for dlopen() api only
13746 libmikmod_dynload=no
13747 fi
13748
13749 if test $libmikmod_dynload = yes
13750 then
13751 libmikmod_dllib=
13752 # SunOS-style shared libraries
13753 for ac_header in dlfcn.h
13754 do :
13755 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
13756 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13757 cat >>confdefs.h <<_ACEOF
13758 #define HAVE_DLFCN_H 1
13759 _ACEOF
13760
13761 fi
13762
13763 done
13764
13765 if test $ac_cv_header_dlfcn_h = yes
13766 then
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
13768 $as_echo_n "checking for dlopen in -lc... " >&6; }
13769 if ${ac_cv_lib_c_dlopen+:} false; then :
13770 $as_echo_n "(cached) " >&6
13771 else
13772 ac_check_lib_save_LIBS=$LIBS
13773 LIBS="-lc $LIBS"
13774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13775 /* end confdefs.h. */
13776
13777 /* Override any GCC internal prototype to avoid an error.
13778 Use char because int might match the return type of a GCC
13779 builtin and then its argument prototype would still apply. */
13780 #ifdef __cplusplus
13781 extern "C"
13782 #endif
13783 char dlopen ();
13784 int
13785 main ()
13786 {
13787 return dlopen ();
13788 ;
13789 return 0;
13790 }
13791 _ACEOF
13792 if ac_fn_c_try_link "$LINENO"; then :
13793 ac_cv_lib_c_dlopen=yes
13794 else
13795 ac_cv_lib_c_dlopen=no
13796 fi
13797 rm -f core conftest.err conftest.$ac_objext \
13798 conftest$ac_exeext conftest.$ac_ext
13799 LIBS=$ac_check_lib_save_LIBS
13800 fi
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
13802 $as_echo "$ac_cv_lib_c_dlopen" >&6; }
13803 if test "x$ac_cv_lib_c_dlopen" = xyes; then :
13804 libmikmod_dynload_style=sun
13805 else
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13807 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13808 if ${ac_cv_lib_dl_dlopen+:} false; then :
13809 $as_echo_n "(cached) " >&6
13810 else
13811 ac_check_lib_save_LIBS=$LIBS
13812 LIBS="-ldl $LIBS"
13813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13814 /* end confdefs.h. */
13815
13816 /* Override any GCC internal prototype to avoid an error.
13817 Use char because int might match the return type of a GCC
13818 builtin and then its argument prototype would still apply. */
13819 #ifdef __cplusplus
13820 extern "C"
13821 #endif
13822 char dlopen ();
13823 int
13824 main ()
13825 {
13826 return dlopen ();
13827 ;
13828 return 0;
13829 }
13830 _ACEOF
13831 if ac_fn_c_try_link "$LINENO"; then :
13832 ac_cv_lib_dl_dlopen=yes
13833 else
13834 ac_cv_lib_dl_dlopen=no
13835 fi
13836 rm -f core conftest.err conftest.$ac_objext \
13837 conftest$ac_exeext conftest.$ac_ext
13838 LIBS=$ac_check_lib_save_LIBS
13839 fi
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13841 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13842 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13843 libmikmod_dynload_style=sun
13844 libmikmod_dllib="-ldl"
13845 else
13846 libmikmod_dynload=no
13847 fi
13848
13849 fi
13850
13851 else
13852 # HP-UX-style shared libraries
13853 for ac_header in dl.h
13854 do :
13855 ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default"
13856 if test "x$ac_cv_header_dl_h" = xyes; then :
13857 cat >>confdefs.h <<_ACEOF
13858 #define HAVE_DL_H 1
13859 _ACEOF
13860
13861 fi
13862
13863 done
13864
13865 if test $ac_cv_header_dl_h = yes
13866 then
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13868 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13869 if ${ac_cv_lib_dld_shl_load+:} false; then :
13870 $as_echo_n "(cached) " >&6
13871 else
13872 ac_check_lib_save_LIBS=$LIBS
13873 LIBS="-ldld $LIBS"
13874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13875 /* end confdefs.h. */
13876
13877 /* Override any GCC internal prototype to avoid an error.
13878 Use char because int might match the return type of a GCC
13879 builtin and then its argument prototype would still apply. */
13880 #ifdef __cplusplus
13881 extern "C"
13882 #endif
13883 char shl_load ();
13884 int
13885 main ()
13886 {
13887 return shl_load ();
13888 ;
13889 return 0;
13890 }
13891 _ACEOF
13892 if ac_fn_c_try_link "$LINENO"; then :
13893 ac_cv_lib_dld_shl_load=yes
13894 else
13895 ac_cv_lib_dld_shl_load=no
13896 fi
13897 rm -f core conftest.err conftest.$ac_objext \
13898 conftest$ac_exeext conftest.$ac_ext
13899 LIBS=$ac_check_lib_save_LIBS
13900 fi
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13902 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13903 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13904 libmikmod_dynload_style=hp
13905 libmikmod_dllib="-ldld"
13906 CFLAGS="${CFLAGS} -DMIKMOD_DLAPI_HP=1 -I${srcdir}/dlapi"
13907 else
13908 libmikmod_dynload=no
13909 fi
13910
13911 fi
13912 fi
13913 fi
13914
13915 if test $libmikmod_dynload_style = sun
13916 then
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking wherever dynamically loaded symbols need underscores" >&5
13918 $as_echo_n "checking wherever dynamically loaded symbols need underscores... " >&6; }
13919 if ${libmikmod_cv_dynload_underscores+:} false; then :
13920 $as_echo_n "(cached) " >&6
13921 else
13922 libmikmod_oldlibs=$LIBS
13923 LIBS="$LIBS $libmikmod_dllib"
13924 ac_ext=c
13925 ac_cpp='$CPP $CPPFLAGS'
13926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13929
13930 if test "$cross_compiling" = yes; then :
13931 libmikmod_cv_dynload_underscores=no
13932 else
13933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13934 /* end confdefs.h. */
13935 #include <dlfcn.h>
13936 #ifndef RTLD_GLOBAL
13937 #define RTLD_GLOBAL 0
13938 #endif
13939 int main(void) {
13940 void *libc, *printfptr;
13941 libc = dlopen("libc.so", RTLD_LAZY | RTLD_GLOBAL);
13942 if (!libc) return 1;
13943 printfptr = dlsym(libc, "_printf");
13944 dlclose(libc);
13945 return !printfptr;
13946 }
13947 _ACEOF
13948 if ac_fn_c_try_run "$LINENO"; then :
13949 libmikmod_cv_dynload_underscores=yes
13950 else
13951 libmikmod_cv_dynload_underscores=no
13952 fi
13953 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13954 conftest.$ac_objext conftest.beam conftest.$ac_ext
13955 fi
13956
13957 ac_ext=c
13958 ac_cpp='$CPP $CPPFLAGS'
13959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13962
13963 LIBS=$libmikmod_oldlibs
13964
13965 fi
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libmikmod_cv_dynload_underscores" >&5
13967 $as_echo "$libmikmod_cv_dynload_underscores" >&6; }
13968 if test $libmikmod_cv_dynload_underscores = yes
13969 then
13970
13971 $as_echo "#define DLSYM_NEEDS_UNDERSCORE 1" >>confdefs.h
13972
13973 fi
13974 fi
13975
13976 # POSIX.4 threads
13977 # ---------------
13978 if test $libmikmod_mingw = yes || test $libmikmod_amiga = yes
13979 then
13980 # libmikmod_threads variable is for pthreads only
13981 libmikmod_threads=no
13982 fi
13983
13984 if test $libmikmod_threads = yes
13985 then
13986 libmikmod_threads=no
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler recognizes -pthread" >&5
13988 $as_echo_n "checking if compiler recognizes -pthread... " >&6; }
13989 if ${libmikmod_cv_gcc_pthread+:} false; then :
13990 $as_echo_n "(cached) " >&6
13991 else
13992 ac_save_CFLAGS=$CFLAGS
13993 CFLAGS="$CFLAGS -pthread"
13994 ac_ext=c
13995 ac_cpp='$CPP $CPPFLAGS'
13996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13999
14000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14001 /* end confdefs.h. */
14002 #include <pthread.h>
14003 int
14004 main ()
14005 {
14006 int p = pthread_create(NULL,NULL,NULL,NULL);
14007 ;
14008 return 0;
14009 }
14010 _ACEOF
14011 if ac_fn_c_try_link "$LINENO"; then :
14012 libmikmod_cv_gcc_pthread=yes
14013 else
14014 libmikmod_cv_gcc_pthread=no
14015 fi
14016 rm -f core conftest.err conftest.$ac_objext \
14017 conftest$ac_exeext conftest.$ac_ext
14018 ac_ext=c
14019 ac_cpp='$CPP $CPPFLAGS'
14020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14023
14024 CFLAGS=$ac_save_CFLAGS
14025
14026 fi
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libmikmod_cv_gcc_pthread" >&5
14028 $as_echo "$libmikmod_cv_gcc_pthread" >&6; }
14029 if test $libmikmod_cv_gcc_pthread = yes
14030 then
14031 # There is no need for -pthread on darwin or haiku, as gcc
14032 # complains about unrecognized option -pthread
14033 if test $libmikmod_darwin = no && test $libmikmod_haiku = no
14034 then
14035 libmikmod_threads=""
14036 CFLAGS="$CFLAGS -pthread"
14037 fi
14038 else
14039 # AC_CHECK_HEADERS(pthread.h) unreliable
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14041 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14042 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
14043 $as_echo_n "(cached) " >&6
14044 else
14045 ac_check_lib_save_LIBS=$LIBS
14046 LIBS="-lpthread $LIBS"
14047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14048 /* end confdefs.h. */
14049
14050 /* Override any GCC internal prototype to avoid an error.
14051 Use char because int might match the return type of a GCC
14052 builtin and then its argument prototype would still apply. */
14053 #ifdef __cplusplus
14054 extern "C"
14055 #endif
14056 char pthread_create ();
14057 int
14058 main ()
14059 {
14060 return pthread_create ();
14061 ;
14062 return 0;
14063 }
14064 _ACEOF
14065 if ac_fn_c_try_link "$LINENO"; then :
14066 ac_cv_lib_pthread_pthread_create=yes
14067 else
14068 ac_cv_lib_pthread_pthread_create=no
14069 fi
14070 rm -f core conftest.err conftest.$ac_objext \
14071 conftest$ac_exeext conftest.$ac_ext
14072 LIBS=$ac_check_lib_save_LIBS
14073 fi
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14075 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14076 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
14077 libmikmod_threads=-lpthread
14078 else
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
14080 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
14081 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
14082 $as_echo_n "(cached) " >&6
14083 else
14084 ac_check_lib_save_LIBS=$LIBS
14085 LIBS="-lc_r $LIBS"
14086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14087 /* end confdefs.h. */
14088
14089 /* Override any GCC internal prototype to avoid an error.
14090 Use char because int might match the return type of a GCC
14091 builtin and then its argument prototype would still apply. */
14092 #ifdef __cplusplus
14093 extern "C"
14094 #endif
14095 char pthread_create ();
14096 int
14097 main ()
14098 {
14099 return pthread_create ();
14100 ;
14101 return 0;
14102 }
14103 _ACEOF
14104 if ac_fn_c_try_link "$LINENO"; then :
14105 ac_cv_lib_c_r_pthread_create=yes
14106 else
14107 ac_cv_lib_c_r_pthread_create=no
14108 fi
14109 rm -f core conftest.err conftest.$ac_objext \
14110 conftest$ac_exeext conftest.$ac_ext
14111 LIBS=$ac_check_lib_save_LIBS
14112 fi
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
14114 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
14115 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
14116 libmikmod_threads=-lc_r
14117 fi
14118
14119 fi
14120
14121 fi
14122 fi
14123
14124 # ALSA - Linux only
14125 # -----------------
14126 if test $libmikmod_driver_alsa = yes
14127 then
14128 libmikmod_driver_alsa=no
14129 for ac_header in alsa/asoundlib.h
14130 do :
14131 ac_fn_c_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
14132 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then :
14133 cat >>confdefs.h <<_ACEOF
14134 #define HAVE_ALSA_ASOUNDLIB_H 1
14135 _ACEOF
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_open in -lasound" >&5
14137 $as_echo_n "checking for snd_pcm_open in -lasound... " >&6; }
14138 if ${ac_cv_lib_asound_snd_pcm_open+:} false; then :
14139 $as_echo_n "(cached) " >&6
14140 else
14141 ac_check_lib_save_LIBS=$LIBS
14142 LIBS="-lasound $LIBS"
14143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14144 /* end confdefs.h. */
14145
14146 /* Override any GCC internal prototype to avoid an error.
14147 Use char because int might match the return type of a GCC
14148 builtin and then its argument prototype would still apply. */
14149 #ifdef __cplusplus
14150 extern "C"
14151 #endif
14152 char snd_pcm_open ();
14153 int
14154 main ()
14155 {
14156 return snd_pcm_open ();
14157 ;
14158 return 0;
14159 }
14160 _ACEOF
14161 if ac_fn_c_try_link "$LINENO"; then :
14162 ac_cv_lib_asound_snd_pcm_open=yes
14163 else
14164 ac_cv_lib_asound_snd_pcm_open=no
14165 fi
14166 rm -f core conftest.err conftest.$ac_objext \
14167 conftest$ac_exeext conftest.$ac_ext
14168 LIBS=$ac_check_lib_save_LIBS
14169 fi
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_open" >&5
14171 $as_echo "$ac_cv_lib_asound_snd_pcm_open" >&6; }
14172 if test "x$ac_cv_lib_asound_snd_pcm_open" = xyes; then :
14173 libmikmod_driver_alsa=yes
14174 fi
14175
14176 fi
14177
14178 done
14179
14180 fi
14181
14182 # Amiga audio
14183 # ---------------------
14184 if test $libmikmod_driver_ahi = yes
14185 then
14186 libmikmod_driver_ahi=no
14187 for ac_header in devices/ahi.h
14188 do :
14189 ac_fn_c_check_header_mongrel "$LINENO" "devices/ahi.h" "ac_cv_header_devices_ahi_h" "$ac_includes_default"
14190 if test "x$ac_cv_header_devices_ahi_h" = xyes; then :
14191 cat >>confdefs.h <<_ACEOF
14192 #define HAVE_DEVICES_AHI_H 1
14193 _ACEOF
14194 libmikmod_driver_ahi=yes
14195 fi
14196
14197 done
14198
14199 fi
14200
14201 # pulseaudio
14202 # ----------
14203 if test $libmikmod_driver_pulseaudio = yes
14204 then
14205 libmikmod_driver_pulseaudio=no
14206 for ac_header in pulse/simple.h
14207 do :
14208 ac_fn_c_check_header_mongrel "$LINENO" "pulse/simple.h" "ac_cv_header_pulse_simple_h" "$ac_includes_default"
14209 if test "x$ac_cv_header_pulse_simple_h" = xyes; then :
14210 cat >>confdefs.h <<_ACEOF
14211 #define HAVE_PULSE_SIMPLE_H 1
14212 _ACEOF
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pa_simple_new in -lpulse-simple" >&5
14214 $as_echo_n "checking for pa_simple_new in -lpulse-simple... " >&6; }
14215 if ${ac_cv_lib_pulse_simple_pa_simple_new+:} false; then :
14216 $as_echo_n "(cached) " >&6
14217 else
14218 ac_check_lib_save_LIBS=$LIBS
14219 LIBS="-lpulse-simple $LIBS"
14220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14221 /* end confdefs.h. */
14222
14223 /* Override any GCC internal prototype to avoid an error.
14224 Use char because int might match the return type of a GCC
14225 builtin and then its argument prototype would still apply. */
14226 #ifdef __cplusplus
14227 extern "C"
14228 #endif
14229 char pa_simple_new ();
14230 int
14231 main ()
14232 {
14233 return pa_simple_new ();
14234 ;
14235 return 0;
14236 }
14237 _ACEOF
14238 if ac_fn_c_try_link "$LINENO"; then :
14239 ac_cv_lib_pulse_simple_pa_simple_new=yes
14240 else
14241 ac_cv_lib_pulse_simple_pa_simple_new=no
14242 fi
14243 rm -f core conftest.err conftest.$ac_objext \
14244 conftest$ac_exeext conftest.$ac_ext
14245 LIBS=$ac_check_lib_save_LIBS
14246 fi
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pulse_simple_pa_simple_new" >&5
14248 $as_echo "$ac_cv_lib_pulse_simple_pa_simple_new" >&6; }
14249 if test "x$ac_cv_lib_pulse_simple_pa_simple_new" = xyes; then :
14250 libmikmod_driver_pulseaudio=yes
14251 fi
14252
14253 fi
14254
14255 done
14256
14257 fi
14258
14259 # esd
14260 # ---
14261 if test $libmikmod_driver_esd = yes
14262 then
14263 libmikmod_driver_esd=no
14264
14265 # Check whether --with-esd-prefix was given.
14266 if test "${with_esd_prefix+set}" = set; then :
14267 withval=$with_esd_prefix; esd_prefix="$withval"
14268 else
14269 esd_prefix=""
14270 fi
14271
14272
14273 # Check whether --with-esd-exec-prefix was given.
14274 if test "${with_esd_exec_prefix+set}" = set; then :
14275 withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
14276 else
14277 esd_exec_prefix=""
14278 fi
14279
14280 # Check whether --enable-esdtest was given.
14281 if test "${enable_esdtest+set}" = set; then :
14282 enableval=$enable_esdtest;
14283 else
14284 enable_esdtest=yes
14285 fi
14286
14287
14288 if test x$esd_exec_prefix != x ; then
14289 esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
14290 if test x${ESD_CONFIG+set} != xset ; then
14291 ESD_CONFIG=$esd_exec_prefix/bin/esd-config
14292 fi
14293 fi
14294 if test x$esd_prefix != x ; then
14295 esd_args="$esd_args --prefix=$esd_prefix"
14296 if test x${ESD_CONFIG+set} != xset ; then
14297 ESD_CONFIG=$esd_prefix/bin/esd-config
14298 fi
14299 fi
14300
14301 # Extract the first word of "esd-config", so it can be a program name with args.
14302 set dummy esd-config; ac_word=$2
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14304 $as_echo_n "checking for $ac_word... " >&6; }
14305 if ${ac_cv_path_ESD_CONFIG+:} false; then :
14306 $as_echo_n "(cached) " >&6
14307 else
14308 case $ESD_CONFIG in
14309 [\\/]* | ?:[\\/]*)
14310 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
14311 ;;
14312 *)
14313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14314 for as_dir in $PATH
14315 do
14316 IFS=$as_save_IFS
14317 test -z "$as_dir" && as_dir=.
14318 for ac_exec_ext in '' $ac_executable_extensions; do
14319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14320 ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14322 break 2
14323 fi
14324 done
14325 done
14326 IFS=$as_save_IFS
14327
14328 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
14329 ;;
14330 esac
14331 fi
14332 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
14333 if test -n "$ESD_CONFIG"; then
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
14335 $as_echo "$ESD_CONFIG" >&6; }
14336 else
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14338 $as_echo "no" >&6; }
14339 fi
14340
14341
14342 min_esd_version="0.2.18"
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
14344 $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
14345 no_esd=""
14346 if test "$ESD_CONFIG" = "no" ; then
14347 no_esd=yes
14348 else
14349 ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
14350 ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
14351
14352 esd_major_version=`$ESD_CONFIG $esd_args --version | \
14353 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14354 esd_minor_version=`$ESD_CONFIG $esd_args --version | \
14355 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14356 esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
14357 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14358 if test "x$enable_esdtest" = "xyes" ; then
14359 ac_ext=c
14360 ac_cpp='$CPP $CPPFLAGS'
14361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14364
14365 ac_save_CFLAGS="$CFLAGS"
14366 ac_save_LIBS="$LIBS"
14367 CFLAGS="$CFLAGS $ESD_CFLAGS"
14368 LIBS="$LIBS $ESD_LIBS"
14369 rm -f conf.esdtest
14370 if test "$cross_compiling" = yes; then :
14371 echo $ac_n "cross compiling; assumed OK... $ac_c"
14372 else
14373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14374 /* end confdefs.h. */
14375
14376 #include <stdio.h>
14377 #include <stdlib.h>
14378 #include <esd.h>
14379
14380 int main (void)
14381 {
14382 int major, minor, micro;
14383 FILE *fp = fopen("conf.esdtest", "w");
14384
14385 if (fp) fclose(fp);
14386
14387 if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
14388 printf("%s, bad version string\n", "$min_esd_version");
14389 exit(1);
14390 }
14391
14392 if (($esd_major_version > major) ||
14393 (($esd_major_version == major) && ($esd_minor_version > minor)) ||
14394 (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
14395 {
14396 return 0;
14397 }
14398 else
14399 {
14400 printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
14401 printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
14402 printf("*** best to upgrade to the required version.\n");
14403 printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
14404 printf("*** to point to the correct copy of esd-config, and remove the file\n");
14405 printf("*** config.cache before re-running configure\n");
14406 return 1;
14407 }
14408 }
14409
14410 _ACEOF
14411 if ac_fn_c_try_run "$LINENO"; then :
14412
14413 else
14414 no_esd=yes
14415 fi
14416 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14417 conftest.$ac_objext conftest.beam conftest.$ac_ext
14418 fi
14419
14420 CFLAGS="$ac_save_CFLAGS"
14421 LIBS="$ac_save_LIBS"
14422 ac_ext=c
14423 ac_cpp='$CPP $CPPFLAGS'
14424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14427
14428 fi
14429 fi
14430 if test "x$no_esd" = x ; then
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14432 $as_echo "yes" >&6; }
14433 libmikmod_driver_esd=yes
14434 else
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14436 $as_echo "no" >&6; }
14437 if test "$ESD_CONFIG" = "no" ; then
14438 :
14439 else
14440 if test -f conf.esdtest ; then
14441 :
14442 else
14443 echo "*** Could not run ESD test program, checking why..."
14444 CFLAGS="$CFLAGS $ESD_CFLAGS"
14445 LIBS="$LIBS $ESD_LIBS"
14446 ac_ext=c
14447 ac_cpp='$CPP $CPPFLAGS'
14448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14451
14452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14453 /* end confdefs.h. */
14454
14455 #include <stdio.h>
14456 #include <esd.h>
14457
14458 int
14459 main ()
14460 {
14461 return 0;
14462 ;
14463 return 0;
14464 }
14465 _ACEOF
14466 if ac_fn_c_try_link "$LINENO"; then :
14467 echo "*** The test program compiled, but did not run. This usually means"
14468 echo "*** that the run-time linker is not finding ESD or finding the wrong"
14469 echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
14470 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14471 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14472 echo "*** is required on your system"
14473 echo "***"
14474 echo "*** If you have an old version installed, it is best to remove it, although"
14475 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14476 else
14477 echo "*** The test program failed to compile or link. See the file config.log for the"
14478 echo "*** exact error that occured. This usually means ESD was incorrectly installed"
14479 echo "*** or that you have moved ESD since it was installed. In the latter case, you"
14480 echo "*** may want to edit the esd-config script: $ESD_CONFIG"
14481 fi
14482 rm -f core conftest.err conftest.$ac_objext \
14483 conftest$ac_exeext conftest.$ac_ext
14484 CFLAGS="$ac_save_CFLAGS"
14485 LIBS="$ac_save_LIBS"
14486 ac_ext=c
14487 ac_cpp='$CPP $CPPFLAGS'
14488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14491
14492 fi
14493 fi
14494 ESD_CFLAGS=""
14495 ESD_LIBS=""
14496 :
14497 fi
14498
14499
14500 rm -f conf.esdtest
14501
14502 fi
14503
14504 # nas
14505 # ---
14506 if test $libmikmod_driver_nas = yes
14507 then
14508 libmikmod_driver_nas=no
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14510 $as_echo_n "checking for X... " >&6; }
14511
14512
14513 # Check whether --with-x was given.
14514 if test "${with_x+set}" = set; then :
14515 withval=$with_x;
14516 fi
14517
14518 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14519 if test "x$with_x" = xno; then
14520 # The user explicitly disabled X.
14521 have_x=disabled
14522 else
14523 case $x_includes,$x_libraries in #(
14524 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
14525 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
14526 $as_echo_n "(cached) " >&6
14527 else
14528 # One or both of the vars are not set, and there is no cached value.
14529 ac_x_includes=no
14530 ac_x_libraries=no
14531 # Do we need to do anything special at all?
14532 ac_save_LIBS=$LIBS
14533 LIBS="-lX11 $LIBS"
14534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14535 /* end confdefs.h. */
14536 #include <X11/Xlib.h>
14537 int
14538 main ()
14539 {
14540 XrmInitialize ()
14541 ;
14542 return 0;
14543 }
14544 _ACEOF
14545 if ac_fn_c_try_link "$LINENO"; then :
14546 # We can compile and link X programs with no special options.
14547 ac_x_includes=
14548 ac_x_libraries=
14549 fi
14550 rm -f core conftest.err conftest.$ac_objext \
14551 conftest$ac_exeext conftest.$ac_ext
14552 LIBS="$ac_save_LIBS"
14553 # If that didn't work, only try xmkmf and filesystem searches
14554 # for native compilation.
14555 if test x"$ac_x_includes" = xno && test "$cross_compiling" = no; then :
14556 rm -f -r conftest.dir
14557 if mkdir conftest.dir; then
14558 cd conftest.dir
14559 cat >Imakefile <<'_ACEOF'
14560 incroot:
14561 @echo incroot='${INCROOT}'
14562 usrlibdir:
14563 @echo usrlibdir='${USRLIBDIR}'
14564 libdir:
14565 @echo libdir='${LIBDIR}'
14566 _ACEOF
14567 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
14568 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14569 for ac_var in incroot usrlibdir libdir; do
14570 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14571 done
14572 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14573 for ac_extension in a so sl dylib la dll; do
14574 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14575 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14576 ac_im_usrlibdir=$ac_im_libdir; break
14577 fi
14578 done
14579 # Screen out bogus values from the imake configuration. They are
14580 # bogus both because they are the default anyway, and because
14581 # using them would break gcc on systems where it needs fixed includes.
14582 case $ac_im_incroot in
14583 /usr/include) ac_x_includes= ;;
14584 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
14585 esac
14586 case $ac_im_usrlibdir in
14587 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
14588 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
14589 esac
14590 fi
14591 cd ..
14592 rm -f -r conftest.dir
14593 fi
14594
14595 # Standard set of common directories for X headers.
14596 # Check X11 before X11Rn because it is often a symlink to the current release.
14597 ac_x_header_dirs='
14598 /usr/X11/include
14599 /usr/X11R7/include
14600 /usr/X11R6/include
14601 /usr/X11R5/include
14602 /usr/X11R4/include
14603
14604 /usr/include/X11
14605 /usr/include/X11R7
14606 /usr/include/X11R6
14607 /usr/include/X11R5
14608 /usr/include/X11R4
14609
14610 /usr/local/X11/include
14611 /usr/local/X11R7/include
14612 /usr/local/X11R6/include
14613 /usr/local/X11R5/include
14614 /usr/local/X11R4/include
14615
14616 /usr/local/include/X11
14617 /usr/local/include/X11R7
14618 /usr/local/include/X11R6
14619 /usr/local/include/X11R5
14620 /usr/local/include/X11R4
14621
14622 /opt/X11/include
14623
14624 /usr/X386/include
14625 /usr/x386/include
14626 /usr/XFree86/include/X11
14627
14628 /usr/include
14629 /usr/local/include
14630 /usr/unsupported/include
14631 /usr/athena/include
14632 /usr/local/x11r5/include
14633 /usr/lpp/Xamples/include
14634
14635 /usr/openwin/include
14636 /usr/openwin/share/include'
14637
14638 if test "$ac_x_includes" = no; then
14639 # Guess where to find include files, by looking for Xlib.h.
14640 # First, try using that file with no special directory specified.
14641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14642 /* end confdefs.h. */
14643 #include <X11/Xlib.h>
14644 _ACEOF
14645 if ac_fn_c_try_cpp "$LINENO"; then :
14646 # We can compile using X headers with no special include directory.
14647 ac_x_includes=
14648 else
14649 for ac_dir in $ac_x_header_dirs; do
14650 if test -r "$ac_dir/X11/Xlib.h"; then
14651 ac_x_includes=$ac_dir
14652 break
14653 fi
14654 done
14655 fi
14656 rm -f conftest.err conftest.i conftest.$ac_ext
14657 fi # $ac_x_includes = no
14658
14659 if test "$ac_x_libraries" = no; then
14660 # Check for the libraries.
14661 # See if we find them without any special options.
14662 # Don't add to $LIBS permanently.
14663 ac_save_LIBS=$LIBS
14664 LIBS="-lX11 $LIBS"
14665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14666 /* end confdefs.h. */
14667 #include <X11/Xlib.h>
14668 int
14669 main ()
14670 {
14671 XrmInitialize ()
14672 ;
14673 return 0;
14674 }
14675 _ACEOF
14676 if ac_fn_c_try_link "$LINENO"; then :
14677 LIBS=$ac_save_LIBS
14678 # We can link X programs with no special library path.
14679 ac_x_libraries=
14680 else
14681 LIBS=$ac_save_LIBS
14682 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14683 do
14684 # Don't even attempt the hair of trying to link an X program!
14685 for ac_extension in a so sl dylib la dll; do
14686 if test -r "$ac_dir/libX11.$ac_extension"; then
14687 ac_x_libraries=$ac_dir
14688 break 2
14689 fi
14690 done
14691 done
14692 fi
14693 rm -f core conftest.err conftest.$ac_objext \
14694 conftest$ac_exeext conftest.$ac_ext
14695 fi # $ac_x_libraries = no
14696
14697 fi
14698 # Record the results.
14699 case $ac_x_includes,$ac_x_libraries in #(
14700 no,* | *,no | *\'*) :
14701 # Didn't find X, or a directory has "'" in its name.
14702 ac_cv_have_x="have_x=no" ;; #(
14703 *) :
14704 # Record where we found X for the cache.
14705 ac_cv_have_x="have_x=yes\
14706 ac_x_includes='$ac_x_includes'\
14707 ac_x_libraries='$ac_x_libraries'" ;;
14708 esac
14709 fi
14710 ;; #(
14711 *) have_x=yes;;
14712 esac
14713 eval "$ac_cv_have_x"
14714 fi # $with_x != no
14715
14716 if test "$have_x" != yes; then
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14718 $as_echo "$have_x" >&6; }
14719 no_x=yes
14720 else
14721 # If each of the values was on the command line, it overrides each guess.
14722 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
14723 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
14724 # Update the cache value to reflect the command line values.
14725 ac_cv_have_x="have_x=yes\
14726 ac_x_includes='$x_includes'\
14727 ac_x_libraries='$x_libraries'"
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14729 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14730 fi
14731
14732 for ac_header in audio/audiolib.h
14733 do :
14734 ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
14735 if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
14736 cat >>confdefs.h <<_ACEOF
14737 #define HAVE_AUDIO_AUDIOLIB_H 1
14738 _ACEOF
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuCreateFlow in -laudio" >&5
14740 $as_echo_n "checking for AuCreateFlow in -laudio... " >&6; }
14741 if ${ac_cv_lib_audio_AuCreateFlow+:} false; then :
14742 $as_echo_n "(cached) " >&6
14743 else
14744 ac_check_lib_save_LIBS=$LIBS
14745 LIBS="-laudio $LIBS"
14746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14747 /* end confdefs.h. */
14748
14749 /* Override any GCC internal prototype to avoid an error.
14750 Use char because int might match the return type of a GCC
14751 builtin and then its argument prototype would still apply. */
14752 #ifdef __cplusplus
14753 extern "C"
14754 #endif
14755 char AuCreateFlow ();
14756 int
14757 main ()
14758 {
14759 return AuCreateFlow ();
14760 ;
14761 return 0;
14762 }
14763 _ACEOF
14764 if ac_fn_c_try_link "$LINENO"; then :
14765 ac_cv_lib_audio_AuCreateFlow=yes
14766 else
14767 ac_cv_lib_audio_AuCreateFlow=no
14768 fi
14769 rm -f core conftest.err conftest.$ac_objext \
14770 conftest$ac_exeext conftest.$ac_ext
14771 LIBS=$ac_check_lib_save_LIBS
14772 fi
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuCreateFlow" >&5
14774 $as_echo "$ac_cv_lib_audio_AuCreateFlow" >&6; }
14775 if test "x$ac_cv_lib_audio_AuCreateFlow" = xyes; then :
14776 libmikmod_driver_nas=yes
14777 fi
14778
14779 fi
14780
14781 done
14782
14783 if test $libmikmod_driver_nas = no
14784 then
14785 if test -n "$ac_x_includes" || test -n "$ac_x_libraries"
14786 then
14787 ac_save_CFLAGS=$CFLAGS
14788 ac_save_LDFLAGS=$LDFLAGS
14789 ac_save_LIBS=$LIBS
14790 test -n "$ac_x_includes" && CFLAGS="$CFLAGS -I$ac_x_includes"
14791 test -n "$ac_x_libraries" && LDFLAGS="$LDFLAGS -L$ac_x_libraries"
14792 LIBS="$LIBS -laudio"
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 locations for NAS" >&5
14794 $as_echo_n "checking X11 locations for NAS... " >&6; }
14795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14796 /* end confdefs.h. */
14797 #include <audio/audiolib.h>
14798 int
14799 main ()
14800 {
14801 AuFlowID f=AuCreateFlow(0,0);
14802 ;
14803 return 0;
14804 }
14805 _ACEOF
14806 if ac_fn_c_try_link "$LINENO"; then :
14807 libmikmod_driver_nas=yes
14808 fi
14809 rm -f core conftest.err conftest.$ac_objext \
14810 conftest$ac_exeext conftest.$ac_ext
14811 CFLAGS=$ac_save_CFLAGS
14812 LDFLAGS=$ac_save_LDFLAGS
14813 LIBS=$ac_save_LIBS
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libmikmod_driver_nas" >&5
14815 $as_echo "$libmikmod_driver_nas" >&6; }
14816 if test $libmikmod_driver_nas = yes
14817 then
14818 test -n "$ac_x_includes" && CFLAGS="$CFLAGS -I$ac_x_includes"
14819 test -n "$ac_x_libraries" && LIBRARY_LIB="$LIBRARY_LIB -L$ac_x_libraries"
14820 fi
14821 fi
14822 fi
14823 fi
14824
14825 # OpenAL - all supported platforms
14826 # -----------------
14827 if test $libmikmod_driver_openal = yes
14828 then
14829 libmikmod_driver_openal=no
14830 if test $libmikmod_darwin = yes
14831 then
14832 # header-only test is good enough. need 10.4.
14833 for ac_header in OpenAL/al.h OpenAL/alc.h
14834 do :
14835 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14836 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
14837 #if HAVE_OPENAL_AL_H
14838 # include <OpenAL/al.h>
14839 #endif
14840 #if HAVE_OPENAL_ALC_H
14841 # include <OpenAL/alc.h>
14842 #endif
14843
14844 "
14845 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14846 cat >>confdefs.h <<_ACEOF
14847 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14848 _ACEOF
14849
14850 fi
14851
14852 done
14853
14854 if test $ac_cv_header_OpenAL_al_h = yes && test $ac_cv_header_OpenAL_alc_h = yes
14855 then
14856 libmikmod_driver_openal=yes
14857 fi
14858 else
14859 for ac_header in AL/al.h AL/alc.h AL/alext.h
14860 do :
14861 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14862 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
14863 #if HAVE_AL_AL_H
14864 # include <AL/al.h>
14865 #endif
14866 #if HAVE_AL_ALC_H
14867 # include <AL/alc.h>
14868 #endif
14869
14870 "
14871 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14872 cat >>confdefs.h <<_ACEOF
14873 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14874 _ACEOF
14875
14876 fi
14877
14878 done
14879
14880 if test $ac_cv_header_AL_al_h = yes && test $ac_cv_header_AL_alc_h = yes
14881 then
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alEnable in -lopenal" >&5
14883 $as_echo_n "checking for alEnable in -lopenal... " >&6; }
14884 if ${ac_cv_lib_openal_alEnable+:} false; then :
14885 $as_echo_n "(cached) " >&6
14886 else
14887 ac_check_lib_save_LIBS=$LIBS
14888 LIBS="-lopenal $LIBS"
14889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14890 /* end confdefs.h. */
14891
14892 /* Override any GCC internal prototype to avoid an error.
14893 Use char because int might match the return type of a GCC
14894 builtin and then its argument prototype would still apply. */
14895 #ifdef __cplusplus
14896 extern "C"
14897 #endif
14898 char alEnable ();
14899 int
14900 main ()
14901 {
14902 return alEnable ();
14903 ;
14904 return 0;
14905 }
14906 _ACEOF
14907 if ac_fn_c_try_link "$LINENO"; then :
14908 ac_cv_lib_openal_alEnable=yes
14909 else
14910 ac_cv_lib_openal_alEnable=no
14911 fi
14912 rm -f core conftest.err conftest.$ac_objext \
14913 conftest$ac_exeext conftest.$ac_ext
14914 LIBS=$ac_check_lib_save_LIBS
14915 fi
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openal_alEnable" >&5
14917 $as_echo "$ac_cv_lib_openal_alEnable" >&6; }
14918 if test "x$ac_cv_lib_openal_alEnable" = xyes; then :
14919 libmikmod_driver_openal=yes
14920 fi
14921
14922 fi
14923 fi
14924 fi
14925
14926 # SDL - all supported platforms
14927 # -----------------
14928 if test $libmikmod_driver_sdl = yes
14929 then
14930 libmikmod_driver_sdl=no
14931 if test $try_sdl2 = yes
14932 then
14933
14934 # Check whether --with-sdl-prefix was given.
14935 if test "${with_sdl_prefix+set}" = set; then :
14936 withval=$with_sdl_prefix; sdl_prefix="$withval"
14937 else
14938 sdl_prefix=""
14939 fi
14940
14941
14942 # Check whether --with-sdl-exec-prefix was given.
14943 if test "${with_sdl_exec_prefix+set}" = set; then :
14944 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
14945 else
14946 sdl_exec_prefix=""
14947 fi
14948
14949 # Check whether --enable-sdltest was given.
14950 if test "${enable_sdltest+set}" = set; then :
14951 enableval=$enable_sdltest;
14952 else
14953 enable_sdltest=yes
14954 fi
14955
14956
14957 min_sdl_version="2.0.0"
14958
14959 if test "x$sdl_prefix$sdl_exec_prefix" = x ; then
14960
14961 pkg_failed=no
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl2 >= $min_sdl_version" >&5
14963 $as_echo_n "checking for sdl2 >= $min_sdl_version... " >&6; }
14964
14965 if test -n "$SDL_CFLAGS"; then
14966 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
14967 elif test -n "$PKG_CONFIG"; then
14968 if test -n "$PKG_CONFIG" && \
14969 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$min_sdl_version\""; } >&5
14970 ($PKG_CONFIG --exists --print-errors "sdl2 >= $min_sdl_version") 2>&5
14971 ac_status=$?
14972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14973 test $ac_status = 0; }; then
14974 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl2 >= $min_sdl_version" 2>/dev/null`
14975 test "x$?" != "x0" && pkg_failed=yes
14976 else
14977 pkg_failed=yes
14978 fi
14979 else
14980 pkg_failed=untried
14981 fi
14982 if test -n "$SDL_LIBS"; then
14983 pkg_cv_SDL_LIBS="$SDL_LIBS"
14984 elif test -n "$PKG_CONFIG"; then
14985 if test -n "$PKG_CONFIG" && \
14986 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$min_sdl_version\""; } >&5
14987 ($PKG_CONFIG --exists --print-errors "sdl2 >= $min_sdl_version") 2>&5
14988 ac_status=$?
14989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14990 test $ac_status = 0; }; then
14991 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl2 >= $min_sdl_version" 2>/dev/null`
14992 test "x$?" != "x0" && pkg_failed=yes
14993 else
14994 pkg_failed=yes
14995 fi
14996 else
14997 pkg_failed=untried
14998 fi
14999
15000
15001
15002 if test $pkg_failed = yes; then
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15004 $as_echo "no" >&6; }
15005
15006 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15007 _pkg_short_errors_supported=yes
15008 else
15009 _pkg_short_errors_supported=no
15010 fi
15011 if test $_pkg_short_errors_supported = yes; then
15012 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl2 >= $min_sdl_version" 2>&1`
15013 else
15014 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl2 >= $min_sdl_version" 2>&1`
15015 fi
15016 # Put the nasty error message in config.log where it belongs
15017 echo "$SDL_PKG_ERRORS" >&5
15018
15019 sdl_pc=no
15020 elif test $pkg_failed = untried; then
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15022 $as_echo "no" >&6; }
15023 sdl_pc=no
15024 else
15025 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
15026 SDL_LIBS=$pkg_cv_SDL_LIBS
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15028 $as_echo "yes" >&6; }
15029 sdl_pc=yes
15030 fi
15031 else
15032 sdl_pc=no
15033 if test x$sdl_exec_prefix != x ; then
15034 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
15035 if test x${SDL2_CONFIG+set} != xset ; then
15036 SDL2_CONFIG=$sdl_exec_prefix/bin/sdl2-config
15037 fi
15038 fi
15039 if test x$sdl_prefix != x ; then
15040 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
15041 if test x${SDL2_CONFIG+set} != xset ; then
15042 SDL2_CONFIG=$sdl_prefix/bin/sdl2-config
15043 fi
15044 fi
15045 fi
15046
15047 if test "x$sdl_pc" = xyes ; then
15048 no_sdl=""
15049 SDL2_CONFIG="$PKG_CONFIG sdl2"
15050 else
15051 as_save_PATH="$PATH"
15052 if test "x$prefix" != xNONE && test "$cross_compiling" != yes; then
15053 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
15054 fi
15055 # Extract the first word of "sdl2-config", so it can be a program name with args.
15056 set dummy sdl2-config; ac_word=$2
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15058 $as_echo_n "checking for $ac_word... " >&6; }
15059 if ${ac_cv_path_SDL2_CONFIG+:} false; then :
15060 $as_echo_n "(cached) " >&6
15061 else
15062 case $SDL2_CONFIG in
15063 [\\/]* | ?:[\\/]*)
15064 ac_cv_path_SDL2_CONFIG="$SDL2_CONFIG" # Let the user override the test with a path.
15065 ;;
15066 *)
15067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15068 for as_dir in $PATH
15069 do
15070 IFS=$as_save_IFS
15071 test -z "$as_dir" && as_dir=.
15072 for ac_exec_ext in '' $ac_executable_extensions; do
15073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15074 ac_cv_path_SDL2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15076 break 2
15077 fi
15078 done
15079 done
15080 IFS=$as_save_IFS
15081
15082 test -z "$ac_cv_path_SDL2_CONFIG" && ac_cv_path_SDL2_CONFIG="no"
15083 ;;
15084 esac
15085 fi
15086 SDL2_CONFIG=$ac_cv_path_SDL2_CONFIG
15087 if test -n "$SDL2_CONFIG"; then
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL2_CONFIG" >&5
15089 $as_echo "$SDL2_CONFIG" >&6; }
15090 else
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15092 $as_echo "no" >&6; }
15093 fi
15094
15095
15096 PATH="$as_save_PATH"
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
15098 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
15099 no_sdl=""
15100
15101 if test "$SDL2_CONFIG" = "no" ; then
15102 no_sdl=yes
15103 else
15104 SDL_CFLAGS=`$SDL2_CONFIG $sdl_config_args --cflags`
15105 SDL_LIBS=`$SDL2_CONFIG $sdl_config_args --libs`
15106
15107 sdl_major_version=`$SDL2_CONFIG $sdl_config_args --version | \
15108 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
15109 sdl_minor_version=`$SDL2_CONFIG $sdl_config_args --version | \
15110 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
15111 sdl_micro_version=`$SDL2_CONFIG $sdl_config_args --version | \
15112 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
15113 if test "x$enable_sdltest" = "xyes" ; then
15114 ac_save_CFLAGS="$CFLAGS"
15115 ac_save_CXXFLAGS="$CXXFLAGS"
15116 ac_save_LIBS="$LIBS"
15117 CFLAGS="$CFLAGS $SDL_CFLAGS"
15118 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
15119 LIBS="$LIBS $SDL_LIBS"
15120 rm -f conf.sdltest
15121 if test "$cross_compiling" = yes; then :
15122 echo $ac_n "cross compiling; assumed OK... $ac_c"
15123 else
15124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15125 /* end confdefs.h. */
15126
15127 #include <stdio.h>
15128 #include <stdlib.h>
15129 #include "SDL.h"
15130
15131 int main (int argc, char *argv[])
15132 {
15133 int major, minor, micro;
15134 FILE *fp = fopen("conf.sdltest", "w");
15135
15136 if (fp) fclose(fp);
15137
15138 if (sscanf("$min_sdl_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
15139 printf("%s, bad version string\n", "$min_sdl_version");
15140 exit(1);
15141 }
15142
15143 if (($sdl_major_version > major) ||
15144 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
15145 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
15146 {
15147 return 0;
15148 }
15149 else
15150 {
15151 printf("\n*** 'sdl2-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
15152 printf("*** of SDL required is %d.%d.%d. If sdl2-config is correct, then it is\n", major, minor, micro);
15153 printf("*** best to upgrade to the required version.\n");
15154 printf("*** If sdl2-config was wrong, set the environment variable SDL2_CONFIG\n");
15155 printf("*** to point to the correct copy of sdl2-config, and remove the file\n");
15156 printf("*** config.cache before re-running configure\n");
15157 return 1;
15158 }
15159 }
15160
15161
15162 _ACEOF
15163 if ac_fn_c_try_run "$LINENO"; then :
15164
15165 else
15166 no_sdl=yes
15167 fi
15168 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15169 conftest.$ac_objext conftest.beam conftest.$ac_ext
15170 fi
15171
15172 CFLAGS="$ac_save_CFLAGS"
15173 CXXFLAGS="$ac_save_CXXFLAGS"
15174 LIBS="$ac_save_LIBS"
15175 fi
15176 fi
15177 if test "x$no_sdl" = x ; then
15178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15179 $as_echo "yes" >&6; }
15180 else
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15182 $as_echo "no" >&6; }
15183 fi
15184 fi
15185 if test "x$no_sdl" = x ; then
15186 libmikmod_driver_sdl=yes
15187 else
15188 if test "$SDL2_CONFIG" = "no" ; then
15189 echo "*** The sdl2-config script installed by SDL could not be found"
15190 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
15191 echo "*** your path, or set the SDL2_CONFIG environment variable to the"
15192 echo "*** full path to sdl2-config."
15193 else
15194 if test -f conf.sdltest ; then
15195 :
15196 else
15197 echo "*** Could not run SDL test program, checking why..."
15198 CFLAGS="$CFLAGS $SDL_CFLAGS"
15199 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
15200 LIBS="$LIBS $SDL_LIBS"
15201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15202 /* end confdefs.h. */
15203
15204 #include <stdio.h>
15205 #include "SDL.h"
15206
15207 int main(int argc, char *argv[])
15208 { return 0; }
15209 #undef main
15210 #define main K_and_R_C_main
15211
15212 int
15213 main ()
15214 {
15215 return 0;
15216 ;
15217 return 0;
15218 }
15219 _ACEOF
15220 if ac_fn_c_try_link "$LINENO"; then :
15221 echo "*** The test program compiled, but did not run. This usually means"
15222 echo "*** that the run-time linker is not finding SDL or finding the wrong"
15223 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
15224 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
15225 echo "*** to the installed location Also, make sure you have run ldconfig if that"
15226 echo "*** is required on your system"
15227 echo "***"
15228 echo "*** If you have an old version installed, it is best to remove it, although"
15229 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
15230 else
15231 echo "*** The test program failed to compile or link. See the file config.log for the"
15232 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
15233 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
15234 echo "*** may want to edit the sdl2-config script: $SDL2_CONFIG"
15235 fi
15236 rm -f core conftest.err conftest.$ac_objext \
15237 conftest$ac_exeext conftest.$ac_ext
15238 CFLAGS="$ac_save_CFLAGS"
15239 CXXFLAGS="$ac_save_CXXFLAGS"
15240 LIBS="$ac_save_LIBS"
15241 fi
15242 fi
15243 SDL_CFLAGS=""
15244 SDL_LIBS=""
15245 :
15246 fi
15247
15248
15249 rm -f conf.sdltest
15250
15251 fi
15252 if test $libmikmod_driver_sdl != yes
15253 then
15254
15255 # Check whether --with-sdl-prefix was given.
15256 if test "${with_sdl_prefix+set}" = set; then :
15257 withval=$with_sdl_prefix; sdl_prefix="$withval"
15258 else
15259 sdl_prefix=""
15260 fi
15261
15262
15263 # Check whether --with-sdl-exec-prefix was given.
15264 if test "${with_sdl_exec_prefix+set}" = set; then :
15265 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
15266 else
15267 sdl_exec_prefix=""
15268 fi
15269
15270 # Check whether --enable-sdltest was given.
15271 if test "${enable_sdltest+set}" = set; then :
15272 enableval=$enable_sdltest;
15273 else
15274 enable_sdltest=yes
15275 fi
15276
15277
15278 min_sdl_version="1.2.0"
15279
15280 if test "x$sdl_prefix$sdl_exec_prefix" = x ; then
15281
15282 pkg_failed=no
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl >= $min_sdl_version" >&5
15284 $as_echo_n "checking for sdl >= $min_sdl_version... " >&6; }
15285
15286 if test -n "$SDL_CFLAGS"; then
15287 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
15288 elif test -n "$PKG_CONFIG"; then
15289 if test -n "$PKG_CONFIG" && \
15290 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl >= \$min_sdl_version\""; } >&5
15291 ($PKG_CONFIG --exists --print-errors "sdl >= $min_sdl_version") 2>&5
15292 ac_status=$?
15293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15294 test $ac_status = 0; }; then
15295 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl >= $min_sdl_version" 2>/dev/null`
15296 test "x$?" != "x0" && pkg_failed=yes
15297 else
15298 pkg_failed=yes
15299 fi
15300 else
15301 pkg_failed=untried
15302 fi
15303 if test -n "$SDL_LIBS"; then
15304 pkg_cv_SDL_LIBS="$SDL_LIBS"
15305 elif test -n "$PKG_CONFIG"; then
15306 if test -n "$PKG_CONFIG" && \
15307 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl >= \$min_sdl_version\""; } >&5
15308 ($PKG_CONFIG --exists --print-errors "sdl >= $min_sdl_version") 2>&5
15309 ac_status=$?
15310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15311 test $ac_status = 0; }; then
15312 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl >= $min_sdl_version" 2>/dev/null`
15313 test "x$?" != "x0" && pkg_failed=yes
15314 else
15315 pkg_failed=yes
15316 fi
15317 else
15318 pkg_failed=untried
15319 fi
15320
15321
15322
15323 if test $pkg_failed = yes; then
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15325 $as_echo "no" >&6; }
15326
15327 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15328 _pkg_short_errors_supported=yes
15329 else
15330 _pkg_short_errors_supported=no
15331 fi
15332 if test $_pkg_short_errors_supported = yes; then
15333 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl >= $min_sdl_version" 2>&1`
15334 else
15335 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl >= $min_sdl_version" 2>&1`
15336 fi
15337 # Put the nasty error message in config.log where it belongs
15338 echo "$SDL_PKG_ERRORS" >&5
15339
15340 sdl_pc=no
15341 elif test $pkg_failed = untried; then
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15343 $as_echo "no" >&6; }
15344 sdl_pc=no
15345 else
15346 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
15347 SDL_LIBS=$pkg_cv_SDL_LIBS
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15349 $as_echo "yes" >&6; }
15350 sdl_pc=yes
15351 fi
15352 else
15353 sdl_pc=no
15354 if test x$sdl_exec_prefix != x ; then
15355 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
15356 if test x${SDL_CONFIG+set} != xset ; then
15357 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
15358 fi
15359 fi
15360 if test x$sdl_prefix != x ; then
15361 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
15362 if test x${SDL_CONFIG+set} != xset ; then
15363 SDL_CONFIG=$sdl_prefix/bin/sdl-config
15364 fi
15365 fi
15366 fi
15367
15368 if test "x$sdl_pc" = xyes ; then
15369 no_sdl=""
15370 SDL_CONFIG="$PKG_CONFIG sdl"
15371 else
15372 as_save_PATH="$PATH"
15373 if test "x$prefix" != xNONE && test "$cross_compiling" != yes; then
15374 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
15375 fi
15376 # Extract the first word of "sdl-config", so it can be a program name with args.
15377 set dummy sdl-config; ac_word=$2
15378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15379 $as_echo_n "checking for $ac_word... " >&6; }
15380 if ${ac_cv_path_SDL_CONFIG+:} false; then :
15381 $as_echo_n "(cached) " >&6
15382 else
15383 case $SDL_CONFIG in
15384 [\\/]* | ?:[\\/]*)
15385 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
15386 ;;
15387 *)
15388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15389 for as_dir in $PATH
15390 do
15391 IFS=$as_save_IFS
15392 test -z "$as_dir" && as_dir=.
15393 for ac_exec_ext in '' $ac_executable_extensions; do
15394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15395 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15397 break 2
15398 fi
15399 done
15400 done
15401 IFS=$as_save_IFS
15402
15403 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
15404 ;;
15405 esac
15406 fi
15407 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
15408 if test -n "$SDL_CONFIG"; then
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
15410 $as_echo "$SDL_CONFIG" >&6; }
15411 else
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15413 $as_echo "no" >&6; }
15414 fi
15415
15416
15417 PATH="$as_save_PATH"
15418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
15419 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
15420 no_sdl=""
15421
15422 if test "$SDL_CONFIG" = "no" ; then
15423 no_sdl=yes
15424 else
15425 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
15426 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
15427
15428 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
15429 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
15430 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
15431 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
15432 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
15433 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
15434 if test "x$enable_sdltest" = "xyes" ; then
15435 ac_save_CFLAGS="$CFLAGS"
15436 ac_save_CXXFLAGS="$CXXFLAGS"
15437 ac_save_LIBS="$LIBS"
15438 CFLAGS="$CFLAGS $SDL_CFLAGS"
15439 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
15440 LIBS="$LIBS $SDL_LIBS"
15441 rm -f conf.sdltest
15442 if test "$cross_compiling" = yes; then :
15443 echo $ac_n "cross compiling; assumed OK... $ac_c"
15444 else
15445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15446 /* end confdefs.h. */
15447
15448 #include <stdio.h>
15449 #include <stdlib.h>
15450 #include "SDL.h"
15451
15452 int main (int argc, char *argv[])
15453 {
15454 int major, minor, micro;
15455 FILE *fp = fopen("conf.sdltest", "w");
15456
15457 if (fp) fclose(fp);
15458
15459 if (sscanf("$min_sdl_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
15460 printf("%s, bad version string\n", "$min_sdl_version");
15461 exit(1);
15462 }
15463
15464 if (($sdl_major_version > major) ||
15465 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
15466 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
15467 {
15468 return 0;
15469 }
15470 else
15471 {
15472 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
15473 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
15474 printf("*** best to upgrade to the required version.\n");
15475 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
15476 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
15477 printf("*** config.cache before re-running configure\n");
15478 return 1;
15479 }
15480 }
15481
15482
15483 _ACEOF
15484 if ac_fn_c_try_run "$LINENO"; then :
15485
15486 else
15487 no_sdl=yes
15488 fi
15489 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15490 conftest.$ac_objext conftest.beam conftest.$ac_ext
15491 fi
15492
15493 CFLAGS="$ac_save_CFLAGS"
15494 CXXFLAGS="$ac_save_CXXFLAGS"
15495 LIBS="$ac_save_LIBS"
15496 fi
15497 fi
15498 if test "x$no_sdl" = x ; then
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15500 $as_echo "yes" >&6; }
15501 else
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15503 $as_echo "no" >&6; }
15504 fi
15505 fi
15506 if test "x$no_sdl" = x ; then
15507 libmikmod_driver_sdl=yes
15508 else
15509 if test "$SDL_CONFIG" = "no" ; then
15510 echo "*** The sdl-config script installed by SDL could not be found"
15511 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
15512 echo "*** your path, or set the SDL_CONFIG environment variable to the"
15513 echo "*** full path to sdl-config."
15514 else
15515 if test -f conf.sdltest ; then
15516 :
15517 else
15518 echo "*** Could not run SDL test program, checking why..."
15519 CFLAGS="$CFLAGS $SDL_CFLAGS"
15520 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
15521 LIBS="$LIBS $SDL_LIBS"
15522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15523 /* end confdefs.h. */
15524
15525 #include <stdio.h>
15526 #include "SDL.h"
15527
15528 int main(int argc, char *argv[])
15529 { return 0; }
15530 #undef main
15531 #define main K_and_R_C_main
15532
15533 int
15534 main ()
15535 {
15536 return 0;
15537 ;
15538 return 0;
15539 }
15540 _ACEOF
15541 if ac_fn_c_try_link "$LINENO"; then :
15542 echo "*** The test program compiled, but did not run. This usually means"
15543 echo "*** that the run-time linker is not finding SDL or finding the wrong"
15544 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
15545 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
15546 echo "*** to the installed location Also, make sure you have run ldconfig if that"
15547 echo "*** is required on your system"
15548 echo "***"
15549 echo "*** If you have an old version installed, it is best to remove it, although"
15550 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
15551 else
15552 echo "*** The test program failed to compile or link. See the file config.log for the"
15553 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
15554 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
15555 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
15556 fi
15557 rm -f core conftest.err conftest.$ac_objext \
15558 conftest$ac_exeext conftest.$ac_ext
15559 CFLAGS="$ac_save_CFLAGS"
15560 CXXFLAGS="$ac_save_CXXFLAGS"
15561 LIBS="$ac_save_LIBS"
15562 fi
15563 fi
15564 SDL_CFLAGS=""
15565 SDL_LIBS=""
15566 :
15567 fi
15568
15569
15570 rm -f conf.sdltest
15571
15572 fi
15573 # we don't need linking to SDLmain, because we are a library.
15574 # we also don't need -lmingw32 for MinGW, because gcc adds it automatically.
15575 # -mwindows doesn't make sense for us, either, i.e. no need for extra gdi32
15576 # and comdlg32 linkage, nor the extra "--subsystem windows" flag.
15577 SDL_CFLAGS="`echo $SDL_CFLAGS|sed -e 's/-Dmain=SDL_main//'`"
15578 SDL_LIBS="`echo $SDL_LIBS|sed -e 's/-lSDLmain//'|sed -e 's/-lmingw32//'|sed -e 's/-mwindows//'`"
15579 fi
15580
15581
15582
15583 # Windows audio
15584 # ---------------------
15585 case $host_os in
15586 mingw*|msys*|cygwin*)
15587 # do a windows.h check, just in case..
15588 for ac_header in windows.h
15589 do :
15590 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
15591 if test "x$ac_cv_header_windows_h" = xyes; then :
15592 cat >>confdefs.h <<_ACEOF
15593 #define HAVE_WINDOWS_H 1
15594 _ACEOF
15595
15596 else
15597 as_fn_error $? "Targeting windows, but windows.h not available" "$LINENO" 5
15598 fi
15599
15600 done
15601
15602 if test $libmikmod_driver_ds = yes
15603 then
15604 libmikmod_driver_ds=no
15605 for ac_header in dsound.h
15606 do :
15607 ac_fn_c_check_header_compile "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "#include <windows.h>
15608 "
15609 if test "x$ac_cv_header_dsound_h" = xyes; then :
15610 cat >>confdefs.h <<_ACEOF
15611 #define HAVE_DSOUND_H 1
15612 _ACEOF
15613 libmikmod_driver_ds=yes
15614 fi
15615
15616 done
15617
15618 fi
15619 if test $libmikmod_driver_xaudio2 = yes
15620 then
15621 libmikmod_driver_xaudio2=no
15622 ac_save_CPPFLAGS=$CPPFLAGS
15623 if test $use_xaudio28 = yes
15624 then
15625 CPPFLAGS="$CPPLAGS -D_WIN32_WINNT=0x0602"
15626 fi
15627 for ac_header in xaudio2.h
15628 do :
15629 ac_fn_c_check_header_mongrel "$LINENO" "xaudio2.h" "ac_cv_header_xaudio2_h" "$ac_includes_default"
15630 if test "x$ac_cv_header_xaudio2_h" = xyes; then :
15631 cat >>confdefs.h <<_ACEOF
15632 #define HAVE_XAUDIO2_H 1
15633 _ACEOF
15634 libmikmod_driver_xaudio2=yes
15635 fi
15636
15637 done
15638
15639 if test $libmikmod_driver_xaudio2 = yes
15640 then
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XAUDIO2_VOICE_NOSAMPLESPLAYED is defined" >&5
15642 $as_echo_n "checking if XAUDIO2_VOICE_NOSAMPLESPLAYED is defined... " >&6; }
15643 if ${libmikmod_cv_xaudio2_7_header+:} false; then :
15644 $as_echo_n "(cached) " >&6
15645 else
15646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15647 /* end confdefs.h. */
15648 #include <xaudio2.h>
15649 int
15650 main ()
15651 {
15652 int flag=XAUDIO2_VOICE_NOSAMPLESPLAYED;
15653 ;
15654 return 0;
15655 }
15656 _ACEOF
15657 if ac_fn_c_try_compile "$LINENO"; then :
15658 libmikmod_cv_xaudio2_7_header=yes
15659 else
15660 libmikmod_cv_xaudio2_7_header=no
15661 fi
15662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15663 fi
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libmikmod_cv_xaudio2_7_header" >&5
15665 $as_echo "$libmikmod_cv_xaudio2_7_header" >&6; }
15666 if test $libmikmod_cv_xaudio2_7_header = yes && test $use_xaudio28 = yes
15667 then
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xaudio2.h <= 2.7 and xaudio2.8 enabled - build will likely fail." >&5
15669 $as_echo "$as_me: WARNING: xaudio2.h <= 2.7 and xaudio2.8 enabled - build will likely fail." >&2;}
15670 fi
15671 if test $libmikmod_cv_xaudio2_7_header = no && test $use_xaudio28 != yes
15672 then
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xaudio2.h >= 2.8 and xaudio2.8 disabled - build will likely fail." >&5
15674 $as_echo "$as_me: WARNING: xaudio2.h >= 2.8 and xaudio2.8 disabled - build will likely fail." >&2;}
15675 fi
15676 fi
15677 CPPFLAGS=$ac_save_CPPFLAGS
15678 fi
15679 ;;
15680
15681 *) libmikmod_driver_win=no
15682 libmikmod_driver_ds=no
15683 libmikmod_driver_xaudio2=no
15684 ;;
15685 esac
15686
15687 # OS/2 audio
15688 # ---------------------
15689 case $host_os in
15690 emx*)
15691 # do an os2.h check, just in case..
15692 for ac_header in os2.h
15693 do :
15694 ac_fn_c_check_header_mongrel "$LINENO" "os2.h" "ac_cv_header_os2_h" "$ac_includes_default"
15695 if test "x$ac_cv_header_os2_h" = xyes; then :
15696 cat >>confdefs.h <<_ACEOF
15697 #define HAVE_OS2_H 1
15698 _ACEOF
15699
15700 else
15701 as_fn_error $? "Targeting OS/2, but os2.h not available" "$LINENO" 5
15702 fi
15703
15704 done
15705
15706 ;;
15707 esac
15708
15709 # sgi audio - IRIX only
15710 # ---------------------
15711 if test $libmikmod_driver_sgi = yes
15712 then
15713 libmikmod_driver_sgi=no
15714 for ac_header in dmedia/audio.h
15715 do :
15716 ac_fn_c_check_header_mongrel "$LINENO" "dmedia/audio.h" "ac_cv_header_dmedia_audio_h" "$ac_includes_default"
15717 if test "x$ac_cv_header_dmedia_audio_h" = xyes; then :
15718 cat >>confdefs.h <<_ACEOF
15719 #define HAVE_DMEDIA_AUDIO_H 1
15720 _ACEOF
15721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALseterrorhandler in -laudio" >&5
15722 $as_echo_n "checking for ALseterrorhandler in -laudio... " >&6; }
15723 if ${ac_cv_lib_audio_ALseterrorhandler+:} false; then :
15724 $as_echo_n "(cached) " >&6
15725 else
15726 ac_check_lib_save_LIBS=$LIBS
15727 LIBS="-laudio $LIBS"
15728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15729 /* end confdefs.h. */
15730
15731 /* Override any GCC internal prototype to avoid an error.
15732 Use char because int might match the return type of a GCC
15733 builtin and then its argument prototype would still apply. */
15734 #ifdef __cplusplus
15735 extern "C"
15736 #endif
15737 char ALseterrorhandler ();
15738 int
15739 main ()
15740 {
15741 return ALseterrorhandler ();
15742 ;
15743 return 0;
15744 }
15745 _ACEOF
15746 if ac_fn_c_try_link "$LINENO"; then :
15747 ac_cv_lib_audio_ALseterrorhandler=yes
15748 else
15749 ac_cv_lib_audio_ALseterrorhandler=no
15750 fi
15751 rm -f core conftest.err conftest.$ac_objext \
15752 conftest$ac_exeext conftest.$ac_ext
15753 LIBS=$ac_check_lib_save_LIBS
15754 fi
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_ALseterrorhandler" >&5
15756 $as_echo "$ac_cv_lib_audio_ALseterrorhandler" >&6; }
15757 if test "x$ac_cv_lib_audio_ALseterrorhandler" = xyes; then :
15758 libmikmod_driver_sgi=yes
15759 fi
15760
15761 fi
15762
15763 done
15764
15765 fi
15766
15767 # audiofile
15768 # ---------
15769 if test $libmikmod_driver_af = yes
15770 then
15771 libmikmod_driver_af=no
15772 for ac_header in AF/AFlib.h
15773 do :
15774 ac_fn_c_check_header_mongrel "$LINENO" "AF/AFlib.h" "ac_cv_header_AF_AFlib_h" "$ac_includes_default"
15775 if test "x$ac_cv_header_AF_AFlib_h" = xyes; then :
15776 cat >>confdefs.h <<_ACEOF
15777 #define HAVE_AF_AFLIB_H 1
15778 _ACEOF
15779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AFOpenAudioConn in -lAF" >&5
15780 $as_echo_n "checking for AFOpenAudioConn in -lAF... " >&6; }
15781 if ${ac_cv_lib_AF_AFOpenAudioConn+:} false; then :
15782 $as_echo_n "(cached) " >&6
15783 else
15784 ac_check_lib_save_LIBS=$LIBS
15785 LIBS="-lAF $LIBS"
15786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15787 /* end confdefs.h. */
15788
15789 /* Override any GCC internal prototype to avoid an error.
15790 Use char because int might match the return type of a GCC
15791 builtin and then its argument prototype would still apply. */
15792 #ifdef __cplusplus
15793 extern "C"
15794 #endif
15795 char AFOpenAudioConn ();
15796 int
15797 main ()
15798 {
15799 return AFOpenAudioConn ();
15800 ;
15801 return 0;
15802 }
15803 _ACEOF
15804 if ac_fn_c_try_link "$LINENO"; then :
15805 ac_cv_lib_AF_AFOpenAudioConn=yes
15806 else
15807 ac_cv_lib_AF_AFOpenAudioConn=no
15808 fi
15809 rm -f core conftest.err conftest.$ac_objext \
15810 conftest$ac_exeext conftest.$ac_ext
15811 LIBS=$ac_check_lib_save_LIBS
15812 fi
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_AF_AFOpenAudioConn" >&5
15814 $as_echo "$ac_cv_lib_AF_AFOpenAudioConn" >&6; }
15815 if test "x$ac_cv_lib_AF_AFOpenAudioConn" = xyes; then :
15816 libmikmod_driver_af=yes
15817 fi
15818
15819 fi
15820
15821 done
15822
15823 fi
15824
15825 # libgus - Linux only
15826 # -------------------
15827 if test $libmikmod_driver_ultra = yes
15828 then
15829 libmikmod_driver_ultra=no
15830 for ac_header in libgus.h
15831 do :
15832 ac_fn_c_check_header_mongrel "$LINENO" "libgus.h" "ac_cv_header_libgus_h" "$ac_includes_default"
15833 if test "x$ac_cv_header_libgus_h" = xyes; then :
15834 cat >>confdefs.h <<_ACEOF
15835 #define HAVE_LIBGUS_H 1
15836 _ACEOF
15837
15838 fi
15839
15840 done
15841
15842 if test $ac_cv_header_libgus_h = yes
15843 then
15844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libgus is new enough" >&5
15845 $as_echo_n "checking if libgus is new enough... " >&6; }
15846 if ${libmikmod_cv_libgus_h_good+:} false; then :
15847 $as_echo_n "(cached) " >&6
15848 else
15849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15850 /* end confdefs.h. */
15851 #include <libgus.h>
15852 int
15853 main ()
15854 {
15855 gus_info_t *info;
15856 int flg1=GUS_INSTR_SIMPLE;
15857 int flg2=GUS_WAVE_BIDIR;
15858 ;
15859 return 0;
15860 }
15861 _ACEOF
15862 if ac_fn_c_try_compile "$LINENO"; then :
15863 libmikmod_cv_libgus_h_good=yes
15864 else
15865 libmikmod_cv_libgus_h_good=no
15866 fi
15867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15868 fi
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libmikmod_cv_libgus_h_good" >&5
15870 $as_echo "$libmikmod_cv_libgus_h_good" >&6; }
15871
15872 if test $libmikmod_cv_libgus_h_good = yes
15873 then
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gus_cards in -lgus" >&5
15875 $as_echo_n "checking for gus_cards in -lgus... " >&6; }
15876 if ${ac_cv_lib_gus_gus_cards+:} false; then :
15877 $as_echo_n "(cached) " >&6
15878 else
15879 ac_check_lib_save_LIBS=$LIBS
15880 LIBS="-lgus $LIBS"
15881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15882 /* end confdefs.h. */
15883
15884 /* Override any GCC internal prototype to avoid an error.
15885 Use char because int might match the return type of a GCC
15886 builtin and then its argument prototype would still apply. */
15887 #ifdef __cplusplus
15888 extern "C"
15889 #endif
15890 char gus_cards ();
15891 int
15892 main ()
15893 {
15894 return gus_cards ();
15895 ;
15896 return 0;
15897 }
15898 _ACEOF
15899 if ac_fn_c_try_link "$LINENO"; then :
15900 ac_cv_lib_gus_gus_cards=yes
15901 else
15902 ac_cv_lib_gus_gus_cards=no
15903 fi
15904 rm -f core conftest.err conftest.$ac_objext \
15905 conftest$ac_exeext conftest.$ac_ext
15906 LIBS=$ac_check_lib_save_LIBS
15907 fi
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gus_gus_cards" >&5
15909 $as_echo "$ac_cv_lib_gus_gus_cards" >&6; }
15910 if test "x$ac_cv_lib_gus_gus_cards" = xyes; then :
15911 libmikmod_driver_ultra=yes
15912 fi
15913
15914 fi
15915 fi
15916 fi
15917
15918 # sam9407 - Linux only
15919 # --------------------
15920 if test $libmikmod_driver_sam9407 = yes
15921 then
15922 libmikmod_driver_sam9407=no
15923 for ac_header in sys/sam9407.h
15924 do :
15925 ac_fn_c_check_header_mongrel "$LINENO" "sys/sam9407.h" "ac_cv_header_sys_sam9407_h" "$ac_includes_default"
15926 if test "x$ac_cv_header_sys_sam9407_h" = xyes; then :
15927 cat >>confdefs.h <<_ACEOF
15928 #define HAVE_SYS_SAM9407_H 1
15929 _ACEOF
15930 libmikmod_driver_sam9407=yes
15931 fi
15932
15933 done
15934
15935 fi
15936
15937 # AIX audio
15938 # ---------
15939 if test $libmikmod_driver_aix = yes
15940 then
15941 libmikmod_driver_aix=no
15942 for ac_header in sys/audio.h sys/acpa.h
15943 do :
15944 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15945 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15946 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15947 cat >>confdefs.h <<_ACEOF
15948 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15949 _ACEOF
15950
15951 fi
15952
15953 done
15954
15955 if test $ac_cv_header_sys_audio_h = yes && test $ac_cv_header_sys_acpa_h = yes
15956 then
15957 libmikmod_driver_aix=yes
15958 fi
15959 fi
15960
15961 # HP/UX audio
15962 # -----------
15963 if test $libmikmod_driver_hp = yes
15964 then
15965 libmikmod_driver_hp=no
15966 for ac_header in sys/audio.h
15967 do :
15968 ac_fn_c_check_header_mongrel "$LINENO" "sys/audio.h" "ac_cv_header_sys_audio_h" "$ac_includes_default"
15969 if test "x$ac_cv_header_sys_audio_h" = xyes; then :
15970 cat >>confdefs.h <<_ACEOF
15971 #define HAVE_SYS_AUDIO_H 1
15972 _ACEOF
15973 libmikmod_driver_hp=yes
15974 fi
15975
15976 done
15977
15978 fi
15979
15980 # sndio - OpenBSD only
15981 # --------------------
15982 if test $libmikmod_driver_sndio = yes
15983 then
15984 libmikmod_driver_sndio=no
15985 for ac_header in sndio.h
15986 do :
15987 ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
15988 if test "x$ac_cv_header_sndio_h" = xyes; then :
15989 cat >>confdefs.h <<_ACEOF
15990 #define HAVE_SNDIO_H 1
15991 _ACEOF
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
15993 $as_echo_n "checking for sio_open in -lsndio... " >&6; }
15994 if ${ac_cv_lib_sndio_sio_open+:} false; then :
15995 $as_echo_n "(cached) " >&6
15996 else
15997 ac_check_lib_save_LIBS=$LIBS
15998 LIBS="-lsndio $LIBS"
15999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16000 /* end confdefs.h. */
16001
16002 /* Override any GCC internal prototype to avoid an error.
16003 Use char because int might match the return type of a GCC
16004 builtin and then its argument prototype would still apply. */
16005 #ifdef __cplusplus
16006 extern "C"
16007 #endif
16008 char sio_open ();
16009 int
16010 main ()
16011 {
16012 return sio_open ();
16013 ;
16014 return 0;
16015 }
16016 _ACEOF
16017 if ac_fn_c_try_link "$LINENO"; then :
16018 ac_cv_lib_sndio_sio_open=yes
16019 else
16020 ac_cv_lib_sndio_sio_open=no
16021 fi
16022 rm -f core conftest.err conftest.$ac_objext \
16023 conftest$ac_exeext conftest.$ac_ext
16024 LIBS=$ac_check_lib_save_LIBS
16025 fi
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
16027 $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
16028 if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
16029 libmikmod_driver_sndio=yes
16030 fi
16031
16032 fi
16033
16034 done
16035
16036 fi
16037
16038 # sunaudio - NetBSD/OpenBSD/SunOS/Solaris only
16039 # --------------------------------------------
16040 if test $libmikmod_driver_sun = yes
16041 then
16042 libmikmod_driver_sun=no
16043 for ac_header in sun/audioio.h sys/audioio.h
16044 do :
16045 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16046 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16047 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16048 cat >>confdefs.h <<_ACEOF
16049 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16050 _ACEOF
16051
16052 fi
16053
16054 done
16055
16056 if test $ac_cv_header_sun_audioio_h = yes || test $ac_cv_header_sys_audioio_h = yes
16057 then
16058 libmikmod_driver_sun=yes
16059 fi
16060 fi
16061
16062 # ================
16063 # Choose settings.
16064 # ================
16065
16066 if test $libmikmod_driver_raw = yes
16067 then
16068 libmikmod_driverlist="raw $libmikmod_driverlist"
16069
16070 $as_echo "#define DRV_RAW 1" >>confdefs.h
16071
16072 fi
16073 if test $libmikmod_driver_wav = yes
16074 then
16075 libmikmod_driverlist="wav $libmikmod_driverlist"
16076
16077 $as_echo "#define DRV_WAV 1" >>confdefs.h
16078
16079 fi
16080 if test $libmikmod_driver_aiff = yes
16081 then
16082 libmikmod_driverlist="aiff $libmikmod_driverlist"
16083
16084 $as_echo "#define DRV_AIFF 1" >>confdefs.h
16085
16086 fi
16087
16088 if test $libmikmod_driver_pipe = yes
16089 then
16090 libmikmod_driverlist="pipe $libmikmod_driverlist"
16091
16092 $as_echo "#define DRV_PIPE 1" >>confdefs.h
16093
16094 fi
16095 if test $libmikmod_driver_stdout = yes
16096 then
16097 libmikmod_driverlist="stdout $libmikmod_driverlist"
16098
16099 $as_echo "#define DRV_STDOUT 1" >>confdefs.h
16100
16101 fi
16102
16103 if test $libmikmod_driver_af = yes
16104 then
16105 libmikmod_driverlist="$libmikmod_driverlist audiofile"
16106
16107 $as_echo "#define DRV_AF 1" >>confdefs.h
16108
16109 LIBRARY_LIB="-lAF $LIBRARY_LIB"
16110 fi
16111
16112 if test $libmikmod_driver_win = yes
16113 then
16114 libmikmod_driverlist="win $libmikmod_driverlist"
16115
16116 $as_echo "#define DRV_WIN 1" >>confdefs.h
16117
16118 LIBRARY_LIB="-lwinmm $LIBRARY_LIB"
16119 fi
16120
16121 if test $libmikmod_driver_ds = yes
16122 then
16123 libmikmod_driverlist="ds $libmikmod_driverlist"
16124
16125 $as_echo "#define DRV_DS 1" >>confdefs.h
16126
16127 LIBRARY_LIB="-ldsound $LIBRARY_LIB"
16128 fi
16129
16130 if test $libmikmod_driver_xaudio2 = yes
16131 then
16132 libmikmod_driverlist="xaudio2 $libmikmod_driverlist"
16133
16134 $as_echo "#define DRV_XAUDIO2 1" >>confdefs.h
16135
16136 LIBRARY_LIB="-lole32 $LIBRARY_LIB"
16137 if test $use_xaudio28 = yes
16138 then
16139
16140 $as_echo "#define DRV_XAUDIO28 1" >>confdefs.h
16141
16142 LIBRARY_LIB="-lxaudio2_8 $LIBRARY_LIB"
16143 fi
16144 fi
16145
16146 if test $libmikmod_driver_os2 = yes
16147 then
16148 libmikmod_driverlist="os2 $libmikmod_driverlist"
16149
16150 $as_echo "#define DRV_OS2 1" >>confdefs.h
16151
16152 # drv_os2 and drv_dart both link to mmpm2
16153 if test $libmikmod_driver_dart = no
16154 then
16155 LIBRARY_LIB="-lmmpm2 $LIBRARY_LIB"
16156 fi
16157 fi
16158
16159 if test $libmikmod_driver_dart = yes
16160 then
16161 libmikmod_driverlist="dart $libmikmod_driverlist"
16162
16163 $as_echo "#define DRV_DART 1" >>confdefs.h
16164
16165 LIBRARY_LIB="-lmmpm2 $LIBRARY_LIB"
16166 fi
16167
16168 if test $libmikmod_driver_aix = yes
16169 then
16170 libmikmod_driverlist="aix $libmikmod_driverlist"
16171
16172 $as_echo "#define DRV_AIX 1" >>confdefs.h
16173
16174 fi
16175
16176 if test $libmikmod_driver_ahi = yes
16177 then
16178 libmikmod_driverlist="ahi $libmikmod_driverlist"
16179
16180 $as_echo "#define DRV_AHI 1" >>confdefs.h
16181
16182 fi
16183
16184 if test $libmikmod_driver_alsa = yes
16185 then
16186 libmikmod_driverlist="alsa $libmikmod_driverlist"
16187
16188 $as_echo "#define DRV_ALSA 1" >>confdefs.h
16189
16190 if test $libmikmod_dynload = no
16191 then
16192 LIBRARY_LIB="-lasound $LIBRARY_LIB"
16193 else
16194 libmikmod_dynload_used=yes
16195 fi
16196 fi
16197
16198 if test $libmikmod_driver_pulseaudio = yes
16199 then
16200 libmikmod_driverlist="pulseaudio $libmikmod_driverlist"
16201
16202 $as_echo "#define DRV_PULSEAUDIO 1" >>confdefs.h
16203
16204 if test $libmikmod_dynload = no
16205 then
16206 LIBRARY_LIB="-lpulse-simple -lpulse $LIBRARY_LIB"
16207 else
16208 libmikmod_dynload_used=yes
16209 fi
16210 fi
16211
16212 if test $libmikmod_driver_esd = yes
16213 then
16214 libmikmod_driverlist="esd $libmikmod_driverlist"
16215
16216 $as_echo "#define DRV_ESD 1" >>confdefs.h
16217
16218 CFLAGS="$CFLAGS $ESD_CFLAGS"
16219 # Under Solaris and perhaps other systems, we have to forward esd
16220 # dependencies to libmikmod's dependency list.
16221 # However, no need to keep libraries we won't require (libossaudio on BSD
16222 # systems, libaudiofile, libasound on Linux)
16223 if test $libmikmod_dynload = yes
16224 then
16225 ESD_LIBS="`echo $ESD_LIBS|sed -e 's/-lesd//'|sed -e 's/-lasound//'|sed -e 's/-laudiofile//'|sed -e 's/-lossaudio//'`"
16226 libmikmod_dynload_used=yes
16227 fi
16228 LIBRARY_LIB="$ESD_LIBS $LIBRARY_LIB"
16229 fi
16230
16231 if test $libmikmod_driver_nas = yes
16232 then
16233 libmikmod_driverlist="nas $libmikmod_driverlist"
16234
16235 $as_echo "#define DRV_NAS 1" >>confdefs.h
16236
16237 LIBRARY_LIB="-laudio $LIBRARY_LIB"
16238 fi
16239
16240 if test $libmikmod_driver_hp = yes
16241 then
16242 libmikmod_driverlist="hp $libmikmod_driverlist"
16243
16244 $as_echo "#define DRV_HP 1" >>confdefs.h
16245
16246 fi
16247
16248 if test $libmikmod_driver_openal = yes
16249 then
16250 libmikmod_driverlist="openal $libmikmod_driverlist"
16251
16252 $as_echo "#define DRV_OPENAL 1" >>confdefs.h
16253
16254 if test $libmikmod_darwin = yes
16255 then
16256 LIBRARY_LIB="-framework OpenAL $LIBRARY_LIB"
16257 else
16258 LIBRARY_LIB="-lopenal $LIBRARY_LIB"
16259 fi
16260 fi
16261
16262 if test $libmikmod_driver_sdl = yes
16263 then
16264 libmikmod_driverlist="sdl $libmikmod_driverlist"
16265
16266 $as_echo "#define DRV_SDL 1" >>confdefs.h
16267
16268 CFLAGS="$SDL_CFLAGS $CFLAGS"
16269 LIBRARY_LIB="$SDL_LIBS $LIBRARY_LIB"
16270 fi
16271
16272 if test $libmikmod_driver_oss = yes && test $libmikmod_mingw = no && test $libmikmod_darwin = no
16273 then
16274 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
16275 do :
16276 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16277 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16278 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16279 cat >>confdefs.h <<_ACEOF
16280 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16281 _ACEOF
16282
16283 fi
16284
16285 done
16286
16287
16288 # NetBSD and OpenBSD use ossaudio emulation layer,
16289 # otherwise no link library is needed.
16290 oss_library=""
16291 case $host_os in
16292 netbsd*|openbsd*)
16293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
16294 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
16295 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
16296 $as_echo_n "(cached) " >&6
16297 else
16298 ac_check_lib_save_LIBS=$LIBS
16299 LIBS="-lossaudio $LIBS"
16300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16301 /* end confdefs.h. */
16302
16303 /* Override any GCC internal prototype to avoid an error.
16304 Use char because int might match the return type of a GCC
16305 builtin and then its argument prototype would still apply. */
16306 #ifdef __cplusplus
16307 extern "C"
16308 #endif
16309 char _oss_ioctl ();
16310 int
16311 main ()
16312 {
16313 return _oss_ioctl ();
16314 ;
16315 return 0;
16316 }
16317 _ACEOF
16318 if ac_fn_c_try_link "$LINENO"; then :
16319 ac_cv_lib_ossaudio__oss_ioctl=yes
16320 else
16321 ac_cv_lib_ossaudio__oss_ioctl=no
16322 fi
16323 rm -f core conftest.err conftest.$ac_objext \
16324 conftest$ac_exeext conftest.$ac_ext
16325 LIBS=$ac_check_lib_save_LIBS
16326 fi
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
16328 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
16329 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
16330 oss_library="-lossaudio"
16331 fi
16332
16333 ;;
16334 esac
16335
16336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OSS code compiles" >&5
16337 $as_echo_n "checking whether OSS code compiles... " >&6; }
16338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16339 /* end confdefs.h. */
16340 #ifdef HAVE_SYS_IOCTL_H
16341 # include <sys/ioctl.h>
16342 #endif
16343 #ifdef HAVE_SYS_SOUNDCARD_H
16344 # include <sys/soundcard.h>
16345 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
16346 # include <machine/soundcard.h>
16347 #elif defined(HAVE_SOUNDCARD_H)
16348 # include <soundcard.h>
16349 #else
16350 error No OSS header present.
16351 #endif
16352 int
16353 main ()
16354 {
16355 int i=SNDCTL_DSP_RESET;
16356 ;
16357 return 0;
16358 }
16359 _ACEOF
16360 if ac_fn_c_try_compile "$LINENO"; then :
16361 libmikmod_driver_oss=yes
16362 else
16363 libmikmod_driver_oss=no
16364 fi
16365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libmikmod_driver_oss" >&5
16367 $as_echo "$libmikmod_driver_oss" >&6; }
16368 if test $libmikmod_driver_oss = yes
16369 then
16370 libmikmod_driverlist="oss $libmikmod_driverlist"
16371
16372 $as_echo "#define DRV_OSS 1" >>confdefs.h
16373
16374 if test -n "$oss_library"
16375 then
16376 LIBRARY_LIB="$oss_library $LIBRARY_LIB"
16377 fi
16378 fi
16379 fi
16380
16381 if test $libmikmod_driver_osx = yes
16382 then
16383 libmikmod_driverlist="osx $libmikmod_driverlist"
16384
16385 $as_echo "#define DRV_OSX 1" >>confdefs.h
16386
16387 LIBRARY_LIB="-framework AudioToolbox -framework AudioUnit -framework CoreServices $LIBRARY_LIB"
16388 fi
16389
16390 #OpenSL ES driver (e.g. Android)
16391 if test $libmikmod_driver_osles = yes
16392 then
16393
16394 $as_echo "#define DRV_OSLES 1" >>confdefs.h
16395
16396 LIBRARY_LIB="-lOpenSLES $LIBRARY_LIB"
16397 fi
16398
16399 if test $libmikmod_driver_mac = yes
16400 then
16401 libmikmod_driverlist="mac $libmikmod_driverlist"
16402
16403 $as_echo "#define DRV_MAC 1" >>confdefs.h
16404
16405 LIBRARY_LIB="-framework Carbon $LIBRARY_LIB"
16406 fi
16407
16408 if test $libmikmod_driver_sam9407 = yes
16409 then
16410 libmikmod_driverlist="sam9407 $libmikmod_driverlist"
16411
16412 $as_echo "#define DRV_SAM9407 1" >>confdefs.h
16413
16414 fi
16415
16416 if test $libmikmod_driver_sgi = yes
16417 then
16418 libmikmod_driverlist="sgi $libmikmod_driverlist"
16419
16420 $as_echo "#define DRV_SGI 1" >>confdefs.h
16421
16422 LIBRARY_LIB="-laudio $LIBRARY_LIB"
16423 fi
16424
16425 if test $libmikmod_driver_sndio = yes
16426 then
16427 libmikmod_driverlist="sndio $libmikmod_driverlist"
16428
16429 $as_echo "#define DRV_SNDIO 1" >>confdefs.h
16430
16431 LIBRARY_LIB="-lsndio $LIBRARY_LIB"
16432 fi
16433
16434 if test $libmikmod_driver_sun = yes
16435 then
16436 libmikmod_driverlist="sunaudio $libmikmod_driverlist"
16437
16438 $as_echo "#define DRV_SUN 1" >>confdefs.h
16439
16440 fi
16441
16442 if test $libmikmod_driver_ultra = yes
16443 then
16444 libmikmod_driverlist="ultra $libmikmod_driverlist"
16445
16446 $as_echo "#define DRV_ULTRA 1" >>confdefs.h
16447
16448 if test $libmikmod_dynload = no
16449 then
16450 LIBRARY_LIB="-lgus $LIBRARY_LIB"
16451 else
16452 libmikmod_dynload_used=yes
16453 fi
16454 fi
16455
16456 if test $libmikmod_debug = yes
16457 then
16458
16459 $as_echo "#define MIKMOD_DEBUG 1" >>confdefs.h
16460
16461 CC="$CC -g"
16462 fi
16463
16464 if test $libmikmod_dynload != no
16465 then
16466
16467 $as_echo "#define MIKMOD_DYNAMIC 1" >>confdefs.h
16468
16469
16470 if test -n $libmikmod_dllib && test $libmikmod_dynload_used = yes
16471 then
16472 LIBRARY_LIB="$libmikmod_dllib $LIBRARY_LIB"
16473 fi
16474 fi
16475
16476 # If compiling with gcc, use adequate optimization flags
16477 if test $ac_cv_c_compiler_gnu = yes
16478 then
16479 CFLAGS="$CFLAGS -Wall"
16480 if test $libmikmod_debug = yes
16481 then
16482 CFLAGS="$CFLAGS -Werror"
16483 fi
16484 CFLAGS="$CFLAGS -ffast-math"
16485 if test $libmikmod_darwin = yes
16486 then
16487 CFLAGS="$CFLAGS -fno-common"
16488 fi
16489
16490 # On at least x86 platforms, gcc 2.7.2.1 and earlier won't work if -O3 (or
16491 # -finline-functions) are used. Versions 2.7.2.3, 2.8.x and egcs are ok
16492 # (didn't test 2.7.2.2). Using flags known to work correctly depending on
16493 # the compiler version:
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inlining functions is safe" >&5
16495 $as_echo_n "checking if inlining functions is safe... " >&6; }
16496 if ${libmikmod_cv_gcc_inline_safe+:} false; then :
16497 $as_echo_n "(cached) " >&6
16498 else
16499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16500 /* end confdefs.h. */
16501
16502 int
16503 main ()
16504 {
16505
16506 #if defined __GNUC__ && !(__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 7))
16507 #error inlining functions not safe
16508 #endif
16509
16510 ;
16511 return 0;
16512 }
16513 _ACEOF
16514 if ac_fn_c_try_compile "$LINENO"; then :
16515 libmikmod_cv_gcc_inline_safe=yes
16516 else
16517 libmikmod_cv_gcc_inline_safe=no
16518 fi
16519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16520 fi
16521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libmikmod_cv_gcc_inline_safe" >&5
16522 $as_echo "$libmikmod_cv_gcc_inline_safe" >&6; }
16523 if test $libmikmod_cv_gcc_inline_safe = no
16524 then
16525 CFLAGS="$CFLAGS -fno-strength-reduce"
16526 fi
16527 fi
16528
16529 if test x$libmikmod_threads != xno
16530 then
16531
16532 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16533
16534 CFLAGS="$CFLAGS -D_REENTRANT"
16535 LIBRARY_LIB="$libmikmod_threads $LIBRARY_LIB"
16536 REENTRANT="-D_REENTRANT"
16537 if test $libmikmod_cv_gcc_pthread = yes
16538 then
16539 # There is no need for -pthread on darwin or haiku, as gcc
16540 # complains about unrecognized option -pthread
16541 if test $libmikmod_darwin = no && test $libmikmod_haiku = no
16542 then
16543 REENTRANT="-pthread $REENTRANT"
16544 LIB_LDADD="-pthread"
16545 fi
16546 fi
16547 fi
16548
16549 case $host_cpu in
16550 ppc|ppc64|powerpc|powerpc64)
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use altivec" >&5
16552 $as_echo_n "checking whether to use altivec... " >&6; }
16553 if test x$libmikmod_simd = xyes
16554 then
16555 case $host_os in
16556 darwin*)
16557 # compile all Altivec functions, check at run-time
16558 CFLAGS="$CFLAGS -faltivec -force_cpusubtype_ALL" ;;
16559 *)
16560 # -faltivec and -force_cpusubtype_ALL are Apple-only
16561 # features. -maltivec compiles all code for AltiVec.
16562 CFLAGS="$CFLAGS -maltivec" ;;
16563 esac
16564 libmikmod_altivec=yes
16565 libmikmod_simd=altivec
16566 fi
16567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libmikmod_altivec" >&5
16568 $as_echo "$libmikmod_altivec" >&6; }
16569 ;;
16570
16571 i*86|x86_64)
16572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sse2" >&5
16573 $as_echo_n "checking whether to use sse2... " >&6; }
16574 if test x$libmikmod_simd = xyes
16575 then
16576 # x86_64 already enables sse2
16577 # add -msse2 for x86 to enable it
16578 case `arch` in
16579 i*86) CFLAGS="$CFLAGS -msse2" ;;
16580 esac
16581 libmikmod_sse2=yes
16582 libmikmod_simd=sse2
16583 fi
16584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libmikmod_sse2" >&5
16585 $as_echo "$libmikmod_sse2" >&6; }
16586 ;;
16587 esac
16588
16589 # see if we set libmikmod_simd properly
16590 case $libmikmod_simd in
16591 altivec|sse2)
16592
16593 $as_echo "#define MIKMOD_SIMD 1" >>confdefs.h
16594 ;;
16595 *) libmikmod_simd=no ;;
16596 esac
16597
16598 # MIKMOD_UNIX override
16599 if test "$libmikmod_unix" = "0" || test "$libmikmod_unix" = "1"
16600 then
16601
16602 cat >>confdefs.h <<_ACEOF
16603 #define MIKMOD_UNIX $libmikmod_unix
16604 _ACEOF
16605
16606 fi
16607
16608 if test $libmikmod_hqmixer = no
16609 then
16610
16611 $as_echo "#define NO_HQMIXER 1" >>confdefs.h
16612
16613 fi
16614
16615 if test $libmikmod_depackers = no
16616 then
16617
16618 $as_echo "#define NO_DEPACKERS 1" >>confdefs.h
16619
16620 fi
16621
16622 # symbol visibility
16623 ac_save_CFLAGS="$CFLAGS"
16624 CFLAGS="$CFLAGS -fvisibility=hidden -Werror"
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports visibility attributes" >&5
16626 $as_echo_n "checking if compiler supports visibility attributes... " >&6; }
16627 if ${libmikmod_cv_gcc_visibility+:} false; then :
16628 $as_echo_n "(cached) " >&6
16629 else
16630 ac_ext=c
16631 ac_cpp='$CPP $CPPFLAGS'
16632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16635
16636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16637 /* end confdefs.h. */
16638
16639 __attribute__((visibility("default"))) int foo(void);
16640 __attribute__((visibility("hidden"))) int bar(void);
16641 int foo(void) { return 0; }
16642 int bar(void) { return 1; }
16643 int
16644 main ()
16645 {
16646
16647 ;
16648 return 0;
16649 }
16650 _ACEOF
16651 if ac_fn_c_try_compile "$LINENO"; then :
16652 libmikmod_cv_gcc_visibility=yes
16653 else
16654 libmikmod_cv_gcc_visibility=no
16655 fi
16656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16657 ac_ext=c
16658 ac_cpp='$CPP $CPPFLAGS'
16659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16662
16663 fi
16664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libmikmod_cv_gcc_visibility" >&5
16665 $as_echo "$libmikmod_cv_gcc_visibility" >&6; }
16666 # we want symbol -fvisibility for elf targets, however it works
16667 # with darwin/macho too. other than that, windows, dos, os/2, amiga
16668 # do not need it: for any such targets, the -Werror switch is
16669 # supposed to fail the above check. (I'm adding the manual test
16670 # below nonetheless, just in case.)
16671 case $host_os in
16672 mingw*|cygwin*|emx*|*djgpp|amigaos*|aros*|morphos*)
16673 libmikmod_cv_gcc_visibility=no
16674 ;;
16675 esac
16676 CFLAGS="$ac_save_CFLAGS"
16677 if test $libmikmod_cv_gcc_visibility = yes
16678 then
16679 CFLAGS="$CFLAGS -DSYM_VISIBILITY -fvisibility=hidden"
16680 fi
16681 # for os2, use our def file for exports:
16682 if test $libmikmod_os2 = yes
16683 then
16684 LT_EXTRA="-Wl,$srcdir/os2/mikmod.def"
16685 fi
16686
16687 # =================
16688 # Create Makefiles.
16689 # =================
16690
16691 if test "$libmikmod_docs" = yes; then
16692 BUILD_DOCS_TRUE=
16693 BUILD_DOCS_FALSE='#'
16694 else
16695 BUILD_DOCS_TRUE='#'
16696 BUILD_DOCS_FALSE=
16697 fi
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712 ac_config_files="$ac_config_files libmikmod-config libmikmod.pc libmikmod.spec Makefile docs/Makefile docs/libmikmod-config.1 dlapi/Makefile drivers/Makefile drivers/dos/Makefile include/Makefile loaders/Makefile mmio/Makefile depackers/Makefile playercode/Makefile posix/Makefile"
16713
16714 ac_config_headers="$ac_config_headers config.h"
16715
16716 cat >confcache <<\_ACEOF
16717 # This file is a shell script that caches the results of configure
16718 # tests run on this system so they can be shared between configure
16719 # scripts and configure runs, see configure's option --config-cache.
16720 # It is not useful on other systems. If it contains results you don't
16721 # want to keep, you may remove or edit it.
16722 #
16723 # config.status only pays attention to the cache file if you give it
16724 # the --recheck option to rerun configure.
16725 #
16726 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16727 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16728 # following values.
16729
16730 _ACEOF
16731
16732 # The following way of writing the cache mishandles newlines in values,
16733 # but we know of no workaround that is simple, portable, and efficient.
16734 # So, we kill variables containing newlines.
16735 # Ultrix sh set writes to stderr and can't be redirected directly,
16736 # and sets the high bit in the cache file unless we assign to the vars.
16737 (
16738 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16739 eval ac_val=\$$ac_var
16740 case $ac_val in #(
16741 *${as_nl}*)
16742 case $ac_var in #(
16743 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16744 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16745 esac
16746 case $ac_var in #(
16747 _ | IFS | as_nl) ;; #(
16748 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16749 *) { eval $ac_var=; unset $ac_var;} ;;
16750 esac ;;
16751 esac
16752 done
16753
16754 (set) 2>&1 |
16755 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16756 *${as_nl}ac_space=\ *)
16757 # `set' does not quote correctly, so add quotes: double-quote
16758 # substitution turns \\\\ into \\, and sed turns \\ into \.
16759 sed -n \
16760 "s/'/'\\\\''/g;
16761 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16762 ;; #(
16763 *)
16764 # `set' quotes correctly as required by POSIX, so do not add quotes.
16765 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16766 ;;
16767 esac |
16768 sort
16769 ) |
16770 sed '
16771 /^ac_cv_env_/b end
16772 t clear
16773 :clear
16774 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16775 t end
16776 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16777 :end' >>confcache
16778 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16779 if test -w "$cache_file"; then
16780 if test "x$cache_file" != "x/dev/null"; then
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16782 $as_echo "$as_me: updating cache $cache_file" >&6;}
16783 if test ! -f "$cache_file" || test -h "$cache_file"; then
16784 cat confcache >"$cache_file"
16785 else
16786 case $cache_file in #(
16787 */* | ?:*)
16788 mv -f confcache "$cache_file"$$ &&
16789 mv -f "$cache_file"$$ "$cache_file" ;; #(
16790 *)
16791 mv -f confcache "$cache_file" ;;
16792 esac
16793 fi
16794 fi
16795 else
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16797 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16798 fi
16799 fi
16800 rm -f confcache
16801
16802 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16803 # Let make expand exec_prefix.
16804 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16805
16806 DEFS=-DHAVE_CONFIG_H
16807
16808 ac_libobjs=
16809 ac_ltlibobjs=
16810 U=
16811 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16812 # 1. Remove the extension, and $U if already installed.
16813 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16814 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16815 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16816 # will be set to the directory where LIBOBJS objects are built.
16817 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16818 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16819 done
16820 LIBOBJS=$ac_libobjs
16821
16822 LTLIBOBJS=$ac_ltlibobjs
16823
16824
16825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16826 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16827 if test -n "$am_sleep_pid"; then
16828 # Hide warnings about reused PIDs.
16829 wait $am_sleep_pid 2>/dev/null
16830 fi
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16832 $as_echo "done" >&6; }
16833 if test -n "$EXEEXT"; then
16834 am__EXEEXT_TRUE=
16835 am__EXEEXT_FALSE='#'
16836 else
16837 am__EXEEXT_TRUE='#'
16838 am__EXEEXT_FALSE=
16839 fi
16840
16841 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16842 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16843 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16844 fi
16845 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16846 as_fn_error $? "conditional \"AMDEP\" was never defined.
16847 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16848 fi
16849 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16850 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16851 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16852 fi
16853
16854 if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
16855 as_fn_error $? "conditional \"BUILD_DOCS\" was never defined.
16856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16857 fi
16858
16859 : "${CONFIG_STATUS=./config.status}"
16860 ac_write_fail=0
16861 ac_clean_files_save=$ac_clean_files
16862 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16863 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16864 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16865 as_write_fail=0
16866 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16867 #! $SHELL
16868 # Generated by $as_me.
16869 # Run this file to recreate the current configuration.
16870 # Compiler output produced by configure, useful for debugging
16871 # configure, is in config.log if it exists.
16872
16873 debug=false
16874 ac_cs_recheck=false
16875 ac_cs_silent=false
16876
16877 SHELL=\${CONFIG_SHELL-$SHELL}
16878 export SHELL
16879 _ASEOF
16880 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16881 ## -------------------- ##
16882 ## M4sh Initialization. ##
16883 ## -------------------- ##
16884
16885 # Be more Bourne compatible
16886 DUALCASE=1; export DUALCASE # for MKS sh
16887 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16888 emulate sh
16889 NULLCMD=:
16890 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16891 # is contrary to our usage. Disable this feature.
16892 alias -g '${1+"$@"}'='"$@"'
16893 setopt NO_GLOB_SUBST
16894 else
16895 case `(set -o) 2>/dev/null` in #(
16896 *posix*) :
16897 set -o posix ;; #(
16898 *) :
16899 ;;
16900 esac
16901 fi
16902
16903
16904 as_nl='
16905 '
16906 export as_nl
16907 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16908 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16909 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16910 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16911 # Prefer a ksh shell builtin over an external printf program on Solaris,
16912 # but without wasting forks for bash or zsh.
16913 if test -z "$BASH_VERSION$ZSH_VERSION" \
16914 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16915 as_echo='print -r --'
16916 as_echo_n='print -rn --'
16917 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16918 as_echo='printf %s\n'
16919 as_echo_n='printf %s'
16920 else
16921 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16922 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16923 as_echo_n='/usr/ucb/echo -n'
16924 else
16925 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16926 as_echo_n_body='eval
16927 arg=$1;
16928 case $arg in #(
16929 *"$as_nl"*)
16930 expr "X$arg" : "X\\(.*\\)$as_nl";
16931 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16932 esac;
16933 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16934 '
16935 export as_echo_n_body
16936 as_echo_n='sh -c $as_echo_n_body as_echo'
16937 fi
16938 export as_echo_body
16939 as_echo='sh -c $as_echo_body as_echo'
16940 fi
16941
16942 # The user is always right.
16943 if test "${PATH_SEPARATOR+set}" != set; then
16944 PATH_SEPARATOR=:
16945 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16946 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16947 PATH_SEPARATOR=';'
16948 }
16949 fi
16950
16951
16952 # IFS
16953 # We need space, tab and new line, in precisely that order. Quoting is
16954 # there to prevent editors from complaining about space-tab.
16955 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16956 # splitting by setting IFS to empty value.)
16957 IFS=" "" $as_nl"
16958
16959 # Find who we are. Look in the path if we contain no directory separator.
16960 as_myself=
16961 case $0 in #((
16962 *[\\/]* ) as_myself=$0 ;;
16963 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16964 for as_dir in $PATH
16965 do
16966 IFS=$as_save_IFS
16967 test -z "$as_dir" && as_dir=.
16968 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16969 done
16970 IFS=$as_save_IFS
16971
16972 ;;
16973 esac
16974 # We did not find ourselves, most probably we were run as `sh COMMAND'
16975 # in which case we are not to be found in the path.
16976 if test "x$as_myself" = x; then
16977 as_myself=$0
16978 fi
16979 if test ! -f "$as_myself"; then
16980 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16981 exit 1
16982 fi
16983
16984 # Unset variables that we do not need and which cause bugs (e.g. in
16985 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16986 # suppresses any "Segmentation fault" message there. '((' could
16987 # trigger a bug in pdksh 5.2.14.
16988 for as_var in BASH_ENV ENV MAIL MAILPATH
16989 do eval test x\${$as_var+set} = xset \
16990 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16991 done
16992 PS1='$ '
16993 PS2='> '
16994 PS4='+ '
16995
16996 # NLS nuisances.
16997 LC_ALL=C
16998 export LC_ALL
16999 LANGUAGE=C
17000 export LANGUAGE
17001
17002 # CDPATH.
17003 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17004
17005
17006 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17007 # ----------------------------------------
17008 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17009 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17010 # script with STATUS, using 1 if that was 0.
17011 as_fn_error ()
17012 {
17013 as_status=$1; test $as_status -eq 0 && as_status=1
17014 if test "$4"; then
17015 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17016 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17017 fi
17018 $as_echo "$as_me: error: $2" >&2
17019 as_fn_exit $as_status
17020 } # as_fn_error
17021
17022
17023 # as_fn_set_status STATUS
17024 # -----------------------
17025 # Set $? to STATUS, without forking.
17026 as_fn_set_status ()
17027 {
17028 return $1
17029 } # as_fn_set_status
17030
17031 # as_fn_exit STATUS
17032 # -----------------
17033 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17034 as_fn_exit ()
17035 {
17036 set +e
17037 as_fn_set_status $1
17038 exit $1
17039 } # as_fn_exit
17040
17041 # as_fn_unset VAR
17042 # ---------------
17043 # Portably unset VAR.
17044 as_fn_unset ()
17045 {
17046 { eval $1=; unset $1;}
17047 }
17048 as_unset=as_fn_unset
17049 # as_fn_append VAR VALUE
17050 # ----------------------
17051 # Append the text in VALUE to the end of the definition contained in VAR. Take
17052 # advantage of any shell optimizations that allow amortized linear growth over
17053 # repeated appends, instead of the typical quadratic growth present in naive
17054 # implementations.
17055 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17056 eval 'as_fn_append ()
17057 {
17058 eval $1+=\$2
17059 }'
17060 else
17061 as_fn_append ()
17062 {
17063 eval $1=\$$1\$2
17064 }
17065 fi # as_fn_append
17066
17067 # as_fn_arith ARG...
17068 # ------------------
17069 # Perform arithmetic evaluation on the ARGs, and store the result in the
17070 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17071 # must be portable across $(()) and expr.
17072 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17073 eval 'as_fn_arith ()
17074 {
17075 as_val=$(( $* ))
17076 }'
17077 else
17078 as_fn_arith ()
17079 {
17080 as_val=`expr "$@" || test $? -eq 1`
17081 }
17082 fi # as_fn_arith
17083
17084
17085 if expr a : '\(a\)' >/dev/null 2>&1 &&
17086 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17087 as_expr=expr
17088 else
17089 as_expr=false
17090 fi
17091
17092 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17093 as_basename=basename
17094 else
17095 as_basename=false
17096 fi
17097
17098 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17099 as_dirname=dirname
17100 else
17101 as_dirname=false
17102 fi
17103
17104 as_me=`$as_basename -- "$0" ||
17105 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17106 X"$0" : 'X\(//\)$' \| \
17107 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17108 $as_echo X/"$0" |
17109 sed '/^.*\/\([^/][^/]*\)\/*$/{
17110 s//\1/
17111 q
17112 }
17113 /^X\/\(\/\/\)$/{
17114 s//\1/
17115 q
17116 }
17117 /^X\/\(\/\).*/{
17118 s//\1/
17119 q
17120 }
17121 s/.*/./; q'`
17122
17123 # Avoid depending upon Character Ranges.
17124 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17125 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17126 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17127 as_cr_digits='0123456789'
17128 as_cr_alnum=$as_cr_Letters$as_cr_digits
17129
17130 ECHO_C= ECHO_N= ECHO_T=
17131 case `echo -n x` in #(((((
17132 -n*)
17133 case `echo 'xy\c'` in
17134 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17135 xy) ECHO_C='\c';;
17136 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17137 ECHO_T=' ';;
17138 esac;;
17139 *)
17140 ECHO_N='-n';;
17141 esac
17142
17143 rm -f conf$$ conf$$.exe conf$$.file
17144 if test -d conf$$.dir; then
17145 rm -f conf$$.dir/conf$$.file
17146 else
17147 rm -f conf$$.dir
17148 mkdir conf$$.dir 2>/dev/null
17149 fi
17150 if (echo >conf$$.file) 2>/dev/null; then
17151 if ln -s conf$$.file conf$$ 2>/dev/null; then
17152 as_ln_s='ln -s'
17153 # ... but there are two gotchas:
17154 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17155 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17156 # In both cases, we have to default to `cp -pR'.
17157 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17158 as_ln_s='cp -pR'
17159 elif ln conf$$.file conf$$ 2>/dev/null; then
17160 as_ln_s=ln
17161 else
17162 as_ln_s='cp -pR'
17163 fi
17164 else
17165 as_ln_s='cp -pR'
17166 fi
17167 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17168 rmdir conf$$.dir 2>/dev/null
17169
17170
17171 # as_fn_mkdir_p
17172 # -------------
17173 # Create "$as_dir" as a directory, including parents if necessary.
17174 as_fn_mkdir_p ()
17175 {
17176
17177 case $as_dir in #(
17178 -*) as_dir=./$as_dir;;
17179 esac
17180 test -d "$as_dir" || eval $as_mkdir_p || {
17181 as_dirs=
17182 while :; do
17183 case $as_dir in #(
17184 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17185 *) as_qdir=$as_dir;;
17186 esac
17187 as_dirs="'$as_qdir' $as_dirs"
17188 as_dir=`$as_dirname -- "$as_dir" ||
17189 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17190 X"$as_dir" : 'X\(//\)[^/]' \| \
17191 X"$as_dir" : 'X\(//\)$' \| \
17192 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17193 $as_echo X"$as_dir" |
17194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17195 s//\1/
17196 q
17197 }
17198 /^X\(\/\/\)[^/].*/{
17199 s//\1/
17200 q
17201 }
17202 /^X\(\/\/\)$/{
17203 s//\1/
17204 q
17205 }
17206 /^X\(\/\).*/{
17207 s//\1/
17208 q
17209 }
17210 s/.*/./; q'`
17211 test -d "$as_dir" && break
17212 done
17213 test -z "$as_dirs" || eval "mkdir $as_dirs"
17214 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17215
17216
17217 } # as_fn_mkdir_p
17218 if mkdir -p . 2>/dev/null; then
17219 as_mkdir_p='mkdir -p "$as_dir"'
17220 else
17221 test -d ./-p && rmdir ./-p
17222 as_mkdir_p=false
17223 fi
17224
17225
17226 # as_fn_executable_p FILE
17227 # -----------------------
17228 # Test if FILE is an executable regular file.
17229 as_fn_executable_p ()
17230 {
17231 test -f "$1" && test -x "$1"
17232 } # as_fn_executable_p
17233 as_test_x='test -x'
17234 as_executable_p=as_fn_executable_p
17235
17236 # Sed expression to map a string onto a valid CPP name.
17237 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17238
17239 # Sed expression to map a string onto a valid variable name.
17240 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17241
17242
17243 exec 6>&1
17244 ## ----------------------------------- ##
17245 ## Main body of $CONFIG_STATUS script. ##
17246 ## ----------------------------------- ##
17247 _ASEOF
17248 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17249
17250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17251 # Save the log message, to keep $0 and so on meaningful, and to
17252 # report actual input values of CONFIG_FILES etc. instead of their
17253 # values after options handling.
17254 ac_log="
17255 This file was extended by libmikmod $as_me 3.3.13, which was
17256 generated by GNU Autoconf 2.69. Invocation command line was
17257
17258 CONFIG_FILES = $CONFIG_FILES
17259 CONFIG_HEADERS = $CONFIG_HEADERS
17260 CONFIG_LINKS = $CONFIG_LINKS
17261 CONFIG_COMMANDS = $CONFIG_COMMANDS
17262 $ $0 $@
17263
17264 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17265 "
17266
17267 _ACEOF
17268
17269 case $ac_config_files in *"
17270 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17271 esac
17272
17273 case $ac_config_headers in *"
17274 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17275 esac
17276
17277
17278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17279 # Files that config.status was made for.
17280 config_files="$ac_config_files"
17281 config_headers="$ac_config_headers"
17282 config_commands="$ac_config_commands"
17283
17284 _ACEOF
17285
17286 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17287 ac_cs_usage="\
17288 \`$as_me' instantiates files and other configuration actions
17289 from templates according to the current configuration. Unless the files
17290 and actions are specified as TAGs, all are instantiated by default.
17291
17292 Usage: $0 [OPTION]... [TAG]...
17293
17294 -h, --help print this help, then exit
17295 -V, --version print version number and configuration settings, then exit
17296 --config print configuration, then exit
17297 -q, --quiet, --silent
17298 do not print progress messages
17299 -d, --debug don't remove temporary files
17300 --recheck update $as_me by reconfiguring in the same conditions
17301 --file=FILE[:TEMPLATE]
17302 instantiate the configuration file FILE
17303 --header=FILE[:TEMPLATE]
17304 instantiate the configuration header FILE
17305
17306 Configuration files:
17307 $config_files
17308
17309 Configuration headers:
17310 $config_headers
17311
17312 Configuration commands:
17313 $config_commands
17314
17315 Report bugs to the package provider."
17316
17317 _ACEOF
17318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17319 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17320 ac_cs_version="\\
17321 libmikmod config.status 3.3.13
17322 configured by $0, generated by GNU Autoconf 2.69,
17323 with options \\"\$ac_cs_config\\"
17324
17325 Copyright (C) 2012 Free Software Foundation, Inc.
17326 This config.status script is free software; the Free Software Foundation
17327 gives unlimited permission to copy, distribute and modify it."
17328
17329 ac_pwd='$ac_pwd'
17330 srcdir='$srcdir'
17331 INSTALL='$INSTALL'
17332 MKDIR_P='$MKDIR_P'
17333 AWK='$AWK'
17334 test -n "\$AWK" || AWK=awk
17335 _ACEOF
17336
17337 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17338 # The default lists apply if the user does not specify any file.
17339 ac_need_defaults=:
17340 while test $# != 0
17341 do
17342 case $1 in
17343 --*=?*)
17344 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17345 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17346 ac_shift=:
17347 ;;
17348 --*=)
17349 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17350 ac_optarg=
17351 ac_shift=:
17352 ;;
17353 *)
17354 ac_option=$1
17355 ac_optarg=$2
17356 ac_shift=shift
17357 ;;
17358 esac
17359
17360 case $ac_option in
17361 # Handling of the options.
17362 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17363 ac_cs_recheck=: ;;
17364 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17365 $as_echo "$ac_cs_version"; exit ;;
17366 --config | --confi | --conf | --con | --co | --c )
17367 $as_echo "$ac_cs_config"; exit ;;
17368 --debug | --debu | --deb | --de | --d | -d )
17369 debug=: ;;
17370 --file | --fil | --fi | --f )
17371 $ac_shift
17372 case $ac_optarg in
17373 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17374 '') as_fn_error $? "missing file argument" ;;
17375 esac
17376 as_fn_append CONFIG_FILES " '$ac_optarg'"
17377 ac_need_defaults=false;;
17378 --header | --heade | --head | --hea )
17379 $ac_shift
17380 case $ac_optarg in
17381 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17382 esac
17383 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17384 ac_need_defaults=false;;
17385 --he | --h)
17386 # Conflict between --help and --header
17387 as_fn_error $? "ambiguous option: \`$1'
17388 Try \`$0 --help' for more information.";;
17389 --help | --hel | -h )
17390 $as_echo "$ac_cs_usage"; exit ;;
17391 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17392 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17393 ac_cs_silent=: ;;
17394
17395 # This is an error.
17396 -*) as_fn_error $? "unrecognized option: \`$1'
17397 Try \`$0 --help' for more information." ;;
17398
17399 *) as_fn_append ac_config_targets " $1"
17400 ac_need_defaults=false ;;
17401
17402 esac
17403 shift
17404 done
17405
17406 ac_configure_extra_args=
17407
17408 if $ac_cs_silent; then
17409 exec 6>/dev/null
17410 ac_configure_extra_args="$ac_configure_extra_args --silent"
17411 fi
17412
17413 _ACEOF
17414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17415 if \$ac_cs_recheck; then
17416 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17417 shift
17418 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17419 CONFIG_SHELL='$SHELL'
17420 export CONFIG_SHELL
17421 exec "\$@"
17422 fi
17423
17424 _ACEOF
17425 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17426 exec 5>>config.log
17427 {
17428 echo
17429 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17430 ## Running $as_me. ##
17431 _ASBOX
17432 $as_echo "$ac_log"
17433 } >&5
17434
17435 _ACEOF
17436 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17437 #
17438 # INIT-COMMANDS
17439 #
17440 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
17441
17442
17443 # The HP-UX ksh and POSIX shell print the target directory to stdout
17444 # if CDPATH is set.
17445 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17446
17447 sed_quote_subst='$sed_quote_subst'
17448 double_quote_subst='$double_quote_subst'
17449 delay_variable_subst='$delay_variable_subst'
17450 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17451 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17452 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17453 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17454 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17455 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17456 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17457 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17458 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17459 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17460 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17461 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17462 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17463 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17464 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17465 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17466 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17467 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17468 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17469 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17470 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17471 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17472 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17473 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17474 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17475 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17476 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17477 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17478 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17479 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17480 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17481 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17482 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17483 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17484 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17485 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17486 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17487 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17488 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17489 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17490 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17491 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17492 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17493 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17494 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17495 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17496 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17497 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17498 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17499 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17500 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17501 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17502 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17503 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17504 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17505 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17506 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17507 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17508 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17509 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
17510 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17511 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17512 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17513 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17514 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17515 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17516 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17517 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17518 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17519 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17520 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17521 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17522 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17523 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17524 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17525 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17526 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17527 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17528 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17529 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17530 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17531 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17532 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17533 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17534 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17535 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17536 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17537 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17538 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17539 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17540 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17541 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17542 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17543 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17544 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17545 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17546 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17547 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17548 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17549 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17550 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17551 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17552 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17553 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17554 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17555 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17556 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17557 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17558 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17559 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17560 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17561 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17562 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17563 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17564 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17565 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17566 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17567 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17568 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17569 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17570 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17571 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17572 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17573 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17574 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17575 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17576 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17577 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17578 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17579 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17580 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17581 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17582 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17583 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17584 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17585 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17586
17587 LTCC='$LTCC'
17588 LTCFLAGS='$LTCFLAGS'
17589 compiler='$compiler_DEFAULT'
17590
17591 # A function that is used when there is no print builtin or printf.
17592 func_fallback_echo ()
17593 {
17594 eval 'cat <<_LTECHO_EOF
17595 \$1
17596 _LTECHO_EOF'
17597 }
17598
17599 # Quote evaled strings.
17600 for var in AS \
17601 DLLTOOL \
17602 OBJDUMP \
17603 SHELL \
17604 ECHO \
17605 PATH_SEPARATOR \
17606 SED \
17607 GREP \
17608 EGREP \
17609 FGREP \
17610 LD \
17611 NM \
17612 LN_S \
17613 lt_SP2NL \
17614 lt_NL2SP \
17615 reload_flag \
17616 deplibs_check_method \
17617 file_magic_cmd \
17618 file_magic_glob \
17619 want_nocaseglob \
17620 sharedlib_from_linklib_cmd \
17621 AR \
17622 AR_FLAGS \
17623 archiver_list_spec \
17624 STRIP \
17625 RANLIB \
17626 CC \
17627 CFLAGS \
17628 compiler \
17629 lt_cv_sys_global_symbol_pipe \
17630 lt_cv_sys_global_symbol_to_cdecl \
17631 lt_cv_sys_global_symbol_to_import \
17632 lt_cv_sys_global_symbol_to_c_name_address \
17633 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17634 lt_cv_nm_interface \
17635 nm_file_list_spec \
17636 lt_cv_truncate_bin \
17637 lt_prog_compiler_no_builtin_flag \
17638 lt_prog_compiler_pic \
17639 lt_prog_compiler_wl \
17640 lt_prog_compiler_static \
17641 lt_cv_prog_compiler_c_o \
17642 need_locks \
17643 MANIFEST_TOOL \
17644 DSYMUTIL \
17645 NMEDIT \
17646 LIPO \
17647 OTOOL \
17648 OTOOL64 \
17649 shrext_cmds \
17650 export_dynamic_flag_spec \
17651 whole_archive_flag_spec \
17652 compiler_needs_object \
17653 with_gnu_ld \
17654 allow_undefined_flag \
17655 no_undefined_flag \
17656 hardcode_libdir_flag_spec \
17657 hardcode_libdir_separator \
17658 exclude_expsyms \
17659 include_expsyms \
17660 file_list_spec \
17661 variables_saved_for_relink \
17662 libname_spec \
17663 library_names_spec \
17664 soname_spec \
17665 install_override_mode \
17666 finish_eval \
17667 old_striplib \
17668 striplib; do
17669 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17670 *[\\\\\\\`\\"\\\$]*)
17671 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17672 ;;
17673 *)
17674 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17675 ;;
17676 esac
17677 done
17678
17679 # Double-quote double-evaled strings.
17680 for var in reload_cmds \
17681 old_postinstall_cmds \
17682 old_postuninstall_cmds \
17683 old_archive_cmds \
17684 extract_expsyms_cmds \
17685 old_archive_from_new_cmds \
17686 old_archive_from_expsyms_cmds \
17687 archive_cmds \
17688 archive_expsym_cmds \
17689 module_cmds \
17690 module_expsym_cmds \
17691 export_symbols_cmds \
17692 prelink_cmds \
17693 postlink_cmds \
17694 postinstall_cmds \
17695 postuninstall_cmds \
17696 finish_cmds \
17697 sys_lib_search_path_spec \
17698 configure_time_dlsearch_path \
17699 configure_time_lt_sys_library_path; do
17700 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17701 *[\\\\\\\`\\"\\\$]*)
17702 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17703 ;;
17704 *)
17705 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17706 ;;
17707 esac
17708 done
17709
17710 ac_aux_dir='$ac_aux_dir'
17711
17712 # See if we are running on zsh, and set the options that allow our
17713 # commands through without removal of \ escapes INIT.
17714 if test -n "\${ZSH_VERSION+set}"; then
17715 setopt NO_GLOB_SUBST
17716 fi
17717
17718
17719 PACKAGE='$PACKAGE'
17720 VERSION='$VERSION'
17721 RM='$RM'
17722 ofile='$ofile'
17723
17724
17725
17726
17727 _ACEOF
17728
17729 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17730
17731 # Handling of arguments.
17732 for ac_config_target in $ac_config_targets
17733 do
17734 case $ac_config_target in
17735 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17736 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17737 "libmikmod-config") CONFIG_FILES="$CONFIG_FILES libmikmod-config" ;;
17738 "libmikmod.pc") CONFIG_FILES="$CONFIG_FILES libmikmod.pc" ;;
17739 "libmikmod.spec") CONFIG_FILES="$CONFIG_FILES libmikmod.spec" ;;
17740 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17741 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
17742 "docs/libmikmod-config.1") CONFIG_FILES="$CONFIG_FILES docs/libmikmod-config.1" ;;
17743 "dlapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlapi/Makefile" ;;
17744 "drivers/Makefile") CONFIG_FILES="$CONFIG_FILES drivers/Makefile" ;;
17745 "drivers/dos/Makefile") CONFIG_FILES="$CONFIG_FILES drivers/dos/Makefile" ;;
17746 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17747 "loaders/Makefile") CONFIG_FILES="$CONFIG_FILES loaders/Makefile" ;;
17748 "mmio/Makefile") CONFIG_FILES="$CONFIG_FILES mmio/Makefile" ;;
17749 "depackers/Makefile") CONFIG_FILES="$CONFIG_FILES depackers/Makefile" ;;
17750 "playercode/Makefile") CONFIG_FILES="$CONFIG_FILES playercode/Makefile" ;;
17751 "posix/Makefile") CONFIG_FILES="$CONFIG_FILES posix/Makefile" ;;
17752 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17753
17754 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17755 esac
17756 done
17757
17758
17759 # If the user did not use the arguments to specify the items to instantiate,
17760 # then the envvar interface is used. Set only those that are not.
17761 # We use the long form for the default assignment because of an extremely
17762 # bizarre bug on SunOS 4.1.3.
17763 if $ac_need_defaults; then
17764 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17765 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17766 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17767 fi
17768
17769 # Have a temporary directory for convenience. Make it in the build tree
17770 # simply because there is no reason against having it here, and in addition,
17771 # creating and moving files from /tmp can sometimes cause problems.
17772 # Hook for its removal unless debugging.
17773 # Note that there is a small window in which the directory will not be cleaned:
17774 # after its creation but before its name has been assigned to `$tmp'.
17775 $debug ||
17776 {
17777 tmp= ac_tmp=
17778 trap 'exit_status=$?
17779 : "${ac_tmp:=$tmp}"
17780 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17781 ' 0
17782 trap 'as_fn_exit 1' 1 2 13 15
17783 }
17784 # Create a (secure) tmp directory for tmp files.
17785
17786 {
17787 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17788 test -d "$tmp"
17789 } ||
17790 {
17791 tmp=./conf$$-$RANDOM
17792 (umask 077 && mkdir "$tmp")
17793 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17794 ac_tmp=$tmp
17795
17796 # Set up the scripts for CONFIG_FILES section.
17797 # No need to generate them if there are no CONFIG_FILES.
17798 # This happens for instance with `./config.status config.h'.
17799 if test -n "$CONFIG_FILES"; then
17800
17801
17802 ac_cr=`echo X | tr X '\015'`
17803 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17804 # But we know of no other shell where ac_cr would be empty at this
17805 # point, so we can use a bashism as a fallback.
17806 if test "x$ac_cr" = x; then
17807 eval ac_cr=\$\'\\r\'
17808 fi
17809 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17810 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17811 ac_cs_awk_cr='\\r'
17812 else
17813 ac_cs_awk_cr=$ac_cr
17814 fi
17815
17816 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17817 _ACEOF
17818
17819
17820 {
17821 echo "cat >conf$$subs.awk <<_ACEOF" &&
17822 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17823 echo "_ACEOF"
17824 } >conf$$subs.sh ||
17825 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17826 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17827 ac_delim='%!_!# '
17828 for ac_last_try in false false false false false :; do
17829 . ./conf$$subs.sh ||
17830 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17831
17832 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17833 if test $ac_delim_n = $ac_delim_num; then
17834 break
17835 elif $ac_last_try; then
17836 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17837 else
17838 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17839 fi
17840 done
17841 rm -f conf$$subs.sh
17842
17843 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17844 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17845 _ACEOF
17846 sed -n '
17847 h
17848 s/^/S["/; s/!.*/"]=/
17849 p
17850 g
17851 s/^[^!]*!//
17852 :repl
17853 t repl
17854 s/'"$ac_delim"'$//
17855 t delim
17856 :nl
17857 h
17858 s/\(.\{148\}\)..*/\1/
17859 t more1
17860 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17861 p
17862 n
17863 b repl
17864 :more1
17865 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17866 p
17867 g
17868 s/.\{148\}//
17869 t nl
17870 :delim
17871 h
17872 s/\(.\{148\}\)..*/\1/
17873 t more2
17874 s/["\\]/\\&/g; s/^/"/; s/$/"/
17875 p
17876 b
17877 :more2
17878 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17879 p
17880 g
17881 s/.\{148\}//
17882 t delim
17883 ' <conf$$subs.awk | sed '
17884 /^[^""]/{
17885 N
17886 s/\n//
17887 }
17888 ' >>$CONFIG_STATUS || ac_write_fail=1
17889 rm -f conf$$subs.awk
17890 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17891 _ACAWK
17892 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17893 for (key in S) S_is_set[key] = 1
17894 FS = ""
17895
17896 }
17897 {
17898 line = $ 0
17899 nfields = split(line, field, "@")
17900 substed = 0
17901 len = length(field[1])
17902 for (i = 2; i < nfields; i++) {
17903 key = field[i]
17904 keylen = length(key)
17905 if (S_is_set[key]) {
17906 value = S[key]
17907 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17908 len += length(value) + length(field[++i])
17909 substed = 1
17910 } else
17911 len += 1 + keylen
17912 }
17913
17914 print line
17915 }
17916
17917 _ACAWK
17918 _ACEOF
17919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17920 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17921 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17922 else
17923 cat
17924 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17925 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17926 _ACEOF
17927
17928 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17929 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17930 # trailing colons and then remove the whole line if VPATH becomes empty
17931 # (actually we leave an empty line to preserve line numbers).
17932 if test "x$srcdir" = x.; then
17933 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17934 h
17935 s///
17936 s/^/:/
17937 s/[ ]*$/:/
17938 s/:\$(srcdir):/:/g
17939 s/:\${srcdir}:/:/g
17940 s/:@srcdir@:/:/g
17941 s/^:*//
17942 s/:*$//
17943 x
17944 s/\(=[ ]*\).*/\1/
17945 G
17946 s/\n//
17947 s/^[^=]*=[ ]*$//
17948 }'
17949 fi
17950
17951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17952 fi # test -n "$CONFIG_FILES"
17953
17954 # Set up the scripts for CONFIG_HEADERS section.
17955 # No need to generate them if there are no CONFIG_HEADERS.
17956 # This happens for instance with `./config.status Makefile'.
17957 if test -n "$CONFIG_HEADERS"; then
17958 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17959 BEGIN {
17960 _ACEOF
17961
17962 # Transform confdefs.h into an awk script `defines.awk', embedded as
17963 # here-document in config.status, that substitutes the proper values into
17964 # config.h.in to produce config.h.
17965
17966 # Create a delimiter string that does not exist in confdefs.h, to ease
17967 # handling of long lines.
17968 ac_delim='%!_!# '
17969 for ac_last_try in false false :; do
17970 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17971 if test -z "$ac_tt"; then
17972 break
17973 elif $ac_last_try; then
17974 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17975 else
17976 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17977 fi
17978 done
17979
17980 # For the awk script, D is an array of macro values keyed by name,
17981 # likewise P contains macro parameters if any. Preserve backslash
17982 # newline sequences.
17983
17984 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17985 sed -n '
17986 s/.\{148\}/&'"$ac_delim"'/g
17987 t rset
17988 :rset
17989 s/^[ ]*#[ ]*define[ ][ ]*/ /
17990 t def
17991 d
17992 :def
17993 s/\\$//
17994 t bsnl
17995 s/["\\]/\\&/g
17996 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17997 D["\1"]=" \3"/p
17998 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17999 d
18000 :bsnl
18001 s/["\\]/\\&/g
18002 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18003 D["\1"]=" \3\\\\\\n"\\/p
18004 t cont
18005 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18006 t cont
18007 d
18008 :cont
18009 n
18010 s/.\{148\}/&'"$ac_delim"'/g
18011 t clear
18012 :clear
18013 s/\\$//
18014 t bsnlc
18015 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18016 d
18017 :bsnlc
18018 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18019 b cont
18020 ' <confdefs.h | sed '
18021 s/'"$ac_delim"'/"\\\
18022 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18023
18024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18025 for (key in D) D_is_set[key] = 1
18026 FS = ""
18027 }
18028 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18029 line = \$ 0
18030 split(line, arg, " ")
18031 if (arg[1] == "#") {
18032 defundef = arg[2]
18033 mac1 = arg[3]
18034 } else {
18035 defundef = substr(arg[1], 2)
18036 mac1 = arg[2]
18037 }
18038 split(mac1, mac2, "(") #)
18039 macro = mac2[1]
18040 prefix = substr(line, 1, index(line, defundef) - 1)
18041 if (D_is_set[macro]) {
18042 # Preserve the white space surrounding the "#".
18043 print prefix "define", macro P[macro] D[macro]
18044 next
18045 } else {
18046 # Replace #undef with comments. This is necessary, for example,
18047 # in the case of _POSIX_SOURCE, which is predefined and required
18048 # on some systems where configure will not decide to define it.
18049 if (defundef == "undef") {
18050 print "/*", prefix defundef, macro, "*/"
18051 next
18052 }
18053 }
18054 }
18055 { print }
18056 _ACAWK
18057 _ACEOF
18058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18059 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18060 fi # test -n "$CONFIG_HEADERS"
18061
18062
18063 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18064 shift
18065 for ac_tag
18066 do
18067 case $ac_tag in
18068 :[FHLC]) ac_mode=$ac_tag; continue;;
18069 esac
18070 case $ac_mode$ac_tag in
18071 :[FHL]*:*);;
18072 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18073 :[FH]-) ac_tag=-:-;;
18074 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18075 esac
18076 ac_save_IFS=$IFS
18077 IFS=:
18078 set x $ac_tag
18079 IFS=$ac_save_IFS
18080 shift
18081 ac_file=$1
18082 shift
18083
18084 case $ac_mode in
18085 :L) ac_source=$1;;
18086 :[FH])
18087 ac_file_inputs=
18088 for ac_f
18089 do
18090 case $ac_f in
18091 -) ac_f="$ac_tmp/stdin";;
18092 *) # Look for the file first in the build tree, then in the source tree
18093 # (if the path is not absolute). The absolute path cannot be DOS-style,
18094 # because $ac_f cannot contain `:'.
18095 test -f "$ac_f" ||
18096 case $ac_f in
18097 [\\/$]*) false;;
18098 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18099 esac ||
18100 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18101 esac
18102 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18103 as_fn_append ac_file_inputs " '$ac_f'"
18104 done
18105
18106 # Let's still pretend it is `configure' which instantiates (i.e., don't
18107 # use $as_me), people would be surprised to read:
18108 # /* config.h. Generated by config.status. */
18109 configure_input='Generated from '`
18110 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18111 `' by configure.'
18112 if test x"$ac_file" != x-; then
18113 configure_input="$ac_file. $configure_input"
18114 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18115 $as_echo "$as_me: creating $ac_file" >&6;}
18116 fi
18117 # Neutralize special characters interpreted by sed in replacement strings.
18118 case $configure_input in #(
18119 *\&* | *\|* | *\\* )
18120 ac_sed_conf_input=`$as_echo "$configure_input" |
18121 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18122 *) ac_sed_conf_input=$configure_input;;
18123 esac
18124
18125 case $ac_tag in
18126 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18127 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18128 esac
18129 ;;
18130 esac
18131
18132 ac_dir=`$as_dirname -- "$ac_file" ||
18133 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18134 X"$ac_file" : 'X\(//\)[^/]' \| \
18135 X"$ac_file" : 'X\(//\)$' \| \
18136 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18137 $as_echo X"$ac_file" |
18138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18139 s//\1/
18140 q
18141 }
18142 /^X\(\/\/\)[^/].*/{
18143 s//\1/
18144 q
18145 }
18146 /^X\(\/\/\)$/{
18147 s//\1/
18148 q
18149 }
18150 /^X\(\/\).*/{
18151 s//\1/
18152 q
18153 }
18154 s/.*/./; q'`
18155 as_dir="$ac_dir"; as_fn_mkdir_p
18156 ac_builddir=.
18157
18158 case "$ac_dir" in
18159 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18160 *)
18161 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18162 # A ".." for each directory in $ac_dir_suffix.
18163 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18164 case $ac_top_builddir_sub in
18165 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18166 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18167 esac ;;
18168 esac
18169 ac_abs_top_builddir=$ac_pwd
18170 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18171 # for backward compatibility:
18172 ac_top_builddir=$ac_top_build_prefix
18173
18174 case $srcdir in
18175 .) # We are building in place.
18176 ac_srcdir=.
18177 ac_top_srcdir=$ac_top_builddir_sub
18178 ac_abs_top_srcdir=$ac_pwd ;;
18179 [\\/]* | ?:[\\/]* ) # Absolute name.
18180 ac_srcdir=$srcdir$ac_dir_suffix;
18181 ac_top_srcdir=$srcdir
18182 ac_abs_top_srcdir=$srcdir ;;
18183 *) # Relative name.
18184 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18185 ac_top_srcdir=$ac_top_build_prefix$srcdir
18186 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18187 esac
18188 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18189
18190
18191 case $ac_mode in
18192 :F)
18193 #
18194 # CONFIG_FILE
18195 #
18196
18197 case $INSTALL in
18198 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18199 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18200 esac
18201 ac_MKDIR_P=$MKDIR_P
18202 case $MKDIR_P in
18203 [\\/$]* | ?:[\\/]* ) ;;
18204 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18205 esac
18206 _ACEOF
18207
18208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18209 # If the template does not know about datarootdir, expand it.
18210 # FIXME: This hack should be removed a few years after 2.60.
18211 ac_datarootdir_hack=; ac_datarootdir_seen=
18212 ac_sed_dataroot='
18213 /datarootdir/ {
18214 p
18215 q
18216 }
18217 /@datadir@/p
18218 /@docdir@/p
18219 /@infodir@/p
18220 /@localedir@/p
18221 /@mandir@/p'
18222 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18223 *datarootdir*) ac_datarootdir_seen=yes;;
18224 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18226 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18227 _ACEOF
18228 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18229 ac_datarootdir_hack='
18230 s&@datadir@&$datadir&g
18231 s&@docdir@&$docdir&g
18232 s&@infodir@&$infodir&g
18233 s&@localedir@&$localedir&g
18234 s&@mandir@&$mandir&g
18235 s&\\\${datarootdir}&$datarootdir&g' ;;
18236 esac
18237 _ACEOF
18238
18239 # Neutralize VPATH when `$srcdir' = `.'.
18240 # Shell code in configure.ac might set extrasub.
18241 # FIXME: do we really want to maintain this feature?
18242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18243 ac_sed_extra="$ac_vpsub
18244 $extrasub
18245 _ACEOF
18246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18247 :t
18248 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18249 s|@configure_input@|$ac_sed_conf_input|;t t
18250 s&@top_builddir@&$ac_top_builddir_sub&;t t
18251 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18252 s&@srcdir@&$ac_srcdir&;t t
18253 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18254 s&@top_srcdir@&$ac_top_srcdir&;t t
18255 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18256 s&@builddir@&$ac_builddir&;t t
18257 s&@abs_builddir@&$ac_abs_builddir&;t t
18258 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18259 s&@INSTALL@&$ac_INSTALL&;t t
18260 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18261 $ac_datarootdir_hack
18262 "
18263 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18264 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18265
18266 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18267 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18268 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18269 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18271 which seems to be undefined. Please make sure it is defined" >&5
18272 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18273 which seems to be undefined. Please make sure it is defined" >&2;}
18274
18275 rm -f "$ac_tmp/stdin"
18276 case $ac_file in
18277 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18278 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18279 esac \
18280 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18281 ;;
18282 :H)
18283 #
18284 # CONFIG_HEADER
18285 #
18286 if test x"$ac_file" != x-; then
18287 {
18288 $as_echo "/* $configure_input */" \
18289 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18290 } >"$ac_tmp/config.h" \
18291 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18292 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18293 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18294 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18295 else
18296 rm -f "$ac_file"
18297 mv "$ac_tmp/config.h" "$ac_file" \
18298 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18299 fi
18300 else
18301 $as_echo "/* $configure_input */" \
18302 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18303 || as_fn_error $? "could not create -" "$LINENO" 5
18304 fi
18305 # Compute "$ac_file"'s index in $config_headers.
18306 _am_arg="$ac_file"
18307 _am_stamp_count=1
18308 for _am_header in $config_headers :; do
18309 case $_am_header in
18310 $_am_arg | $_am_arg:* )
18311 break ;;
18312 * )
18313 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18314 esac
18315 done
18316 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18317 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18318 X"$_am_arg" : 'X\(//\)[^/]' \| \
18319 X"$_am_arg" : 'X\(//\)$' \| \
18320 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18321 $as_echo X"$_am_arg" |
18322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18323 s//\1/
18324 q
18325 }
18326 /^X\(\/\/\)[^/].*/{
18327 s//\1/
18328 q
18329 }
18330 /^X\(\/\/\)$/{
18331 s//\1/
18332 q
18333 }
18334 /^X\(\/\).*/{
18335 s//\1/
18336 q
18337 }
18338 s/.*/./; q'`/stamp-h$_am_stamp_count
18339 ;;
18340
18341 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18342 $as_echo "$as_me: executing $ac_file commands" >&6;}
18343 ;;
18344 esac
18345
18346
18347 case $ac_file$ac_mode in
18348 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18349 # Older Autoconf quotes --file arguments for eval, but not when files
18350 # are listed without --file. Let's play safe and only enable the eval
18351 # if we detect the quoting.
18352 # TODO: see whether this extra hack can be removed once we start
18353 # requiring Autoconf 2.70 or later.
18354 case $CONFIG_FILES in #(
18355 *\'*) :
18356 eval set x "$CONFIG_FILES" ;; #(
18357 *) :
18358 set x $CONFIG_FILES ;; #(
18359 *) :
18360 ;;
18361 esac
18362 shift
18363 # Used to flag and report bootstrapping failures.
18364 am_rc=0
18365 for am_mf
18366 do
18367 # Strip MF so we end up with the name of the file.
18368 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
18369 # Check whether this is an Automake generated Makefile which includes
18370 # dependency-tracking related rules and includes.
18371 # Grep'ing the whole file directly is not great: AIX grep has a line
18372 # limit of 2048, but all sed's we know have understand at least 4000.
18373 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
18374 || continue
18375 am_dirpart=`$as_dirname -- "$am_mf" ||
18376 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18377 X"$am_mf" : 'X\(//\)[^/]' \| \
18378 X"$am_mf" : 'X\(//\)$' \| \
18379 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18380 $as_echo X"$am_mf" |
18381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18382 s//\1/
18383 q
18384 }
18385 /^X\(\/\/\)[^/].*/{
18386 s//\1/
18387 q
18388 }
18389 /^X\(\/\/\)$/{
18390 s//\1/
18391 q
18392 }
18393 /^X\(\/\).*/{
18394 s//\1/
18395 q
18396 }
18397 s/.*/./; q'`
18398 am_filepart=`$as_basename -- "$am_mf" ||
18399 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18400 X"$am_mf" : 'X\(//\)$' \| \
18401 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18402 $as_echo X/"$am_mf" |
18403 sed '/^.*\/\([^/][^/]*\)\/*$/{
18404 s//\1/
18405 q
18406 }
18407 /^X\/\(\/\/\)$/{
18408 s//\1/
18409 q
18410 }
18411 /^X\/\(\/\).*/{
18412 s//\1/
18413 q
18414 }
18415 s/.*/./; q'`
18416 { echo "$as_me:$LINENO: cd "$am_dirpart" \
18417 && sed -e '/# am--include-marker/d' "$am_filepart" \
18418 | $MAKE -f - am--depfiles" >&5
18419 (cd "$am_dirpart" \
18420 && sed -e '/# am--include-marker/d' "$am_filepart" \
18421 | $MAKE -f - am--depfiles) >&5 2>&5
18422 ac_status=$?
18423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424 (exit $ac_status); } || am_rc=$?
18425 done
18426 if test $am_rc -ne 0; then
18427 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18429 as_fn_error $? "Something went wrong bootstrapping makefile fragments
18430 for automatic dependency tracking. If GNU make was not used, consider
18431 re-running the configure script with MAKE=\"gmake\" (or whatever is
18432 necessary). You can also try re-running configure with the
18433 '--disable-dependency-tracking' option to at least be able to build
18434 the package (albeit without support for automatic dependency tracking).
18435 See \`config.log' for more details" "$LINENO" 5; }
18436 fi
18437 { am_dirpart=; unset am_dirpart;}
18438 { am_filepart=; unset am_filepart;}
18439 { am_mf=; unset am_mf;}
18440 { am_rc=; unset am_rc;}
18441 rm -f conftest-deps.mk
18442 }
18443 ;;
18444 "libtool":C)
18445
18446 # See if we are running on zsh, and set the options that allow our
18447 # commands through without removal of \ escapes.
18448 if test -n "${ZSH_VERSION+set}"; then
18449 setopt NO_GLOB_SUBST
18450 fi
18451
18452 cfgfile=${ofile}T
18453 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18454 $RM "$cfgfile"
18455
18456 cat <<_LT_EOF >> "$cfgfile"
18457 #! $SHELL
18458 # Generated automatically by $as_me ($PACKAGE) $VERSION
18459 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18460 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18461
18462 # Provide generalized library-building support services.
18463 # Written by Gordon Matzigkeit, 1996
18464
18465 # Copyright (C) 2014 Free Software Foundation, Inc.
18466 # This is free software; see the source for copying conditions. There is NO
18467 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18468
18469 # GNU Libtool is free software; you can redistribute it and/or modify
18470 # it under the terms of the GNU General Public License as published by
18471 # the Free Software Foundation; either version 2 of of the License, or
18472 # (at your option) any later version.
18473 #
18474 # As a special exception to the GNU General Public License, if you
18475 # distribute this file as part of a program or library that is built
18476 # using GNU Libtool, you may include this file under the same
18477 # distribution terms that you use for the rest of that program.
18478 #
18479 # GNU Libtool is distributed in the hope that it will be useful, but
18480 # WITHOUT ANY WARRANTY; without even the implied warranty of
18481 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18482 # GNU General Public License for more details.
18483 #
18484 # You should have received a copy of the GNU General Public License
18485 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18486
18487
18488 # The names of the tagged configurations supported by this script.
18489 available_tags=''
18490
18491 # Configured defaults for sys_lib_dlsearch_path munging.
18492 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18493
18494 # ### BEGIN LIBTOOL CONFIG
18495
18496 # Which release of libtool.m4 was used?
18497 macro_version=$macro_version
18498 macro_revision=$macro_revision
18499
18500 # Assembler program.
18501 AS=$lt_AS
18502
18503 # DLL creation program.
18504 DLLTOOL=$lt_DLLTOOL
18505
18506 # Object dumper program.
18507 OBJDUMP=$lt_OBJDUMP
18508
18509 # Whether or not to build shared libraries.
18510 build_libtool_libs=$enable_shared
18511
18512 # Whether or not to build static libraries.
18513 build_old_libs=$enable_static
18514
18515 # What type of objects to build.
18516 pic_mode=$pic_mode
18517
18518 # Whether or not to optimize for fast installation.
18519 fast_install=$enable_fast_install
18520
18521 # Shared archive member basename,for filename based shared library versioning on AIX.
18522 shared_archive_member_spec=$shared_archive_member_spec
18523
18524 # Shell to use when invoking shell scripts.
18525 SHELL=$lt_SHELL
18526
18527 # An echo program that protects backslashes.
18528 ECHO=$lt_ECHO
18529
18530 # The PATH separator for the build system.
18531 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18532
18533 # The host system.
18534 host_alias=$host_alias
18535 host=$host
18536 host_os=$host_os
18537
18538 # The build system.
18539 build_alias=$build_alias
18540 build=$build
18541 build_os=$build_os
18542
18543 # A sed program that does not truncate output.
18544 SED=$lt_SED
18545
18546 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18547 Xsed="\$SED -e 1s/^X//"
18548
18549 # A grep program that handles long lines.
18550 GREP=$lt_GREP
18551
18552 # An ERE matcher.
18553 EGREP=$lt_EGREP
18554
18555 # A literal string matcher.
18556 FGREP=$lt_FGREP
18557
18558 # A BSD- or MS-compatible name lister.
18559 NM=$lt_NM
18560
18561 # Whether we need soft or hard links.
18562 LN_S=$lt_LN_S
18563
18564 # What is the maximum length of a command?
18565 max_cmd_len=$max_cmd_len
18566
18567 # Object file suffix (normally "o").
18568 objext=$ac_objext
18569
18570 # Executable file suffix (normally "").
18571 exeext=$exeext
18572
18573 # whether the shell understands "unset".
18574 lt_unset=$lt_unset
18575
18576 # turn spaces into newlines.
18577 SP2NL=$lt_lt_SP2NL
18578
18579 # turn newlines into spaces.
18580 NL2SP=$lt_lt_NL2SP
18581
18582 # convert \$build file names to \$host format.
18583 to_host_file_cmd=$lt_cv_to_host_file_cmd
18584
18585 # convert \$build files to toolchain format.
18586 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18587
18588 # Method to check whether dependent libraries are shared objects.
18589 deplibs_check_method=$lt_deplibs_check_method
18590
18591 # Command to use when deplibs_check_method = "file_magic".
18592 file_magic_cmd=$lt_file_magic_cmd
18593
18594 # How to find potential files when deplibs_check_method = "file_magic".
18595 file_magic_glob=$lt_file_magic_glob
18596
18597 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18598 want_nocaseglob=$lt_want_nocaseglob
18599
18600 # Command to associate shared and link libraries.
18601 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18602
18603 # The archiver.
18604 AR=$lt_AR
18605
18606 # Flags to create an archive.
18607 AR_FLAGS=$lt_AR_FLAGS
18608
18609 # How to feed a file listing to the archiver.
18610 archiver_list_spec=$lt_archiver_list_spec
18611
18612 # A symbol stripping program.
18613 STRIP=$lt_STRIP
18614
18615 # Commands used to install an old-style archive.
18616 RANLIB=$lt_RANLIB
18617 old_postinstall_cmds=$lt_old_postinstall_cmds
18618 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18619
18620 # Whether to use a lock for old archive extraction.
18621 lock_old_archive_extraction=$lock_old_archive_extraction
18622
18623 # A C compiler.
18624 LTCC=$lt_CC
18625
18626 # LTCC compiler flags.
18627 LTCFLAGS=$lt_CFLAGS
18628
18629 # Take the output of nm and produce a listing of raw symbols and C names.
18630 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18631
18632 # Transform the output of nm in a proper C declaration.
18633 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18634
18635 # Transform the output of nm into a list of symbols to manually relocate.
18636 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18637
18638 # Transform the output of nm in a C name address pair.
18639 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18640
18641 # Transform the output of nm in a C name address pair when lib prefix is needed.
18642 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18643
18644 # The name lister interface.
18645 nm_interface=$lt_lt_cv_nm_interface
18646
18647 # Specify filename containing input files for \$NM.
18648 nm_file_list_spec=$lt_nm_file_list_spec
18649
18650 # The root where to search for dependent libraries,and where our libraries should be installed.
18651 lt_sysroot=$lt_sysroot
18652
18653 # Command to truncate a binary pipe.
18654 lt_truncate_bin=$lt_lt_cv_truncate_bin
18655
18656 # The name of the directory that contains temporary libtool files.
18657 objdir=$objdir
18658
18659 # Used to examine libraries when file_magic_cmd begins with "file".
18660 MAGIC_CMD=$MAGIC_CMD
18661
18662 # Must we lock files when doing compilation?
18663 need_locks=$lt_need_locks
18664
18665 # Manifest tool.
18666 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18667
18668 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18669 DSYMUTIL=$lt_DSYMUTIL
18670
18671 # Tool to change global to local symbols on Mac OS X.
18672 NMEDIT=$lt_NMEDIT
18673
18674 # Tool to manipulate fat objects and archives on Mac OS X.
18675 LIPO=$lt_LIPO
18676
18677 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18678 OTOOL=$lt_OTOOL
18679
18680 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18681 OTOOL64=$lt_OTOOL64
18682
18683 # Old archive suffix (normally "a").
18684 libext=$libext
18685
18686 # Shared library suffix (normally ".so").
18687 shrext_cmds=$lt_shrext_cmds
18688
18689 # The commands to extract the exported symbol list from a shared archive.
18690 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18691
18692 # Variables whose values should be saved in libtool wrapper scripts and
18693 # restored at link time.
18694 variables_saved_for_relink=$lt_variables_saved_for_relink
18695
18696 # Do we need the "lib" prefix for modules?
18697 need_lib_prefix=$need_lib_prefix
18698
18699 # Do we need a version for libraries?
18700 need_version=$need_version
18701
18702 # Library versioning type.
18703 version_type=$version_type
18704
18705 # Shared library runtime path variable.
18706 runpath_var=$runpath_var
18707
18708 # Shared library path variable.
18709 shlibpath_var=$shlibpath_var
18710
18711 # Is shlibpath searched before the hard-coded library search path?
18712 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18713
18714 # Format of library name prefix.
18715 libname_spec=$lt_libname_spec
18716
18717 # List of archive names. First name is the real one, the rest are links.
18718 # The last name is the one that the linker finds with -lNAME
18719 library_names_spec=$lt_library_names_spec
18720
18721 # The coded name of the library, if different from the real name.
18722 soname_spec=$lt_soname_spec
18723
18724 # Permission mode override for installation of shared libraries.
18725 install_override_mode=$lt_install_override_mode
18726
18727 # Command to use after installation of a shared archive.
18728 postinstall_cmds=$lt_postinstall_cmds
18729
18730 # Command to use after uninstallation of a shared archive.
18731 postuninstall_cmds=$lt_postuninstall_cmds
18732
18733 # Commands used to finish a libtool library installation in a directory.
18734 finish_cmds=$lt_finish_cmds
18735
18736 # As "finish_cmds", except a single script fragment to be evaled but
18737 # not shown.
18738 finish_eval=$lt_finish_eval
18739
18740 # Whether we should hardcode library paths into libraries.
18741 hardcode_into_libs=$hardcode_into_libs
18742
18743 # Compile-time system search path for libraries.
18744 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18745
18746 # Detected run-time system search path for libraries.
18747 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18748
18749 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18750 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18751
18752 # Whether dlopen is supported.
18753 dlopen_support=$enable_dlopen
18754
18755 # Whether dlopen of programs is supported.
18756 dlopen_self=$enable_dlopen_self
18757
18758 # Whether dlopen of statically linked programs is supported.
18759 dlopen_self_static=$enable_dlopen_self_static
18760
18761 # Commands to strip libraries.
18762 old_striplib=$lt_old_striplib
18763 striplib=$lt_striplib
18764
18765
18766 # The linker used to build libraries.
18767 LD=$lt_LD
18768
18769 # How to create reloadable object files.
18770 reload_flag=$lt_reload_flag
18771 reload_cmds=$lt_reload_cmds
18772
18773 # Commands used to build an old-style archive.
18774 old_archive_cmds=$lt_old_archive_cmds
18775
18776 # A language specific compiler.
18777 CC=$lt_compiler
18778
18779 # Is the compiler the GNU compiler?
18780 with_gcc=$GCC
18781
18782 # Compiler flag to turn off builtin functions.
18783 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18784
18785 # Additional compiler flags for building library objects.
18786 pic_flag=$lt_lt_prog_compiler_pic
18787
18788 # How to pass a linker flag through the compiler.
18789 wl=$lt_lt_prog_compiler_wl
18790
18791 # Compiler flag to prevent dynamic linking.
18792 link_static_flag=$lt_lt_prog_compiler_static
18793
18794 # Does compiler simultaneously support -c and -o options?
18795 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18796
18797 # Whether or not to add -lc for building shared libraries.
18798 build_libtool_need_lc=$archive_cmds_need_lc
18799
18800 # Whether or not to disallow shared libs when runtime libs are static.
18801 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18802
18803 # Compiler flag to allow reflexive dlopens.
18804 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18805
18806 # Compiler flag to generate shared objects directly from archives.
18807 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18808
18809 # Whether the compiler copes with passing no objects directly.
18810 compiler_needs_object=$lt_compiler_needs_object
18811
18812 # Create an old-style archive from a shared archive.
18813 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18814
18815 # Create a temporary old-style archive to link instead of a shared archive.
18816 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18817
18818 # Commands used to build a shared archive.
18819 archive_cmds=$lt_archive_cmds
18820 archive_expsym_cmds=$lt_archive_expsym_cmds
18821
18822 # Commands used to build a loadable module if different from building
18823 # a shared archive.
18824 module_cmds=$lt_module_cmds
18825 module_expsym_cmds=$lt_module_expsym_cmds
18826
18827 # Whether we are building with GNU ld or not.
18828 with_gnu_ld=$lt_with_gnu_ld
18829
18830 # Flag that allows shared libraries with undefined symbols to be built.
18831 allow_undefined_flag=$lt_allow_undefined_flag
18832
18833 # Flag that enforces no undefined symbols.
18834 no_undefined_flag=$lt_no_undefined_flag
18835
18836 # Flag to hardcode \$libdir into a binary during linking.
18837 # This must work even if \$libdir does not exist
18838 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18839
18840 # Whether we need a single "-rpath" flag with a separated argument.
18841 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18842
18843 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18844 # DIR into the resulting binary.
18845 hardcode_direct=$hardcode_direct
18846
18847 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18848 # DIR into the resulting binary and the resulting library dependency is
18849 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
18850 # library is relocated.
18851 hardcode_direct_absolute=$hardcode_direct_absolute
18852
18853 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18854 # into the resulting binary.
18855 hardcode_minus_L=$hardcode_minus_L
18856
18857 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18858 # into the resulting binary.
18859 hardcode_shlibpath_var=$hardcode_shlibpath_var
18860
18861 # Set to "yes" if building a shared library automatically hardcodes DIR
18862 # into the library and all subsequent libraries and executables linked
18863 # against it.
18864 hardcode_automatic=$hardcode_automatic
18865
18866 # Set to yes if linker adds runtime paths of dependent libraries
18867 # to runtime path list.
18868 inherit_rpath=$inherit_rpath
18869
18870 # Whether libtool must link a program against all its dependency libraries.
18871 link_all_deplibs=$link_all_deplibs
18872
18873 # Set to "yes" if exported symbols are required.
18874 always_export_symbols=$always_export_symbols
18875
18876 # The commands to list exported symbols.
18877 export_symbols_cmds=$lt_export_symbols_cmds
18878
18879 # Symbols that should not be listed in the preloaded symbols.
18880 exclude_expsyms=$lt_exclude_expsyms
18881
18882 # Symbols that must always be exported.
18883 include_expsyms=$lt_include_expsyms
18884
18885 # Commands necessary for linking programs (against libraries) with templates.
18886 prelink_cmds=$lt_prelink_cmds
18887
18888 # Commands necessary for finishing linking programs.
18889 postlink_cmds=$lt_postlink_cmds
18890
18891 # Specify filename containing input files.
18892 file_list_spec=$lt_file_list_spec
18893
18894 # How to hardcode a shared library path into an executable.
18895 hardcode_action=$hardcode_action
18896
18897 # ### END LIBTOOL CONFIG
18898
18899 _LT_EOF
18900
18901 cat <<'_LT_EOF' >> "$cfgfile"
18902
18903 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18904
18905 # func_munge_path_list VARIABLE PATH
18906 # -----------------------------------
18907 # VARIABLE is name of variable containing _space_ separated list of
18908 # directories to be munged by the contents of PATH, which is string
18909 # having a format:
18910 # "DIR[:DIR]:"
18911 # string "DIR[ DIR]" will be prepended to VARIABLE
18912 # ":DIR[:DIR]"
18913 # string "DIR[ DIR]" will be appended to VARIABLE
18914 # "DIRP[:DIRP]::[DIRA:]DIRA"
18915 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18916 # "DIRA[ DIRA]" will be appended to VARIABLE
18917 # "DIR[:DIR]"
18918 # VARIABLE will be replaced by "DIR[ DIR]"
18919 func_munge_path_list ()
18920 {
18921 case x$2 in
18922 x)
18923 ;;
18924 *:)
18925 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18926 ;;
18927 x:*)
18928 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18929 ;;
18930 *::*)
18931 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18932 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18933 ;;
18934 *)
18935 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18936 ;;
18937 esac
18938 }
18939
18940
18941 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
18942 func_cc_basename ()
18943 {
18944 for cc_temp in $*""; do
18945 case $cc_temp in
18946 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18947 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18948 \-*) ;;
18949 *) break;;
18950 esac
18951 done
18952 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18953 }
18954
18955
18956 # ### END FUNCTIONS SHARED WITH CONFIGURE
18957
18958 _LT_EOF
18959
18960 case $host_os in
18961 aix3*)
18962 cat <<\_LT_EOF >> "$cfgfile"
18963 # AIX sometimes has problems with the GCC collect2 program. For some
18964 # reason, if we set the COLLECT_NAMES environment variable, the problems
18965 # vanish in a puff of smoke.
18966 if test set != "${COLLECT_NAMES+set}"; then
18967 COLLECT_NAMES=
18968 export COLLECT_NAMES
18969 fi
18970 _LT_EOF
18971 ;;
18972 esac
18973
18974
18975 ltmain=$ac_aux_dir/ltmain.sh
18976
18977
18978 # We use sed instead of cat because bash on DJGPP gets confused if
18979 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18980 # text mode, it properly converts lines to CR/LF. This bash problem
18981 # is reportedly fixed, but why not run on old versions too?
18982 sed '$q' "$ltmain" >> "$cfgfile" \
18983 || (rm -f "$cfgfile"; exit 1)
18984
18985 mv -f "$cfgfile" "$ofile" ||
18986 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18987 chmod +x "$ofile"
18988
18989 ;;
18990
18991 esac
18992 done # for ac_tag
18993
18994
18995 as_fn_exit 0
18996 _ACEOF
18997 ac_clean_files=$ac_clean_files_save
18998
18999 test $ac_write_fail = 0 ||
19000 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19001
19002
19003 # configure is writing to config.log, and then calls config.status.
19004 # config.status does its own redirection, appending to config.log.
19005 # Unfortunately, on DOS this fails, as config.log is still kept open
19006 # by configure, so config.status won't be able to write to it; its
19007 # output is simply discarded. So we exec the FD to /dev/null,
19008 # effectively closing config.log, so it can be properly (re)opened and
19009 # appended to by config.status. When coming back to configure, we
19010 # need to make the FD available again.
19011 if test "$no_create" != yes; then
19012 ac_cs_success=:
19013 ac_config_status_args=
19014 test "$silent" = yes &&
19015 ac_config_status_args="$ac_config_status_args --quiet"
19016 exec 5>/dev/null
19017 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19018 exec 5>>config.log
19019 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19020 # would make configure fail if this is the last instruction.
19021 $ac_cs_success || as_fn_exit 1
19022 fi
19023 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19025 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19026 fi
19027
19028
19029 chmod +x libmikmod-config
19030
19031 # ====================
19032 # Print configuration.
19033 # ====================
19034
19035 if test $libmikmod_dynload_used = yes
19036 then
19037 libmikmod_dynload_used="yes, ${libmikmod_dynload_style} style"
19038 fi
19039
19040 echo "
19041 Library configuration:
19042
19043 Source code location: $srcdir
19044 Compiler: $CC
19045 Compiler flags: $CFLAGS
19046 Debug version: $libmikmod_debug
19047 SIMD optimizations: $libmikmod_simd
19048 Dynamically loading drivers when possible: $libmikmod_dynload_used
19049 Drivers to be compiled: $libmikmod_driverlist
19050 HQ Mixer: $libmikmod_hqmixer
19051 Install path: $prefix/lib, $prefix/include
19052 "