1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libmikmod 3.3.11. 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 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1 18then : 19 emulate sh 20 NULLCMD=: 21 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 22 # is contrary to our usage. Disable this feature. 23 alias -g '${1+"$@"}'='"$@"' 24 setopt NO_GLOB_SUBST 25else 26 case `(set -o) 2>/dev/null` in #( 27 *posix*) : 28 set -o posix ;; #( 29 *) : 30 ;; 31esac 32fi 33 34 35as_nl=' 36' 37export as_nl 38# Printing a long string crashes Solaris 7 /usr/bin/printf. 39as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 42# Prefer a ksh shell builtin over an external printf program on Solaris, 43# but without wasting forks for bash or zsh. 44if test -z "$BASH_VERSION$ZSH_VERSION" \ 45 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 46 as_echo='print -r --' 47 as_echo_n='print -rn --' 48elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='printf %s\n' 50 as_echo_n='printf %s' 51else 52 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 53 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 54 as_echo_n='/usr/ucb/echo -n' 55 else 56 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 57 as_echo_n_body='eval 58 arg=$1; 59 case $arg in #( 60 *"$as_nl"*) 61 expr "X$arg" : "X\\(.*\\)$as_nl"; 62 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 63 esac; 64 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 65 ' 66 export as_echo_n_body 67 as_echo_n='sh -c $as_echo_n_body as_echo' 68 fi 69 export as_echo_body 70 as_echo='sh -c $as_echo_body as_echo' 71fi 72 73# The user is always right. 74if test "${PATH_SEPARATOR+set}" != set; then 75 PATH_SEPARATOR=: 76 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 77 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 78 PATH_SEPARATOR=';' 79 } 80fi 81 82 83# IFS 84# We need space, tab and new line, in precisely that order. Quoting is 85# there to prevent editors from complaining about space-tab. 86# (If _AS_PATH_WALK were called with IFS unset, it would disable word 87# splitting by setting IFS to empty value.) 88IFS=" "" $as_nl" 89 90# Find who we are. Look in the path if we contain no directory separator. 91as_myself= 92case $0 in #(( 93 *[\\/]* ) as_myself=$0 ;; 94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 95for as_dir in $PATH 96do 97 IFS=$as_save_IFS 98 test -z "$as_dir" && as_dir=. 99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 100 done 101IFS=$as_save_IFS 102 103 ;; 104esac 105# We did not find ourselves, most probably we were run as `sh COMMAND' 106# in which case we are not to be found in the path. 107if test "x$as_myself" = x; then 108 as_myself=$0 109fi 110if test ! -f "$as_myself"; then 111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 112 exit 1 113fi 114 115# Unset variables that we do not need and which cause bugs (e.g. in 116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 117# suppresses any "Segmentation fault" message there. '((' could 118# trigger a bug in pdksh 5.2.14. 119for as_var in BASH_ENV ENV MAIL MAILPATH 120do eval test x\${$as_var+set} = xset \ 121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 122done 123PS1='$ ' 124PS2='> ' 125PS4='+ ' 126 127# NLS nuisances. 128LC_ALL=C 129export LC_ALL 130LANGUAGE=C 131export LANGUAGE 132 133# CDPATH. 134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 135 136# Use a proper internal environment variable to ensure we don't fall 137 # into an infinite loop, continuously re-executing ourselves. 138 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 139 _as_can_reexec=no; export _as_can_reexec; 140 # We cannot yet assume a decent shell, so we have to provide a 141# neutralization value for shells without unset; and this also 142# works around shells that cannot unset nonexistent variables. 143# Preserve -v and -x to the replacement shell. 144BASH_ENV=/dev/null 145ENV=/dev/null 146(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 147case $- in # (((( 148 *v*x* | *x*v* ) as_opts=-vx ;; 149 *v* ) as_opts=-v ;; 150 *x* ) as_opts=-x ;; 151 * ) as_opts= ;; 152esac 153exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 154# Admittedly, this is quite paranoid, since all the known shells bail 155# out after a failed `exec'. 156$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 157as_fn_exit 255 158 fi 159 # We don't want this to propagate to other subprocesses. 160 { _as_can_reexec=; unset _as_can_reexec;} 161if test "x$CONFIG_SHELL" = x; then 162 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1 163then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 191then : 192 193else 194 exitcode=1; echo positional parameters were not saved. 195fi 196test x\$exitcode = x0 || exit 1 197test -x / || exit 1" 198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 210test \$(( 1 + 1 )) = 2 || exit 1" 211 if (eval "$as_required") 2>/dev/null 212then : 213 as_have_required=yes 214else 215 as_have_required=no 216fi 217 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 218then : 219 220else 221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 222as_found=false 223for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 224do 225 IFS=$as_save_IFS 226 test -z "$as_dir" && as_dir=. 227 as_found=: 228 case $as_dir in #( 229 /*) 230 for as_base in sh bash ksh sh5; do 231 # Try only shells that exist, to save several forks. 232 as_shell=$as_dir/$as_base 233 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null 235then : 236 CONFIG_SHELL=$as_shell as_have_required=yes 237 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null 238then : 239 break 2 240fi 241fi 242 done;; 243 esac 244 as_found=false 245done 246$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 247 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null 248then : 249 CONFIG_SHELL=$SHELL as_have_required=yes 250fi; } 251IFS=$as_save_IFS 252 253 254 if test "x$CONFIG_SHELL" != x 255then : 256 export CONFIG_SHELL 257 # We cannot yet assume a decent shell, so we have to provide a 258# neutralization value for shells without unset; and this also 259# works around shells that cannot unset nonexistent variables. 260# Preserve -v and -x to the replacement shell. 261BASH_ENV=/dev/null 262ENV=/dev/null 263(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 264case $- in # (((( 265 *v*x* | *x*v* ) as_opts=-vx ;; 266 *v* ) as_opts=-v ;; 267 *x* ) as_opts=-x ;; 268 * ) as_opts= ;; 269esac 270exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 271# Admittedly, this is quite paranoid, since all the known shells bail 272# out after a failed `exec'. 273$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 274exit 255 275fi 276 277 if test x$as_have_required = xno 278then : 279 $as_echo "$0: This script requires a shell more modern than all" 280 $as_echo "$0: the shells that I found on your system." 281 if test x${ZSH_VERSION+set} = xset ; then 282 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 283 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 284 else 285 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 286$0: including any error possibly output before this 287$0: message. Then install a modern shell, or manually run 288$0: the script under such a shell if you do have one." 289 fi 290 exit 1 291fi 292fi 293fi 294SHELL=${CONFIG_SHELL-/bin/sh} 295export SHELL 296# Unset more variables known to interfere with behavior of common tools. 297CLICOLOR_FORCE= GREP_OPTIONS= 298unset CLICOLOR_FORCE GREP_OPTIONS 299 300## --------------------- ## 301## M4sh Shell Functions. ## 302## --------------------- ## 303# as_fn_unset VAR 304# --------------- 305# Portably unset VAR. 306as_fn_unset () 307{ 308 { eval $1=; unset $1;} 309} 310as_unset=as_fn_unset 311 312# as_fn_set_status STATUS 313# ----------------------- 314# Set $? to STATUS, without forking. 315as_fn_set_status () 316{ 317 return $1 318} # as_fn_set_status 319 320# as_fn_exit STATUS 321# ----------------- 322# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 323as_fn_exit () 324{ 325 set +e 326 as_fn_set_status $1 327 exit $1 328} # as_fn_exit 329 330# as_fn_mkdir_p 331# ------------- 332# Create "$as_dir" as a directory, including parents if necessary. 333as_fn_mkdir_p () 334{ 335 336 case $as_dir in #( 337 -*) as_dir=./$as_dir;; 338 esac 339 test -d "$as_dir" || eval $as_mkdir_p || { 340 as_dirs= 341 while :; do 342 case $as_dir in #( 343 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 344 *) as_qdir=$as_dir;; 345 esac 346 as_dirs="'$as_qdir' $as_dirs" 347 as_dir=`$as_dirname -- "$as_dir" || 348$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 349 X"$as_dir" : 'X\(//\)[^/]' \| \ 350 X"$as_dir" : 'X\(//\)$' \| \ 351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 352$as_echo X"$as_dir" | 353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\/\)[^/].*/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\/\)$/{ 362 s//\1/ 363 q 364 } 365 /^X\(\/\).*/{ 366 s//\1/ 367 q 368 } 369 s/.*/./; q'` 370 test -d "$as_dir" && break 371 done 372 test -z "$as_dirs" || eval "mkdir $as_dirs" 373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 374 375 376} # as_fn_mkdir_p 377 378# as_fn_executable_p FILE 379# ----------------------- 380# Test if FILE is an executable regular file. 381as_fn_executable_p () 382{ 383 test -f "$1" && test -x "$1" 384} # as_fn_executable_p 385# as_fn_append VAR VALUE 386# ---------------------- 387# Append the text in VALUE to the end of the definition contained in VAR. Take 388# advantage of any shell optimizations that allow amortized linear growth over 389# repeated appends, instead of the typical quadratic growth present in naive 390# implementations. 391if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 392then : 393 eval 'as_fn_append () 394 { 395 eval $1+=\$2 396 }' 397else 398 as_fn_append () 399 { 400 eval $1=\$$1\$2 401 } 402fi # as_fn_append 403 404# as_fn_arith ARG... 405# ------------------ 406# Perform arithmetic evaluation on the ARGs, and store the result in the 407# global $as_val. Take advantage of shells that can avoid forks. The arguments 408# must be portable across $(()) and expr. 409if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 410then : 411 eval 'as_fn_arith () 412 { 413 as_val=$(( $* )) 414 }' 415else 416 as_fn_arith () 417 { 418 as_val=`expr "$@" || test $? -eq 1` 419 } 420fi # as_fn_arith 421 422 423# as_fn_error STATUS ERROR [LINENO LOG_FD] 424# ---------------------------------------- 425# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 426# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 427# script with STATUS, using 1 if that was 0. 428as_fn_error () 429{ 430 as_status=$1; test $as_status -eq 0 && as_status=1 431 if test "$4"; then 432 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 433 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 434 fi 435 $as_echo "$as_me: error: $2" >&2 436 as_fn_exit $as_status 437} # as_fn_error 438 439if expr a : '\(a\)' >/dev/null 2>&1 && 440 test "X`expr 00001 : '.*\(...\)'`" = X001; then 441 as_expr=expr 442else 443 as_expr=false 444fi 445 446if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 447 as_basename=basename 448else 449 as_basename=false 450fi 451 452if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 453 as_dirname=dirname 454else 455 as_dirname=false 456fi 457 458as_me=`$as_basename -- "$0" || 459$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 460 X"$0" : 'X\(//\)$' \| \ 461 X"$0" : 'X\(/\)' \| . 2>/dev/null || 462$as_echo X/"$0" | 463 sed '/^.*\/\([^/][^/]*\)\/*$/{ 464 s//\1/ 465 q 466 } 467 /^X\/\(\/\/\)$/{ 468 s//\1/ 469 q 470 } 471 /^X\/\(\/\).*/{ 472 s//\1/ 473 q 474 } 475 s/.*/./; q'` 476 477# Avoid depending upon Character Ranges. 478as_cr_letters='abcdefghijklmnopqrstuvwxyz' 479as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 480as_cr_Letters=$as_cr_letters$as_cr_LETTERS 481as_cr_digits='0123456789' 482as_cr_alnum=$as_cr_Letters$as_cr_digits 483 484 485 as_lineno_1=$LINENO as_lineno_1a=$LINENO 486 as_lineno_2=$LINENO as_lineno_2a=$LINENO 487 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 488 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 489 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 490 sed -n ' 491 p 492 /[$]LINENO/= 493 ' <$as_myself | 494 sed ' 495 s/[$]LINENO.*/&-/ 496 t lineno 497 b 498 :lineno 499 N 500 :loop 501 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 502 t loop 503 s/-\n.*// 504 ' >$as_me.lineno && 505 chmod +x "$as_me.lineno" || 506 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 507 508 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 509 # already done that, so ensure we don't try to do so again and fall 510 # in an infinite loop. This has already happened in practice. 511 _as_can_reexec=no; export _as_can_reexec 512 # Don't try to exec as it changes $[0], causing all sort of problems 513 # (the dirname of $[0] is not the place where we might find the 514 # original and so on. Autoconf is especially sensitive to this). 515 . "./$as_me.lineno" 516 # Exit status is that of the last command. 517 exit 518} 519 520ECHO_C= ECHO_N= ECHO_T= 521case `echo -n x` in #((((( 522-n*) 523 case `echo 'xy\c'` in 524 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 525 xy) ECHO_C='\c';; 526 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 527 ECHO_T=' ';; 528 esac;; 529*) 530 ECHO_N='-n';; 531esac 532 533rm -f conf$$ conf$$.exe conf$$.file 534if test -d conf$$.dir; then 535 rm -f conf$$.dir/conf$$.file 536else 537 rm -f conf$$.dir 538 mkdir conf$$.dir 2>/dev/null 539fi 540if (echo >conf$$.file) 2>/dev/null; then 541 if ln -s conf$$.file conf$$ 2>/dev/null; then 542 as_ln_s='ln -s' 543 # ... but there are two gotchas: 544 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 545 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 546 # In both cases, we have to default to `cp -pR'. 547 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 548 as_ln_s='cp -pR' 549 elif ln conf$$.file conf$$ 2>/dev/null; then 550 as_ln_s=ln 551 else 552 as_ln_s='cp -pR' 553 fi 554else 555 as_ln_s='cp -pR' 556fi 557rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 558rmdir conf$$.dir 2>/dev/null 559 560if mkdir -p . 2>/dev/null; then 561 as_mkdir_p='mkdir -p "$as_dir"' 562else 563 test -d ./-p && rmdir ./-p 564 as_mkdir_p=false 565fi 566 567as_test_x='test -x' 568as_executable_p=as_fn_executable_p 569 570# Sed expression to map a string onto a valid CPP name. 571as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 572 573# Sed expression to map a string onto a valid variable name. 574as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 575 576SHELL=${CONFIG_SHELL-/bin/sh} 577 578 579test -n "$DJDIR" || exec 7<&0 </dev/null 580exec 6>&1 581 582# Name of the host. 583# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 584# so uname gets run too. 585ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 586 587# 588# Initializations. 589# 590ac_default_prefix=/usr/local 591ac_clean_files= 592ac_config_libobj_dir=. 593LIBOBJS= 594cross_compiling=no 595subdirs= 596MFLAGS= 597MAKEFLAGS= 598 599# Identity of this package. 600PACKAGE_NAME='libmikmod' 601PACKAGE_TARNAME='libmikmod' 602PACKAGE_VERSION='3.3.11' 603PACKAGE_STRING='libmikmod 3.3.11' 604PACKAGE_BUGREPORT='' 605PACKAGE_URL='' 606 607ac_unique_file="include/mikmod_internals.h" 608ac_config_libobj_dir=posix 609# Factoring default headers for most tests. 610ac_includes_default="\ 611#include <stdio.h> 612#ifdef HAVE_SYS_TYPES_H 613# include <sys/types.h> 614#endif 615#ifdef HAVE_SYS_STAT_H 616# include <sys/stat.h> 617#endif 618#ifdef STDC_HEADERS 619# include <stdlib.h> 620# include <stddef.h> 621#else 622# ifdef HAVE_STDLIB_H 623# include <stdlib.h> 624# endif 625#endif 626#ifdef HAVE_STRING_H 627# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 628# include <memory.h> 629# endif 630# include <string.h> 631#endif 632#ifdef HAVE_STRINGS_H 633# include <strings.h> 634#endif 635#ifdef HAVE_INTTYPES_H 636# include <inttypes.h> 637#endif 638#ifdef HAVE_STDINT_H 639# include <stdint.h> 640#endif 641#ifdef HAVE_UNISTD_H 642# include <unistd.h> 643#endif" 644 645ac_subst_vars='am__EXEEXT_FALSE 646am__EXEEXT_TRUE 647LTLIBOBJS 648LIB_LDADD 649LIBMIKMOD_VERSION 650LIBMIKMOD_MICRO_VERSION 651LIBMIKMOD_MINOR_VERSION 652LIBMIKMOD_MAJOR_VERSION 653LIBRARY_LIB 654REENTRANT 655BUILD_DOCS_FALSE 656BUILD_DOCS_TRUE 657SDL_CONFIG 658SDL2_CONFIG 659SDL_LIBS 660SDL_CFLAGS 661PKG_CONFIG_LIBDIR 662PKG_CONFIG_PATH 663PKG_CONFIG 664XMKMF 665ESD_LIBS 666ESD_CFLAGS 667ESD_CONFIG 668LIBOBJS 669CPP 670LT_SYS_LIBRARY_PATH 671OTOOL64 672OTOOL 673LIPO 674NMEDIT 675DSYMUTIL 676MANIFEST_TOOL 677RANLIB 678ac_ct_AR 679AR 680NM 681ac_ct_DUMPBIN 682DUMPBIN 683LD 684FGREP 685EGREP 686GREP 687SED 688LIBTOOL 689OBJDUMP 690DLLTOOL 691AS 692LN_S 693am__fastdepCC_FALSE 694am__fastdepCC_TRUE 695CCDEPMODE 696am__nodep 697AMDEPBACKSLASH 698AMDEP_FALSE 699AMDEP_TRUE 700am__quote 701am__include 702DEPDIR 703OBJEXT 704EXEEXT 705ac_ct_CC 706CPPFLAGS 707LDFLAGS 708CFLAGS 709CC 710host_os 711host_vendor 712host_cpu 713host 714build_os 715build_vendor 716build_cpu 717build 718MIKMOD_LT_AGE 719MIKMOD_LT_REVISION 720MIKMOD_LT_CURRENT 721MAINT 722MAINTAINER_MODE_FALSE 723MAINTAINER_MODE_TRUE 724am__untar 725am__tar 726AMTAR 727am__leading_dot 728SET_MAKE 729AWK 730mkdir_p 731MKDIR_P 732INSTALL_STRIP_PROGRAM 733STRIP 734install_sh 735MAKEINFO 736AUTOHEADER 737AUTOMAKE 738AUTOCONF 739ACLOCAL 740VERSION 741PACKAGE 742CYGPATH_W 743am__isrc 744INSTALL_DATA 745INSTALL_SCRIPT 746INSTALL_PROGRAM 747target_alias 748host_alias 749build_alias 750LIBS 751ECHO_T 752ECHO_N 753ECHO_C 754DEFS 755mandir 756localedir 757libdir 758psdir 759pdfdir 760dvidir 761htmldir 762infodir 763docdir 764oldincludedir 765includedir 766localstatedir 767sharedstatedir 768sysconfdir 769datadir 770datarootdir 771libexecdir 772sbindir 773bindir 774program_transform_name 775prefix 776exec_prefix 777PACKAGE_URL 778PACKAGE_BUGREPORT 779PACKAGE_STRING 780PACKAGE_VERSION 781PACKAGE_TARNAME 782PACKAGE_NAME 783PATH_SEPARATOR 784SHELL' 785ac_subst_files='' 786ac_user_opts=' 787enable_option_checking 788enable_maintainer_mode 789enable_hqmixer 790enable_alldrv 791enable_af 792enable_alsa 793enable_oss 794enable_sunaudio 795enable_sndio 796enable_aix 797enable_sgi 798enable_hp 799enable_ahi 800enable_pulseaudio 801enable_esd 802enable_nas 803enable_aiff 804enable_wav 805enable_raw 806enable_stdout 807enable_pipe 808enable_sdl 809enable_sdl2 810enable_openal 811enable_osx 812enable_mac 813enable_win 814enable_ds 815enable_xaudio2 816enable_xaudio28 817enable_os2 818enable_dart 819enable_sam9407 820enable_ultra 821enable_dl 822enable_debug 823enable_threads 824enable_simd 825enable_unix 826enable_doc 827enable_dependency_tracking 828enable_shared 829enable_static 830with_pic 831enable_fast_install 832with_aix_soname 833with_gnu_ld 834with_sysroot 835enable_libtool_lock 836with_esd_prefix 837with_esd_exec_prefix 838enable_esdtest 839with_x 840with_sdl_prefix 841with_sdl_exec_prefix 842enable_sdltest 843' 844 ac_precious_vars='build_alias 845host_alias 846target_alias 847CC 848CFLAGS 849LDFLAGS 850LIBS 851CPPFLAGS 852LT_SYS_LIBRARY_PATH 853CPP 854XMKMF 855PKG_CONFIG 856PKG_CONFIG_PATH 857PKG_CONFIG_LIBDIR 858SDL_CFLAGS 859SDL_LIBS' 860 861 862# Initialize some variables set by options. 863ac_init_help= 864ac_init_version=false 865ac_unrecognized_opts= 866ac_unrecognized_sep= 867# The variables have the same names as the options, with 868# dashes changed to underlines. 869cache_file=/dev/null 870exec_prefix=NONE 871no_create= 872no_recursion= 873prefix=NONE 874program_prefix=NONE 875program_suffix=NONE 876program_transform_name=s,x,x, 877silent= 878site= 879srcdir= 880verbose= 881x_includes=NONE 882x_libraries=NONE 883 884# Installation directory options. 885# These are left unexpanded so users can "make install exec_prefix=/foo" 886# and all the variables that are supposed to be based on exec_prefix 887# by default will actually change. 888# Use braces instead of parens because sh, perl, etc. also accept them. 889# (The list follows the same order as the GNU Coding Standards.) 890bindir='${exec_prefix}/bin' 891sbindir='${exec_prefix}/sbin' 892libexecdir='${exec_prefix}/libexec' 893datarootdir='${prefix}/share' 894datadir='${datarootdir}' 895sysconfdir='${prefix}/etc' 896sharedstatedir='${prefix}/com' 897localstatedir='${prefix}/var' 898includedir='${prefix}/include' 899oldincludedir='/usr/include' 900docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 901infodir='${datarootdir}/info' 902htmldir='${docdir}' 903dvidir='${docdir}' 904pdfdir='${docdir}' 905psdir='${docdir}' 906libdir='${exec_prefix}/lib' 907localedir='${datarootdir}/locale' 908mandir='${datarootdir}/man' 909 910ac_prev= 911ac_dashdash= 912for ac_option 913do 914 # If the previous option needs an argument, assign it. 915 if test -n "$ac_prev"; then 916 eval $ac_prev=\$ac_option 917 ac_prev= 918 continue 919 fi 920 921 case $ac_option in 922 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 923 *=) ac_optarg= ;; 924 *) ac_optarg=yes ;; 925 esac 926 927 # Accept the important Cygnus configure options, so we can diagnose typos. 928 929 case $ac_dashdash$ac_option in 930 --) 931 ac_dashdash=yes ;; 932 933 -bindir | --bindir | --bindi | --bind | --bin | --bi) 934 ac_prev=bindir ;; 935 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 936 bindir=$ac_optarg ;; 937 938 -build | --build | --buil | --bui | --bu) 939 ac_prev=build_alias ;; 940 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 941 build_alias=$ac_optarg ;; 942 943 -cache-file | --cache-file | --cache-fil | --cache-fi \ 944 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 945 ac_prev=cache_file ;; 946 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 947 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 948 cache_file=$ac_optarg ;; 949 950 --config-cache | -C) 951 cache_file=config.cache ;; 952 953 -datadir | --datadir | --datadi | --datad) 954 ac_prev=datadir ;; 955 -datadir=* | --datadir=* | --datadi=* | --datad=*) 956 datadir=$ac_optarg ;; 957 958 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 959 | --dataroo | --dataro | --datar) 960 ac_prev=datarootdir ;; 961 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 962 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 963 datarootdir=$ac_optarg ;; 964 965 -disable-* | --disable-*) 966 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 967 # Reject names that are not valid shell variable names. 968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 969 as_fn_error $? "invalid feature name: $ac_useropt" 970 ac_useropt_orig=$ac_useropt 971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 972 case $ac_user_opts in 973 *" 974"enable_$ac_useropt" 975"*) ;; 976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 977 ac_unrecognized_sep=', ';; 978 esac 979 eval enable_$ac_useropt=no ;; 980 981 -docdir | --docdir | --docdi | --doc | --do) 982 ac_prev=docdir ;; 983 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 984 docdir=$ac_optarg ;; 985 986 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 987 ac_prev=dvidir ;; 988 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 989 dvidir=$ac_optarg ;; 990 991 -enable-* | --enable-*) 992 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 993 # Reject names that are not valid shell variable names. 994 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 995 as_fn_error $? "invalid feature name: $ac_useropt" 996 ac_useropt_orig=$ac_useropt 997 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 998 case $ac_user_opts in 999 *" 1000"enable_$ac_useropt" 1001"*) ;; 1002 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1003 ac_unrecognized_sep=', ';; 1004 esac 1005 eval enable_$ac_useropt=\$ac_optarg ;; 1006 1007 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1008 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1009 | --exec | --exe | --ex) 1010 ac_prev=exec_prefix ;; 1011 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1012 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1013 | --exec=* | --exe=* | --ex=*) 1014 exec_prefix=$ac_optarg ;; 1015 1016 -gas | --gas | --ga | --g) 1017 # Obsolete; use --with-gas. 1018 with_gas=yes ;; 1019 1020 -help | --help | --hel | --he | -h) 1021 ac_init_help=long ;; 1022 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1023 ac_init_help=recursive ;; 1024 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1025 ac_init_help=short ;; 1026 1027 -host | --host | --hos | --ho) 1028 ac_prev=host_alias ;; 1029 -host=* | --host=* | --hos=* | --ho=*) 1030 host_alias=$ac_optarg ;; 1031 1032 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1033 ac_prev=htmldir ;; 1034 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1035 | --ht=*) 1036 htmldir=$ac_optarg ;; 1037 1038 -includedir | --includedir | --includedi | --included | --include \ 1039 | --includ | --inclu | --incl | --inc) 1040 ac_prev=includedir ;; 1041 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1042 | --includ=* | --inclu=* | --incl=* | --inc=*) 1043 includedir=$ac_optarg ;; 1044 1045 -infodir | --infodir | --infodi | --infod | --info | --inf) 1046 ac_prev=infodir ;; 1047 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1048 infodir=$ac_optarg ;; 1049 1050 -libdir | --libdir | --libdi | --libd) 1051 ac_prev=libdir ;; 1052 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1053 libdir=$ac_optarg ;; 1054 1055 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1056 | --libexe | --libex | --libe) 1057 ac_prev=libexecdir ;; 1058 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1059 | --libexe=* | --libex=* | --libe=*) 1060 libexecdir=$ac_optarg ;; 1061 1062 -localedir | --localedir | --localedi | --localed | --locale) 1063 ac_prev=localedir ;; 1064 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1065 localedir=$ac_optarg ;; 1066 1067 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1068 | --localstate | --localstat | --localsta | --localst | --locals) 1069 ac_prev=localstatedir ;; 1070 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1071 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1072 localstatedir=$ac_optarg ;; 1073 1074 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1075 ac_prev=mandir ;; 1076 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1077 mandir=$ac_optarg ;; 1078 1079 -nfp | --nfp | --nf) 1080 # Obsolete; use --without-fp. 1081 with_fp=no ;; 1082 1083 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1084 | --no-cr | --no-c | -n) 1085 no_create=yes ;; 1086 1087 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1088 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1089 no_recursion=yes ;; 1090 1091 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1092 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1093 | --oldin | --oldi | --old | --ol | --o) 1094 ac_prev=oldincludedir ;; 1095 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1096 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1097 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1098 oldincludedir=$ac_optarg ;; 1099 1100 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1101 ac_prev=prefix ;; 1102 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1103 prefix=$ac_optarg ;; 1104 1105 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1106 | --program-pre | --program-pr | --program-p) 1107 ac_prev=program_prefix ;; 1108 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1109 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1110 program_prefix=$ac_optarg ;; 1111 1112 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1113 | --program-suf | --program-su | --program-s) 1114 ac_prev=program_suffix ;; 1115 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1116 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1117 program_suffix=$ac_optarg ;; 1118 1119 -program-transform-name | --program-transform-name \ 1120 | --program-transform-nam | --program-transform-na \ 1121 | --program-transform-n | --program-transform- \ 1122 | --program-transform | --program-transfor \ 1123 | --program-transfo | --program-transf \ 1124 | --program-trans | --program-tran \ 1125 | --progr-tra | --program-tr | --program-t) 1126 ac_prev=program_transform_name ;; 1127 -program-transform-name=* | --program-transform-name=* \ 1128 | --program-transform-nam=* | --program-transform-na=* \ 1129 | --program-transform-n=* | --program-transform-=* \ 1130 | --program-transform=* | --program-transfor=* \ 1131 | --program-transfo=* | --program-transf=* \ 1132 | --program-trans=* | --program-tran=* \ 1133 | --progr-tra=* | --program-tr=* | --program-t=*) 1134 program_transform_name=$ac_optarg ;; 1135 1136 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1137 ac_prev=pdfdir ;; 1138 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1139 pdfdir=$ac_optarg ;; 1140 1141 -psdir | --psdir | --psdi | --psd | --ps) 1142 ac_prev=psdir ;; 1143 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1144 psdir=$ac_optarg ;; 1145 1146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1147 | -silent | --silent | --silen | --sile | --sil) 1148 silent=yes ;; 1149 1150 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1151 ac_prev=sbindir ;; 1152 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1153 | --sbi=* | --sb=*) 1154 sbindir=$ac_optarg ;; 1155 1156 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1157 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1158 | --sharedst | --shareds | --shared | --share | --shar \ 1159 | --sha | --sh) 1160 ac_prev=sharedstatedir ;; 1161 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1162 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1163 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1164 | --sha=* | --sh=*) 1165 sharedstatedir=$ac_optarg ;; 1166 1167 -site | --site | --sit) 1168 ac_prev=site ;; 1169 -site=* | --site=* | --sit=*) 1170 site=$ac_optarg ;; 1171 1172 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1173 ac_prev=srcdir ;; 1174 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1175 srcdir=$ac_optarg ;; 1176 1177 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1178 | --syscon | --sysco | --sysc | --sys | --sy) 1179 ac_prev=sysconfdir ;; 1180 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1181 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1182 sysconfdir=$ac_optarg ;; 1183 1184 -target | --target | --targe | --targ | --tar | --ta | --t) 1185 ac_prev=target_alias ;; 1186 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1187 target_alias=$ac_optarg ;; 1188 1189 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1190 verbose=yes ;; 1191 1192 -version | --version | --versio | --versi | --vers | -V) 1193 ac_init_version=: ;; 1194 1195 -with-* | --with-*) 1196 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1197 # Reject names that are not valid shell variable names. 1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1199 as_fn_error $? "invalid package name: $ac_useropt" 1200 ac_useropt_orig=$ac_useropt 1201 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1202 case $ac_user_opts in 1203 *" 1204"with_$ac_useropt" 1205"*) ;; 1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1207 ac_unrecognized_sep=', ';; 1208 esac 1209 eval with_$ac_useropt=\$ac_optarg ;; 1210 1211 -without-* | --without-*) 1212 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1213 # Reject names that are not valid shell variable names. 1214 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1215 as_fn_error $? "invalid package name: $ac_useropt" 1216 ac_useropt_orig=$ac_useropt 1217 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1218 case $ac_user_opts in 1219 *" 1220"with_$ac_useropt" 1221"*) ;; 1222 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1223 ac_unrecognized_sep=', ';; 1224 esac 1225 eval with_$ac_useropt=no ;; 1226 1227 --x) 1228 # Obsolete; use --with-x. 1229 with_x=yes ;; 1230 1231 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1232 | --x-incl | --x-inc | --x-in | --x-i) 1233 ac_prev=x_includes ;; 1234 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1235 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1236 x_includes=$ac_optarg ;; 1237 1238 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1239 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1240 ac_prev=x_libraries ;; 1241 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1242 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1243 x_libraries=$ac_optarg ;; 1244 1245 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1246Try \`$0 --help' for more information" 1247 ;; 1248 1249 *=*) 1250 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1251 # Reject names that are not valid shell variable names. 1252 case $ac_envvar in #( 1253 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1254 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1255 esac 1256 eval $ac_envvar=\$ac_optarg 1257 export $ac_envvar ;; 1258 1259 *) 1260 # FIXME: should be removed in autoconf 3.0. 1261 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1262 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1263 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1264 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1265 ;; 1266 1267 esac 1268done 1269 1270if test -n "$ac_prev"; then 1271 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1272 as_fn_error $? "missing argument to $ac_option" 1273fi 1274 1275if test -n "$ac_unrecognized_opts"; then 1276 case $enable_option_checking in 1277 no) ;; 1278 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1279 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1280 esac 1281fi 1282 1283# Check all directory arguments for consistency. 1284for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1285 datadir sysconfdir sharedstatedir localstatedir includedir \ 1286 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1287 libdir localedir mandir 1288do 1289 eval ac_val=\$$ac_var 1290 # Remove trailing slashes. 1291 case $ac_val in 1292 */ ) 1293 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1294 eval $ac_var=\$ac_val;; 1295 esac 1296 # Be sure to have absolute directory names. 1297 case $ac_val in 1298 [\\/$]* | ?:[\\/]* ) continue;; 1299 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1300 esac 1301 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1302done 1303 1304# There might be people who depend on the old broken behavior: `$host' 1305# used to hold the argument of --host etc. 1306# FIXME: To remove some day. 1307build=$build_alias 1308host=$host_alias 1309target=$target_alias 1310 1311# FIXME: To remove some day. 1312if test "x$host_alias" != x; then 1313 if test "x$build_alias" = x; then 1314 cross_compiling=maybe 1315 elif test "x$build_alias" != "x$host_alias"; then 1316 cross_compiling=yes 1317 fi 1318fi 1319 1320ac_tool_prefix= 1321test -n "$host_alias" && ac_tool_prefix=$host_alias- 1322 1323test "$silent" = yes && exec 6>/dev/null 1324 1325 1326ac_pwd=`pwd` && test -n "$ac_pwd" && 1327ac_ls_di=`ls -di .` && 1328ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1329 as_fn_error $? "working directory cannot be determined" 1330test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1331 as_fn_error $? "pwd does not report name of working directory" 1332 1333 1334# Find the source files, if location was not specified. 1335if test -z "$srcdir"; then 1336 ac_srcdir_defaulted=yes 1337 # Try the directory containing this script, then the parent directory. 1338 ac_confdir=`$as_dirname -- "$as_myself" || 1339$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1340 X"$as_myself" : 'X\(//\)[^/]' \| \ 1341 X"$as_myself" : 'X\(//\)$' \| \ 1342 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1343$as_echo X"$as_myself" | 1344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1345 s//\1/ 1346 q 1347 } 1348 /^X\(\/\/\)[^/].*/{ 1349 s//\1/ 1350 q 1351 } 1352 /^X\(\/\/\)$/{ 1353 s//\1/ 1354 q 1355 } 1356 /^X\(\/\).*/{ 1357 s//\1/ 1358 q 1359 } 1360 s/.*/./; q'` 1361 srcdir=$ac_confdir 1362 if test ! -r "$srcdir/$ac_unique_file"; then 1363 srcdir=.. 1364 fi 1365else 1366 ac_srcdir_defaulted=no 1367fi 1368if test ! -r "$srcdir/$ac_unique_file"; then 1369 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1370 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1371fi 1372ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1373ac_abs_confdir=`( 1374 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1375 pwd)` 1376# When building in place, set srcdir=. 1377if test "$ac_abs_confdir" = "$ac_pwd"; then 1378 srcdir=. 1379fi 1380# Remove unnecessary trailing slashes from srcdir. 1381# Double slashes in file names in object file debugging info 1382# mess up M-x gdb in Emacs. 1383case $srcdir in 1384*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1385esac 1386for ac_var in $ac_precious_vars; do 1387 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1388 eval ac_env_${ac_var}_value=\$${ac_var} 1389 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1390 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1391done 1392 1393# 1394# Report the --help message. 1395# 1396if test "$ac_init_help" = "long"; then 1397 # Omit some internal or obsolete options to make the list less imposing. 1398 # This message is too long to be a string in the A/UX 3.1 sh. 1399 cat <<_ACEOF 1400\`configure' configures libmikmod 3.3.11 to adapt to many kinds of systems. 1401 1402Usage: $0 [OPTION]... [VAR=VALUE]... 1403 1404To assign environment variables (e.g., CC, CFLAGS...), specify them as 1405VAR=VALUE. See below for descriptions of some of the useful variables. 1406 1407Defaults for the options are specified in brackets. 1408 1409Configuration: 1410 -h, --help display this help and exit 1411 --help=short display options specific to this package 1412 --help=recursive display the short help of all the included packages 1413 -V, --version display version information and exit 1414 -q, --quiet, --silent do not print \`checking ...' messages 1415 --cache-file=FILE cache test results in FILE [disabled] 1416 -C, --config-cache alias for \`--cache-file=config.cache' 1417 -n, --no-create do not create output files 1418 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1419 1420Installation directories: 1421 --prefix=PREFIX install architecture-independent files in PREFIX 1422 [$ac_default_prefix] 1423 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1424 [PREFIX] 1425 1426By default, \`make install' will install all the files in 1427\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1428an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1429for instance \`--prefix=\$HOME'. 1430 1431For better control, use the options below. 1432 1433Fine tuning of the installation directories: 1434 --bindir=DIR user executables [EPREFIX/bin] 1435 --sbindir=DIR system admin executables [EPREFIX/sbin] 1436 --libexecdir=DIR program executables [EPREFIX/libexec] 1437 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1438 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1439 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1440 --libdir=DIR object code libraries [EPREFIX/lib] 1441 --includedir=DIR C header files [PREFIX/include] 1442 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1443 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1444 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1445 --infodir=DIR info documentation [DATAROOTDIR/info] 1446 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1447 --mandir=DIR man documentation [DATAROOTDIR/man] 1448 --docdir=DIR documentation root [DATAROOTDIR/doc/libmikmod] 1449 --htmldir=DIR html documentation [DOCDIR] 1450 --dvidir=DIR dvi documentation [DOCDIR] 1451 --pdfdir=DIR pdf documentation [DOCDIR] 1452 --psdir=DIR ps documentation [DOCDIR] 1453_ACEOF 1454 1455 cat <<\_ACEOF 1456 1457Program names: 1458 --program-prefix=PREFIX prepend PREFIX to installed program names 1459 --program-suffix=SUFFIX append SUFFIX to installed program names 1460 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1461 1462X features: 1463 --x-includes=DIR X include files are in DIR 1464 --x-libraries=DIR X library files are in DIR 1465 1466System types: 1467 --build=BUILD configure for building on BUILD [guessed] 1468 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1469_ACEOF 1470fi 1471 1472if test -n "$ac_init_help"; then 1473 case $ac_init_help in 1474 short | recursive ) echo "Configuration of libmikmod 3.3.11:";; 1475 esac 1476 cat <<\_ACEOF 1477 1478Optional Features: 1479 --disable-option-checking ignore unrecognized --enable/--with options 1480 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1481 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1482 --enable-maintainer-mode enable make rules and dependencies not useful 1483 (and sometimes confusing) to the casual installer 1484 --disable-hqmixer exclude support for high quality mixer [default=no] 1485 --disable-alldrv disable all of the audio drivers. using additional 1486 --enable-XXX options enables the specified drivers. 1487 --enable-af include DEC AudioFile server driver [default=no] 1488 --enable-alsa Linux only: include ALSA driver [guessed] 1489 --enable-oss include OSS driver [guessed] 1490 --enable-sunaudio For SunOS, Solaris, NetBSD or OpenBSD: include 1491 sunaudio driver [guessed] 1492 --enable-sndio OpenBSD only: include sndio driver [guessed] 1493 --enable-aix AIX only: include AIX audio driver [guessed] 1494 --enable-sgi IRIX only: include SGI audio driver [guessed] 1495 --enable-hp HP/UX only: include HP/UX audio driver [guessed] 1496 --enable-ahi Amiga only: include AHI driver [guessed] 1497 --enable-pulseaudio include PulseAudio driver [guessed] 1498 --enable-esd include EsounD (Enlightened Sound Daemon) driver 1499 [default=no] 1500 --enable-nas include the Network Audio System driver [default=no] 1501 --enable-aiff include support for output to an aiff file 1502 [default=yes] 1503 --enable-wav include support for output to a wav file 1504 [default=yes] 1505 --enable-raw include support for output raw data to a file 1506 [default=yes] 1507 --enable-stdout include support for output to stdout [guessed] 1508 --enable-pipe include support for output via a pipe to another 1509 command [guessed] 1510 --enable-sdl include SDL driver [default=no] 1511 --enable-sdl2 try SDL2 first, then SDL-1.2 as libsdl [default=yes] 1512 --enable-openal include OpenAL driver [default=no] 1513 --enable-osx Darwin only: include OSX CoreAudio driver [guessed] 1514 --enable-mac Darwin only: include MAC carbon driver [default=no] 1515 --enable-win Windows only: include Windows MCI driver [guessed] 1516 --enable-ds Windows only: include Direct Sound driver [guessed] 1517 --enable-xaudio2 Windows only: include XAudio2 driver [default=no] 1518 --enable-xaudio28 Windows only: use XAudio2.8 for Windows8 instead of 1519 XAudio2.7 [default=no] 1520 --enable-os2 OS/2 only: include the OS/2 MCI driver [guessed] 1521 --enable-dart OS/2 (Warp 4) only: include OS/2 direct audio (DART) 1522 [guessed] 1523 --enable-sam9407 Linux only: include sam9407 driver [default=no] 1524 --enable-ultra Linux only: include Ultra driver [default=no] 1525 --enable-dl load alsa, esound and ultra drivers at runtime 1526 [default=yes] 1527 --enable-debug build a debug version of libmikmod [default=no] 1528 --enable-threads build a thread-safe version of libmikmod [guessed] 1529 --enable-simd include SIMD (AltiVec or SSE2) mixer optimizations 1530 (Unstable!) [default=no] 1531 --enable-unix override the default value of MIKMOD_UNIX in 1532 mikmod_internals.h (if you *really* need to.) 1533 --enable-doc Build and install the documentation [default=yes] 1534 --disable-dependency-tracking speeds up one-time build 1535 --enable-dependency-tracking do not reject slow dependency extractors 1536 --enable-shared[=PKGS] build shared libraries [default=yes] 1537 --enable-static[=PKGS] build static libraries [default=yes] 1538 --enable-fast-install[=PKGS] 1539 optimize for fast installation [default=yes] 1540 --disable-libtool-lock avoid locking (might break parallel builds) 1541 --disable-esdtest Do not try to compile and run a test ESD program 1542 --disable-sdltest Do not try to compile and run a test SDL program 1543 1544Optional Packages: 1545 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1546 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1547 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1548 both] 1549 --with-aix-soname=aix|svr4|both 1550 shared library versioning (aka "SONAME") variant to 1551 provide on AIX, [default=aix]. 1552 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1553 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1554 compiler's sysroot if not specified). 1555 --with-esd-prefix=PFX Prefix where ESD is installed (optional) 1556 --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional) 1557 --with-x use the X Window System 1558 --with-sdl-prefix=PFX Prefix where SDL is installed (optional) 1559 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) 1560 1561Some influential environment variables: 1562 CC C compiler command 1563 CFLAGS C compiler flags 1564 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1565 nonstandard directory <lib dir> 1566 LIBS libraries to pass to the linker, e.g. -l<library> 1567 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1568 you have headers in a nonstandard directory <include dir> 1569 LT_SYS_LIBRARY_PATH 1570 User-defined run-time library search path. 1571 CPP C preprocessor 1572 XMKMF Path to xmkmf, Makefile generator for X Window System 1573 PKG_CONFIG path to pkg-config utility 1574 PKG_CONFIG_PATH 1575 directories to add to pkg-config's search path 1576 PKG_CONFIG_LIBDIR 1577 path overriding pkg-config's built-in search path 1578 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config 1579 SDL_LIBS linker flags for SDL, overriding pkg-config 1580 1581Use these variables to override the choices made by `configure' or to help 1582it to find libraries and programs with nonstandard names/locations. 1583 1584Report bugs to the package provider. 1585_ACEOF 1586ac_status=$? 1587fi 1588 1589if test "$ac_init_help" = "recursive"; then 1590 # If there are subdirs, report their specific --help. 1591 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1592 test -d "$ac_dir" || 1593 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1594 continue 1595 ac_builddir=. 1596 1597case "$ac_dir" in 1598.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1599*) 1600 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1601 # A ".." for each directory in $ac_dir_suffix. 1602 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1603 case $ac_top_builddir_sub in 1604 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1605 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1606 esac ;; 1607esac 1608ac_abs_top_builddir=$ac_pwd 1609ac_abs_builddir=$ac_pwd$ac_dir_suffix 1610# for backward compatibility: 1611ac_top_builddir=$ac_top_build_prefix 1612 1613case $srcdir in 1614 .) # We are building in place. 1615 ac_srcdir=. 1616 ac_top_srcdir=$ac_top_builddir_sub 1617 ac_abs_top_srcdir=$ac_pwd ;; 1618 [\\/]* | ?:[\\/]* ) # Absolute name. 1619 ac_srcdir=$srcdir$ac_dir_suffix; 1620 ac_top_srcdir=$srcdir 1621 ac_abs_top_srcdir=$srcdir ;; 1622 *) # Relative name. 1623 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1624 ac_top_srcdir=$ac_top_build_prefix$srcdir 1625 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1626esac 1627ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1628 1629 cd "$ac_dir" || { ac_status=$?; continue; } 1630 # Check for guested configure. 1631 if test -f "$ac_srcdir/configure.gnu"; then 1632 echo && 1633 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1634 elif test -f "$ac_srcdir/configure"; then 1635 echo && 1636 $SHELL "$ac_srcdir/configure" --help=recursive 1637 else 1638 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1639 fi || ac_status=$? 1640 cd "$ac_pwd" || { ac_status=$?; break; } 1641 done 1642fi 1643 1644test -n "$ac_init_help" && exit $ac_status 1645if $ac_init_version; then 1646 cat <<\_ACEOF 1647libmikmod configure 3.3.11 1648generated by GNU Autoconf 2.69 1649 1650Copyright (C) 2012 Free Software Foundation, Inc. 1651This configure script is free software; the Free Software Foundation 1652gives unlimited permission to copy, distribute and modify it. 1653_ACEOF 1654 exit 1655fi 1656 1657## ------------------------ ## 1658## Autoconf initialization. ## 1659## ------------------------ ## 1660 1661# ac_fn_c_try_compile LINENO 1662# -------------------------- 1663# Try to compile conftest.$ac_ext, and return whether this succeeded. 1664ac_fn_c_try_compile () 1665{ 1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1667 rm -f conftest.$ac_objext 1668 if { { ac_try="$ac_compile" 1669case "(($ac_try" in 1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1671 *) ac_try_echo=$ac_try;; 1672esac 1673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1674$as_echo "$ac_try_echo"; } >&5 1675 (eval "$ac_compile") 2>conftest.err 1676 ac_status=$? 1677 if test -s conftest.err; then 1678 grep -v '^ *+' conftest.err >conftest.er1 1679 cat conftest.er1 >&5 1680 mv -f conftest.er1 conftest.err 1681 fi 1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1683 test $ac_status = 0; } && { 1684 test -z "$ac_c_werror_flag" || 1685 test ! -s conftest.err 1686 } && test -s conftest.$ac_objext 1687then : 1688 ac_retval=0 1689else 1690 $as_echo "$as_me: failed program was:" >&5 1691sed 's/^/| /' conftest.$ac_ext >&5 1692 1693 ac_retval=1 1694fi 1695 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1696 as_fn_set_status $ac_retval 1697 1698} # ac_fn_c_try_compile 1699 1700# ac_fn_c_try_link LINENO 1701# ----------------------- 1702# Try to link conftest.$ac_ext, and return whether this succeeded. 1703ac_fn_c_try_link () 1704{ 1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1706 rm -f conftest.$ac_objext conftest$ac_exeext 1707 if { { ac_try="$ac_link" 1708case "(($ac_try" in 1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1710 *) ac_try_echo=$ac_try;; 1711esac 1712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1713$as_echo "$ac_try_echo"; } >&5 1714 (eval "$ac_link") 2>conftest.err 1715 ac_status=$? 1716 if test -s conftest.err; then 1717 grep -v '^ *+' conftest.err >conftest.er1 1718 cat conftest.er1 >&5 1719 mv -f conftest.er1 conftest.err 1720 fi 1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1722 test $ac_status = 0; } && { 1723 test -z "$ac_c_werror_flag" || 1724 test ! -s conftest.err 1725 } && test -s conftest$ac_exeext && { 1726 test "$cross_compiling" = yes || 1727 test -x conftest$ac_exeext 1728 } 1729then : 1730 ac_retval=0 1731else 1732 $as_echo "$as_me: failed program was:" >&5 1733sed 's/^/| /' conftest.$ac_ext >&5 1734 1735 ac_retval=1 1736fi 1737 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1738 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1739 # interfere with the next link command; also delete a directory that is 1740 # left behind by Apple's compiler. We do this before executing the actions. 1741 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1743 as_fn_set_status $ac_retval 1744 1745} # ac_fn_c_try_link 1746 1747# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1748# ------------------------------------------------------- 1749# Tests whether HEADER exists and can be compiled using the include files in 1750# INCLUDES, setting the cache variable VAR accordingly. 1751ac_fn_c_check_header_compile () 1752{ 1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1755$as_echo_n "checking for $2... " >&6; } 1756if eval \${$3+:} false 1757then : 1758 $as_echo_n "(cached) " >&6 1759else 1760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1761/* end confdefs.h. */ 1762$4 1763#include <$2> 1764_ACEOF 1765if ac_fn_c_try_compile "$LINENO" 1766then : 1767 eval "$3=yes" 1768else 1769 eval "$3=no" 1770fi 1771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1772fi 1773eval ac_res=\$$3 1774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1775$as_echo "$ac_res" >&6; } 1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1777 1778} # ac_fn_c_check_header_compile 1779 1780# ac_fn_c_try_cpp LINENO 1781# ---------------------- 1782# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1783ac_fn_c_try_cpp () 1784{ 1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1786 if { { ac_try="$ac_cpp conftest.$ac_ext" 1787case "(($ac_try" in 1788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1789 *) ac_try_echo=$ac_try;; 1790esac 1791eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1792$as_echo "$ac_try_echo"; } >&5 1793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1794 ac_status=$? 1795 if test -s conftest.err; then 1796 grep -v '^ *+' conftest.err >conftest.er1 1797 cat conftest.er1 >&5 1798 mv -f conftest.er1 conftest.err 1799 fi 1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1801 test $ac_status = 0; } > conftest.i && { 1802 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1803 test ! -s conftest.err 1804 } 1805then : 1806 ac_retval=0 1807else 1808 $as_echo "$as_me: failed program was:" >&5 1809sed 's/^/| /' conftest.$ac_ext >&5 1810 1811 ac_retval=1 1812fi 1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1814 as_fn_set_status $ac_retval 1815 1816} # ac_fn_c_try_cpp 1817 1818# ac_fn_c_try_run LINENO 1819# ---------------------- 1820# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 1821# executables *can* be run. 1822ac_fn_c_try_run () 1823{ 1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1825 if { { ac_try="$ac_link" 1826case "(($ac_try" in 1827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1828 *) ac_try_echo=$ac_try;; 1829esac 1830eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1831$as_echo "$ac_try_echo"; } >&5 1832 (eval "$ac_link") 2>&5 1833 ac_status=$? 1834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1835 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1836 { { case "(($ac_try" in 1837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1838 *) ac_try_echo=$ac_try;; 1839esac 1840eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1841$as_echo "$ac_try_echo"; } >&5 1842 (eval "$ac_try") 2>&5 1843 ac_status=$? 1844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1845 test $ac_status = 0; }; } 1846then : 1847 ac_retval=0 1848else 1849 $as_echo "$as_me: program exited with status $ac_status" >&5 1850 $as_echo "$as_me: failed program was:" >&5 1851sed 's/^/| /' conftest.$ac_ext >&5 1852 1853 ac_retval=$ac_status 1854fi 1855 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1857 as_fn_set_status $ac_retval 1858 1859} # ac_fn_c_try_run 1860 1861# ac_fn_c_check_func LINENO FUNC VAR 1862# ---------------------------------- 1863# Tests whether FUNC exists, setting the cache variable VAR accordingly 1864ac_fn_c_check_func () 1865{ 1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1868$as_echo_n "checking for $2... " >&6; } 1869if eval \${$3+:} false 1870then : 1871 $as_echo_n "(cached) " >&6 1872else 1873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1874/* end confdefs.h. */ 1875/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1876 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1877#define $2 innocuous_$2 1878 1879/* System header to define __stub macros and hopefully few prototypes, 1880 which can conflict with char $2 (); below. 1881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1882 <limits.h> exists even on freestanding compilers. */ 1883 1884#ifdef __STDC__ 1885# include <limits.h> 1886#else 1887# include <assert.h> 1888#endif 1889 1890#undef $2 1891 1892/* Override any GCC internal prototype to avoid an error. 1893 Use char because int might match the return type of a GCC 1894 builtin and then its argument prototype would still apply. */ 1895#ifdef __cplusplus 1896extern "C" 1897#endif 1898char $2 (); 1899/* The GNU C library defines this for functions which it implements 1900 to always fail with ENOSYS. Some functions are actually named 1901 something starting with __ and the normal name is an alias. */ 1902#if defined __stub_$2 || defined __stub___$2 1903choke me 1904#endif 1905 1906int 1907main (void) 1908{ 1909return $2 (); 1910 ; 1911 return 0; 1912} 1913_ACEOF 1914if ac_fn_c_try_link "$LINENO" 1915then : 1916 eval "$3=yes" 1917else 1918 eval "$3=no" 1919fi 1920rm -f core conftest.err conftest.$ac_objext \ 1921 conftest$ac_exeext conftest.$ac_ext 1922fi 1923eval ac_res=\$$3 1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1925$as_echo "$ac_res" >&6; } 1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1927 1928} # ac_fn_c_check_func 1929 1930# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1931# ------------------------------------------- 1932# Tests whether TYPE exists after having included INCLUDES, setting cache 1933# variable VAR accordingly. 1934ac_fn_c_check_type () 1935{ 1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1938$as_echo_n "checking for $2... " >&6; } 1939if eval \${$3+:} false 1940then : 1941 $as_echo_n "(cached) " >&6 1942else 1943 eval "$3=no" 1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1945/* end confdefs.h. */ 1946$4 1947int 1948main (void) 1949{ 1950if (sizeof ($2)) 1951 return 0; 1952 ; 1953 return 0; 1954} 1955_ACEOF 1956if ac_fn_c_try_compile "$LINENO" 1957then : 1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1959/* end confdefs.h. */ 1960$4 1961int 1962main (void) 1963{ 1964if (sizeof (($2))) 1965 return 0; 1966 ; 1967 return 0; 1968} 1969_ACEOF 1970if ac_fn_c_try_compile "$LINENO" 1971then : 1972 1973else 1974 eval "$3=yes" 1975fi 1976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1977fi 1978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1979fi 1980eval ac_res=\$$3 1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1982$as_echo "$ac_res" >&6; } 1983 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1984 1985} # ac_fn_c_check_type 1986 1987# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1988# ------------------------------------------------------- 1989# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1990# the include files in INCLUDES and setting the cache variable VAR 1991# accordingly. 1992ac_fn_c_check_header_mongrel () 1993{ 1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1995 if eval \${$3+:} false 1996then : 1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1998$as_echo_n "checking for $2... " >&6; } 1999if eval \${$3+:} false 2000then : 2001 $as_echo_n "(cached) " >&6 2002fi 2003eval ac_res=\$$3 2004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2005$as_echo "$ac_res" >&6; } 2006else 2007 # Is the header compilable? 2008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2009$as_echo_n "checking $2 usability... " >&6; } 2010cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2011/* end confdefs.h. */ 2012$4 2013#include <$2> 2014_ACEOF 2015if ac_fn_c_try_compile "$LINENO" 2016then : 2017 ac_header_compiler=yes 2018else 2019 ac_header_compiler=no 2020fi 2021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2023$as_echo "$ac_header_compiler" >&6; } 2024 2025# Is the header present? 2026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2027$as_echo_n "checking $2 presence... " >&6; } 2028cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2029/* end confdefs.h. */ 2030#include <$2> 2031_ACEOF 2032if ac_fn_c_try_cpp "$LINENO" 2033then : 2034 ac_header_preproc=yes 2035else 2036 ac_header_preproc=no 2037fi 2038rm -f conftest.err conftest.i conftest.$ac_ext 2039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2040$as_echo "$ac_header_preproc" >&6; } 2041 2042# So? What about this header? 2043case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2044 yes:no: ) 2045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2046$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&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 no:yes:* ) 2051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2052$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2054$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2056$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2058$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2060$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2061 ;; 2062esac 2063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2064$as_echo_n "checking for $2... " >&6; } 2065if eval \${$3+:} false 2066then : 2067 $as_echo_n "(cached) " >&6 2068else 2069 eval "$3=\$ac_header_compiler" 2070fi 2071eval ac_res=\$$3 2072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2073$as_echo "$ac_res" >&6; } 2074fi 2075 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2076 2077} # ac_fn_c_check_header_mongrel 2078cat >config.log <<_ACEOF 2079This file contains any messages produced by compilers while 2080running configure, to aid debugging if configure makes a mistake. 2081 2082It was created by libmikmod $as_me 3.3.11, which was 2083generated by GNU Autoconf 2.69. Invocation command line was 2084 2085 $ $0 $@ 2086 2087_ACEOF 2088exec 5>>config.log 2089{ 2090cat <<_ASUNAME 2091## --------- ## 2092## Platform. ## 2093## --------- ## 2094 2095hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2096uname -m = `(uname -m) 2>/dev/null || echo unknown` 2097uname -r = `(uname -r) 2>/dev/null || echo unknown` 2098uname -s = `(uname -s) 2>/dev/null || echo unknown` 2099uname -v = `(uname -v) 2>/dev/null || echo unknown` 2100 2101/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2102/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2103 2104/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2105/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2106/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2107/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2108/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2109/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2110/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2111 2112_ASUNAME 2113 2114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2115for as_dir in $PATH 2116do 2117 IFS=$as_save_IFS 2118 test -z "$as_dir" && as_dir=. 2119 $as_echo "PATH: $as_dir" 2120 done 2121IFS=$as_save_IFS 2122 2123} >&5 2124 2125cat >&5 <<_ACEOF 2126 2127 2128## ----------- ## 2129## Core tests. ## 2130## ----------- ## 2131 2132_ACEOF 2133 2134 2135# Keep a trace of the command line. 2136# Strip out --no-create and --no-recursion so they do not pile up. 2137# Strip out --silent because we don't want to record it for future runs. 2138# Also quote any args containing shell meta-characters. 2139# Make two passes to allow for proper duplicate-argument suppression. 2140ac_configure_args= 2141ac_configure_args0= 2142ac_configure_args1= 2143ac_must_keep_next=false 2144for ac_pass in 1 2 2145do 2146 for ac_arg 2147 do 2148 case $ac_arg in 2149 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2151 | -silent | --silent | --silen | --sile | --sil) 2152 continue ;; 2153 *\'*) 2154 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2155 esac 2156 case $ac_pass in 2157 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2158 2) 2159 as_fn_append ac_configure_args1 " '$ac_arg'" 2160 if test $ac_must_keep_next = true; then 2161 ac_must_keep_next=false # Got value, back to normal. 2162 else 2163 case $ac_arg in 2164 *=* | --config-cache | -C | -disable-* | --disable-* \ 2165 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2166 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2167 | -with-* | --with-* | -without-* | --without-* | --x) 2168 case "$ac_configure_args0 " in 2169 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2170 esac 2171 ;; 2172 -* ) ac_must_keep_next=true ;; 2173 esac 2174 fi 2175 as_fn_append ac_configure_args " '$ac_arg'" 2176 ;; 2177 esac 2178 done 2179done 2180{ ac_configure_args0=; unset ac_configure_args0;} 2181{ ac_configure_args1=; unset ac_configure_args1;} 2182 2183# When interrupted or exit'd, cleanup temporary files, and complete 2184# config.log. We remove comments because anyway the quotes in there 2185# would cause problems or look ugly. 2186# WARNING: Use '\'' to represent an apostrophe within the trap. 2187# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2188trap 'exit_status=$? 2189 # Sanitize IFS. 2190 IFS=" "" $as_nl" 2191 # Save into config.log some information that might help in debugging. 2192 { 2193 echo 2194 2195 $as_echo "## ---------------- ## 2196## Cache variables. ## 2197## ---------------- ##" 2198 echo 2199 # The following way of writing the cache mishandles newlines in values, 2200( 2201 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2202 eval ac_val=\$$ac_var 2203 case $ac_val in #( 2204 *${as_nl}*) 2205 case $ac_var in #( 2206 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2207$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2208 esac 2209 case $ac_var in #( 2210 _ | IFS | as_nl) ;; #( 2211 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2212 *) { eval $ac_var=; unset $ac_var;} ;; 2213 esac ;; 2214 esac 2215 done 2216 (set) 2>&1 | 2217 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2218 *${as_nl}ac_space=\ *) 2219 sed -n \ 2220 "s/'\''/'\''\\\\'\'''\''/g; 2221 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2222 ;; #( 2223 *) 2224 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2225 ;; 2226 esac | 2227 sort 2228) 2229 echo 2230 2231 $as_echo "## ----------------- ## 2232## Output variables. ## 2233## ----------------- ##" 2234 echo 2235 for ac_var in $ac_subst_vars 2236 do 2237 eval ac_val=\$$ac_var 2238 case $ac_val in 2239 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2240 esac 2241 $as_echo "$ac_var='\''$ac_val'\''" 2242 done | sort 2243 echo 2244 2245 if test -n "$ac_subst_files"; then 2246 $as_echo "## ------------------- ## 2247## File substitutions. ## 2248## ------------------- ##" 2249 echo 2250 for ac_var in $ac_subst_files 2251 do 2252 eval ac_val=\$$ac_var 2253 case $ac_val in 2254 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2255 esac 2256 $as_echo "$ac_var='\''$ac_val'\''" 2257 done | sort 2258 echo 2259 fi 2260 2261 if test -s confdefs.h; then 2262 $as_echo "## ----------- ## 2263## confdefs.h. ## 2264## ----------- ##" 2265 echo 2266 cat confdefs.h 2267 echo 2268 fi 2269 test "$ac_signal" != 0 && 2270 $as_echo "$as_me: caught signal $ac_signal" 2271 $as_echo "$as_me: exit $exit_status" 2272 } >&5 2273 rm -f core *.core core.conftest.* && 2274 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2275 exit $exit_status 2276' 0 2277for ac_signal in 1 2 13 15; do 2278 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2279done 2280ac_signal=0 2281 2282# confdefs.h avoids OS command line length limits that DEFS can exceed. 2283rm -f -r conftest* confdefs.h 2284 2285$as_echo "/* confdefs.h */" > confdefs.h 2286 2287# Predefined preprocessor variables. 2288 2289cat >>confdefs.h <<_ACEOF 2290#define PACKAGE_NAME "$PACKAGE_NAME" 2291_ACEOF 2292 2293cat >>confdefs.h <<_ACEOF 2294#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2295_ACEOF 2296 2297cat >>confdefs.h <<_ACEOF 2298#define PACKAGE_VERSION "$PACKAGE_VERSION" 2299_ACEOF 2300 2301cat >>confdefs.h <<_ACEOF 2302#define PACKAGE_STRING "$PACKAGE_STRING" 2303_ACEOF 2304 2305cat >>confdefs.h <<_ACEOF 2306#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2307_ACEOF 2308 2309cat >>confdefs.h <<_ACEOF 2310#define PACKAGE_URL "$PACKAGE_URL" 2311_ACEOF 2312 2313 2314# Let the site file select an alternate cache file if it wants to. 2315# Prefer an explicitly selected file to automatically selected ones. 2316ac_site_file1=NONE 2317ac_site_file2=NONE 2318if test -n "$CONFIG_SITE"; then 2319 # We do not want a PATH search for config.site. 2320 case $CONFIG_SITE in #(( 2321 -*) ac_site_file1=./$CONFIG_SITE;; 2322 */*) ac_site_file1=$CONFIG_SITE;; 2323 *) ac_site_file1=./$CONFIG_SITE;; 2324 esac 2325elif test "x$prefix" != xNONE; then 2326 ac_site_file1=$prefix/share/config.site 2327 ac_site_file2=$prefix/etc/config.site 2328else 2329 ac_site_file1=$ac_default_prefix/share/config.site 2330 ac_site_file2=$ac_default_prefix/etc/config.site 2331fi 2332for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2333do 2334 test "x$ac_site_file" = xNONE && continue 2335 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2336 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2337$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2338 sed 's/^/| /' "$ac_site_file" >&5 2339 . "$ac_site_file" \ 2340 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2341$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2342as_fn_error $? "failed to load site script $ac_site_file 2343See \`config.log' for more details" "$LINENO" 5; } 2344 fi 2345done 2346 2347if test -r "$cache_file"; then 2348 # Some versions of bash will fail to source /dev/null (special files 2349 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2350 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2351 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2352$as_echo "$as_me: loading cache $cache_file" >&6;} 2353 case $cache_file in 2354 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2355 *) . "./$cache_file";; 2356 esac 2357 fi 2358else 2359 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2360$as_echo "$as_me: creating cache $cache_file" >&6;} 2361 >$cache_file 2362fi 2363 2364# Check that the precious variables saved in the cache have kept the same 2365# value. 2366ac_cache_corrupted=false 2367for ac_var in $ac_precious_vars; do 2368 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2369 eval ac_new_set=\$ac_env_${ac_var}_set 2370 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2371 eval ac_new_val=\$ac_env_${ac_var}_value 2372 case $ac_old_set,$ac_new_set in 2373 set,) 2374 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2375$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2376 ac_cache_corrupted=: ;; 2377 ,set) 2378 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2379$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2380 ac_cache_corrupted=: ;; 2381 ,);; 2382 *) 2383 if test "x$ac_old_val" != "x$ac_new_val"; then 2384 # differences in whitespace do not lead to failure. 2385 ac_old_val_w=`echo x $ac_old_val` 2386 ac_new_val_w=`echo x $ac_new_val` 2387 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2388 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2389$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2390 ac_cache_corrupted=: 2391 else 2392 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2393$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2394 eval $ac_var=\$ac_old_val 2395 fi 2396 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2397$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2398 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2399$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2400 fi;; 2401 esac 2402 # Pass precious variables to config.status. 2403 if test "$ac_new_set" = set; then 2404 case $ac_new_val in 2405 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2406 *) ac_arg=$ac_var=$ac_new_val ;; 2407 esac 2408 case " $ac_configure_args " in 2409 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2410 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2411 esac 2412 fi 2413done 2414if $ac_cache_corrupted; then 2415 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2416$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2417 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2418$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2419 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2420fi 2421## -------------------- ## 2422## Main body of script. ## 2423## -------------------- ## 2424 2425ac_ext=c 2426ac_cpp='$CPP $CPPFLAGS' 2427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2429ac_compiler_gnu=$ac_cv_c_compiler_gnu 2430 2431 2432LIBMIKMOD_MAJOR_VERSION=3 2433LIBMIKMOD_MINOR_VERSION=3 2434LIBMIKMOD_MICRO_VERSION=11 2435LIBMIKMOD_VERSION=$LIBMIKMOD_MAJOR_VERSION.$LIBMIKMOD_MINOR_VERSION.$LIBMIKMOD_MICRO_VERSION 2436 2437ac_aux_dir= 2438for ac_dir in autotools "$srcdir"/autotools 2439do 2440 if test -f "$ac_dir/install-sh"; then 2441 ac_aux_dir=$ac_dir 2442 ac_install_sh="$ac_aux_dir/install-sh -c" 2443 break 2444 elif test -f "$ac_dir/install.sh"; then 2445 ac_aux_dir=$ac_dir 2446 ac_install_sh="$ac_aux_dir/install.sh -c" 2447 break 2448 elif test -f "$ac_dir/shtool"; then 2449 ac_aux_dir=$ac_dir 2450 ac_install_sh="$ac_aux_dir/shtool install -c" 2451 break 2452 fi 2453done 2454if test -z "$ac_aux_dir"; then 2455 as_fn_error $? "cannot find install-sh, install.sh, or shtool in autotools \"$srcdir\"/autotools" "$LINENO" 5 2456fi 2457 2458# These three variables are undocumented and unsupported, 2459# and are intended to be withdrawn in a future Autoconf release. 2460# They can cause serious problems if a builder's source tree is in a directory 2461# whose full name contains unusual characters. 2462ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2463ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2464ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2465 2466 2467am__api_version='1.11' 2468 2469# Find a good install program. We prefer a C program (faster), 2470# so one script is as good as another. But avoid the broken or 2471# incompatible versions: 2472# SysV /etc/install, /usr/sbin/install 2473# SunOS /usr/etc/install 2474# IRIX /sbin/install 2475# AIX /bin/install 2476# AmigaOS /C/install, which installs bootblocks on floppy discs 2477# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2478# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2479# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2480# OS/2's system install, which has a completely different semantic 2481# ./install, which can be erroneously created by make from ./install.sh. 2482# Reject install programs that cannot install multiple files. 2483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2484$as_echo_n "checking for a BSD-compatible install... " >&6; } 2485if test -z "$INSTALL"; then 2486if ${ac_cv_path_install+:} false 2487then : 2488 $as_echo_n "(cached) " >&6 2489else 2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2491for as_dir in $PATH 2492do 2493 IFS=$as_save_IFS 2494 test -z "$as_dir" && as_dir=. 2495 # Account for people who put trailing slashes in PATH elements. 2496case $as_dir/ in #(( 2497 ./ | .// | /[cC]/* | \ 2498 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2499 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2500 /usr/ucb/* ) ;; 2501 *) 2502 # OSF1 and SCO ODT 3.0 have their own names for install. 2503 # Don't use installbsd from OSF since it installs stuff as root 2504 # by default. 2505 for ac_prog in ginstall scoinst install; do 2506 for ac_exec_ext in '' $ac_executable_extensions; do 2507 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2508 if test $ac_prog = install && 2509 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2510 # AIX install. It has an incompatible calling convention. 2511 : 2512 elif test $ac_prog = install && 2513 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2514 # program-specific install script used by HP pwplus--don't use. 2515 : 2516 else 2517 rm -rf conftest.one conftest.two conftest.dir 2518 echo one > conftest.one 2519 echo two > conftest.two 2520 mkdir conftest.dir 2521 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2522 test -s conftest.one && test -s conftest.two && 2523 test -s conftest.dir/conftest.one && 2524 test -s conftest.dir/conftest.two 2525 then 2526 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2527 break 3 2528 fi 2529 fi 2530 fi 2531 done 2532 done 2533 ;; 2534esac 2535 2536 done 2537IFS=$as_save_IFS 2538 2539rm -rf conftest.one conftest.two conftest.dir 2540 2541fi 2542 if test "${ac_cv_path_install+set}" = set; then 2543 INSTALL=$ac_cv_path_install 2544 else 2545 # As a last resort, use the slow shell script. Don't cache a 2546 # value for INSTALL within a source directory, because that will 2547 # break other packages using the cache if that directory is 2548 # removed, or if the value is a relative name. 2549 INSTALL=$ac_install_sh 2550 fi 2551fi 2552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2553$as_echo "$INSTALL" >&6; } 2554 2555# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2556# It thinks the first close brace ends the variable substitution. 2557test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2558 2559test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2560 2561test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2562 2563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2564$as_echo_n "checking whether build environment is sane... " >&6; } 2565# Just in case 2566sleep 1 2567echo timestamp > conftest.file 2568# Reject unsafe characters in $srcdir or the absolute working directory 2569# name. Accept space and tab only in the latter. 2570am_lf=' 2571' 2572case `pwd` in 2573 *[\\\"\#\$\&\'\`$am_lf]*) 2574 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2575esac 2576case $srcdir in 2577 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2578 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2579esac 2580 2581# Do `set' in a subshell so we don't clobber the current shell's 2582# arguments. Must try -L first in case configure is actually a 2583# symlink; some systems play weird games with the mod time of symlinks 2584# (eg FreeBSD returns the mod time of the symlink's containing 2585# directory). 2586if ( 2587 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2588 if test "$*" = "X"; then 2589 # -L didn't work. 2590 set X `ls -t "$srcdir/configure" conftest.file` 2591 fi 2592 rm -f conftest.file 2593 if test "$*" != "X $srcdir/configure conftest.file" \ 2594 && test "$*" != "X conftest.file $srcdir/configure"; then 2595 2596 # If neither matched, then we have a broken ls. This can happen 2597 # if, for instance, CONFIG_SHELL is bash and it inherits a 2598 # broken ls alias from the environment. This has actually 2599 # happened. Such a system could not be considered "sane". 2600 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2601alias in your environment" "$LINENO" 5 2602 fi 2603 2604 test "$2" = conftest.file 2605 ) 2606then 2607 # Ok. 2608 : 2609else 2610 as_fn_error $? "newly created file is older than distributed files! 2611Check your system clock" "$LINENO" 5 2612fi 2613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2614$as_echo "yes" >&6; } 2615test "$program_prefix" != NONE && 2616 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2617# Use a double $ so make ignores it. 2618test "$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. 2622ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2623program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2624 2625# expand $ac_aux_dir to an absolute path 2626am_aux_dir=`cd $ac_aux_dir && pwd` 2627 2628if test x"${MISSING+set}" != xset; then 2629 case $am_aux_dir in 2630 *\ * | *\ *) 2631 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2632 *) 2633 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2634 esac 2635fi 2636# Use eval to expand $SHELL 2637if eval "$MISSING --run true"; then 2638 am_missing_run="$MISSING --run " 2639else 2640 am_missing_run= 2641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2642$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2643fi 2644 2645if test x"${install_sh}" != xset; then 2646 case $am_aux_dir in 2647 *\ * | *\ *) 2648 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2649 *) 2650 install_sh="\${SHELL} $am_aux_dir/install-sh" 2651 esac 2652fi 2653 2654# Installed binaries are usually stripped using `strip' when the user 2655# run `make install-strip'. However `strip' might not be the right 2656# tool to use in cross-compilation environments, therefore Automake 2657# will honor the `STRIP' environment variable to overrule this program. 2658if test "$cross_compiling" != no; then 2659 if test -n "$ac_tool_prefix"; then 2660 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2661set dummy ${ac_tool_prefix}strip; ac_word=$2 2662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2663$as_echo_n "checking for $ac_word... " >&6; } 2664if ${ac_cv_prog_STRIP+:} false 2665then : 2666 $as_echo_n "(cached) " >&6 2667else 2668 if test -n "$STRIP"; then 2669 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2670else 2671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2672for as_dir in $PATH 2673do 2674 IFS=$as_save_IFS 2675 test -z "$as_dir" && as_dir=. 2676 for ac_exec_ext in '' $ac_executable_extensions; do 2677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2678 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2680 break 2 2681 fi 2682done 2683 done 2684IFS=$as_save_IFS 2685 2686fi 2687fi 2688STRIP=$ac_cv_prog_STRIP 2689if test -n "$STRIP"; then 2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2691$as_echo "$STRIP" >&6; } 2692else 2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2694$as_echo "no" >&6; } 2695fi 2696 2697 2698fi 2699if test -z "$ac_cv_prog_STRIP"; then 2700 ac_ct_STRIP=$STRIP 2701 # Extract the first word of "strip", so it can be a program name with args. 2702set dummy strip; ac_word=$2 2703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2704$as_echo_n "checking for $ac_word... " >&6; } 2705if ${ac_cv_prog_ac_ct_STRIP+:} false 2706then : 2707 $as_echo_n "(cached) " >&6 2708else 2709 if test -n "$ac_ct_STRIP"; then 2710 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2711else 2712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2713for as_dir in $PATH 2714do 2715 IFS=$as_save_IFS 2716 test -z "$as_dir" && as_dir=. 2717 for ac_exec_ext in '' $ac_executable_extensions; do 2718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2719 ac_cv_prog_ac_ct_STRIP="strip" 2720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2721 break 2 2722 fi 2723done 2724 done 2725IFS=$as_save_IFS 2726 2727fi 2728fi 2729ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2730if test -n "$ac_ct_STRIP"; then 2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2732$as_echo "$ac_ct_STRIP" >&6; } 2733else 2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2735$as_echo "no" >&6; } 2736fi 2737 2738 if test "x$ac_ct_STRIP" = x; then 2739 STRIP=":" 2740 else 2741 case $cross_compiling:$ac_tool_warned in 2742yes:) 2743{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2744$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2745ac_tool_warned=yes ;; 2746esac 2747 STRIP=$ac_ct_STRIP 2748 fi 2749else 2750 STRIP="$ac_cv_prog_STRIP" 2751fi 2752 2753fi 2754INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2755 2756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2757$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2758if test -z "$MKDIR_P"; then 2759 if ${ac_cv_path_mkdir+:} false 2760then : 2761 $as_echo_n "(cached) " >&6 2762else 2763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2764for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2765do 2766 IFS=$as_save_IFS 2767 test -z "$as_dir" && as_dir=. 2768 for ac_prog in mkdir gmkdir; do 2769 for ac_exec_ext in '' $ac_executable_extensions; do 2770 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2771 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2772 'mkdir (GNU coreutils) '* | \ 2773 'mkdir (coreutils) '* | \ 2774 'mkdir (fileutils) '4.1*) 2775 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2776 break 3;; 2777 esac 2778 done 2779 done 2780 done 2781IFS=$as_save_IFS 2782 2783fi 2784 2785 test -d ./--version && rmdir ./--version 2786 if test "${ac_cv_path_mkdir+set}" = set; then 2787 MKDIR_P="$ac_cv_path_mkdir -p" 2788 else 2789 # As a last resort, use the slow shell script. Don't cache a 2790 # value for MKDIR_P within a source directory, because that will 2791 # break other packages using the cache if that directory is 2792 # removed, or if the value is a relative name. 2793 MKDIR_P="$ac_install_sh -d" 2794 fi 2795fi 2796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2797$as_echo "$MKDIR_P" >&6; } 2798 2799mkdir_p="$MKDIR_P" 2800case $mkdir_p in 2801 [\\/$]* | ?:[\\/]*) ;; 2802 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2803esac 2804 2805for ac_prog in gawk mawk nawk awk 2806do 2807 # Extract the first word of "$ac_prog", so it can be a program name with args. 2808set dummy $ac_prog; ac_word=$2 2809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2810$as_echo_n "checking for $ac_word... " >&6; } 2811if ${ac_cv_prog_AWK+:} false 2812then : 2813 $as_echo_n "(cached) " >&6 2814else 2815 if test -n "$AWK"; then 2816 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2817else 2818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2819for as_dir in $PATH 2820do 2821 IFS=$as_save_IFS 2822 test -z "$as_dir" && as_dir=. 2823 for ac_exec_ext in '' $ac_executable_extensions; do 2824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2825 ac_cv_prog_AWK="$ac_prog" 2826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2827 break 2 2828 fi 2829done 2830 done 2831IFS=$as_save_IFS 2832 2833fi 2834fi 2835AWK=$ac_cv_prog_AWK 2836if test -n "$AWK"; then 2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2838$as_echo "$AWK" >&6; } 2839else 2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2841$as_echo "no" >&6; } 2842fi 2843 2844 2845 test -n "$AWK" && break 2846done 2847 2848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2849$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2850set x ${MAKE-make} 2851ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2852if eval \${ac_cv_prog_make_${ac_make}_set+:} false 2853then : 2854 $as_echo_n "(cached) " >&6 2855else 2856 cat >conftest.make <<\_ACEOF 2857SHELL = /bin/sh 2858all: 2859 @echo '@@@%%%=$(MAKE)=@@@%%%' 2860_ACEOF 2861# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2862case `${MAKE-make} -f conftest.make 2>/dev/null` in 2863 *@@@%%%=?*=@@@%%%*) 2864 eval ac_cv_prog_make_${ac_make}_set=yes;; 2865 *) 2866 eval ac_cv_prog_make_${ac_make}_set=no;; 2867esac 2868rm -f conftest.make 2869fi 2870if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2872$as_echo "yes" >&6; } 2873 SET_MAKE= 2874else 2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2876$as_echo "no" >&6; } 2877 SET_MAKE="MAKE=${MAKE-make}" 2878fi 2879 2880rm -rf .tst 2>/dev/null 2881mkdir .tst 2>/dev/null 2882if test -d .tst; then 2883 am__leading_dot=. 2884else 2885 am__leading_dot=_ 2886fi 2887rmdir .tst 2>/dev/null 2888 2889if test "`cd $srcdir && pwd`" != "`pwd`"; then 2890 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2891 # is not polluted with repeated "-I." 2892 am__isrc=' -I$(srcdir)' 2893 # test to see if srcdir already configured 2894 if test -f $srcdir/config.status; then 2895 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2896 fi 2897fi 2898 2899# test whether we have cygpath 2900if test -z "$CYGPATH_W"; then 2901 if (cygpath --version) >/dev/null 2>/dev/null; then 2902 CYGPATH_W='cygpath -w' 2903 else 2904 CYGPATH_W=echo 2905 fi 2906fi 2907 2908 2909# Define the identity of the package. 2910 PACKAGE='libmikmod' 2911 VERSION='3.3.11' 2912 2913 2914cat >>confdefs.h <<_ACEOF 2915#define PACKAGE "$PACKAGE" 2916_ACEOF 2917 2918 2919cat >>confdefs.h <<_ACEOF 2920#define VERSION "$VERSION" 2921_ACEOF 2922 2923# Some tools Automake needs. 2924 2925ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2926 2927 2928AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2929 2930 2931AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2932 2933 2934AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2935 2936 2937MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2938 2939# We need awk for the "check" target. The system "awk" is bad on 2940# some platforms. 2941# Always define AMTAR for backward compatibility. Yes, it's still used 2942# in the wild :-( We should find a proper way to deprecate it ... 2943AMTAR='$${TAR-tar}' 2944 2945am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2956$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2957 # Check whether --enable-maintainer-mode was given. 2958if test "${enable_maintainer_mode+set}" = set 2959then : 2960 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2961else 2962 USE_MAINTAINER_MODE=no 2963fi 2964 2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2966$as_echo "$USE_MAINTAINER_MODE" >&6; } 2967 if test $USE_MAINTAINER_MODE = yes; then 2968 MAINTAINER_MODE_TRUE= 2969 MAINTAINER_MODE_FALSE='#' 2970else 2971 MAINTAINER_MODE_TRUE='#' 2972 MAINTAINER_MODE_FALSE= 2973fi 2974 2975 MAINT=$MAINTAINER_MODE_TRUE 2976 2977 2978 2979# Library versioning for libtool: CURRENT, REVISION, AGE 2980# - library source changed -> increment REVISION 2981# - interfaces added/removed/changed -> increment CURRENT, REVISION = 0 2982# - interfaces added -> increment AGE 2983# - interfaces removed -> AGE = 0 2984MIKMOD_LT_CURRENT=6 2985MIKMOD_LT_REVISION=0 2986MIKMOD_LT_AGE=3 2987 2988 2989 2990 2991 2992# =================== 2993# build target: 2994# =================== 2995 2996# Make sure we can run config.sub. 2997$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2998 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2999 3000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3001$as_echo_n "checking build system type... " >&6; } 3002if ${ac_cv_build+:} false 3003then : 3004 $as_echo_n "(cached) " >&6 3005else 3006 ac_build_alias=$build_alias 3007test "x$ac_build_alias" = x && 3008 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3009test "x$ac_build_alias" = x && 3010 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3011ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3012 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3013 3014fi 3015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3016$as_echo "$ac_cv_build" >&6; } 3017case $ac_cv_build in 3018*-*-*) ;; 3019*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3020esac 3021build=$ac_cv_build 3022ac_save_IFS=$IFS; IFS='-' 3023set x $ac_cv_build 3024shift 3025build_cpu=$1 3026build_vendor=$2 3027shift; shift 3028# Remember, the first character of IFS is used to create $*, 3029# except with old shells: 3030build_os=$* 3031IFS=$ac_save_IFS 3032case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3033 3034 3035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3036$as_echo_n "checking host system type... " >&6; } 3037if ${ac_cv_host+:} false 3038then : 3039 $as_echo_n "(cached) " >&6 3040else 3041 if test "x$host_alias" = x; then 3042 ac_cv_host=$ac_cv_build 3043else 3044 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3045 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3046fi 3047 3048fi 3049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3050$as_echo "$ac_cv_host" >&6; } 3051case $ac_cv_host in 3052*-*-*) ;; 3053*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3054esac 3055host=$ac_cv_host 3056ac_save_IFS=$IFS; IFS='-' 3057set x $ac_cv_host 3058shift 3059host_cpu=$1 3060host_vendor=$2 3061shift; shift 3062# Remember, the first character of IFS is used to create $*, 3063# except with old shells: 3064host_os=$* 3065IFS=$ac_save_IFS 3066case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3067 3068 3069 3070# these for convenience 3071libmikmod_mingw=no 3072libmikmod_cygwin=no 3073libmikmod_linux=no 3074libmikmod_darwin=no 3075libmikmod_netbsd=no 3076libmikmod_openbsd=no 3077libmikmod_os2=no 3078libmikmod_djgpp=no 3079libmikmod_amiga=no 3080libmikmod_haiku=no 3081libmikmod_irix=no 3082libmikmod_sun=no 3083libmikmod_aix=no 3084libmikmod_hpux=no 3085 3086case $host_os in 3087 mingw*) libmikmod_mingw=yes ;; 3088 cygwin*) libmikmod_cygwin=yes ;; 3089 linux*) libmikmod_linux=yes ;; 3090 darwin*) libmikmod_darwin=yes ;; 3091 netbsd*) libmikmod_netbsd=yes ;; 3092 openbsd*) libmikmod_openbsd=yes ;; 3093 emx*) libmikmod_os2=yes ;; 3094 *djgpp) libmikmod_djgpp=yes ;; 3095 amigaos*|aros*|morphos*) 3096 libmikmod_amiga=yes ;; 3097 haiku*) libmikmod_haiku=yes ;; 3098 hpux*) libmikmod_hpux=yes ;; 3099 irix*) libmikmod_irix=yes ;; 3100 aix*) 3101$as_echo "#define AIX 1" >>confdefs.h 3102 3103 libmikmod_aix=yes ;; 3104 sunos*|solaris*) 3105 if test "$cross_compiling" != yes 3106 then 3107 case `uname -r` in 3108 4*) 3109$as_echo "#define SUNOS 1" >>confdefs.h 3110 ;; 3111 esac 3112 fi 3113 libmikmod_sun=yes ;; 3114esac 3115 3116# ============================================================== 3117# libmikmod specific control variables and their default values. 3118# ============================================================== 3119 3120libmikmod_hqmixer=yes 3121 3122libmikmod_driverlist=nosound 3123 3124libmikmod_driver_af=no 3125libmikmod_driver_ahi=$libmikmod_amiga 3126libmikmod_driver_aix=$libmikmod_aix 3127libmikmod_driver_alsa=$libmikmod_linux 3128libmikmod_driver_pulseaudio=yes 3129libmikmod_driver_esd=no 3130libmikmod_driver_nas=no 3131libmikmod_driver_hp=$libmikmod_hpux 3132libmikmod_driver_sdl=no 3133libmikmod_driver_openal=no 3134libmikmod_driver_oss=yes 3135if test $libmikmod_openbsd = yes 3136then 3137 libmikmod_driver_oss=no 3138fi 3139libmikmod_driver_sam9407=no 3140libmikmod_driver_sgi=$libmikmod_irix 3141libmikmod_driver_sndio=$libmikmod_openbsd 3142libmikmod_driver_sun=$libmikmod_sun 3143if test $libmikmod_netbsd = yes 3144then 3145 libmikmod_driver_sun=yes 3146fi 3147libmikmod_driver_osx=$libmikmod_darwin 3148libmikmod_driver_mac=no 3149libmikmod_driver_win=yes 3150libmikmod_driver_ds=yes 3151libmikmod_driver_xaudio2=no 3152libmikmod_driver_ultra=no 3153libmikmod_driver_os2=$libmikmod_os2 3154libmikmod_driver_dart=$libmikmod_os2 3155libmikmod_driver_aiff=yes 3156libmikmod_driver_wav=yes 3157libmikmod_driver_raw=yes 3158libmikmod_driver_stdout=yes 3159libmikmod_driver_pipe=yes 3160# ANDROID and DRV_OSLES are not configury-integrated 3161libmikmod_driver_osles=no 3162 3163libmikmod_dynload=yes 3164libmikmod_dynload_underscores=no 3165libmikmod_debug=no 3166libmikmod_threads=yes 3167libmikmod_simd=no 3168libmikmod_altivec=no 3169libmikmod_sse2=no 3170 3171libmikmod_unix=default 3172 3173libmikmod_docs=yes 3174 3175# ========================= 3176# Configure script options. 3177# ========================= 3178 3179# Check whether --enable-hqmixer was given. 3180if test "${enable_hqmixer+set}" = set 3181then : 3182 enableval=$enable_hqmixer; if test "$enableval" = "no" 3183then 3184 libmikmod_hqmixer=no 3185else 3186 libmikmod_hqmixer=yes 3187fi 3188fi 3189 3190 3191# Check whether --enable-alldrv was given. 3192if test "${enable_alldrv+set}" = set 3193then : 3194 enableval=$enable_alldrv; if test "$enableval" = "no" 3195then 3196 libmikmod_driver_af=no 3197 libmikmod_driver_ahi=no 3198 libmikmod_driver_aix=no 3199 libmikmod_driver_alsa=no 3200 libmikmod_driver_pulseaudio=no 3201 libmikmod_driver_esd=no 3202 libmikmod_driver_nas=no 3203 libmikmod_driver_hp=no 3204 libmikmod_driver_sdl=no 3205 libmikmod_driver_openal=no 3206 libmikmod_driver_oss=no 3207 libmikmod_driver_sam9407=no 3208 libmikmod_driver_sgi=no 3209 libmikmod_driver_sndio=no 3210 libmikmod_driver_sun=no 3211 libmikmod_driver_osx=no 3212 libmikmod_driver_mac=no 3213 libmikmod_driver_win=no 3214 libmikmod_driver_ds=no 3215 libmikmod_driver_xaudio2=no 3216 libmikmod_driver_ultra=no 3217 libmikmod_driver_os2=no 3218 libmikmod_driver_dart=no 3219 libmikmod_driver_aiff=no 3220 libmikmod_driver_wav=no 3221 libmikmod_driver_raw=no 3222 libmikmod_driver_stdout=no 3223 libmikmod_driver_pipe=no 3224 libmikmod_driver_osles=no 3225fi 3226fi 3227 3228 3229# Check whether --enable-af was given. 3230if test "${enable_af+set}" = set 3231then : 3232 enableval=$enable_af; if test "$enableval" = "yes" 3233then 3234 libmikmod_driver_af=yes 3235else 3236 libmikmod_driver_af=no 3237fi 3238fi 3239 3240 3241# Check whether --enable-alsa was given. 3242if test "${enable_alsa+set}" = set 3243then : 3244 enableval=$enable_alsa; if test "$enableval" = "yes" 3245then 3246 libmikmod_driver_alsa=$libmikmod_linux 3247else 3248 libmikmod_driver_alsa=no 3249fi 3250fi 3251 3252 3253# Check whether --enable-oss was given. 3254if test "${enable_oss+set}" = set 3255then : 3256 enableval=$enable_oss; if test "$enableval" = "yes" 3257then 3258 libmikmod_driver_oss=yes 3259else 3260 libmikmod_driver_oss=no 3261fi 3262fi 3263 3264 3265# Check whether --enable-sunaudio was given. 3266if test "${enable_sunaudio+set}" = set 3267then : 3268 enableval=$enable_sunaudio; if test "$enableval" = "yes" 3269then 3270 libmikmod_driver_sun=yes 3271else 3272 libmikmod_driver_sun=no 3273fi 3274fi 3275 3276case $host_os in 3277 netbsd*|openbsd*|sunos*|solaris*) ;; 3278 *) libmikmod_driver_sun=no ;; 3279esac 3280 3281# Check whether --enable-sndio was given. 3282if test "${enable_sndio+set}" = set 3283then : 3284 enableval=$enable_sndio; if test "$enableval" = "yes" 3285then 3286 libmikmod_driver_sndio=yes 3287else 3288 libmikmod_driver_sndio=no 3289fi 3290fi 3291 3292case $host_os in 3293# hey, a linux port at sndio.org .. 3294 openbsd*|linux*) ;; 3295 *) libmikmod_driver_sndio=no ;; 3296esac 3297 3298# Check whether --enable-aix was given. 3299if test "${enable_aix+set}" = set 3300then : 3301 enableval=$enable_aix; if test "$enableval" = "yes" 3302then 3303 libmikmod_driver_aix=$libmikmod_aix 3304else 3305 libmikmod_driver_aix=no 3306fi 3307fi 3308 3309 3310# Check whether --enable-sgi was given. 3311if test "${enable_sgi+set}" = set 3312then : 3313 enableval=$enable_sgi; if test "$enableval" = "yes" 3314then 3315 libmikmod_driver_sgi=$libmikmod_irix 3316else 3317 libmikmod_driver_sgi=no 3318fi 3319fi 3320 3321 3322# Check whether --enable-hp was given. 3323if test "${enable_hp+set}" = set 3324then : 3325 enableval=$enable_hp; if test "$enableval" = "yes" 3326then 3327 libmikmod_driver_hp=$libmikmod_hpux 3328else 3329 libmikmod_driver_hp=no 3330fi 3331fi 3332 3333 3334# Check whether --enable-ahi was given. 3335if test "${enable_ahi+set}" = set 3336then : 3337 enableval=$enable_ahi; if test "$enableval" = "yes" 3338then 3339 libmikmod_driver_ahi=$libmikmod_amiga 3340else 3341 libmikmod_driver_ahi=no 3342fi 3343fi 3344 3345 3346# Check whether --enable-pulseaudio was given. 3347if test "${enable_pulseaudio+set}" = set 3348then : 3349 enableval=$enable_pulseaudio; if test "$enableval" = "yes" 3350then 3351 libmikmod_driver_pulseaudio=yes 3352else 3353 libmikmod_driver_pulseaudio=no 3354fi 3355fi 3356 3357 3358# Check whether --enable-esd was given. 3359if test "${enable_esd+set}" = set 3360then : 3361 enableval=$enable_esd; if test "$enableval" = "yes" 3362then 3363 libmikmod_driver_esd=yes 3364else 3365 libmikmod_driver_esd=no 3366fi 3367fi 3368 3369 3370# Check whether --enable-nas was given. 3371if test "${enable_nas+set}" = set 3372then : 3373 enableval=$enable_nas; if test "$enableval" = "yes" 3374then 3375 libmikmod_driver_nas=yes 3376else 3377 libmikmod_driver_nas=no 3378fi 3379fi 3380 3381 3382case $host_os in 3383 mingw*|emx*|*djgpp|amigaos*|aros*|morphos*) 3384 libmikmod_driver_oss=no 3385 libmikmod_driver_esd=no 3386 libmikmod_driver_nas=no 3387 libmikmod_driver_af=no 3388 # windows, dos, os2 don't need sdl, stdout, or pipe. 3389 # so default to disabled, but still user-selectable. 3390 libmikmod_driver_pipe=no 3391 libmikmod_driver_pulseaudio=no 3392 libmikmod_driver_stdout=no 3393 libmikmod_driver_sdl=no ;; 3394 cygwin*|darwin*) 3395 libmikmod_driver_oss=no 3396 libmikmod_driver_esd=no 3397 libmikmod_driver_nas=no 3398 libmikmod_driver_af=no 3399 libmikmod_driver_pulseaudio=no 3400 # cygwin, osx don't need sdl. 3401 libmikmod_driver_sdl=no ;; 3402 *) ;; 3403esac 3404 3405# Check whether --enable-aiff was given. 3406if test "${enable_aiff+set}" = set 3407then : 3408 enableval=$enable_aiff; if test "$enableval" = "yes" 3409then 3410 libmikmod_driver_aiff=yes 3411else 3412 libmikmod_driver_aiff=no 3413fi 3414fi 3415 3416 3417# Check whether --enable-wav was given. 3418if test "${enable_wav+set}" = set 3419then : 3420 enableval=$enable_wav; if test "$enableval" = "yes" 3421then 3422 libmikmod_driver_wav=yes 3423else 3424 libmikmod_driver_wav=no 3425fi 3426fi 3427 3428 3429# Check whether --enable-raw was given. 3430if test "${enable_raw+set}" = set 3431then : 3432 enableval=$enable_raw; if test "$enableval" = "yes" 3433then 3434 libmikmod_driver_raw=yes 3435else 3436 libmikmod_driver_raw=no 3437fi 3438fi 3439 3440 3441# Check whether --enable-stdout was given. 3442if test "${enable_stdout+set}" = set 3443then : 3444 enableval=$enable_stdout; if test "$enableval" = "yes" 3445then 3446 libmikmod_driver_stdout=yes 3447else 3448 libmikmod_driver_stdout=no 3449fi 3450fi 3451 3452 3453# Check whether --enable-pipe was given. 3454if test "${enable_pipe+set}" = set 3455then : 3456 enableval=$enable_pipe; if test "$enableval" = "yes" 3457then 3458 libmikmod_driver_pipe=yes 3459else 3460 libmikmod_driver_pipe=no 3461fi 3462fi 3463 3464 3465# Check whether --enable-sdl was given. 3466if test "${enable_sdl+set}" = set 3467then : 3468 enableval=$enable_sdl; if test "$enableval" = "yes" 3469then 3470 libmikmod_driver_sdl=yes 3471else 3472 libmikmod_driver_sdl=no 3473fi 3474fi 3475 3476 3477try_sdl2=yes 3478# Check whether --enable-sdl2 was given. 3479if test "${enable_sdl2+set}" = set 3480then : 3481 enableval=$enable_sdl2; if test "$enableval" = "yes" 3482then 3483 try_sdl2=yes 3484else 3485 try_sdl2=no 3486fi 3487fi 3488 3489 3490# Check whether --enable-openal was given. 3491if test "${enable_openal+set}" = set 3492then : 3493 enableval=$enable_openal; if test "$enableval" = "yes" 3494then 3495 libmikmod_driver_openal=yes 3496else 3497 libmikmod_driver_openal=no 3498fi 3499fi 3500 3501 3502# Check whether --enable-osx was given. 3503if test "${enable_osx+set}" = set 3504then : 3505 enableval=$enable_osx; if test "$enableval" = "yes" 3506then 3507 libmikmod_driver_osx=$libmikmod_darwin 3508else 3509 libmikmod_driver_osx=no 3510fi 3511fi 3512 3513 3514# Check whether --enable-mac was given. 3515if test "${enable_mac+set}" = set 3516then : 3517 enableval=$enable_mac; if test "$enableval" = "yes" 3518then 3519 libmikmod_driver_mac=$libmikmod_darwin 3520else 3521 libmikmod_driver_mac=no 3522fi 3523fi 3524 3525 3526# Check whether --enable-win was given. 3527if test "${enable_win+set}" = set 3528then : 3529 enableval=$enable_win; if test "$enableval" = "yes" 3530then 3531 libmikmod_driver_win=yes 3532else 3533 libmikmod_driver_win=no 3534fi 3535fi 3536 3537 3538# Check whether --enable-ds was given. 3539if test "${enable_ds+set}" = set 3540then : 3541 enableval=$enable_ds; if test "$enableval" = "yes" 3542then 3543 libmikmod_driver_ds=yes 3544else 3545 libmikmod_driver_ds=no 3546fi 3547fi 3548 3549 3550# Check whether --enable-xaudio2 was given. 3551if test "${enable_xaudio2+set}" = set 3552then : 3553 enableval=$enable_xaudio2; if test "$enableval" = "yes" 3554then 3555 libmikmod_driver_xaudio2=yes 3556else 3557 libmikmod_driver_xaudio2=no 3558fi 3559fi 3560 3561 3562use_xaudio28=no 3563# Check whether --enable-xaudio28 was given. 3564if test "${enable_xaudio28+set}" = set 3565then : 3566 enableval=$enable_xaudio28; if test "$enableval" = "yes" 3567then 3568 use_xaudio28=yes 3569else 3570 use_xaudio28=no 3571fi 3572fi 3573 3574 3575# Check whether --enable-os2 was given. 3576if test "${enable_os2+set}" = set 3577then : 3578 enableval=$enable_os2; if test "$enableval" = "yes" 3579then 3580 libmikmod_driver_os2=$libmikmod_os2 3581else 3582 libmikmod_driver_os2=no 3583fi 3584fi 3585 3586 3587# Check whether --enable-dart was given. 3588if test "${enable_dart+set}" = set 3589then : 3590 enableval=$enable_dart; if test "$enableval" = "yes" 3591then 3592 libmikmod_driver_dart=$libmikmod_os2 3593else 3594 libmikmod_driver_dart=no 3595fi 3596fi 3597 3598 3599# Check whether --enable-sam9407 was given. 3600if test "${enable_sam9407+set}" = set 3601then : 3602 enableval=$enable_sam9407; if test "$enableval" = "yes" 3603then 3604 libmikmod_driver_sam9407=$libmikmod_linux 3605else 3606 libmikmod_driver_sam9407=no 3607fi 3608fi 3609 3610 3611# Check whether --enable-ultra was given. 3612if test "${enable_ultra+set}" = set 3613then : 3614 enableval=$enable_ultra; if test "$enableval" = "yes" 3615then 3616 libmikmod_driver_ultra=$libmikmod_linux 3617else 3618 libmikmod_driver_ultra=no 3619fi 3620fi 3621 3622 3623# Check whether --enable-dl was given. 3624if test "${enable_dl+set}" = set 3625then : 3626 enableval=$enable_dl; if test "$enableval" = "yes" 3627then 3628 libmikmod_dynload=yes 3629else 3630 libmikmod_dynload=no 3631fi 3632fi 3633 3634 3635# Check whether --enable-debug was given. 3636if test "${enable_debug+set}" = set 3637then : 3638 enableval=$enable_debug; if test "$enableval" = "yes" 3639then 3640 libmikmod_debug=yes 3641else 3642 libmikmod_debug=no 3643fi 3644fi 3645 3646 3647# Check whether --enable-threads was given. 3648if test "${enable_threads+set}" = set 3649then : 3650 enableval=$enable_threads; if test "$enableval" = "yes" 3651then 3652 libmikmod_threads=yes 3653else 3654 libmikmod_threads=no 3655fi 3656fi 3657 3658 3659# Check whether --enable-simd was given. 3660if test "${enable_simd+set}" = set 3661then : 3662 enableval=$enable_simd; if test "$enableval" = "yes" 3663then 3664 libmikmod_simd=yes 3665else 3666 libmikmod_simd=no 3667fi 3668fi 3669 3670 3671# Check whether --enable-unix was given. 3672if test "${enable_unix+set}" = set 3673then : 3674 enableval=$enable_unix; if test "$enableval" = "yes" 3675then 3676 libmikmod_unix=1 3677elif test "$enableval" = "no" 3678 then 3679 libmikmod_unix=0 3680else 3681 libmikmod_unix=default 3682fi 3683fi 3684 3685 3686# Check whether --enable-doc was given. 3687if test "${enable_doc+set}" = set 3688then : 3689 enableval=$enable_doc; if test "$enableval" = "yes" 3690then 3691 libmikmod_docs=yes 3692else 3693 libmikmod_docs=no 3694fi 3695fi 3696 3697 3698# =================== 3699# Check for programs. 3700# =================== 3701 3702ac_ext=c 3703ac_cpp='$CPP $CPPFLAGS' 3704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3706ac_compiler_gnu=$ac_cv_c_compiler_gnu 3707if test -n "$ac_tool_prefix"; then 3708 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3709set dummy ${ac_tool_prefix}gcc; ac_word=$2 3710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3711$as_echo_n "checking for $ac_word... " >&6; } 3712if ${ac_cv_prog_CC+:} false 3713then : 3714 $as_echo_n "(cached) " >&6 3715else 3716 if test -n "$CC"; then 3717 ac_cv_prog_CC="$CC" # Let the user override the test. 3718else 3719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3720for as_dir in $PATH 3721do 3722 IFS=$as_save_IFS 3723 test -z "$as_dir" && as_dir=. 3724 for ac_exec_ext in '' $ac_executable_extensions; do 3725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3726 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3728 break 2 3729 fi 3730done 3731 done 3732IFS=$as_save_IFS 3733 3734fi 3735fi 3736CC=$ac_cv_prog_CC 3737if test -n "$CC"; then 3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3739$as_echo "$CC" >&6; } 3740else 3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3742$as_echo "no" >&6; } 3743fi 3744 3745 3746fi 3747if test -z "$ac_cv_prog_CC"; then 3748 ac_ct_CC=$CC 3749 # Extract the first word of "gcc", so it can be a program name with args. 3750set dummy gcc; ac_word=$2 3751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3752$as_echo_n "checking for $ac_word... " >&6; } 3753if ${ac_cv_prog_ac_ct_CC+:} false 3754then : 3755 $as_echo_n "(cached) " >&6 3756else 3757 if test -n "$ac_ct_CC"; then 3758 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3759else 3760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3761for as_dir in $PATH 3762do 3763 IFS=$as_save_IFS 3764 test -z "$as_dir" && as_dir=. 3765 for ac_exec_ext in '' $ac_executable_extensions; do 3766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3767 ac_cv_prog_ac_ct_CC="gcc" 3768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3769 break 2 3770 fi 3771done 3772 done 3773IFS=$as_save_IFS 3774 3775fi 3776fi 3777ac_ct_CC=$ac_cv_prog_ac_ct_CC 3778if test -n "$ac_ct_CC"; then 3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3780$as_echo "$ac_ct_CC" >&6; } 3781else 3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3783$as_echo "no" >&6; } 3784fi 3785 3786 if test "x$ac_ct_CC" = x; then 3787 CC="" 3788 else 3789 case $cross_compiling:$ac_tool_warned in 3790yes:) 3791{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3792$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3793ac_tool_warned=yes ;; 3794esac 3795 CC=$ac_ct_CC 3796 fi 3797else 3798 CC="$ac_cv_prog_CC" 3799fi 3800 3801if test -z "$CC"; then 3802 if test -n "$ac_tool_prefix"; then 3803 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3804set dummy ${ac_tool_prefix}cc; ac_word=$2 3805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3806$as_echo_n "checking for $ac_word... " >&6; } 3807if ${ac_cv_prog_CC+:} false 3808then : 3809 $as_echo_n "(cached) " >&6 3810else 3811 if test -n "$CC"; then 3812 ac_cv_prog_CC="$CC" # Let the user override the test. 3813else 3814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3815for as_dir in $PATH 3816do 3817 IFS=$as_save_IFS 3818 test -z "$as_dir" && as_dir=. 3819 for ac_exec_ext in '' $ac_executable_extensions; do 3820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3821 ac_cv_prog_CC="${ac_tool_prefix}cc" 3822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3823 break 2 3824 fi 3825done 3826 done 3827IFS=$as_save_IFS 3828 3829fi 3830fi 3831CC=$ac_cv_prog_CC 3832if test -n "$CC"; then 3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3834$as_echo "$CC" >&6; } 3835else 3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3837$as_echo "no" >&6; } 3838fi 3839 3840 3841 fi 3842fi 3843if test -z "$CC"; then 3844 # Extract the first word of "cc", so it can be a program name with args. 3845set dummy cc; ac_word=$2 3846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3847$as_echo_n "checking for $ac_word... " >&6; } 3848if ${ac_cv_prog_CC+:} false 3849then : 3850 $as_echo_n "(cached) " >&6 3851else 3852 if test -n "$CC"; then 3853 ac_cv_prog_CC="$CC" # Let the user override the test. 3854else 3855 ac_prog_rejected=no 3856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3857for as_dir in $PATH 3858do 3859 IFS=$as_save_IFS 3860 test -z "$as_dir" && as_dir=. 3861 for ac_exec_ext in '' $ac_executable_extensions; do 3862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3863 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3864 ac_prog_rejected=yes 3865 continue 3866 fi 3867 ac_cv_prog_CC="cc" 3868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3869 break 2 3870 fi 3871done 3872 done 3873IFS=$as_save_IFS 3874 3875if test $ac_prog_rejected = yes; then 3876 # We found a bogon in the path, so make sure we never use it. 3877 set dummy $ac_cv_prog_CC 3878 shift 3879 if test $# != 0; then 3880 # We chose a different compiler from the bogus one. 3881 # However, it has the same basename, so the bogon will be chosen 3882 # first if we set CC to just the basename; use the full file name. 3883 shift 3884 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3885 fi 3886fi 3887fi 3888fi 3889CC=$ac_cv_prog_CC 3890if test -n "$CC"; then 3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3892$as_echo "$CC" >&6; } 3893else 3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3895$as_echo "no" >&6; } 3896fi 3897 3898 3899fi 3900if test -z "$CC"; then 3901 if test -n "$ac_tool_prefix"; then 3902 for ac_prog in cl.exe 3903 do 3904 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3905set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3907$as_echo_n "checking for $ac_word... " >&6; } 3908if ${ac_cv_prog_CC+:} false 3909then : 3910 $as_echo_n "(cached) " >&6 3911else 3912 if test -n "$CC"; then 3913 ac_cv_prog_CC="$CC" # Let the user override the test. 3914else 3915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3916for as_dir in $PATH 3917do 3918 IFS=$as_save_IFS 3919 test -z "$as_dir" && as_dir=. 3920 for ac_exec_ext in '' $ac_executable_extensions; do 3921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3922 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3924 break 2 3925 fi 3926done 3927 done 3928IFS=$as_save_IFS 3929 3930fi 3931fi 3932CC=$ac_cv_prog_CC 3933if test -n "$CC"; then 3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3935$as_echo "$CC" >&6; } 3936else 3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3938$as_echo "no" >&6; } 3939fi 3940 3941 3942 test -n "$CC" && break 3943 done 3944fi 3945if test -z "$CC"; then 3946 ac_ct_CC=$CC 3947 for ac_prog in cl.exe 3948do 3949 # Extract the first word of "$ac_prog", so it can be a program name with args. 3950set dummy $ac_prog; ac_word=$2 3951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3952$as_echo_n "checking for $ac_word... " >&6; } 3953if ${ac_cv_prog_ac_ct_CC+:} false 3954then : 3955 $as_echo_n "(cached) " >&6 3956else 3957 if test -n "$ac_ct_CC"; then 3958 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3959else 3960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3961for as_dir in $PATH 3962do 3963 IFS=$as_save_IFS 3964 test -z "$as_dir" && as_dir=. 3965 for ac_exec_ext in '' $ac_executable_extensions; do 3966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3967 ac_cv_prog_ac_ct_CC="$ac_prog" 3968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3969 break 2 3970 fi 3971done 3972 done 3973IFS=$as_save_IFS 3974 3975fi 3976fi 3977ac_ct_CC=$ac_cv_prog_ac_ct_CC 3978if test -n "$ac_ct_CC"; then 3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3980$as_echo "$ac_ct_CC" >&6; } 3981else 3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3983$as_echo "no" >&6; } 3984fi 3985 3986 3987 test -n "$ac_ct_CC" && break 3988done 3989 3990 if test "x$ac_ct_CC" = x; then 3991 CC="" 3992 else 3993 case $cross_compiling:$ac_tool_warned in 3994yes:) 3995{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3996$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3997ac_tool_warned=yes ;; 3998esac 3999 CC=$ac_ct_CC 4000 fi 4001fi 4002 4003fi 4004 4005 4006test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4007$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4008as_fn_error $? "no acceptable C compiler found in \$PATH 4009See \`config.log' for more details" "$LINENO" 5; } 4010 4011# Provide some information about the compiler. 4012$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4013set X $ac_compile 4014ac_compiler=$2 4015for ac_option in --version -v -V -qversion; do 4016 { { ac_try="$ac_compiler $ac_option >&5" 4017case "(($ac_try" in 4018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4019 *) ac_try_echo=$ac_try;; 4020esac 4021eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4022$as_echo "$ac_try_echo"; } >&5 4023 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4024 ac_status=$? 4025 if test -s conftest.err; then 4026 sed '10a\ 4027... rest of stderr output deleted ... 4028 10q' conftest.err >conftest.er1 4029 cat conftest.er1 >&5 4030 fi 4031 rm -f conftest.er1 conftest.err 4032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4033 test $ac_status = 0; } 4034done 4035 4036cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4037/* end confdefs.h. */ 4038 4039int 4040main (void) 4041{ 4042 4043 ; 4044 return 0; 4045} 4046_ACEOF 4047ac_clean_files_save=$ac_clean_files 4048ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4049# Try to create an executable without -o first, disregard a.out. 4050# It will help us diagnose broken compilers, and finding out an intuition 4051# of exeext. 4052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4053$as_echo_n "checking whether the C compiler works... " >&6; } 4054ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4055 4056# The possible output files: 4057ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4058 4059ac_rmfiles= 4060for ac_file in $ac_files 4061do 4062 case $ac_file in 4063 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4064 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4065 esac 4066done 4067rm -f $ac_rmfiles 4068 4069if { { ac_try="$ac_link_default" 4070case "(($ac_try" in 4071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4072 *) ac_try_echo=$ac_try;; 4073esac 4074eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4075$as_echo "$ac_try_echo"; } >&5 4076 (eval "$ac_link_default") 2>&5 4077 ac_status=$? 4078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4079 test $ac_status = 0; } 4080then : 4081 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4082# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4083# in a Makefile. We should not override ac_cv_exeext if it was cached, 4084# so that the user can short-circuit this test for compilers unknown to 4085# Autoconf. 4086for ac_file in $ac_files '' 4087do 4088 test -f "$ac_file" || continue 4089 case $ac_file in 4090 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4091 ;; 4092 [ab].out ) 4093 # We found the default executable, but exeext='' is most 4094 # certainly right. 4095 break;; 4096 *.* ) 4097 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4098 then :; else 4099 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4100 fi 4101 # We set ac_cv_exeext here because the later test for it is not 4102 # safe: cross compilers may not add the suffix if given an `-o' 4103 # argument, so we may need to know it at that point already. 4104 # Even if this section looks crufty: it has the advantage of 4105 # actually working. 4106 break;; 4107 * ) 4108 break;; 4109 esac 4110done 4111test "$ac_cv_exeext" = no && ac_cv_exeext= 4112 4113else 4114 ac_file='' 4115fi 4116if test -z "$ac_file" 4117then : 4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4119$as_echo "no" >&6; } 4120$as_echo "$as_me: failed program was:" >&5 4121sed 's/^/| /' conftest.$ac_ext >&5 4122 4123{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4124$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4125as_fn_error 77 "C compiler cannot create executables 4126See \`config.log' for more details" "$LINENO" 5; } 4127else 4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4129$as_echo "yes" >&6; } 4130fi 4131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4132$as_echo_n "checking for C compiler default output file name... " >&6; } 4133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4134$as_echo "$ac_file" >&6; } 4135ac_exeext=$ac_cv_exeext 4136 4137rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4138ac_clean_files=$ac_clean_files_save 4139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4140$as_echo_n "checking for suffix of executables... " >&6; } 4141if { { ac_try="$ac_link" 4142case "(($ac_try" in 4143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4144 *) ac_try_echo=$ac_try;; 4145esac 4146eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4147$as_echo "$ac_try_echo"; } >&5 4148 (eval "$ac_link") 2>&5 4149 ac_status=$? 4150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4151 test $ac_status = 0; } 4152then : 4153 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4154# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4155# work properly (i.e., refer to `conftest.exe'), while it won't with 4156# `rm'. 4157for ac_file in conftest.exe conftest conftest.*; do 4158 test -f "$ac_file" || continue 4159 case $ac_file in 4160 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4161 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4162 break;; 4163 * ) break;; 4164 esac 4165done 4166else 4167 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4168$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4169as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4170See \`config.log' for more details" "$LINENO" 5; } 4171fi 4172rm -f conftest conftest$ac_cv_exeext 4173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4174$as_echo "$ac_cv_exeext" >&6; } 4175 4176rm -f conftest.$ac_ext 4177EXEEXT=$ac_cv_exeext 4178ac_exeext=$EXEEXT 4179cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4180/* end confdefs.h. */ 4181#include <stdio.h> 4182int 4183main (void) 4184{ 4185FILE *f = fopen ("conftest.out", "w"); 4186 return ferror (f) || fclose (f) != 0; 4187 4188 ; 4189 return 0; 4190} 4191_ACEOF 4192ac_clean_files="$ac_clean_files conftest.out" 4193# Check that the compiler produces executables we can run. If not, either 4194# the compiler is broken, or we cross compile. 4195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4196$as_echo_n "checking whether we are cross compiling... " >&6; } 4197if test "$cross_compiling" = maybe && test "x$build" != "x$host"; then 4198 cross_compiling=yes 4199elif test "$cross_compiling" != yes; then 4200 { { ac_try="$ac_link" 4201case "(($ac_try" in 4202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4203 *) ac_try_echo=$ac_try;; 4204esac 4205eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4206$as_echo "$ac_try_echo"; } >&5 4207 (eval "$ac_link") 2>&5 4208 ac_status=$? 4209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4210 test $ac_status = 0; } 4211 if { ac_try='./conftest$ac_cv_exeext' 4212 { { case "(($ac_try" in 4213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4214 *) ac_try_echo=$ac_try;; 4215esac 4216eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4217$as_echo "$ac_try_echo"; } >&5 4218 (eval "$ac_try") 2>&5 4219 ac_status=$? 4220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4221 test $ac_status = 0; }; }; then 4222 cross_compiling=no 4223 else 4224 if test "$cross_compiling" = maybe; then 4225 cross_compiling=yes 4226 else 4227 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4228$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4229as_fn_error $? "cannot run C compiled programs. 4230If you meant to cross compile, use \`--host'. 4231See \`config.log' for more details" "$LINENO" 5; } 4232 fi 4233 fi 4234fi 4235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4236$as_echo "$cross_compiling" >&6; } 4237 4238rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4239ac_clean_files=$ac_clean_files_save 4240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4241$as_echo_n "checking for suffix of object files... " >&6; } 4242if ${ac_cv_objext+:} false 4243then : 4244 $as_echo_n "(cached) " >&6 4245else 4246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4247/* end confdefs.h. */ 4248 4249int 4250main (void) 4251{ 4252 4253 ; 4254 return 0; 4255} 4256_ACEOF 4257rm -f conftest.o conftest.obj 4258if { { ac_try="$ac_compile" 4259case "(($ac_try" in 4260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4261 *) ac_try_echo=$ac_try;; 4262esac 4263eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4264$as_echo "$ac_try_echo"; } >&5 4265 (eval "$ac_compile") 2>&5 4266 ac_status=$? 4267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4268 test $ac_status = 0; } 4269then : 4270 for ac_file in conftest.o conftest.obj conftest.*; do 4271 test -f "$ac_file" || continue; 4272 case $ac_file in 4273 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4274 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4275 break;; 4276 esac 4277done 4278else 4279 $as_echo "$as_me: failed program was:" >&5 4280sed 's/^/| /' conftest.$ac_ext >&5 4281 4282{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4283$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4284as_fn_error $? "cannot compute suffix of object files: cannot compile 4285See \`config.log' for more details" "$LINENO" 5; } 4286fi 4287rm -f conftest.$ac_cv_objext conftest.$ac_ext 4288fi 4289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4290$as_echo "$ac_cv_objext" >&6; } 4291OBJEXT=$ac_cv_objext 4292ac_objext=$OBJEXT 4293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4294$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4295if ${ac_cv_c_compiler_gnu+:} false 4296then : 4297 $as_echo_n "(cached) " >&6 4298else 4299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4300/* end confdefs.h. */ 4301 4302int 4303main (void) 4304{ 4305#ifndef __GNUC__ 4306 choke me 4307#endif 4308 4309 ; 4310 return 0; 4311} 4312_ACEOF 4313if ac_fn_c_try_compile "$LINENO" 4314then : 4315 ac_compiler_gnu=yes 4316else 4317 ac_compiler_gnu=no 4318fi 4319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4320ac_cv_c_compiler_gnu=$ac_compiler_gnu 4321 4322fi 4323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4324$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4325if test $ac_compiler_gnu = yes; then 4326 GCC=yes 4327else 4328 GCC= 4329fi 4330ac_test_CFLAGS=${CFLAGS+set} 4331ac_save_CFLAGS=$CFLAGS 4332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4333$as_echo_n "checking whether $CC accepts -g... " >&6; } 4334if ${ac_cv_prog_cc_g+:} false 4335then : 4336 $as_echo_n "(cached) " >&6 4337else 4338 ac_save_c_werror_flag=$ac_c_werror_flag 4339 ac_c_werror_flag=yes 4340 ac_cv_prog_cc_g=no 4341 CFLAGS="-g" 4342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4343/* end confdefs.h. */ 4344 4345int 4346main (void) 4347{ 4348 4349 ; 4350 return 0; 4351} 4352_ACEOF 4353if ac_fn_c_try_compile "$LINENO" 4354then : 4355 ac_cv_prog_cc_g=yes 4356else 4357 CFLAGS="" 4358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4359/* end confdefs.h. */ 4360 4361int 4362main (void) 4363{ 4364 4365 ; 4366 return 0; 4367} 4368_ACEOF 4369if ac_fn_c_try_compile "$LINENO" 4370then : 4371 4372else 4373 ac_c_werror_flag=$ac_save_c_werror_flag 4374 CFLAGS="-g" 4375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4376/* end confdefs.h. */ 4377 4378int 4379main (void) 4380{ 4381 4382 ; 4383 return 0; 4384} 4385_ACEOF 4386if ac_fn_c_try_compile "$LINENO" 4387then : 4388 ac_cv_prog_cc_g=yes 4389fi 4390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4391fi 4392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4393fi 4394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4395 ac_c_werror_flag=$ac_save_c_werror_flag 4396fi 4397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4398$as_echo "$ac_cv_prog_cc_g" >&6; } 4399if test "$ac_test_CFLAGS" = set; then 4400 CFLAGS=$ac_save_CFLAGS 4401elif test $ac_cv_prog_cc_g = yes; then 4402 if test "$GCC" = yes; then 4403 CFLAGS="-g -O2" 4404 else 4405 CFLAGS="-g" 4406 fi 4407else 4408 if test "$GCC" = yes; then 4409 CFLAGS="-O2" 4410 else 4411 CFLAGS= 4412 fi 4413fi 4414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4415$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4416if ${ac_cv_prog_cc_c89+:} false 4417then : 4418 $as_echo_n "(cached) " >&6 4419else 4420 ac_cv_prog_cc_c89=no 4421ac_save_CC=$CC 4422cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4423/* end confdefs.h. */ 4424#include <stdarg.h> 4425#include <stdio.h> 4426struct stat; 4427/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4428struct buf { int x; }; 4429FILE * (*rcsopen) (struct buf *, struct stat *, int); 4430static char *e (p, i) 4431 char **p; 4432 int i; 4433{ 4434 return p[i]; 4435} 4436static char *f (char * (*g) (char **, int), char **p, ...) 4437{ 4438 char *s; 4439 va_list v; 4440 va_start (v,p); 4441 s = g (p, va_arg (v,int)); 4442 va_end (v); 4443 return s; 4444} 4445 4446/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4447 function prototypes and stuff, but not '\xHH' hex character constants. 4448 These don't provoke an error unfortunately, instead are silently treated 4449 as 'x'. The following induces an error, until -std is added to get 4450 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4451 array size at least. It's necessary to write '\x00'==0 to get something 4452 that's true only with -std. */ 4453int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4454 4455/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4456 inside strings and character constants. */ 4457#define FOO(x) 'x' 4458int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4459 4460int test (int i, double x); 4461struct s1 {int (*f) (int a);}; 4462struct s2 {int (*f) (double a);}; 4463int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4464int argc; 4465char **argv; 4466int 4467main (void) 4468{ 4469return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4470 ; 4471 return 0; 4472} 4473_ACEOF 4474for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4475 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4476do 4477 CC="$ac_save_CC $ac_arg" 4478 if ac_fn_c_try_compile "$LINENO" 4479then : 4480 ac_cv_prog_cc_c89=$ac_arg 4481fi 4482rm -f core conftest.err conftest.$ac_objext 4483 test "x$ac_cv_prog_cc_c89" != "xno" && break 4484done 4485rm -f conftest.$ac_ext 4486CC=$ac_save_CC 4487 4488fi 4489# AC_CACHE_VAL 4490case "x$ac_cv_prog_cc_c89" in 4491 x) 4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4493$as_echo "none needed" >&6; } ;; 4494 xno) 4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4496$as_echo "unsupported" >&6; } ;; 4497 *) 4498 CC="$CC $ac_cv_prog_cc_c89" 4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4500$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4501esac 4502if test "x$ac_cv_prog_cc_c89" != xno 4503then : 4504 4505fi 4506 4507ac_ext=c 4508ac_cpp='$CPP $CPPFLAGS' 4509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4511ac_compiler_gnu=$ac_cv_c_compiler_gnu 4512DEPDIR="${am__leading_dot}deps" 4513 4514ac_config_commands="$ac_config_commands depfiles" 4515 4516 4517am_make=${MAKE-make} 4518cat > confinc << 'END' 4519am__doit: 4520 @echo this is the am__doit target 4521.PHONY: am__doit 4522END 4523# If we don't find an include directive, just comment out the code. 4524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4525$as_echo_n "checking for style of include used by $am_make... " >&6; } 4526am__include="#" 4527am__quote= 4528_am_result=none 4529# First try GNU make style include. 4530echo "include confinc" > confmf 4531# Ignore all kinds of additional output from `make'. 4532case `$am_make -s -f confmf 2> /dev/null` in #( 4533*the\ am__doit\ target*) 4534 am__include=include 4535 am__quote= 4536 _am_result=GNU 4537 ;; 4538esac 4539# Now try BSD make style include. 4540if test "$am__include" = "#"; then 4541 echo '.include "confinc"' > confmf 4542 case `$am_make -s -f confmf 2> /dev/null` in #( 4543 *the\ am__doit\ target*) 4544 am__include=.include 4545 am__quote="\"" 4546 _am_result=BSD 4547 ;; 4548 esac 4549fi 4550 4551 4552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4553$as_echo "$_am_result" >&6; } 4554rm -f confinc confmf 4555 4556# Check whether --enable-dependency-tracking was given. 4557if test "${enable_dependency_tracking+set}" = set 4558then : 4559 enableval=$enable_dependency_tracking; 4560fi 4561 4562if test "x$enable_dependency_tracking" != xno; then 4563 am_depcomp="$ac_aux_dir/depcomp" 4564 AMDEPBACKSLASH='\' 4565 am__nodep='_no' 4566fi 4567 if test "x$enable_dependency_tracking" != xno; then 4568 AMDEP_TRUE= 4569 AMDEP_FALSE='#' 4570else 4571 AMDEP_TRUE='#' 4572 AMDEP_FALSE= 4573fi 4574 4575 4576 4577depcc="$CC" am_compiler_list= 4578 4579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4580$as_echo_n "checking dependency style of $depcc... " >&6; } 4581if ${am_cv_CC_dependencies_compiler_type+:} false 4582then : 4583 $as_echo_n "(cached) " >&6 4584else 4585 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4586 # We make a subdir and do the tests there. Otherwise we can end up 4587 # making bogus files that we don't know about and never remove. For 4588 # instance it was reported that on HP-UX the gcc test will end up 4589 # making a dummy file named `D' -- because `-MD' means `put the output 4590 # in D'. 4591 rm -rf conftest.dir 4592 mkdir conftest.dir 4593 # Copy depcomp to subdir because otherwise we won't find it if we're 4594 # using a relative directory. 4595 cp "$am_depcomp" conftest.dir 4596 cd conftest.dir 4597 # We will build objects and dependencies in a subdirectory because 4598 # it helps to detect inapplicable dependency modes. For instance 4599 # both Tru64's cc and ICC support -MD to output dependencies as a 4600 # side effect of compilation, but ICC will put the dependencies in 4601 # the current directory while Tru64 will put them in the object 4602 # directory. 4603 mkdir sub 4604 4605 am_cv_CC_dependencies_compiler_type=none 4606 if test "$am_compiler_list" = ""; then 4607 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4608 fi 4609 am__universal=false 4610 case " $depcc " in #( 4611 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4612 esac 4613 4614 for depmode in $am_compiler_list; do 4615 # Setup a source with many dependencies, because some compilers 4616 # like to wrap large dependency lists on column 80 (with \), and 4617 # we should not choose a depcomp mode which is confused by this. 4618 # 4619 # We need to recreate these files for each test, as the compiler may 4620 # overwrite some of them when testing with obscure command lines. 4621 # This happens at least with the AIX C compiler. 4622 : > sub/conftest.c 4623 for i in 1 2 3 4 5 6; do 4624 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4625 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4626 # Solaris 8's {/usr,}/bin/sh. 4627 touch sub/conftst$i.h 4628 done 4629 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4630 4631 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4632 # mode. It turns out that the SunPro C++ compiler does not properly 4633 # handle `-M -o', and we need to detect this. Also, some Intel 4634 # versions had trouble with output in subdirs 4635 am__obj=sub/conftest.${OBJEXT-o} 4636 am__minus_obj="-o $am__obj" 4637 case $depmode in 4638 gcc) 4639 # This depmode causes a compiler race in universal mode. 4640 test "$am__universal" = false || continue 4641 ;; 4642 nosideeffect) 4643 # after this tag, mechanisms are not by side-effect, so they'll 4644 # only be used when explicitly requested 4645 if test "x$enable_dependency_tracking" = xyes; then 4646 continue 4647 else 4648 break 4649 fi 4650 ;; 4651 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4652 # This compiler won't grok `-c -o', but also, the minuso test has 4653 # not run yet. These depmodes are late enough in the game, and 4654 # so weak that their functioning should not be impacted. 4655 am__obj=conftest.${OBJEXT-o} 4656 am__minus_obj= 4657 ;; 4658 none) break ;; 4659 esac 4660 if depmode=$depmode \ 4661 source=sub/conftest.c object=$am__obj \ 4662 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4663 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4664 >/dev/null 2>conftest.err && 4665 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4666 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4667 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4668 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4669 # icc doesn't choke on unknown options, it will just issue warnings 4670 # or remarks (even with -Werror). So we grep stderr for any message 4671 # that says an option was ignored or not supported. 4672 # When given -MP, icc 7.0 and 7.1 complain thusly: 4673 # icc: Command line warning: ignoring option '-M'; no argument required 4674 # The diagnosis changed in icc 8.0: 4675 # icc: Command line remark: option '-MP' not supported 4676 if (grep 'ignoring option' conftest.err || 4677 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4678 am_cv_CC_dependencies_compiler_type=$depmode 4679 break 4680 fi 4681 fi 4682 done 4683 4684 cd .. 4685 rm -rf conftest.dir 4686else 4687 am_cv_CC_dependencies_compiler_type=none 4688fi 4689 4690fi 4691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4692$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4693CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4694 4695 if 4696 test "x$enable_dependency_tracking" != xno \ 4697 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4698 am__fastdepCC_TRUE= 4699 am__fastdepCC_FALSE='#' 4700else 4701 am__fastdepCC_TRUE='#' 4702 am__fastdepCC_FALSE= 4703fi 4704 4705 4706 4707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4708$as_echo_n "checking whether ln -s works... " >&6; } 4709LN_S=$as_ln_s 4710if test "$LN_S" = "ln -s"; then 4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4712$as_echo "yes" >&6; } 4713else 4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4715$as_echo "no, using $LN_S" >&6; } 4716fi 4717 4718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4719$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4720set x ${MAKE-make} 4721ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4722if eval \${ac_cv_prog_make_${ac_make}_set+:} false 4723then : 4724 $as_echo_n "(cached) " >&6 4725else 4726 cat >conftest.make <<\_ACEOF 4727SHELL = /bin/sh 4728all: 4729 @echo '@@@%%%=$(MAKE)=@@@%%%' 4730_ACEOF 4731# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4732case `${MAKE-make} -f conftest.make 2>/dev/null` in 4733 *@@@%%%=?*=@@@%%%*) 4734 eval ac_cv_prog_make_${ac_make}_set=yes;; 4735 *) 4736 eval ac_cv_prog_make_${ac_make}_set=no;; 4737esac 4738rm -f conftest.make 4739fi 4740if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4742$as_echo "yes" >&6; } 4743 SET_MAKE= 4744else 4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4746$as_echo "no" >&6; } 4747 SET_MAKE="MAKE=${MAKE-make}" 4748fi 4749 4750#LT_INIT([win32-dll]) 4751enable_win32_dll=yes 4752 4753case $host in 4754*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 4755 if test -n "$ac_tool_prefix"; then 4756 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 4757set dummy ${ac_tool_prefix}as; ac_word=$2 4758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4759$as_echo_n "checking for $ac_word... " >&6; } 4760if ${ac_cv_prog_AS+:} false 4761then : 4762 $as_echo_n "(cached) " >&6 4763else 4764 if test -n "$AS"; then 4765 ac_cv_prog_AS="$AS" # Let the user override the test. 4766else 4767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4768for as_dir in $PATH 4769do 4770 IFS=$as_save_IFS 4771 test -z "$as_dir" && as_dir=. 4772 for ac_exec_ext in '' $ac_executable_extensions; do 4773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4774 ac_cv_prog_AS="${ac_tool_prefix}as" 4775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4776 break 2 4777 fi 4778done 4779 done 4780IFS=$as_save_IFS 4781 4782fi 4783fi 4784AS=$ac_cv_prog_AS 4785if test -n "$AS"; then 4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 4787$as_echo "$AS" >&6; } 4788else 4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4790$as_echo "no" >&6; } 4791fi 4792 4793 4794fi 4795if test -z "$ac_cv_prog_AS"; then 4796 ac_ct_AS=$AS 4797 # Extract the first word of "as", so it can be a program name with args. 4798set dummy as; ac_word=$2 4799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4800$as_echo_n "checking for $ac_word... " >&6; } 4801if ${ac_cv_prog_ac_ct_AS+:} false 4802then : 4803 $as_echo_n "(cached) " >&6 4804else 4805 if test -n "$ac_ct_AS"; then 4806 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 4807else 4808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4809for as_dir in $PATH 4810do 4811 IFS=$as_save_IFS 4812 test -z "$as_dir" && as_dir=. 4813 for ac_exec_ext in '' $ac_executable_extensions; do 4814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4815 ac_cv_prog_ac_ct_AS="as" 4816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4817 break 2 4818 fi 4819done 4820 done 4821IFS=$as_save_IFS 4822 4823fi 4824fi 4825ac_ct_AS=$ac_cv_prog_ac_ct_AS 4826if test -n "$ac_ct_AS"; then 4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 4828$as_echo "$ac_ct_AS" >&6; } 4829else 4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4831$as_echo "no" >&6; } 4832fi 4833 4834 if test "x$ac_ct_AS" = x; then 4835 AS="false" 4836 else 4837 case $cross_compiling:$ac_tool_warned in 4838yes:) 4839{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4840$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4841ac_tool_warned=yes ;; 4842esac 4843 AS=$ac_ct_AS 4844 fi 4845else 4846 AS="$ac_cv_prog_AS" 4847fi 4848 4849 if test -n "$ac_tool_prefix"; then 4850 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 4851set dummy ${ac_tool_prefix}dlltool; ac_word=$2 4852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4853$as_echo_n "checking for $ac_word... " >&6; } 4854if ${ac_cv_prog_DLLTOOL+:} false 4855then : 4856 $as_echo_n "(cached) " >&6 4857else 4858 if test -n "$DLLTOOL"; then 4859 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 4860else 4861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4862for as_dir in $PATH 4863do 4864 IFS=$as_save_IFS 4865 test -z "$as_dir" && as_dir=. 4866 for ac_exec_ext in '' $ac_executable_extensions; do 4867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4868 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 4869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4870 break 2 4871 fi 4872done 4873 done 4874IFS=$as_save_IFS 4875 4876fi 4877fi 4878DLLTOOL=$ac_cv_prog_DLLTOOL 4879if test -n "$DLLTOOL"; then 4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 4881$as_echo "$DLLTOOL" >&6; } 4882else 4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4884$as_echo "no" >&6; } 4885fi 4886 4887 4888fi 4889if test -z "$ac_cv_prog_DLLTOOL"; then 4890 ac_ct_DLLTOOL=$DLLTOOL 4891 # Extract the first word of "dlltool", so it can be a program name with args. 4892set dummy dlltool; ac_word=$2 4893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4894$as_echo_n "checking for $ac_word... " >&6; } 4895if ${ac_cv_prog_ac_ct_DLLTOOL+:} false 4896then : 4897 $as_echo_n "(cached) " >&6 4898else 4899 if test -n "$ac_ct_DLLTOOL"; then 4900 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 4901else 4902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4903for as_dir in $PATH 4904do 4905 IFS=$as_save_IFS 4906 test -z "$as_dir" && as_dir=. 4907 for ac_exec_ext in '' $ac_executable_extensions; do 4908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4909 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 4910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4911 break 2 4912 fi 4913done 4914 done 4915IFS=$as_save_IFS 4916 4917fi 4918fi 4919ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 4920if test -n "$ac_ct_DLLTOOL"; then 4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 4922$as_echo "$ac_ct_DLLTOOL" >&6; } 4923else 4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4925$as_echo "no" >&6; } 4926fi 4927 4928 if test "x$ac_ct_DLLTOOL" = x; then 4929 DLLTOOL="false" 4930 else 4931 case $cross_compiling:$ac_tool_warned in 4932yes:) 4933{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4934$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4935ac_tool_warned=yes ;; 4936esac 4937 DLLTOOL=$ac_ct_DLLTOOL 4938 fi 4939else 4940 DLLTOOL="$ac_cv_prog_DLLTOOL" 4941fi 4942 4943 if test -n "$ac_tool_prefix"; then 4944 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4945set dummy ${ac_tool_prefix}objdump; ac_word=$2 4946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4947$as_echo_n "checking for $ac_word... " >&6; } 4948if ${ac_cv_prog_OBJDUMP+:} false 4949then : 4950 $as_echo_n "(cached) " >&6 4951else 4952 if test -n "$OBJDUMP"; then 4953 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4954else 4955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4956for as_dir in $PATH 4957do 4958 IFS=$as_save_IFS 4959 test -z "$as_dir" && as_dir=. 4960 for ac_exec_ext in '' $ac_executable_extensions; do 4961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4962 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4964 break 2 4965 fi 4966done 4967 done 4968IFS=$as_save_IFS 4969 4970fi 4971fi 4972OBJDUMP=$ac_cv_prog_OBJDUMP 4973if test -n "$OBJDUMP"; then 4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4975$as_echo "$OBJDUMP" >&6; } 4976else 4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4978$as_echo "no" >&6; } 4979fi 4980 4981 4982fi 4983if test -z "$ac_cv_prog_OBJDUMP"; then 4984 ac_ct_OBJDUMP=$OBJDUMP 4985 # Extract the first word of "objdump", so it can be a program name with args. 4986set dummy objdump; ac_word=$2 4987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4988$as_echo_n "checking for $ac_word... " >&6; } 4989if ${ac_cv_prog_ac_ct_OBJDUMP+:} false 4990then : 4991 $as_echo_n "(cached) " >&6 4992else 4993 if test -n "$ac_ct_OBJDUMP"; then 4994 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4995else 4996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4997for as_dir in $PATH 4998do 4999 IFS=$as_save_IFS 5000 test -z "$as_dir" && as_dir=. 5001 for ac_exec_ext in '' $ac_executable_extensions; do 5002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5003 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5005 break 2 5006 fi 5007done 5008 done 5009IFS=$as_save_IFS 5010 5011fi 5012fi 5013ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5014if test -n "$ac_ct_OBJDUMP"; then 5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5016$as_echo "$ac_ct_OBJDUMP" >&6; } 5017else 5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5019$as_echo "no" >&6; } 5020fi 5021 5022 if test "x$ac_ct_OBJDUMP" = x; then 5023 OBJDUMP="false" 5024 else 5025 case $cross_compiling:$ac_tool_warned in 5026yes:) 5027{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5028$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5029ac_tool_warned=yes ;; 5030esac 5031 OBJDUMP=$ac_ct_OBJDUMP 5032 fi 5033else 5034 OBJDUMP="$ac_cv_prog_OBJDUMP" 5035fi 5036 5037 ;; 5038esac 5039 5040test -z "$AS" && AS=as 5041 5042 5043 5044 5045 5046test -z "$DLLTOOL" && DLLTOOL=dlltool 5047 5048 5049 5050 5051 5052test -z "$OBJDUMP" && OBJDUMP=objdump 5053 5054 5055 5056 5057 5058 5059 5060case `pwd` in 5061 *\ * | *\ *) 5062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5063$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5064esac 5065 5066 5067 5068macro_version='2.4.6' 5069macro_revision='2.4.6' 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083ltmain=$ac_aux_dir/ltmain.sh 5084 5085# Backslashify metacharacters that are still active within 5086# double-quoted strings. 5087sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5088 5089# Same as above, but do not quote variable references. 5090double_quote_subst='s/\(["`\\]\)/\\\1/g' 5091 5092# Sed substitution to delay expansion of an escaped shell variable in a 5093# double_quote_subst'ed string. 5094delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5095 5096# Sed substitution to delay expansion of an escaped single quote. 5097delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5098 5099# Sed substitution to avoid accidental globbing in evaled expressions 5100no_glob_subst='s/\*/\\\*/g' 5101 5102ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5103ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5104ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5105 5106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5107$as_echo_n "checking how to print strings... " >&6; } 5108# Test print first, because it will be a builtin if present. 5109if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5110 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5111 ECHO='print -r --' 5112elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5113 ECHO='printf %s\n' 5114else 5115 # Use this function as a fallback that always works. 5116 func_fallback_echo () 5117 { 5118 eval 'cat <<_LTECHO_EOF 5119$1 5120_LTECHO_EOF' 5121 } 5122 ECHO='func_fallback_echo' 5123fi 5124 5125# func_echo_all arg... 5126# Invoke $ECHO with all args, space-separated. 5127func_echo_all () 5128{ 5129 $ECHO "" 5130} 5131 5132case $ECHO in 5133 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5134$as_echo "printf" >&6; } ;; 5135 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5136$as_echo "print -r" >&6; } ;; 5137 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5138$as_echo "cat" >&6; } ;; 5139esac 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5155$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5156if ${ac_cv_path_SED+:} false 5157then : 5158 $as_echo_n "(cached) " >&6 5159else 5160 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5161 for ac_i in 1 2 3 4 5 6 7; do 5162 ac_script="$ac_script$as_nl$ac_script" 5163 done 5164 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5165 { ac_script=; unset ac_script;} 5166 if test -z "$SED"; then 5167 ac_path_SED_found=false 5168 # Loop through the user's path and test for each of PROGNAME-LIST 5169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5170for as_dir in $PATH 5171do 5172 IFS=$as_save_IFS 5173 test -z "$as_dir" && as_dir=. 5174 for ac_prog in sed gsed 5175 do 5176 for ac_exec_ext in '' $ac_executable_extensions; do 5177 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5178 as_fn_executable_p "$ac_path_SED" || continue 5179# Check for GNU ac_path_SED and select it if it is found. 5180 # Check for GNU $ac_path_SED 5181case `"$ac_path_SED" --version 2>&1` in 5182*GNU*) 5183 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5184*) 5185 ac_count=0 5186 $as_echo_n 0123456789 >"conftest.in" 5187 while : 5188 do 5189 cat "conftest.in" "conftest.in" >"conftest.tmp" 5190 mv "conftest.tmp" "conftest.in" 5191 cp "conftest.in" "conftest.nl" 5192 $as_echo '' >> "conftest.nl" 5193 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5194 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5195 as_fn_arith $ac_count + 1 && ac_count=$as_val 5196 if test $ac_count -gt ${ac_path_SED_max-0}; then 5197 # Best one so far, save it but keep looking for a better one 5198 ac_cv_path_SED="$ac_path_SED" 5199 ac_path_SED_max=$ac_count 5200 fi 5201 # 10*(2^10) chars as input seems more than enough 5202 test $ac_count -gt 10 && break 5203 done 5204 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5205esac 5206 5207 $ac_path_SED_found && break 3 5208 done 5209 done 5210 done 5211IFS=$as_save_IFS 5212 if test -z "$ac_cv_path_SED"; then 5213 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5214 fi 5215else 5216 ac_cv_path_SED=$SED 5217fi 5218 5219fi 5220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5221$as_echo "$ac_cv_path_SED" >&6; } 5222 SED="$ac_cv_path_SED" 5223 rm -f conftest.sed 5224 5225test -z "$SED" && SED=sed 5226Xsed="$SED -e 1s/^X//" 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5239$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5240if ${ac_cv_path_GREP+:} false 5241then : 5242 $as_echo_n "(cached) " >&6 5243else 5244 if test -z "$GREP"; then 5245 ac_path_GREP_found=false 5246 # Loop through the user's path and test for each of PROGNAME-LIST 5247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5248for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5249do 5250 IFS=$as_save_IFS 5251 test -z "$as_dir" && as_dir=. 5252 for ac_prog in grep ggrep 5253 do 5254 for ac_exec_ext in '' $ac_executable_extensions; do 5255 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5256 as_fn_executable_p "$ac_path_GREP" || continue 5257# Check for GNU ac_path_GREP and select it if it is found. 5258 # Check for GNU $ac_path_GREP 5259case `"$ac_path_GREP" --version 2>&1` in 5260*GNU*) 5261 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5262*) 5263 ac_count=0 5264 $as_echo_n 0123456789 >"conftest.in" 5265 while : 5266 do 5267 cat "conftest.in" "conftest.in" >"conftest.tmp" 5268 mv "conftest.tmp" "conftest.in" 5269 cp "conftest.in" "conftest.nl" 5270 $as_echo 'GREP' >> "conftest.nl" 5271 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5272 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5273 as_fn_arith $ac_count + 1 && ac_count=$as_val 5274 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5275 # Best one so far, save it but keep looking for a better one 5276 ac_cv_path_GREP="$ac_path_GREP" 5277 ac_path_GREP_max=$ac_count 5278 fi 5279 # 10*(2^10) chars as input seems more than enough 5280 test $ac_count -gt 10 && break 5281 done 5282 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5283esac 5284 5285 $ac_path_GREP_found && break 3 5286 done 5287 done 5288 done 5289IFS=$as_save_IFS 5290 if test -z "$ac_cv_path_GREP"; then 5291 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5292 fi 5293else 5294 ac_cv_path_GREP=$GREP 5295fi 5296 5297fi 5298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5299$as_echo "$ac_cv_path_GREP" >&6; } 5300 GREP="$ac_cv_path_GREP" 5301 5302 5303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5304$as_echo_n "checking for egrep... " >&6; } 5305if ${ac_cv_path_EGREP+:} false 5306then : 5307 $as_echo_n "(cached) " >&6 5308else 5309 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5310 then ac_cv_path_EGREP="$GREP -E" 5311 else 5312 if test -z "$EGREP"; then 5313 ac_path_EGREP_found=false 5314 # Loop through the user's path and test for each of PROGNAME-LIST 5315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5316for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5317do 5318 IFS=$as_save_IFS 5319 test -z "$as_dir" && as_dir=. 5320 for ac_prog in egrep 5321 do 5322 for ac_exec_ext in '' $ac_executable_extensions; do 5323 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5324 as_fn_executable_p "$ac_path_EGREP" || continue 5325# Check for GNU ac_path_EGREP and select it if it is found. 5326 # Check for GNU $ac_path_EGREP 5327case `"$ac_path_EGREP" --version 2>&1` in 5328*GNU*) 5329 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5330*) 5331 ac_count=0 5332 $as_echo_n 0123456789 >"conftest.in" 5333 while : 5334 do 5335 cat "conftest.in" "conftest.in" >"conftest.tmp" 5336 mv "conftest.tmp" "conftest.in" 5337 cp "conftest.in" "conftest.nl" 5338 $as_echo 'EGREP' >> "conftest.nl" 5339 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5340 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5341 as_fn_arith $ac_count + 1 && ac_count=$as_val 5342 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5343 # Best one so far, save it but keep looking for a better one 5344 ac_cv_path_EGREP="$ac_path_EGREP" 5345 ac_path_EGREP_max=$ac_count 5346 fi 5347 # 10*(2^10) chars as input seems more than enough 5348 test $ac_count -gt 10 && break 5349 done 5350 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5351esac 5352 5353 $ac_path_EGREP_found && break 3 5354 done 5355 done 5356 done 5357IFS=$as_save_IFS 5358 if test -z "$ac_cv_path_EGREP"; then 5359 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5360 fi 5361else 5362 ac_cv_path_EGREP=$EGREP 5363fi 5364 5365 fi 5366fi 5367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5368$as_echo "$ac_cv_path_EGREP" >&6; } 5369 EGREP="$ac_cv_path_EGREP" 5370 5371 5372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5373$as_echo_n "checking for fgrep... " >&6; } 5374if ${ac_cv_path_FGREP+:} false 5375then : 5376 $as_echo_n "(cached) " >&6 5377else 5378 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5379 then ac_cv_path_FGREP="$GREP -F" 5380 else 5381 if test -z "$FGREP"; then 5382 ac_path_FGREP_found=false 5383 # Loop through the user's path and test for each of PROGNAME-LIST 5384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5385for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5386do 5387 IFS=$as_save_IFS 5388 test -z "$as_dir" && as_dir=. 5389 for ac_prog in fgrep 5390 do 5391 for ac_exec_ext in '' $ac_executable_extensions; do 5392 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5393 as_fn_executable_p "$ac_path_FGREP" || continue 5394# Check for GNU ac_path_FGREP and select it if it is found. 5395 # Check for GNU $ac_path_FGREP 5396case `"$ac_path_FGREP" --version 2>&1` in 5397*GNU*) 5398 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5399*) 5400 ac_count=0 5401 $as_echo_n 0123456789 >"conftest.in" 5402 while : 5403 do 5404 cat "conftest.in" "conftest.in" >"conftest.tmp" 5405 mv "conftest.tmp" "conftest.in" 5406 cp "conftest.in" "conftest.nl" 5407 $as_echo 'FGREP' >> "conftest.nl" 5408 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5409 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5410 as_fn_arith $ac_count + 1 && ac_count=$as_val 5411 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5412 # Best one so far, save it but keep looking for a better one 5413 ac_cv_path_FGREP="$ac_path_FGREP" 5414 ac_path_FGREP_max=$ac_count 5415 fi 5416 # 10*(2^10) chars as input seems more than enough 5417 test $ac_count -gt 10 && break 5418 done 5419 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5420esac 5421 5422 $ac_path_FGREP_found && break 3 5423 done 5424 done 5425 done 5426IFS=$as_save_IFS 5427 if test -z "$ac_cv_path_FGREP"; then 5428 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5429 fi 5430else 5431 ac_cv_path_FGREP=$FGREP 5432fi 5433 5434 fi 5435fi 5436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5437$as_echo "$ac_cv_path_FGREP" >&6; } 5438 FGREP="$ac_cv_path_FGREP" 5439 5440 5441test -z "$GREP" && GREP=grep 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461# Check whether --with-gnu-ld was given. 5462if test "${with_gnu_ld+set}" = set 5463then : 5464 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5465else 5466 with_gnu_ld=no 5467fi 5468 5469ac_prog=ld 5470if test yes = "$GCC"; then 5471 # Check if gcc -print-prog-name=ld gives a path. 5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5473$as_echo_n "checking for ld used by $CC... " >&6; } 5474 case $host in 5475 *-*-mingw*) 5476 # gcc leaves a trailing carriage return, which upsets mingw 5477 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5478 *) 5479 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5480 esac 5481 case $ac_prog in 5482 # Accept absolute paths. 5483 [\\/]* | ?:[\\/]*) 5484 re_direlt='/[^/][^/]*/\.\./' 5485 # Canonicalize the pathname of ld 5486 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5487 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5488 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5489 done 5490 test -z "$LD" && LD=$ac_prog 5491 ;; 5492 "") 5493 # If it fails, then pretend we aren't using GCC. 5494 ac_prog=ld 5495 ;; 5496 *) 5497 # If it is relative, then search for the first ld in PATH. 5498 with_gnu_ld=unknown 5499 ;; 5500 esac 5501elif test yes = "$with_gnu_ld"; then 5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5503$as_echo_n "checking for GNU ld... " >&6; } 5504else 5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5506$as_echo_n "checking for non-GNU ld... " >&6; } 5507fi 5508if ${lt_cv_path_LD+:} false 5509then : 5510 $as_echo_n "(cached) " >&6 5511else 5512 if test -z "$LD"; then 5513 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5514 for ac_dir in $PATH; do 5515 IFS=$lt_save_ifs 5516 test -z "$ac_dir" && ac_dir=. 5517 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5518 lt_cv_path_LD=$ac_dir/$ac_prog 5519 # Check to see if the program is GNU ld. I'd rather use --version, 5520 # but apparently some variants of GNU ld only accept -v. 5521 # Break only if it was the GNU/non-GNU ld that we prefer. 5522 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5523 *GNU* | *'with BFD'*) 5524 test no != "$with_gnu_ld" && break 5525 ;; 5526 *) 5527 test yes != "$with_gnu_ld" && break 5528 ;; 5529 esac 5530 fi 5531 done 5532 IFS=$lt_save_ifs 5533else 5534 lt_cv_path_LD=$LD # Let the user override the test with a path. 5535fi 5536fi 5537 5538LD=$lt_cv_path_LD 5539if test -n "$LD"; then 5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5541$as_echo "$LD" >&6; } 5542else 5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5544$as_echo "no" >&6; } 5545fi 5546test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5548$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5549if ${lt_cv_prog_gnu_ld+:} false 5550then : 5551 $as_echo_n "(cached) " >&6 5552else 5553 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5554case `$LD -v 2>&1 </dev/null` in 5555*GNU* | *'with BFD'*) 5556 lt_cv_prog_gnu_ld=yes 5557 ;; 5558*) 5559 lt_cv_prog_gnu_ld=no 5560 ;; 5561esac 5562fi 5563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5564$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5565with_gnu_ld=$lt_cv_prog_gnu_ld 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5576$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5577if ${lt_cv_path_NM+:} false 5578then : 5579 $as_echo_n "(cached) " >&6 5580else 5581 if test -n "$NM"; then 5582 # Let the user override the test. 5583 lt_cv_path_NM=$NM 5584else 5585 lt_nm_to_check=${ac_tool_prefix}nm 5586 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5587 lt_nm_to_check="$lt_nm_to_check nm" 5588 fi 5589 for lt_tmp_nm in $lt_nm_to_check; do 5590 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5591 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5592 IFS=$lt_save_ifs 5593 test -z "$ac_dir" && ac_dir=. 5594 tmp_nm=$ac_dir/$lt_tmp_nm 5595 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5596 # Check to see if the nm accepts a BSD-compat flag. 5597 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5598 # nm: unknown option "B" ignored 5599 # Tru64's nm complains that /dev/null is an invalid object file 5600 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5601 case $build_os in 5602 mingw*) lt_bad_file=conftest.nm/nofile ;; 5603 *) lt_bad_file=/dev/null ;; 5604 esac 5605 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5606 *$lt_bad_file* | *'Invalid file or object type'*) 5607 lt_cv_path_NM="$tmp_nm -B" 5608 break 2 5609 ;; 5610 *) 5611 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5612 */dev/null*) 5613 lt_cv_path_NM="$tmp_nm -p" 5614 break 2 5615 ;; 5616 *) 5617 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5618 continue # so that we can try to find one that supports BSD flags 5619 ;; 5620 esac 5621 ;; 5622 esac 5623 fi 5624 done 5625 IFS=$lt_save_ifs 5626 done 5627 : ${lt_cv_path_NM=no} 5628fi 5629fi 5630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5631$as_echo "$lt_cv_path_NM" >&6; } 5632if test no != "$lt_cv_path_NM"; then 5633 NM=$lt_cv_path_NM 5634else 5635 # Didn't find any BSD compatible name lister, look for dumpbin. 5636 if test -n "$DUMPBIN"; then : 5637 # Let the user override the test. 5638 else 5639 if test -n "$ac_tool_prefix"; then 5640 for ac_prog in dumpbin "link -dump" 5641 do 5642 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5643set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5645$as_echo_n "checking for $ac_word... " >&6; } 5646if ${ac_cv_prog_DUMPBIN+:} false 5647then : 5648 $as_echo_n "(cached) " >&6 5649else 5650 if test -n "$DUMPBIN"; then 5651 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5652else 5653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5654for as_dir in $PATH 5655do 5656 IFS=$as_save_IFS 5657 test -z "$as_dir" && as_dir=. 5658 for ac_exec_ext in '' $ac_executable_extensions; do 5659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5660 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5662 break 2 5663 fi 5664done 5665 done 5666IFS=$as_save_IFS 5667 5668fi 5669fi 5670DUMPBIN=$ac_cv_prog_DUMPBIN 5671if test -n "$DUMPBIN"; then 5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5673$as_echo "$DUMPBIN" >&6; } 5674else 5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5676$as_echo "no" >&6; } 5677fi 5678 5679 5680 test -n "$DUMPBIN" && break 5681 done 5682fi 5683if test -z "$DUMPBIN"; then 5684 ac_ct_DUMPBIN=$DUMPBIN 5685 for ac_prog in dumpbin "link -dump" 5686do 5687 # Extract the first word of "$ac_prog", so it can be a program name with args. 5688set dummy $ac_prog; ac_word=$2 5689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5690$as_echo_n "checking for $ac_word... " >&6; } 5691if ${ac_cv_prog_ac_ct_DUMPBIN+:} false 5692then : 5693 $as_echo_n "(cached) " >&6 5694else 5695 if test -n "$ac_ct_DUMPBIN"; then 5696 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5697else 5698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5699for as_dir in $PATH 5700do 5701 IFS=$as_save_IFS 5702 test -z "$as_dir" && as_dir=. 5703 for ac_exec_ext in '' $ac_executable_extensions; do 5704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5705 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5707 break 2 5708 fi 5709done 5710 done 5711IFS=$as_save_IFS 5712 5713fi 5714fi 5715ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5716if test -n "$ac_ct_DUMPBIN"; then 5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5718$as_echo "$ac_ct_DUMPBIN" >&6; } 5719else 5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5721$as_echo "no" >&6; } 5722fi 5723 5724 5725 test -n "$ac_ct_DUMPBIN" && break 5726done 5727 5728 if test "x$ac_ct_DUMPBIN" = x; then 5729 DUMPBIN=":" 5730 else 5731 case $cross_compiling:$ac_tool_warned in 5732yes:) 5733{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5734$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5735ac_tool_warned=yes ;; 5736esac 5737 DUMPBIN=$ac_ct_DUMPBIN 5738 fi 5739fi 5740 5741 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5742 *COFF*) 5743 DUMPBIN="$DUMPBIN -symbols -headers" 5744 ;; 5745 *) 5746 DUMPBIN=: 5747 ;; 5748 esac 5749 fi 5750 5751 if test : != "$DUMPBIN"; then 5752 NM=$DUMPBIN 5753 fi 5754fi 5755test -z "$NM" && NM=nm 5756 5757 5758 5759 5760 5761 5762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5763$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5764if ${lt_cv_nm_interface+:} false 5765then : 5766 $as_echo_n "(cached) " >&6 5767else 5768 lt_cv_nm_interface="BSD nm" 5769 echo "int some_variable = 0;" > conftest.$ac_ext 5770 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5771 (eval "$ac_compile" 2>conftest.err) 5772 cat conftest.err >&5 5773 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5774 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5775 cat conftest.err >&5 5776 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5777 cat conftest.out >&5 5778 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5779 lt_cv_nm_interface="MS dumpbin" 5780 fi 5781 rm -f conftest* 5782fi 5783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5784$as_echo "$lt_cv_nm_interface" >&6; } 5785 5786# find the maximum length of command line arguments 5787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5788$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5789if ${lt_cv_sys_max_cmd_len+:} false 5790then : 5791 $as_echo_n "(cached) " >&6 5792else 5793 i=0 5794 teststring=ABCD 5795 5796 case $build_os in 5797 msdosdjgpp*) 5798 # On DJGPP, this test can blow up pretty badly due to problems in libc 5799 # (any single argument exceeding 2000 bytes causes a buffer overrun 5800 # during glob expansion). Even if it were fixed, the result of this 5801 # check would be larger than it should be. 5802 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5803 ;; 5804 5805 gnu*) 5806 # Under GNU Hurd, this test is not required because there is 5807 # no limit to the length of command line arguments. 5808 # Libtool will interpret -1 as no limit whatsoever 5809 lt_cv_sys_max_cmd_len=-1; 5810 ;; 5811 5812 cygwin* | mingw* | cegcc*) 5813 # On Win9x/ME, this test blows up -- it succeeds, but takes 5814 # about 5 minutes as the teststring grows exponentially. 5815 # Worse, since 9x/ME are not pre-emptively multitasking, 5816 # you end up with a "frozen" computer, even though with patience 5817 # the test eventually succeeds (with a max line length of 256k). 5818 # Instead, let's just punt: use the minimum linelength reported by 5819 # all of the supported platforms: 8192 (on NT/2K/XP). 5820 lt_cv_sys_max_cmd_len=8192; 5821 ;; 5822 5823 mint*) 5824 # On MiNT this can take a long time and run out of memory. 5825 lt_cv_sys_max_cmd_len=8192; 5826 ;; 5827 5828 amigaos*) 5829 # On AmigaOS with pdksh, this test takes hours, literally. 5830 # So we just punt and use a minimum line length of 8192. 5831 lt_cv_sys_max_cmd_len=8192; 5832 ;; 5833 5834 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5835 # This has been around since 386BSD, at least. Likely further. 5836 if test -x /sbin/sysctl; then 5837 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5838 elif test -x /usr/sbin/sysctl; then 5839 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5840 else 5841 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5842 fi 5843 # And add a safety zone 5844 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5845 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5846 ;; 5847 5848 interix*) 5849 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5850 lt_cv_sys_max_cmd_len=196608 5851 ;; 5852 5853 os2*) 5854 # The test takes a long time on OS/2. 5855 lt_cv_sys_max_cmd_len=8192 5856 ;; 5857 5858 osf*) 5859 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5860 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5861 # nice to cause kernel panics so lets avoid the loop below. 5862 # First set a reasonable default. 5863 lt_cv_sys_max_cmd_len=16384 5864 # 5865 if test -x /sbin/sysconfig; then 5866 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5867 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5868 esac 5869 fi 5870 ;; 5871 sco3.2v5*) 5872 lt_cv_sys_max_cmd_len=102400 5873 ;; 5874 sysv5* | sco5v6* | sysv4.2uw2*) 5875 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5876 if test -n "$kargmax"; then 5877 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5878 else 5879 lt_cv_sys_max_cmd_len=32768 5880 fi 5881 ;; 5882 *) 5883 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5884 if test -n "$lt_cv_sys_max_cmd_len" && \ 5885 test undefined != "$lt_cv_sys_max_cmd_len"; then 5886 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5887 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5888 else 5889 # Make teststring a little bigger before we do anything with it. 5890 # a 1K string should be a reasonable start. 5891 for i in 1 2 3 4 5 6 7 8; do 5892 teststring=$teststring$teststring 5893 done 5894 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5895 # If test is not a shell built-in, we'll probably end up computing a 5896 # maximum length that is only half of the actual maximum length, but 5897 # we can't tell. 5898 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5899 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5900 test 17 != "$i" # 1/2 MB should be enough 5901 do 5902 i=`expr $i + 1` 5903 teststring=$teststring$teststring 5904 done 5905 # Only check the string length outside the loop. 5906 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5907 teststring= 5908 # Add a significant safety factor because C++ compilers can tack on 5909 # massive amounts of additional arguments before passing them to the 5910 # linker. It appears as though 1/2 is a usable value. 5911 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5912 fi 5913 ;; 5914 esac 5915 5916fi 5917 5918if test -n "$lt_cv_sys_max_cmd_len"; then 5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5920$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5921else 5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5923$as_echo "none" >&6; } 5924fi 5925max_cmd_len=$lt_cv_sys_max_cmd_len 5926 5927 5928 5929 5930 5931 5932: ${CP="cp -f"} 5933: ${MV="mv -f"} 5934: ${RM="rm -f"} 5935 5936if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5937 lt_unset=unset 5938else 5939 lt_unset=false 5940fi 5941 5942 5943 5944 5945 5946# test EBCDIC or ASCII 5947case `echo X|tr X '\101'` in 5948 A) # ASCII based system 5949 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5950 lt_SP2NL='tr \040 \012' 5951 lt_NL2SP='tr \015\012 \040\040' 5952 ;; 5953 *) # EBCDIC based system 5954 lt_SP2NL='tr \100 \n' 5955 lt_NL2SP='tr \r\n \100\100' 5956 ;; 5957esac 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5968$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5969if ${lt_cv_to_host_file_cmd+:} false 5970then : 5971 $as_echo_n "(cached) " >&6 5972else 5973 case $host in 5974 *-*-mingw* ) 5975 case $build in 5976 *-*-mingw* ) # actually msys 5977 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5978 ;; 5979 *-*-cygwin* ) 5980 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5981 ;; 5982 * ) # otherwise, assume *nix 5983 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5984 ;; 5985 esac 5986 ;; 5987 *-*-cygwin* ) 5988 case $build in 5989 *-*-mingw* ) # actually msys 5990 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5991 ;; 5992 *-*-cygwin* ) 5993 lt_cv_to_host_file_cmd=func_convert_file_noop 5994 ;; 5995 * ) # otherwise, assume *nix 5996 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5997 ;; 5998 esac 5999 ;; 6000 * ) # unhandled hosts (and "normal" native builds) 6001 lt_cv_to_host_file_cmd=func_convert_file_noop 6002 ;; 6003esac 6004 6005fi 6006 6007to_host_file_cmd=$lt_cv_to_host_file_cmd 6008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6009$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6010 6011 6012 6013 6014 6015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6016$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6017if ${lt_cv_to_tool_file_cmd+:} false 6018then : 6019 $as_echo_n "(cached) " >&6 6020else 6021 #assume ordinary cross tools, or native build. 6022lt_cv_to_tool_file_cmd=func_convert_file_noop 6023case $host in 6024 *-*-mingw* ) 6025 case $build in 6026 *-*-mingw* ) # actually msys 6027 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6028 ;; 6029 esac 6030 ;; 6031esac 6032 6033fi 6034 6035to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6037$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6038 6039 6040 6041 6042 6043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6044$as_echo_n "checking for $LD option to reload object files... " >&6; } 6045if ${lt_cv_ld_reload_flag+:} false 6046then : 6047 $as_echo_n "(cached) " >&6 6048else 6049 lt_cv_ld_reload_flag='-r' 6050fi 6051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6052$as_echo "$lt_cv_ld_reload_flag" >&6; } 6053reload_flag=$lt_cv_ld_reload_flag 6054case $reload_flag in 6055"" | " "*) ;; 6056*) reload_flag=" $reload_flag" ;; 6057esac 6058reload_cmds='$LD$reload_flag -o $output$reload_objs' 6059case $host_os in 6060 cygwin* | mingw* | pw32* | cegcc*) 6061 if test yes != "$GCC"; then 6062 reload_cmds=false 6063 fi 6064 ;; 6065 darwin*) 6066 if test yes = "$GCC"; then 6067 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6068 else 6069 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6070 fi 6071 ;; 6072esac 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082if test -n "$ac_tool_prefix"; then 6083 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6084set dummy ${ac_tool_prefix}objdump; ac_word=$2 6085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6086$as_echo_n "checking for $ac_word... " >&6; } 6087if ${ac_cv_prog_OBJDUMP+:} false 6088then : 6089 $as_echo_n "(cached) " >&6 6090else 6091 if test -n "$OBJDUMP"; then 6092 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6093else 6094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6095for as_dir in $PATH 6096do 6097 IFS=$as_save_IFS 6098 test -z "$as_dir" && as_dir=. 6099 for ac_exec_ext in '' $ac_executable_extensions; do 6100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6101 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6103 break 2 6104 fi 6105done 6106 done 6107IFS=$as_save_IFS 6108 6109fi 6110fi 6111OBJDUMP=$ac_cv_prog_OBJDUMP 6112if test -n "$OBJDUMP"; then 6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6114$as_echo "$OBJDUMP" >&6; } 6115else 6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6117$as_echo "no" >&6; } 6118fi 6119 6120 6121fi 6122if test -z "$ac_cv_prog_OBJDUMP"; then 6123 ac_ct_OBJDUMP=$OBJDUMP 6124 # Extract the first word of "objdump", so it can be a program name with args. 6125set dummy objdump; ac_word=$2 6126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6127$as_echo_n "checking for $ac_word... " >&6; } 6128if ${ac_cv_prog_ac_ct_OBJDUMP+:} false 6129then : 6130 $as_echo_n "(cached) " >&6 6131else 6132 if test -n "$ac_ct_OBJDUMP"; then 6133 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6134else 6135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6136for as_dir in $PATH 6137do 6138 IFS=$as_save_IFS 6139 test -z "$as_dir" && as_dir=. 6140 for ac_exec_ext in '' $ac_executable_extensions; do 6141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6142 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6144 break 2 6145 fi 6146done 6147 done 6148IFS=$as_save_IFS 6149 6150fi 6151fi 6152ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6153if test -n "$ac_ct_OBJDUMP"; then 6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6155$as_echo "$ac_ct_OBJDUMP" >&6; } 6156else 6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6158$as_echo "no" >&6; } 6159fi 6160 6161 if test "x$ac_ct_OBJDUMP" = x; then 6162 OBJDUMP="false" 6163 else 6164 case $cross_compiling:$ac_tool_warned in 6165yes:) 6166{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6167$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6168ac_tool_warned=yes ;; 6169esac 6170 OBJDUMP=$ac_ct_OBJDUMP 6171 fi 6172else 6173 OBJDUMP="$ac_cv_prog_OBJDUMP" 6174fi 6175 6176test -z "$OBJDUMP" && OBJDUMP=objdump 6177 6178 6179 6180 6181 6182 6183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6184$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6185if ${lt_cv_deplibs_check_method+:} false 6186then : 6187 $as_echo_n "(cached) " >&6 6188else 6189 lt_cv_file_magic_cmd='$MAGIC_CMD' 6190lt_cv_file_magic_test_file= 6191lt_cv_deplibs_check_method='unknown' 6192# Need to set the preceding variable on all platforms that support 6193# interlibrary dependencies. 6194# 'none' -- dependencies not supported. 6195# 'unknown' -- same as none, but documents that we really don't know. 6196# 'pass_all' -- all dependencies passed with no checks. 6197# 'test_compile' -- check by making test program. 6198# 'file_magic [[regex]]' -- check by looking for files in library path 6199# that responds to the $file_magic_cmd with a given extended regex. 6200# If you have 'file' or equivalent on your system and you're not sure 6201# whether 'pass_all' will *always* work, you probably want this one. 6202 6203case $host_os in 6204aix[4-9]*) 6205 lt_cv_deplibs_check_method=pass_all 6206 ;; 6207 6208beos*) 6209 lt_cv_deplibs_check_method=pass_all 6210 ;; 6211 6212bsdi[45]*) 6213 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6214 lt_cv_file_magic_cmd='/usr/bin/file -L' 6215 lt_cv_file_magic_test_file=/shlib/libc.so 6216 ;; 6217 6218cygwin*) 6219 # func_win32_libid is a shell function defined in ltmain.sh 6220 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6221 lt_cv_file_magic_cmd='func_win32_libid' 6222 ;; 6223 6224mingw* | pw32*) 6225 # Base MSYS/MinGW do not provide the 'file' command needed by 6226 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6227 # unless we find 'file', for example because we are cross-compiling. 6228 if ( file / ) >/dev/null 2>&1; then 6229 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6230 lt_cv_file_magic_cmd='func_win32_libid' 6231 else 6232 # Keep this pattern in sync with the one in func_win32_libid. 6233 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6234 lt_cv_file_magic_cmd='$OBJDUMP -f' 6235 fi 6236 ;; 6237 6238cegcc*) 6239 # use the weaker test based on 'objdump'. See mingw*. 6240 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6241 lt_cv_file_magic_cmd='$OBJDUMP -f' 6242 ;; 6243 6244darwin* | rhapsody*) 6245 lt_cv_deplibs_check_method=pass_all 6246 ;; 6247 6248freebsd* | dragonfly*) 6249 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6250 case $host_cpu in 6251 i*86 ) 6252 # Not sure whether the presence of OpenBSD here was a mistake. 6253 # Let's accept both of them until this is cleared up. 6254 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6255 lt_cv_file_magic_cmd=/usr/bin/file 6256 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6257 ;; 6258 esac 6259 else 6260 lt_cv_deplibs_check_method=pass_all 6261 fi 6262 ;; 6263 6264haiku*) 6265 lt_cv_deplibs_check_method=pass_all 6266 ;; 6267 6268hpux10.20* | hpux11*) 6269 lt_cv_file_magic_cmd=/usr/bin/file 6270 case $host_cpu in 6271 ia64*) 6272 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6273 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6274 ;; 6275 hppa*64*) 6276 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]' 6277 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6278 ;; 6279 *) 6280 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6281 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6282 ;; 6283 esac 6284 ;; 6285 6286interix[3-9]*) 6287 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6288 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6289 ;; 6290 6291irix5* | irix6* | nonstopux*) 6292 case $LD in 6293 *-32|*"-32 ") libmagic=32-bit;; 6294 *-n32|*"-n32 ") libmagic=N32;; 6295 *-64|*"-64 ") libmagic=64-bit;; 6296 *) libmagic=never-match;; 6297 esac 6298 lt_cv_deplibs_check_method=pass_all 6299 ;; 6300 6301# This must be glibc/ELF. 6302linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6303 lt_cv_deplibs_check_method=pass_all 6304 ;; 6305 6306netbsd*) 6307 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6308 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6309 else 6310 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6311 fi 6312 ;; 6313 6314newos6*) 6315 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6316 lt_cv_file_magic_cmd=/usr/bin/file 6317 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6318 ;; 6319 6320*nto* | *qnx*) 6321 lt_cv_deplibs_check_method=pass_all 6322 ;; 6323 6324openbsd* | bitrig*) 6325 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6326 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6327 else 6328 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6329 fi 6330 ;; 6331 6332osf3* | osf4* | osf5*) 6333 lt_cv_deplibs_check_method=pass_all 6334 ;; 6335 6336rdos*) 6337 lt_cv_deplibs_check_method=pass_all 6338 ;; 6339 6340solaris*) 6341 lt_cv_deplibs_check_method=pass_all 6342 ;; 6343 6344sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6345 lt_cv_deplibs_check_method=pass_all 6346 ;; 6347 6348sysv4 | sysv4.3*) 6349 case $host_vendor in 6350 motorola) 6351 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]' 6352 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6353 ;; 6354 ncr) 6355 lt_cv_deplibs_check_method=pass_all 6356 ;; 6357 sequent) 6358 lt_cv_file_magic_cmd='/bin/file' 6359 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6360 ;; 6361 sni) 6362 lt_cv_file_magic_cmd='/bin/file' 6363 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6364 lt_cv_file_magic_test_file=/lib/libc.so 6365 ;; 6366 siemens) 6367 lt_cv_deplibs_check_method=pass_all 6368 ;; 6369 pc) 6370 lt_cv_deplibs_check_method=pass_all 6371 ;; 6372 esac 6373 ;; 6374 6375tpf*) 6376 lt_cv_deplibs_check_method=pass_all 6377 ;; 6378os2*) 6379 lt_cv_deplibs_check_method=pass_all 6380 ;; 6381esac 6382 6383fi 6384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6385$as_echo "$lt_cv_deplibs_check_method" >&6; } 6386 6387file_magic_glob= 6388want_nocaseglob=no 6389if test "$build" = "$host"; then 6390 case $host_os in 6391 mingw* | pw32*) 6392 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6393 want_nocaseglob=yes 6394 else 6395 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6396 fi 6397 ;; 6398 esac 6399fi 6400 6401file_magic_cmd=$lt_cv_file_magic_cmd 6402deplibs_check_method=$lt_cv_deplibs_check_method 6403test -z "$deplibs_check_method" && deplibs_check_method=unknown 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426if test -n "$ac_tool_prefix"; then 6427 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6428set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6430$as_echo_n "checking for $ac_word... " >&6; } 6431if ${ac_cv_prog_DLLTOOL+:} false 6432then : 6433 $as_echo_n "(cached) " >&6 6434else 6435 if test -n "$DLLTOOL"; then 6436 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6437else 6438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6439for as_dir in $PATH 6440do 6441 IFS=$as_save_IFS 6442 test -z "$as_dir" && as_dir=. 6443 for ac_exec_ext in '' $ac_executable_extensions; do 6444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6445 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6447 break 2 6448 fi 6449done 6450 done 6451IFS=$as_save_IFS 6452 6453fi 6454fi 6455DLLTOOL=$ac_cv_prog_DLLTOOL 6456if test -n "$DLLTOOL"; then 6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6458$as_echo "$DLLTOOL" >&6; } 6459else 6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6461$as_echo "no" >&6; } 6462fi 6463 6464 6465fi 6466if test -z "$ac_cv_prog_DLLTOOL"; then 6467 ac_ct_DLLTOOL=$DLLTOOL 6468 # Extract the first word of "dlltool", so it can be a program name with args. 6469set dummy dlltool; ac_word=$2 6470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6471$as_echo_n "checking for $ac_word... " >&6; } 6472if ${ac_cv_prog_ac_ct_DLLTOOL+:} false 6473then : 6474 $as_echo_n "(cached) " >&6 6475else 6476 if test -n "$ac_ct_DLLTOOL"; then 6477 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6478else 6479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6480for as_dir in $PATH 6481do 6482 IFS=$as_save_IFS 6483 test -z "$as_dir" && as_dir=. 6484 for ac_exec_ext in '' $ac_executable_extensions; do 6485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6486 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6488 break 2 6489 fi 6490done 6491 done 6492IFS=$as_save_IFS 6493 6494fi 6495fi 6496ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6497if test -n "$ac_ct_DLLTOOL"; then 6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6499$as_echo "$ac_ct_DLLTOOL" >&6; } 6500else 6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6502$as_echo "no" >&6; } 6503fi 6504 6505 if test "x$ac_ct_DLLTOOL" = x; then 6506 DLLTOOL="false" 6507 else 6508 case $cross_compiling:$ac_tool_warned in 6509yes:) 6510{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6511$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6512ac_tool_warned=yes ;; 6513esac 6514 DLLTOOL=$ac_ct_DLLTOOL 6515 fi 6516else 6517 DLLTOOL="$ac_cv_prog_DLLTOOL" 6518fi 6519 6520test -z "$DLLTOOL" && DLLTOOL=dlltool 6521 6522 6523 6524 6525 6526 6527 6528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6529$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6530if ${lt_cv_sharedlib_from_linklib_cmd+:} false 6531then : 6532 $as_echo_n "(cached) " >&6 6533else 6534 lt_cv_sharedlib_from_linklib_cmd='unknown' 6535 6536case $host_os in 6537cygwin* | mingw* | pw32* | cegcc*) 6538 # two different shell functions defined in ltmain.sh; 6539 # decide which one to use based on capabilities of $DLLTOOL 6540 case `$DLLTOOL --help 2>&1` in 6541 *--identify-strict*) 6542 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6543 ;; 6544 *) 6545 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6546 ;; 6547 esac 6548 ;; 6549*) 6550 # fallback: assume linklib IS sharedlib 6551 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6552 ;; 6553esac 6554 6555fi 6556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6557$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6558sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6559test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6560 6561 6562 6563 6564 6565 6566 6567 6568if test -n "$ac_tool_prefix"; then 6569 for ac_prog in ar 6570 do 6571 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6572set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6574$as_echo_n "checking for $ac_word... " >&6; } 6575if ${ac_cv_prog_AR+:} false 6576then : 6577 $as_echo_n "(cached) " >&6 6578else 6579 if test -n "$AR"; then 6580 ac_cv_prog_AR="$AR" # Let the user override the test. 6581else 6582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6583for as_dir in $PATH 6584do 6585 IFS=$as_save_IFS 6586 test -z "$as_dir" && as_dir=. 6587 for ac_exec_ext in '' $ac_executable_extensions; do 6588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6589 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6591 break 2 6592 fi 6593done 6594 done 6595IFS=$as_save_IFS 6596 6597fi 6598fi 6599AR=$ac_cv_prog_AR 6600if test -n "$AR"; then 6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6602$as_echo "$AR" >&6; } 6603else 6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6605$as_echo "no" >&6; } 6606fi 6607 6608 6609 test -n "$AR" && break 6610 done 6611fi 6612if test -z "$AR"; then 6613 ac_ct_AR=$AR 6614 for ac_prog in ar 6615do 6616 # Extract the first word of "$ac_prog", so it can be a program name with args. 6617set dummy $ac_prog; ac_word=$2 6618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6619$as_echo_n "checking for $ac_word... " >&6; } 6620if ${ac_cv_prog_ac_ct_AR+:} false 6621then : 6622 $as_echo_n "(cached) " >&6 6623else 6624 if test -n "$ac_ct_AR"; then 6625 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6626else 6627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6628for as_dir in $PATH 6629do 6630 IFS=$as_save_IFS 6631 test -z "$as_dir" && as_dir=. 6632 for ac_exec_ext in '' $ac_executable_extensions; do 6633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6634 ac_cv_prog_ac_ct_AR="$ac_prog" 6635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6636 break 2 6637 fi 6638done 6639 done 6640IFS=$as_save_IFS 6641 6642fi 6643fi 6644ac_ct_AR=$ac_cv_prog_ac_ct_AR 6645if test -n "$ac_ct_AR"; then 6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6647$as_echo "$ac_ct_AR" >&6; } 6648else 6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6650$as_echo "no" >&6; } 6651fi 6652 6653 6654 test -n "$ac_ct_AR" && break 6655done 6656 6657 if test "x$ac_ct_AR" = x; then 6658 AR="false" 6659 else 6660 case $cross_compiling:$ac_tool_warned in 6661yes:) 6662{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6663$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6664ac_tool_warned=yes ;; 6665esac 6666 AR=$ac_ct_AR 6667 fi 6668fi 6669 6670: ${AR=ar} 6671: ${AR_FLAGS=cru} 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6684$as_echo_n "checking for archiver @FILE support... " >&6; } 6685if ${lt_cv_ar_at_file+:} false 6686then : 6687 $as_echo_n "(cached) " >&6 6688else 6689 lt_cv_ar_at_file=no 6690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6691/* end confdefs.h. */ 6692 6693int 6694main (void) 6695{ 6696 6697 ; 6698 return 0; 6699} 6700_ACEOF 6701if ac_fn_c_try_compile "$LINENO" 6702then : 6703 echo conftest.$ac_objext > conftest.lst 6704 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6705 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6706 (eval $lt_ar_try) 2>&5 6707 ac_status=$? 6708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6709 test $ac_status = 0; } 6710 if test 0 -eq "$ac_status"; then 6711 # Ensure the archiver fails upon bogus file names. 6712 rm -f conftest.$ac_objext libconftest.a 6713 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6714 (eval $lt_ar_try) 2>&5 6715 ac_status=$? 6716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6717 test $ac_status = 0; } 6718 if test 0 -ne "$ac_status"; then 6719 lt_cv_ar_at_file=@ 6720 fi 6721 fi 6722 rm -f conftest.* libconftest.a 6723 6724fi 6725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6726 6727fi 6728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6729$as_echo "$lt_cv_ar_at_file" >&6; } 6730 6731if test no = "$lt_cv_ar_at_file"; then 6732 archiver_list_spec= 6733else 6734 archiver_list_spec=$lt_cv_ar_at_file 6735fi 6736 6737 6738 6739 6740 6741 6742 6743if test -n "$ac_tool_prefix"; then 6744 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6745set dummy ${ac_tool_prefix}strip; ac_word=$2 6746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6747$as_echo_n "checking for $ac_word... " >&6; } 6748if ${ac_cv_prog_STRIP+:} false 6749then : 6750 $as_echo_n "(cached) " >&6 6751else 6752 if test -n "$STRIP"; then 6753 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6754else 6755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6756for as_dir in $PATH 6757do 6758 IFS=$as_save_IFS 6759 test -z "$as_dir" && as_dir=. 6760 for ac_exec_ext in '' $ac_executable_extensions; do 6761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6762 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6764 break 2 6765 fi 6766done 6767 done 6768IFS=$as_save_IFS 6769 6770fi 6771fi 6772STRIP=$ac_cv_prog_STRIP 6773if test -n "$STRIP"; then 6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6775$as_echo "$STRIP" >&6; } 6776else 6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6778$as_echo "no" >&6; } 6779fi 6780 6781 6782fi 6783if test -z "$ac_cv_prog_STRIP"; then 6784 ac_ct_STRIP=$STRIP 6785 # Extract the first word of "strip", so it can be a program name with args. 6786set dummy strip; ac_word=$2 6787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6788$as_echo_n "checking for $ac_word... " >&6; } 6789if ${ac_cv_prog_ac_ct_STRIP+:} false 6790then : 6791 $as_echo_n "(cached) " >&6 6792else 6793 if test -n "$ac_ct_STRIP"; then 6794 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6795else 6796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6797for as_dir in $PATH 6798do 6799 IFS=$as_save_IFS 6800 test -z "$as_dir" && as_dir=. 6801 for ac_exec_ext in '' $ac_executable_extensions; do 6802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6803 ac_cv_prog_ac_ct_STRIP="strip" 6804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6805 break 2 6806 fi 6807done 6808 done 6809IFS=$as_save_IFS 6810 6811fi 6812fi 6813ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6814if test -n "$ac_ct_STRIP"; then 6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6816$as_echo "$ac_ct_STRIP" >&6; } 6817else 6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6819$as_echo "no" >&6; } 6820fi 6821 6822 if test "x$ac_ct_STRIP" = x; then 6823 STRIP=":" 6824 else 6825 case $cross_compiling:$ac_tool_warned in 6826yes:) 6827{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6828$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6829ac_tool_warned=yes ;; 6830esac 6831 STRIP=$ac_ct_STRIP 6832 fi 6833else 6834 STRIP="$ac_cv_prog_STRIP" 6835fi 6836 6837test -z "$STRIP" && STRIP=: 6838 6839 6840 6841 6842 6843 6844if test -n "$ac_tool_prefix"; then 6845 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6846set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6848$as_echo_n "checking for $ac_word... " >&6; } 6849if ${ac_cv_prog_RANLIB+:} false 6850then : 6851 $as_echo_n "(cached) " >&6 6852else 6853 if test -n "$RANLIB"; then 6854 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6855else 6856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6857for as_dir in $PATH 6858do 6859 IFS=$as_save_IFS 6860 test -z "$as_dir" && as_dir=. 6861 for ac_exec_ext in '' $ac_executable_extensions; do 6862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6863 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6865 break 2 6866 fi 6867done 6868 done 6869IFS=$as_save_IFS 6870 6871fi 6872fi 6873RANLIB=$ac_cv_prog_RANLIB 6874if test -n "$RANLIB"; then 6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6876$as_echo "$RANLIB" >&6; } 6877else 6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6879$as_echo "no" >&6; } 6880fi 6881 6882 6883fi 6884if test -z "$ac_cv_prog_RANLIB"; then 6885 ac_ct_RANLIB=$RANLIB 6886 # Extract the first word of "ranlib", so it can be a program name with args. 6887set dummy ranlib; ac_word=$2 6888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6889$as_echo_n "checking for $ac_word... " >&6; } 6890if ${ac_cv_prog_ac_ct_RANLIB+:} false 6891then : 6892 $as_echo_n "(cached) " >&6 6893else 6894 if test -n "$ac_ct_RANLIB"; then 6895 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6896else 6897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6898for as_dir in $PATH 6899do 6900 IFS=$as_save_IFS 6901 test -z "$as_dir" && as_dir=. 6902 for ac_exec_ext in '' $ac_executable_extensions; do 6903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6904 ac_cv_prog_ac_ct_RANLIB="ranlib" 6905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6906 break 2 6907 fi 6908done 6909 done 6910IFS=$as_save_IFS 6911 6912fi 6913fi 6914ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6915if test -n "$ac_ct_RANLIB"; then 6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6917$as_echo "$ac_ct_RANLIB" >&6; } 6918else 6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6920$as_echo "no" >&6; } 6921fi 6922 6923 if test "x$ac_ct_RANLIB" = x; then 6924 RANLIB=":" 6925 else 6926 case $cross_compiling:$ac_tool_warned in 6927yes:) 6928{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6929$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6930ac_tool_warned=yes ;; 6931esac 6932 RANLIB=$ac_ct_RANLIB 6933 fi 6934else 6935 RANLIB="$ac_cv_prog_RANLIB" 6936fi 6937 6938test -z "$RANLIB" && RANLIB=: 6939 6940 6941 6942 6943 6944 6945# Determine commands to create old-style static archives. 6946old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6947old_postinstall_cmds='chmod 644 $oldlib' 6948old_postuninstall_cmds= 6949 6950if test -n "$RANLIB"; then 6951 case $host_os in 6952 bitrig* | openbsd*) 6953 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6954 ;; 6955 *) 6956 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6957 ;; 6958 esac 6959 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6960fi 6961 6962case $host_os in 6963 darwin*) 6964 lock_old_archive_extraction=yes ;; 6965 *) 6966 lock_old_archive_extraction=no ;; 6967esac 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007# If no C compiler was specified, use CC. 7008LTCC=${LTCC-"$CC"} 7009 7010# If no C compiler flags were specified, use CFLAGS. 7011LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7012 7013# Allow CC to be a program name with arguments. 7014compiler=$CC 7015 7016 7017# Check for command to grab the raw symbol name followed by C symbol from nm. 7018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7019$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7020if ${lt_cv_sys_global_symbol_pipe+:} false 7021then : 7022 $as_echo_n "(cached) " >&6 7023else 7024 7025# These are sane defaults that work on at least a few old systems. 7026# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7027 7028# Character class describing NM global symbol codes. 7029symcode='[BCDEGRST]' 7030 7031# Regexp to match symbols that can be accessed directly from C. 7032sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7033 7034# Define system-specific variables. 7035case $host_os in 7036aix*) 7037 symcode='[BCDT]' 7038 ;; 7039cygwin* | mingw* | pw32* | cegcc*) 7040 symcode='[ABCDGISTW]' 7041 ;; 7042hpux*) 7043 if test ia64 = "$host_cpu"; then 7044 symcode='[ABCDEGRST]' 7045 fi 7046 ;; 7047irix* | nonstopux*) 7048 symcode='[BCDEGRST]' 7049 ;; 7050osf*) 7051 symcode='[BCDEGQRST]' 7052 ;; 7053solaris*) 7054 symcode='[BCDRT]' 7055 ;; 7056sco3.2v5*) 7057 symcode='[DT]' 7058 ;; 7059sysv4.2uw2*) 7060 symcode='[DT]' 7061 ;; 7062sysv5* | sco5v6* | unixware* | OpenUNIX*) 7063 symcode='[ABDT]' 7064 ;; 7065sysv4) 7066 symcode='[DFNSTU]' 7067 ;; 7068esac 7069 7070# If we're using GNU nm, then use its standard symbol codes. 7071case `$NM -V 2>&1` in 7072*GNU* | *'with BFD'*) 7073 symcode='[ABCDGIRSTW]' ;; 7074esac 7075 7076if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7077 # Gets list of data symbols to import. 7078 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 7079 # Adjust the below global symbol transforms to fixup imported variables. 7080 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7081 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7082 lt_c_name_lib_hook="\ 7083 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7084 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7085else 7086 # Disable hooks by default. 7087 lt_cv_sys_global_symbol_to_import= 7088 lt_cdecl_hook= 7089 lt_c_name_hook= 7090 lt_c_name_lib_hook= 7091fi 7092 7093# Transform an extracted symbol line into a proper C declaration. 7094# Some systems (esp. on ia64) link data and code symbols differently, 7095# so use this general approach. 7096lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 7097$lt_cdecl_hook\ 7098" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7099" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7100 7101# Transform an extracted symbol line into symbol name and symbol address 7102lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 7103$lt_c_name_hook\ 7104" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7105" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7106 7107# Transform an extracted symbol line into symbol name with lib prefix and 7108# symbol address. 7109lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 7110$lt_c_name_lib_hook\ 7111" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7112" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7113" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7114 7115# Handle CRLF in mingw tool chain 7116opt_cr= 7117case $build_os in 7118mingw*) 7119 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7120 ;; 7121esac 7122 7123# Try without a prefix underscore, then with it. 7124for ac_symprfx in "" "_"; do 7125 7126 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7127 symxfrm="\\1 $ac_symprfx\\2 \\2" 7128 7129 # Write the raw and C identifiers. 7130 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7131 # Fake it for dumpbin and say T for any non-static function, 7132 # D for any global variable and I for any imported variable. 7133 # Also find C++ and __fastcall symbols from MSVC++, 7134 # which start with @ or ?. 7135 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7136" {last_section=section; section=\$ 3};"\ 7137" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7138" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7139" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7140" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7141" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7142" \$ 0!~/External *\|/{next};"\ 7143" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7144" {if(hide[section]) next};"\ 7145" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7146" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7147" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7148" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7149" ' prfx=^$ac_symprfx" 7150 else 7151 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7152 fi 7153 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7154 7155 # Check to see that the pipe works correctly. 7156 pipe_works=no 7157 7158 rm -f conftest* 7159 cat > conftest.$ac_ext <<_LT_EOF 7160#ifdef __cplusplus 7161extern "C" { 7162#endif 7163char nm_test_var; 7164void nm_test_func(void); 7165void nm_test_func(void){} 7166#ifdef __cplusplus 7167} 7168#endif 7169int main(){nm_test_var='a';nm_test_func();return(0);} 7170_LT_EOF 7171 7172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7173 (eval $ac_compile) 2>&5 7174 ac_status=$? 7175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7176 test $ac_status = 0; }; then 7177 # Now try to grab the symbols. 7178 nlist=conftest.nm 7179 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7180 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7181 ac_status=$? 7182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7183 test $ac_status = 0; } && test -s "$nlist"; then 7184 # Try sorting and uniquifying the output. 7185 if sort "$nlist" | uniq > "$nlist"T; then 7186 mv -f "$nlist"T "$nlist" 7187 else 7188 rm -f "$nlist"T 7189 fi 7190 7191 # Make sure that we snagged all the symbols we need. 7192 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7193 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7194 cat <<_LT_EOF > conftest.$ac_ext 7195/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7196#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7197/* DATA imports from DLLs on WIN32 can't be const, because runtime 7198 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7199# define LT_DLSYM_CONST 7200#elif defined __osf__ 7201/* This system does not cope well with relocations in const data. */ 7202# define LT_DLSYM_CONST 7203#else 7204# define LT_DLSYM_CONST const 7205#endif 7206 7207#ifdef __cplusplus 7208extern "C" { 7209#endif 7210 7211_LT_EOF 7212 # Now generate the symbol file. 7213 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7214 7215 cat <<_LT_EOF >> conftest.$ac_ext 7216 7217/* The mapping between symbol names and symbols. */ 7218LT_DLSYM_CONST struct { 7219 const char *name; 7220 void *address; 7221} 7222lt__PROGRAM__LTX_preloaded_symbols[] = 7223{ 7224 { "@PROGRAM@", (void *) 0 }, 7225_LT_EOF 7226 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7227 cat <<\_LT_EOF >> conftest.$ac_ext 7228 {0, (void *) 0} 7229}; 7230 7231/* This works around a problem in FreeBSD linker */ 7232#ifdef FREEBSD_WORKAROUND 7233static const void *lt_preloaded_setup() { 7234 return lt__PROGRAM__LTX_preloaded_symbols; 7235} 7236#endif 7237 7238#ifdef __cplusplus 7239} 7240#endif 7241_LT_EOF 7242 # Now try linking the two files. 7243 mv conftest.$ac_objext conftstm.$ac_objext 7244 lt_globsym_save_LIBS=$LIBS 7245 lt_globsym_save_CFLAGS=$CFLAGS 7246 LIBS=conftstm.$ac_objext 7247 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7248 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7249 (eval $ac_link) 2>&5 7250 ac_status=$? 7251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7252 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7253 pipe_works=yes 7254 fi 7255 LIBS=$lt_globsym_save_LIBS 7256 CFLAGS=$lt_globsym_save_CFLAGS 7257 else 7258 echo "cannot find nm_test_func in $nlist" >&5 7259 fi 7260 else 7261 echo "cannot find nm_test_var in $nlist" >&5 7262 fi 7263 else 7264 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7265 fi 7266 else 7267 echo "$progname: failed program was:" >&5 7268 cat conftest.$ac_ext >&5 7269 fi 7270 rm -rf conftest* conftst* 7271 7272 # Do not use the global_symbol_pipe unless it works. 7273 if test yes = "$pipe_works"; then 7274 break 7275 else 7276 lt_cv_sys_global_symbol_pipe= 7277 fi 7278done 7279 7280fi 7281 7282if test -z "$lt_cv_sys_global_symbol_pipe"; then 7283 lt_cv_sys_global_symbol_to_cdecl= 7284fi 7285if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7287$as_echo "failed" >&6; } 7288else 7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7290$as_echo "ok" >&6; } 7291fi 7292 7293# Response file support. 7294if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7295 nm_file_list_spec='@' 7296elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7297 nm_file_list_spec='@' 7298fi 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7337$as_echo_n "checking for sysroot... " >&6; } 7338 7339# Check whether --with-sysroot was given. 7340if test "${with_sysroot+set}" = set 7341then : 7342 withval=$with_sysroot; 7343else 7344 with_sysroot=no 7345fi 7346 7347 7348lt_sysroot= 7349case $with_sysroot in #( 7350 yes) 7351 if test yes = "$GCC"; then 7352 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7353 fi 7354 ;; #( 7355 /*) 7356 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7357 ;; #( 7358 no|'') 7359 ;; #( 7360 *) 7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7362$as_echo "$with_sysroot" >&6; } 7363 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7364 ;; 7365esac 7366 7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7368$as_echo "${lt_sysroot:-no}" >&6; } 7369 7370 7371 7372 7373 7374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7375$as_echo_n "checking for a working dd... " >&6; } 7376if ${ac_cv_path_lt_DD+:} false 7377then : 7378 $as_echo_n "(cached) " >&6 7379else 7380 printf 0123456789abcdef0123456789abcdef >conftest.i 7381cat conftest.i conftest.i >conftest2.i 7382: ${lt_DD:=$DD} 7383if test -z "$lt_DD"; then 7384 ac_path_lt_DD_found=false 7385 # Loop through the user's path and test for each of PROGNAME-LIST 7386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7387for as_dir in $PATH 7388do 7389 IFS=$as_save_IFS 7390 test -z "$as_dir" && as_dir=. 7391 for ac_prog in dd 7392 do 7393 for ac_exec_ext in '' $ac_executable_extensions; do 7394 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7395 as_fn_executable_p "$ac_path_lt_DD" || continue 7396if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7397 cmp -s conftest.i conftest.out \ 7398 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7399fi 7400 $ac_path_lt_DD_found && break 3 7401 done 7402 done 7403 done 7404IFS=$as_save_IFS 7405 if test -z "$ac_cv_path_lt_DD"; then 7406 : 7407 fi 7408else 7409 ac_cv_path_lt_DD=$lt_DD 7410fi 7411 7412rm -f conftest.i conftest2.i conftest.out 7413fi 7414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7415$as_echo "$ac_cv_path_lt_DD" >&6; } 7416 7417 7418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7419$as_echo_n "checking how to truncate binary pipes... " >&6; } 7420if ${lt_cv_truncate_bin+:} false 7421then : 7422 $as_echo_n "(cached) " >&6 7423else 7424 printf 0123456789abcdef0123456789abcdef >conftest.i 7425cat conftest.i conftest.i >conftest2.i 7426lt_cv_truncate_bin= 7427if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7428 cmp -s conftest.i conftest.out \ 7429 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7430fi 7431rm -f conftest.i conftest2.i conftest.out 7432test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7433fi 7434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7435$as_echo "$lt_cv_truncate_bin" >&6; } 7436 7437 7438 7439 7440 7441 7442 7443# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7444func_cc_basename () 7445{ 7446 for cc_temp in $*""; do 7447 case $cc_temp in 7448 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7449 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7450 \-*) ;; 7451 *) break;; 7452 esac 7453 done 7454 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7455} 7456 7457# Check whether --enable-libtool-lock was given. 7458if test "${enable_libtool_lock+set}" = set 7459then : 7460 enableval=$enable_libtool_lock; 7461fi 7462 7463test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7464 7465# Some flags need to be propagated to the compiler or linker for good 7466# libtool support. 7467case $host in 7468ia64-*-hpux*) 7469 # Find out what ABI is being produced by ac_compile, and set mode 7470 # options accordingly. 7471 echo 'int i;' > conftest.$ac_ext 7472 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7473 (eval $ac_compile) 2>&5 7474 ac_status=$? 7475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7476 test $ac_status = 0; }; then 7477 case `/usr/bin/file conftest.$ac_objext` in 7478 *ELF-32*) 7479 HPUX_IA64_MODE=32 7480 ;; 7481 *ELF-64*) 7482 HPUX_IA64_MODE=64 7483 ;; 7484 esac 7485 fi 7486 rm -rf conftest* 7487 ;; 7488*-*-irix6*) 7489 # Find out what ABI is being produced by ac_compile, and set linker 7490 # options accordingly. 7491 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7492 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7493 (eval $ac_compile) 2>&5 7494 ac_status=$? 7495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7496 test $ac_status = 0; }; then 7497 if test yes = "$lt_cv_prog_gnu_ld"; then 7498 case `/usr/bin/file conftest.$ac_objext` in 7499 *32-bit*) 7500 LD="${LD-ld} -melf32bsmip" 7501 ;; 7502 *N32*) 7503 LD="${LD-ld} -melf32bmipn32" 7504 ;; 7505 *64-bit*) 7506 LD="${LD-ld} -melf64bmip" 7507 ;; 7508 esac 7509 else 7510 case `/usr/bin/file conftest.$ac_objext` in 7511 *32-bit*) 7512 LD="${LD-ld} -32" 7513 ;; 7514 *N32*) 7515 LD="${LD-ld} -n32" 7516 ;; 7517 *64-bit*) 7518 LD="${LD-ld} -64" 7519 ;; 7520 esac 7521 fi 7522 fi 7523 rm -rf conftest* 7524 ;; 7525 7526mips64*-*linux*) 7527 # Find out what ABI is being produced by ac_compile, and set linker 7528 # options accordingly. 7529 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7530 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7531 (eval $ac_compile) 2>&5 7532 ac_status=$? 7533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7534 test $ac_status = 0; }; then 7535 emul=elf 7536 case `/usr/bin/file conftest.$ac_objext` in 7537 *32-bit*) 7538 emul="${emul}32" 7539 ;; 7540 *64-bit*) 7541 emul="${emul}64" 7542 ;; 7543 esac 7544 case `/usr/bin/file conftest.$ac_objext` in 7545 *MSB*) 7546 emul="${emul}btsmip" 7547 ;; 7548 *LSB*) 7549 emul="${emul}ltsmip" 7550 ;; 7551 esac 7552 case `/usr/bin/file conftest.$ac_objext` in 7553 *N32*) 7554 emul="${emul}n32" 7555 ;; 7556 esac 7557 LD="${LD-ld} -m $emul" 7558 fi 7559 rm -rf conftest* 7560 ;; 7561 7562x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7563s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7564 # Find out what ABI is being produced by ac_compile, and set linker 7565 # options accordingly. Note that the listed cases only cover the 7566 # situations where additional linker options are needed (such as when 7567 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7568 # vice versa); the common cases where no linker options are needed do 7569 # not appear in the list. 7570 echo 'int i;' > conftest.$ac_ext 7571 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7572 (eval $ac_compile) 2>&5 7573 ac_status=$? 7574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7575 test $ac_status = 0; }; then 7576 case `/usr/bin/file conftest.o` in 7577 *32-bit*) 7578 case $host in 7579 x86_64-*kfreebsd*-gnu) 7580 LD="${LD-ld} -m elf_i386_fbsd" 7581 ;; 7582 x86_64-*linux*) 7583 case `/usr/bin/file conftest.o` in 7584 *x86-64*) 7585 LD="${LD-ld} -m elf32_x86_64" 7586 ;; 7587 *) 7588 LD="${LD-ld} -m elf_i386" 7589 ;; 7590 esac 7591 ;; 7592 powerpc64le-*linux*) 7593 LD="${LD-ld} -m elf32lppclinux" 7594 ;; 7595 powerpc64-*linux*) 7596 LD="${LD-ld} -m elf32ppclinux" 7597 ;; 7598 s390x-*linux*) 7599 LD="${LD-ld} -m elf_s390" 7600 ;; 7601 sparc64-*linux*) 7602 LD="${LD-ld} -m elf32_sparc" 7603 ;; 7604 esac 7605 ;; 7606 *64-bit*) 7607 case $host in 7608 x86_64-*kfreebsd*-gnu) 7609 LD="${LD-ld} -m elf_x86_64_fbsd" 7610 ;; 7611 x86_64-*linux*) 7612 LD="${LD-ld} -m elf_x86_64" 7613 ;; 7614 powerpcle-*linux*|powerpc64le-*linux*) 7615 LD="${LD-ld} -m elf64lppc" 7616 ;; 7617 powerpc-*linux*|powerpc64-*linux*) 7618 LD="${LD-ld} -m elf64ppc" 7619 ;; 7620 s390*-*linux*|s390*-*tpf*) 7621 LD="${LD-ld} -m elf64_s390" 7622 ;; 7623 sparc*-*linux*) 7624 LD="${LD-ld} -m elf64_sparc" 7625 ;; 7626 esac 7627 ;; 7628 esac 7629 fi 7630 rm -rf conftest* 7631 ;; 7632 7633*-*-sco3.2v5*) 7634 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7635 SAVE_CFLAGS=$CFLAGS 7636 CFLAGS="$CFLAGS -belf" 7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7638$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7639if ${lt_cv_cc_needs_belf+:} false 7640then : 7641 $as_echo_n "(cached) " >&6 7642else 7643 ac_ext=c 7644ac_cpp='$CPP $CPPFLAGS' 7645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7647ac_compiler_gnu=$ac_cv_c_compiler_gnu 7648 7649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7650/* end confdefs.h. */ 7651 7652int 7653main (void) 7654{ 7655 7656 ; 7657 return 0; 7658} 7659_ACEOF 7660if ac_fn_c_try_link "$LINENO" 7661then : 7662 lt_cv_cc_needs_belf=yes 7663else 7664 lt_cv_cc_needs_belf=no 7665fi 7666rm -f core conftest.err conftest.$ac_objext \ 7667 conftest$ac_exeext conftest.$ac_ext 7668 ac_ext=c 7669ac_cpp='$CPP $CPPFLAGS' 7670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7672ac_compiler_gnu=$ac_cv_c_compiler_gnu 7673 7674fi 7675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7676$as_echo "$lt_cv_cc_needs_belf" >&6; } 7677 if test yes != "$lt_cv_cc_needs_belf"; then 7678 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7679 CFLAGS=$SAVE_CFLAGS 7680 fi 7681 ;; 7682*-*solaris*) 7683 # Find out what ABI is being produced by ac_compile, and set linker 7684 # options accordingly. 7685 echo 'int i;' > conftest.$ac_ext 7686 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7687 (eval $ac_compile) 2>&5 7688 ac_status=$? 7689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7690 test $ac_status = 0; }; then 7691 case `/usr/bin/file conftest.o` in 7692 *64-bit*) 7693 case $lt_cv_prog_gnu_ld in 7694 yes*) 7695 case $host in 7696 i?86-*-solaris*|x86_64-*-solaris*) 7697 LD="${LD-ld} -m elf_x86_64" 7698 ;; 7699 sparc*-*-solaris*) 7700 LD="${LD-ld} -m elf64_sparc" 7701 ;; 7702 esac 7703 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7704 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7705 LD=${LD-ld}_sol2 7706 fi 7707 ;; 7708 *) 7709 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7710 LD="${LD-ld} -64" 7711 fi 7712 ;; 7713 esac 7714 ;; 7715 esac 7716 fi 7717 rm -rf conftest* 7718 ;; 7719esac 7720 7721need_locks=$enable_libtool_lock 7722 7723if test -n "$ac_tool_prefix"; then 7724 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7725set dummy ${ac_tool_prefix}mt; ac_word=$2 7726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7727$as_echo_n "checking for $ac_word... " >&6; } 7728if ${ac_cv_prog_MANIFEST_TOOL+:} false 7729then : 7730 $as_echo_n "(cached) " >&6 7731else 7732 if test -n "$MANIFEST_TOOL"; then 7733 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7734else 7735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7736for as_dir in $PATH 7737do 7738 IFS=$as_save_IFS 7739 test -z "$as_dir" && as_dir=. 7740 for ac_exec_ext in '' $ac_executable_extensions; do 7741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7742 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7744 break 2 7745 fi 7746done 7747 done 7748IFS=$as_save_IFS 7749 7750fi 7751fi 7752MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7753if test -n "$MANIFEST_TOOL"; then 7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7755$as_echo "$MANIFEST_TOOL" >&6; } 7756else 7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7758$as_echo "no" >&6; } 7759fi 7760 7761 7762fi 7763if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7764 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7765 # Extract the first word of "mt", so it can be a program name with args. 7766set dummy mt; ac_word=$2 7767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7768$as_echo_n "checking for $ac_word... " >&6; } 7769if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false 7770then : 7771 $as_echo_n "(cached) " >&6 7772else 7773 if test -n "$ac_ct_MANIFEST_TOOL"; then 7774 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7775else 7776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7777for as_dir in $PATH 7778do 7779 IFS=$as_save_IFS 7780 test -z "$as_dir" && as_dir=. 7781 for ac_exec_ext in '' $ac_executable_extensions; do 7782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7783 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7785 break 2 7786 fi 7787done 7788 done 7789IFS=$as_save_IFS 7790 7791fi 7792fi 7793ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7794if test -n "$ac_ct_MANIFEST_TOOL"; then 7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7796$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7797else 7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7799$as_echo "no" >&6; } 7800fi 7801 7802 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7803 MANIFEST_TOOL=":" 7804 else 7805 case $cross_compiling:$ac_tool_warned in 7806yes:) 7807{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7808$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7809ac_tool_warned=yes ;; 7810esac 7811 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7812 fi 7813else 7814 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7815fi 7816 7817test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7819$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7820if ${lt_cv_path_mainfest_tool+:} false 7821then : 7822 $as_echo_n "(cached) " >&6 7823else 7824 lt_cv_path_mainfest_tool=no 7825 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7826 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7827 cat conftest.err >&5 7828 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7829 lt_cv_path_mainfest_tool=yes 7830 fi 7831 rm -f conftest* 7832fi 7833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7834$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7835if test yes != "$lt_cv_path_mainfest_tool"; then 7836 MANIFEST_TOOL=: 7837fi 7838 7839 7840 7841 7842 7843 7844 case $host_os in 7845 rhapsody* | darwin*) 7846 if test -n "$ac_tool_prefix"; then 7847 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7848set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7850$as_echo_n "checking for $ac_word... " >&6; } 7851if ${ac_cv_prog_DSYMUTIL+:} false 7852then : 7853 $as_echo_n "(cached) " >&6 7854else 7855 if test -n "$DSYMUTIL"; then 7856 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7857else 7858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7859for as_dir in $PATH 7860do 7861 IFS=$as_save_IFS 7862 test -z "$as_dir" && as_dir=. 7863 for ac_exec_ext in '' $ac_executable_extensions; do 7864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7865 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7867 break 2 7868 fi 7869done 7870 done 7871IFS=$as_save_IFS 7872 7873fi 7874fi 7875DSYMUTIL=$ac_cv_prog_DSYMUTIL 7876if test -n "$DSYMUTIL"; then 7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7878$as_echo "$DSYMUTIL" >&6; } 7879else 7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7881$as_echo "no" >&6; } 7882fi 7883 7884 7885fi 7886if test -z "$ac_cv_prog_DSYMUTIL"; then 7887 ac_ct_DSYMUTIL=$DSYMUTIL 7888 # Extract the first word of "dsymutil", so it can be a program name with args. 7889set dummy dsymutil; ac_word=$2 7890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7891$as_echo_n "checking for $ac_word... " >&6; } 7892if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false 7893then : 7894 $as_echo_n "(cached) " >&6 7895else 7896 if test -n "$ac_ct_DSYMUTIL"; then 7897 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7898else 7899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7900for as_dir in $PATH 7901do 7902 IFS=$as_save_IFS 7903 test -z "$as_dir" && as_dir=. 7904 for ac_exec_ext in '' $ac_executable_extensions; do 7905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7906 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7908 break 2 7909 fi 7910done 7911 done 7912IFS=$as_save_IFS 7913 7914fi 7915fi 7916ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7917if test -n "$ac_ct_DSYMUTIL"; then 7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7919$as_echo "$ac_ct_DSYMUTIL" >&6; } 7920else 7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7922$as_echo "no" >&6; } 7923fi 7924 7925 if test "x$ac_ct_DSYMUTIL" = x; then 7926 DSYMUTIL=":" 7927 else 7928 case $cross_compiling:$ac_tool_warned in 7929yes:) 7930{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7932ac_tool_warned=yes ;; 7933esac 7934 DSYMUTIL=$ac_ct_DSYMUTIL 7935 fi 7936else 7937 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7938fi 7939 7940 if test -n "$ac_tool_prefix"; then 7941 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7942set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7944$as_echo_n "checking for $ac_word... " >&6; } 7945if ${ac_cv_prog_NMEDIT+:} false 7946then : 7947 $as_echo_n "(cached) " >&6 7948else 7949 if test -n "$NMEDIT"; then 7950 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7951else 7952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7953for as_dir in $PATH 7954do 7955 IFS=$as_save_IFS 7956 test -z "$as_dir" && as_dir=. 7957 for ac_exec_ext in '' $ac_executable_extensions; do 7958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7959 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7961 break 2 7962 fi 7963done 7964 done 7965IFS=$as_save_IFS 7966 7967fi 7968fi 7969NMEDIT=$ac_cv_prog_NMEDIT 7970if test -n "$NMEDIT"; then 7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7972$as_echo "$NMEDIT" >&6; } 7973else 7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7975$as_echo "no" >&6; } 7976fi 7977 7978 7979fi 7980if test -z "$ac_cv_prog_NMEDIT"; then 7981 ac_ct_NMEDIT=$NMEDIT 7982 # Extract the first word of "nmedit", so it can be a program name with args. 7983set dummy nmedit; ac_word=$2 7984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7985$as_echo_n "checking for $ac_word... " >&6; } 7986if ${ac_cv_prog_ac_ct_NMEDIT+:} false 7987then : 7988 $as_echo_n "(cached) " >&6 7989else 7990 if test -n "$ac_ct_NMEDIT"; then 7991 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7992else 7993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7994for as_dir in $PATH 7995do 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_NMEDIT="nmedit" 8001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8002 break 2 8003 fi 8004done 8005 done 8006IFS=$as_save_IFS 8007 8008fi 8009fi 8010ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8011if test -n "$ac_ct_NMEDIT"; then 8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8013$as_echo "$ac_ct_NMEDIT" >&6; } 8014else 8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8016$as_echo "no" >&6; } 8017fi 8018 8019 if test "x$ac_ct_NMEDIT" = x; then 8020 NMEDIT=":" 8021 else 8022 case $cross_compiling:$ac_tool_warned in 8023yes:) 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;} 8026ac_tool_warned=yes ;; 8027esac 8028 NMEDIT=$ac_ct_NMEDIT 8029 fi 8030else 8031 NMEDIT="$ac_cv_prog_NMEDIT" 8032fi 8033 8034 if test -n "$ac_tool_prefix"; then 8035 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8036set dummy ${ac_tool_prefix}lipo; ac_word=$2 8037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8038$as_echo_n "checking for $ac_word... " >&6; } 8039if ${ac_cv_prog_LIPO+:} false 8040then : 8041 $as_echo_n "(cached) " >&6 8042else 8043 if test -n "$LIPO"; then 8044 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8045else 8046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8047for as_dir in $PATH 8048do 8049 IFS=$as_save_IFS 8050 test -z "$as_dir" && as_dir=. 8051 for ac_exec_ext in '' $ac_executable_extensions; do 8052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8053 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8055 break 2 8056 fi 8057done 8058 done 8059IFS=$as_save_IFS 8060 8061fi 8062fi 8063LIPO=$ac_cv_prog_LIPO 8064if test -n "$LIPO"; then 8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8066$as_echo "$LIPO" >&6; } 8067else 8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8069$as_echo "no" >&6; } 8070fi 8071 8072 8073fi 8074if test -z "$ac_cv_prog_LIPO"; then 8075 ac_ct_LIPO=$LIPO 8076 # Extract the first word of "lipo", so it can be a program name with args. 8077set dummy lipo; ac_word=$2 8078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8079$as_echo_n "checking for $ac_word... " >&6; } 8080if ${ac_cv_prog_ac_ct_LIPO+:} false 8081then : 8082 $as_echo_n "(cached) " >&6 8083else 8084 if test -n "$ac_ct_LIPO"; then 8085 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8086else 8087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8088for as_dir in $PATH 8089do 8090 IFS=$as_save_IFS 8091 test -z "$as_dir" && as_dir=. 8092 for ac_exec_ext in '' $ac_executable_extensions; do 8093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8094 ac_cv_prog_ac_ct_LIPO="lipo" 8095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8096 break 2 8097 fi 8098done 8099 done 8100IFS=$as_save_IFS 8101 8102fi 8103fi 8104ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8105if test -n "$ac_ct_LIPO"; then 8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8107$as_echo "$ac_ct_LIPO" >&6; } 8108else 8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8110$as_echo "no" >&6; } 8111fi 8112 8113 if test "x$ac_ct_LIPO" = x; then 8114 LIPO=":" 8115 else 8116 case $cross_compiling:$ac_tool_warned in 8117yes:) 8118{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8119$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8120ac_tool_warned=yes ;; 8121esac 8122 LIPO=$ac_ct_LIPO 8123 fi 8124else 8125 LIPO="$ac_cv_prog_LIPO" 8126fi 8127 8128 if test -n "$ac_tool_prefix"; then 8129 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8130set dummy ${ac_tool_prefix}otool; ac_word=$2 8131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8132$as_echo_n "checking for $ac_word... " >&6; } 8133if ${ac_cv_prog_OTOOL+:} false 8134then : 8135 $as_echo_n "(cached) " >&6 8136else 8137 if test -n "$OTOOL"; then 8138 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8139else 8140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8141for as_dir in $PATH 8142do 8143 IFS=$as_save_IFS 8144 test -z "$as_dir" && as_dir=. 8145 for ac_exec_ext in '' $ac_executable_extensions; do 8146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8147 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8149 break 2 8150 fi 8151done 8152 done 8153IFS=$as_save_IFS 8154 8155fi 8156fi 8157OTOOL=$ac_cv_prog_OTOOL 8158if test -n "$OTOOL"; then 8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8160$as_echo "$OTOOL" >&6; } 8161else 8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8163$as_echo "no" >&6; } 8164fi 8165 8166 8167fi 8168if test -z "$ac_cv_prog_OTOOL"; then 8169 ac_ct_OTOOL=$OTOOL 8170 # Extract the first word of "otool", so it can be a program name with args. 8171set dummy otool; ac_word=$2 8172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8173$as_echo_n "checking for $ac_word... " >&6; } 8174if ${ac_cv_prog_ac_ct_OTOOL+:} false 8175then : 8176 $as_echo_n "(cached) " >&6 8177else 8178 if test -n "$ac_ct_OTOOL"; then 8179 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8180else 8181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8182for as_dir in $PATH 8183do 8184 IFS=$as_save_IFS 8185 test -z "$as_dir" && as_dir=. 8186 for ac_exec_ext in '' $ac_executable_extensions; do 8187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8188 ac_cv_prog_ac_ct_OTOOL="otool" 8189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8190 break 2 8191 fi 8192done 8193 done 8194IFS=$as_save_IFS 8195 8196fi 8197fi 8198ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8199if test -n "$ac_ct_OTOOL"; then 8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8201$as_echo "$ac_ct_OTOOL" >&6; } 8202else 8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8204$as_echo "no" >&6; } 8205fi 8206 8207 if test "x$ac_ct_OTOOL" = x; then 8208 OTOOL=":" 8209 else 8210 case $cross_compiling:$ac_tool_warned in 8211yes:) 8212{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8213$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8214ac_tool_warned=yes ;; 8215esac 8216 OTOOL=$ac_ct_OTOOL 8217 fi 8218else 8219 OTOOL="$ac_cv_prog_OTOOL" 8220fi 8221 8222 if test -n "$ac_tool_prefix"; then 8223 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8224set dummy ${ac_tool_prefix}otool64; ac_word=$2 8225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8226$as_echo_n "checking for $ac_word... " >&6; } 8227if ${ac_cv_prog_OTOOL64+:} false 8228then : 8229 $as_echo_n "(cached) " >&6 8230else 8231 if test -n "$OTOOL64"; then 8232 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8233else 8234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8235for as_dir in $PATH 8236do 8237 IFS=$as_save_IFS 8238 test -z "$as_dir" && as_dir=. 8239 for ac_exec_ext in '' $ac_executable_extensions; do 8240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8241 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8243 break 2 8244 fi 8245done 8246 done 8247IFS=$as_save_IFS 8248 8249fi 8250fi 8251OTOOL64=$ac_cv_prog_OTOOL64 8252if test -n "$OTOOL64"; then 8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8254$as_echo "$OTOOL64" >&6; } 8255else 8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8257$as_echo "no" >&6; } 8258fi 8259 8260 8261fi 8262if test -z "$ac_cv_prog_OTOOL64"; then 8263 ac_ct_OTOOL64=$OTOOL64 8264 # Extract the first word of "otool64", so it can be a program name with args. 8265set dummy otool64; ac_word=$2 8266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8267$as_echo_n "checking for $ac_word... " >&6; } 8268if ${ac_cv_prog_ac_ct_OTOOL64+:} false 8269then : 8270 $as_echo_n "(cached) " >&6 8271else 8272 if test -n "$ac_ct_OTOOL64"; then 8273 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8274else 8275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8276for as_dir in $PATH 8277do 8278 IFS=$as_save_IFS 8279 test -z "$as_dir" && as_dir=. 8280 for ac_exec_ext in '' $ac_executable_extensions; do 8281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8282 ac_cv_prog_ac_ct_OTOOL64="otool64" 8283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8284 break 2 8285 fi 8286done 8287 done 8288IFS=$as_save_IFS 8289 8290fi 8291fi 8292ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8293if test -n "$ac_ct_OTOOL64"; then 8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8295$as_echo "$ac_ct_OTOOL64" >&6; } 8296else 8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8298$as_echo "no" >&6; } 8299fi 8300 8301 if test "x$ac_ct_OTOOL64" = x; then 8302 OTOOL64=":" 8303 else 8304 case $cross_compiling:$ac_tool_warned in 8305yes:) 8306{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8307$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8308ac_tool_warned=yes ;; 8309esac 8310 OTOOL64=$ac_ct_OTOOL64 8311 fi 8312else 8313 OTOOL64="$ac_cv_prog_OTOOL64" 8314fi 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8343$as_echo_n "checking for -single_module linker flag... " >&6; } 8344if ${lt_cv_apple_cc_single_mod+:} false 8345then : 8346 $as_echo_n "(cached) " >&6 8347else 8348 lt_cv_apple_cc_single_mod=no 8349 if test -z "$LT_MULTI_MODULE"; then 8350 # By default we will add the -single_module flag. You can override 8351 # by either setting the environment variable LT_MULTI_MODULE 8352 # non-empty at configure time, or by adding -multi_module to the 8353 # link flags. 8354 rm -rf libconftest.dylib* 8355 echo "int foo(void){return 1;}" > conftest.c 8356 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8357-dynamiclib -Wl,-single_module conftest.c" >&5 8358 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8359 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8360 _lt_result=$? 8361 # If there is a non-empty error log, and "single_module" 8362 # appears in it, assume the flag caused a linker warning 8363 if test -s conftest.err && $GREP single_module conftest.err; then 8364 cat conftest.err >&5 8365 # Otherwise, if the output was created with a 0 exit code from 8366 # the compiler, it worked. 8367 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8368 lt_cv_apple_cc_single_mod=yes 8369 else 8370 cat conftest.err >&5 8371 fi 8372 rm -rf libconftest.dylib* 8373 rm -f conftest.* 8374 fi 8375fi 8376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8377$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8378 8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8380$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8381if ${lt_cv_ld_exported_symbols_list+:} false 8382then : 8383 $as_echo_n "(cached) " >&6 8384else 8385 lt_cv_ld_exported_symbols_list=no 8386 save_LDFLAGS=$LDFLAGS 8387 echo "_main" > conftest.sym 8388 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8390/* end confdefs.h. */ 8391 8392int 8393main (void) 8394{ 8395 8396 ; 8397 return 0; 8398} 8399_ACEOF 8400if ac_fn_c_try_link "$LINENO" 8401then : 8402 lt_cv_ld_exported_symbols_list=yes 8403else 8404 lt_cv_ld_exported_symbols_list=no 8405fi 8406rm -f core conftest.err conftest.$ac_objext \ 8407 conftest$ac_exeext conftest.$ac_ext 8408 LDFLAGS=$save_LDFLAGS 8409 8410fi 8411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8412$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8413 8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8415$as_echo_n "checking for -force_load linker flag... " >&6; } 8416if ${lt_cv_ld_force_load+:} false 8417then : 8418 $as_echo_n "(cached) " >&6 8419else 8420 lt_cv_ld_force_load=no 8421 cat > conftest.c << _LT_EOF 8422int forced_loaded() { return 2;} 8423_LT_EOF 8424 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8425 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8426 echo "$AR cru libconftest.a conftest.o" >&5 8427 $AR cru libconftest.a conftest.o 2>&5 8428 echo "$RANLIB libconftest.a" >&5 8429 $RANLIB libconftest.a 2>&5 8430 cat > conftest.c << _LT_EOF 8431int main() { return 0;} 8432_LT_EOF 8433 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8434 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8435 _lt_result=$? 8436 if test -s conftest.err && $GREP force_load conftest.err; then 8437 cat conftest.err >&5 8438 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8439 lt_cv_ld_force_load=yes 8440 else 8441 cat conftest.err >&5 8442 fi 8443 rm -f conftest.err libconftest.a conftest conftest.c 8444 rm -rf conftest.dSYM 8445 8446fi 8447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8448$as_echo "$lt_cv_ld_force_load" >&6; } 8449 case $host_os in 8450 rhapsody* | darwin1.[012]) 8451 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8452 darwin1.*) 8453 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8454 darwin*) # darwin 5.x on 8455 # if running on 10.5 or later, the deployment target defaults 8456 # to the OS version, if on x86, and 10.4, the deployment 8457 # target defaults to 10.4. Don't you love it? 8458 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8459 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8460 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8461 10.[012][,.]*) 8462 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8463 10.*) 8464 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8465 esac 8466 ;; 8467 esac 8468 if test yes = "$lt_cv_apple_cc_single_mod"; then 8469 _lt_dar_single_mod='$single_module' 8470 fi 8471 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8472 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8473 else 8474 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8475 fi 8476 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8477 _lt_dsymutil='~$DSYMUTIL $lib || :' 8478 else 8479 _lt_dsymutil= 8480 fi 8481 ;; 8482 esac 8483 8484# func_munge_path_list VARIABLE PATH 8485# ----------------------------------- 8486# VARIABLE is name of variable containing _space_ separated list of 8487# directories to be munged by the contents of PATH, which is string 8488# having a format: 8489# "DIR[:DIR]:" 8490# string "DIR[ DIR]" will be prepended to VARIABLE 8491# ":DIR[:DIR]" 8492# string "DIR[ DIR]" will be appended to VARIABLE 8493# "DIRP[:DIRP]::[DIRA:]DIRA" 8494# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8495# "DIRA[ DIRA]" will be appended to VARIABLE 8496# "DIR[:DIR]" 8497# VARIABLE will be replaced by "DIR[ DIR]" 8498func_munge_path_list () 8499{ 8500 case x$2 in 8501 x) 8502 ;; 8503 *:) 8504 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8505 ;; 8506 x:*) 8507 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8508 ;; 8509 *::*) 8510 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8511 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8512 ;; 8513 *) 8514 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8515 ;; 8516 esac 8517} 8518 8519ac_ext=c 8520ac_cpp='$CPP $CPPFLAGS' 8521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8523ac_compiler_gnu=$ac_cv_c_compiler_gnu 8524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 8525$as_echo_n "checking how to run the C preprocessor... " >&6; } 8526# On Suns, sometimes $CPP names a directory. 8527if test -n "$CPP" && test -d "$CPP"; then 8528 CPP= 8529fi 8530if test -z "$CPP"; then 8531 if ${ac_cv_prog_CPP+:} false 8532then : 8533 $as_echo_n "(cached) " >&6 8534else 8535 # Double quotes because CPP needs to be expanded 8536 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 8537 do 8538 ac_preproc_ok=false 8539for ac_c_preproc_warn_flag in '' yes 8540do 8541 # Use a header file that comes with gcc, so configuring glibc 8542 # with a fresh cross-compiler works. 8543 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8544 # <limits.h> exists even on freestanding compilers. 8545 # On the NeXT, cc -E runs the code through the compiler's parser, 8546 # not just through cpp. "Syntax error" is here to catch this case. 8547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8548/* end confdefs.h. */ 8549#ifdef __STDC__ 8550# include <limits.h> 8551#else 8552# include <assert.h> 8553#endif 8554 Syntax error 8555_ACEOF 8556if ac_fn_c_try_cpp "$LINENO" 8557then : 8558 8559else 8560 # Broken: fails on valid input. 8561continue 8562fi 8563rm -f conftest.err conftest.i conftest.$ac_ext 8564 8565 # OK, works on sane cases. Now check whether nonexistent headers 8566 # can be detected and how. 8567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8568/* end confdefs.h. */ 8569#include <ac_nonexistent.h> 8570_ACEOF 8571if ac_fn_c_try_cpp "$LINENO" 8572then : 8573 # Broken: success on invalid input. 8574continue 8575else 8576 # Passes both tests. 8577ac_preproc_ok=: 8578break 8579fi 8580rm -f conftest.err conftest.i conftest.$ac_ext 8581 8582done 8583# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8584rm -f conftest.i conftest.err conftest.$ac_ext 8585if $ac_preproc_ok 8586then : 8587 break 8588fi 8589 8590 done 8591 ac_cv_prog_CPP=$CPP 8592 8593fi 8594 CPP=$ac_cv_prog_CPP 8595else 8596 ac_cv_prog_CPP=$CPP 8597fi 8598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 8599$as_echo "$CPP" >&6; } 8600ac_preproc_ok=false 8601for ac_c_preproc_warn_flag in '' yes 8602do 8603 # Use a header file that comes with gcc, so configuring glibc 8604 # with a fresh cross-compiler works. 8605 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8606 # <limits.h> exists even on freestanding compilers. 8607 # On the NeXT, cc -E runs the code through the compiler's parser, 8608 # not just through cpp. "Syntax error" is here to catch this case. 8609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8610/* end confdefs.h. */ 8611#ifdef __STDC__ 8612# include <limits.h> 8613#else 8614# include <assert.h> 8615#endif 8616 Syntax error 8617_ACEOF 8618if ac_fn_c_try_cpp "$LINENO" 8619then : 8620 8621else 8622 # Broken: fails on valid input. 8623continue 8624fi 8625rm -f conftest.err conftest.i conftest.$ac_ext 8626 8627 # OK, works on sane cases. Now check whether nonexistent headers 8628 # can be detected and how. 8629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8630/* end confdefs.h. */ 8631#include <ac_nonexistent.h> 8632_ACEOF 8633if ac_fn_c_try_cpp "$LINENO" 8634then : 8635 # Broken: success on invalid input. 8636continue 8637else 8638 # Passes both tests. 8639ac_preproc_ok=: 8640break 8641fi 8642rm -f conftest.err conftest.i conftest.$ac_ext 8643 8644done 8645# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8646rm -f conftest.i conftest.err conftest.$ac_ext 8647if $ac_preproc_ok 8648then : 8649 8650else 8651 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8652$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8653as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 8654See \`config.log' for more details" "$LINENO" 5; } 8655fi 8656 8657ac_ext=c 8658ac_cpp='$CPP $CPPFLAGS' 8659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8661ac_compiler_gnu=$ac_cv_c_compiler_gnu 8662 8663 8664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8665$as_echo_n "checking for ANSI C header files... " >&6; } 8666if ${ac_cv_header_stdc+:} false 8667then : 8668 $as_echo_n "(cached) " >&6 8669else 8670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8671/* end confdefs.h. */ 8672#include <stdlib.h> 8673#include <stdarg.h> 8674#include <string.h> 8675#include <float.h> 8676 8677int 8678main (void) 8679{ 8680 8681 ; 8682 return 0; 8683} 8684_ACEOF 8685if ac_fn_c_try_compile "$LINENO" 8686then : 8687 ac_cv_header_stdc=yes 8688else 8689 ac_cv_header_stdc=no 8690fi 8691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8692 8693if test $ac_cv_header_stdc = yes; then 8694 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8696/* end confdefs.h. */ 8697#include <string.h> 8698 8699_ACEOF 8700if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8701 $EGREP "memchr" >/dev/null 2>&1 8702then : 8703 8704else 8705 ac_cv_header_stdc=no 8706fi 8707rm -f conftest* 8708 8709fi 8710 8711if test $ac_cv_header_stdc = yes; then 8712 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8714/* end confdefs.h. */ 8715#include <stdlib.h> 8716 8717_ACEOF 8718if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8719 $EGREP "free" >/dev/null 2>&1 8720then : 8721 8722else 8723 ac_cv_header_stdc=no 8724fi 8725rm -f conftest* 8726 8727fi 8728 8729if test $ac_cv_header_stdc = yes; then 8730 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8731 if test "$cross_compiling" = yes 8732then : 8733 : 8734else 8735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8736/* end confdefs.h. */ 8737#include <ctype.h> 8738#include <stdlib.h> 8739#if ((' ' & 0x0FF) == 0x020) 8740# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8741# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8742#else 8743# define ISLOWER(c) \ 8744 (('a' <= (c) && (c) <= 'i') \ 8745 || ('j' <= (c) && (c) <= 'r') \ 8746 || ('s' <= (c) && (c) <= 'z')) 8747# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8748#endif 8749 8750#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8751int 8752main (void) 8753{ 8754 int i; 8755 for (i = 0; i < 256; i++) 8756 if (XOR (islower (i), ISLOWER (i)) 8757 || toupper (i) != TOUPPER (i)) 8758 return 2; 8759 return 0; 8760} 8761_ACEOF 8762if ac_fn_c_try_run "$LINENO" 8763then : 8764 8765else 8766 ac_cv_header_stdc=no 8767fi 8768rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8769 conftest.$ac_objext conftest.beam conftest.$ac_ext 8770fi 8771 8772fi 8773fi 8774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8775$as_echo "$ac_cv_header_stdc" >&6; } 8776if test $ac_cv_header_stdc = yes; then 8777 8778$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8779 8780fi 8781 8782# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8783for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8784 inttypes.h stdint.h unistd.h 8785do : 8786 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8787ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8788" 8789if eval test \"x\$"$as_ac_Header"\" = x"yes" 8790then : 8791 cat >>confdefs.h <<_ACEOF 8792#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8793_ACEOF 8794 8795fi 8796 8797done 8798 8799 8800for ac_header in dlfcn.h 8801do : 8802 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8803" 8804if test "x$ac_cv_header_dlfcn_h" = xyes 8805then : 8806 cat >>confdefs.h <<_ACEOF 8807#define HAVE_DLFCN_H 1 8808_ACEOF 8809 8810fi 8811 8812done 8813 8814 8815 8816 8817 8818# Set options 8819 8820 8821 8822 enable_dlopen=no 8823 8824 8825 8826 # Check whether --enable-shared was given. 8827if test "${enable_shared+set}" = set 8828then : 8829 enableval=$enable_shared; p=${PACKAGE-default} 8830 case $enableval in 8831 yes) enable_shared=yes ;; 8832 no) enable_shared=no ;; 8833 *) 8834 enable_shared=no 8835 # Look at the argument we got. We use all the common list separators. 8836 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8837 for pkg in $enableval; do 8838 IFS=$lt_save_ifs 8839 if test "X$pkg" = "X$p"; then 8840 enable_shared=yes 8841 fi 8842 done 8843 IFS=$lt_save_ifs 8844 ;; 8845 esac 8846else 8847 enable_shared=yes 8848fi 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 # Check whether --enable-static was given. 8859if test "${enable_static+set}" = set 8860then : 8861 enableval=$enable_static; p=${PACKAGE-default} 8862 case $enableval in 8863 yes) enable_static=yes ;; 8864 no) enable_static=no ;; 8865 *) 8866 enable_static=no 8867 # Look at the argument we got. We use all the common list separators. 8868 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8869 for pkg in $enableval; do 8870 IFS=$lt_save_ifs 8871 if test "X$pkg" = "X$p"; then 8872 enable_static=yes 8873 fi 8874 done 8875 IFS=$lt_save_ifs 8876 ;; 8877 esac 8878else 8879 enable_static=yes 8880fi 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891# Check whether --with-pic was given. 8892if test "${with_pic+set}" = set 8893then : 8894 withval=$with_pic; lt_p=${PACKAGE-default} 8895 case $withval in 8896 yes|no) pic_mode=$withval ;; 8897 *) 8898 pic_mode=default 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 lt_pkg in $withval; do 8902 IFS=$lt_save_ifs 8903 if test "X$lt_pkg" = "X$lt_p"; then 8904 pic_mode=yes 8905 fi 8906 done 8907 IFS=$lt_save_ifs 8908 ;; 8909 esac 8910else 8911 pic_mode=default 8912fi 8913 8914 8915 8916 8917 8918 8919 8920 8921 # Check whether --enable-fast-install was given. 8922if test "${enable_fast_install+set}" = set 8923then : 8924 enableval=$enable_fast_install; p=${PACKAGE-default} 8925 case $enableval in 8926 yes) enable_fast_install=yes ;; 8927 no) enable_fast_install=no ;; 8928 *) 8929 enable_fast_install=no 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 pkg in $enableval; do 8933 IFS=$lt_save_ifs 8934 if test "X$pkg" = "X$p"; then 8935 enable_fast_install=yes 8936 fi 8937 done 8938 IFS=$lt_save_ifs 8939 ;; 8940 esac 8941else 8942 enable_fast_install=yes 8943fi 8944 8945 8946 8947 8948 8949 8950 8951 8952 shared_archive_member_spec= 8953case $host,$enable_shared in 8954power*-*-aix[5-9]*,yes) 8955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8956$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8957 8958# Check whether --with-aix-soname was given. 8959if test "${with_aix_soname+set}" = set 8960then : 8961 withval=$with_aix_soname; case $withval in 8962 aix|svr4|both) 8963 ;; 8964 *) 8965 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8966 ;; 8967 esac 8968 lt_cv_with_aix_soname=$with_aix_soname 8969else 8970 if ${lt_cv_with_aix_soname+:} false 8971then : 8972 $as_echo_n "(cached) " >&6 8973else 8974 lt_cv_with_aix_soname=aix 8975fi 8976 8977 with_aix_soname=$lt_cv_with_aix_soname 8978fi 8979 8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8981$as_echo "$with_aix_soname" >&6; } 8982 if test aix != "$with_aix_soname"; then 8983 # For the AIX way of multilib, we name the shared archive member 8984 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8985 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8986 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8987 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8988 if test 64 = "${OBJECT_MODE-32}"; then 8989 shared_archive_member_spec=shr_64 8990 else 8991 shared_archive_member_spec=shr 8992 fi 8993 fi 8994 ;; 8995*) 8996 with_aix_soname=aix 8997 ;; 8998esac 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009# This can be used to rebuild libtool when needed 9010LIBTOOL_DEPS=$ltmain 9011 9012# Always use our own libtool. 9013LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044test -z "$LN_S" && LN_S="ln -s" 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059if test -n "${ZSH_VERSION+set}"; then 9060 setopt NO_GLOB_SUBST 9061fi 9062 9063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9064$as_echo_n "checking for objdir... " >&6; } 9065if ${lt_cv_objdir+:} false 9066then : 9067 $as_echo_n "(cached) " >&6 9068else 9069 rm -f .libs 2>/dev/null 9070mkdir .libs 2>/dev/null 9071if test -d .libs; then 9072 lt_cv_objdir=.libs 9073else 9074 # MS-DOS does not allow filenames that begin with a dot. 9075 lt_cv_objdir=_libs 9076fi 9077rmdir .libs 2>/dev/null 9078fi 9079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9080$as_echo "$lt_cv_objdir" >&6; } 9081objdir=$lt_cv_objdir 9082 9083 9084 9085 9086 9087cat >>confdefs.h <<_ACEOF 9088#define LT_OBJDIR "$lt_cv_objdir/" 9089_ACEOF 9090 9091 9092 9093 9094case $host_os in 9095aix3*) 9096 # AIX sometimes has problems with the GCC collect2 program. For some 9097 # reason, if we set the COLLECT_NAMES environment variable, the problems 9098 # vanish in a puff of smoke. 9099 if test set != "${COLLECT_NAMES+set}"; then 9100 COLLECT_NAMES= 9101 export COLLECT_NAMES 9102 fi 9103 ;; 9104esac 9105 9106# Global variables: 9107ofile=libtool 9108can_build_shared=yes 9109 9110# All known linkers require a '.a' archive for static linking (except MSVC, 9111# which needs '.lib'). 9112libext=a 9113 9114with_gnu_ld=$lt_cv_prog_gnu_ld 9115 9116old_CC=$CC 9117old_CFLAGS=$CFLAGS 9118 9119# Set sane defaults for various variables 9120test -z "$CC" && CC=cc 9121test -z "$LTCC" && LTCC=$CC 9122test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9123test -z "$LD" && LD=ld 9124test -z "$ac_objext" && ac_objext=o 9125 9126func_cc_basename $compiler 9127cc_basename=$func_cc_basename_result 9128 9129 9130# Only perform the check for file, if the check method requires it 9131test -z "$MAGIC_CMD" && MAGIC_CMD=file 9132case $deplibs_check_method in 9133file_magic*) 9134 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9136$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9137if ${lt_cv_path_MAGIC_CMD+:} false 9138then : 9139 $as_echo_n "(cached) " >&6 9140else 9141 case $MAGIC_CMD in 9142[\\/*] | ?:[\\/]*) 9143 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9144 ;; 9145*) 9146 lt_save_MAGIC_CMD=$MAGIC_CMD 9147 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9148 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9149 for ac_dir in $ac_dummy; do 9150 IFS=$lt_save_ifs 9151 test -z "$ac_dir" && ac_dir=. 9152 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9153 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9154 if test -n "$file_magic_test_file"; then 9155 case $deplibs_check_method in 9156 "file_magic "*) 9157 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9158 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9159 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9160 $EGREP "$file_magic_regex" > /dev/null; then 9161 : 9162 else 9163 cat <<_LT_EOF 1>&2 9164 9165*** Warning: the command libtool uses to detect shared libraries, 9166*** $file_magic_cmd, produces output that libtool cannot recognize. 9167*** The result is that libtool may fail to recognize shared libraries 9168*** as such. This will affect the creation of libtool libraries that 9169*** depend on shared libraries, but programs linked with such libtool 9170*** libraries will work regardless of this problem. Nevertheless, you 9171*** may want to report the problem to your system manager and/or to 9172*** bug-libtool@gnu.org 9173 9174_LT_EOF 9175 fi ;; 9176 esac 9177 fi 9178 break 9179 fi 9180 done 9181 IFS=$lt_save_ifs 9182 MAGIC_CMD=$lt_save_MAGIC_CMD 9183 ;; 9184esac 9185fi 9186 9187MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9188if test -n "$MAGIC_CMD"; then 9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9190$as_echo "$MAGIC_CMD" >&6; } 9191else 9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9193$as_echo "no" >&6; } 9194fi 9195 9196 9197 9198 9199 9200if test -z "$lt_cv_path_MAGIC_CMD"; then 9201 if test -n "$ac_tool_prefix"; then 9202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9203$as_echo_n "checking for file... " >&6; } 9204if ${lt_cv_path_MAGIC_CMD+:} false 9205then : 9206 $as_echo_n "(cached) " >&6 9207else 9208 case $MAGIC_CMD in 9209[\\/*] | ?:[\\/]*) 9210 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9211 ;; 9212*) 9213 lt_save_MAGIC_CMD=$MAGIC_CMD 9214 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9215 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9216 for ac_dir in $ac_dummy; do 9217 IFS=$lt_save_ifs 9218 test -z "$ac_dir" && ac_dir=. 9219 if test -f "$ac_dir/file"; then 9220 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9221 if test -n "$file_magic_test_file"; then 9222 case $deplibs_check_method in 9223 "file_magic "*) 9224 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9225 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9226 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9227 $EGREP "$file_magic_regex" > /dev/null; then 9228 : 9229 else 9230 cat <<_LT_EOF 1>&2 9231 9232*** Warning: the command libtool uses to detect shared libraries, 9233*** $file_magic_cmd, produces output that libtool cannot recognize. 9234*** The result is that libtool may fail to recognize shared libraries 9235*** as such. This will affect the creation of libtool libraries that 9236*** depend on shared libraries, but programs linked with such libtool 9237*** libraries will work regardless of this problem. Nevertheless, you 9238*** may want to report the problem to your system manager and/or to 9239*** bug-libtool@gnu.org 9240 9241_LT_EOF 9242 fi ;; 9243 esac 9244 fi 9245 break 9246 fi 9247 done 9248 IFS=$lt_save_ifs 9249 MAGIC_CMD=$lt_save_MAGIC_CMD 9250 ;; 9251esac 9252fi 9253 9254MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9255if test -n "$MAGIC_CMD"; then 9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9257$as_echo "$MAGIC_CMD" >&6; } 9258else 9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9260$as_echo "no" >&6; } 9261fi 9262 9263 9264 else 9265 MAGIC_CMD=: 9266 fi 9267fi 9268 9269 fi 9270 ;; 9271esac 9272 9273# Use C for the default configuration in the libtool script 9274 9275lt_save_CC=$CC 9276ac_ext=c 9277ac_cpp='$CPP $CPPFLAGS' 9278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9280ac_compiler_gnu=$ac_cv_c_compiler_gnu 9281 9282 9283# Source file extension for C test sources. 9284ac_ext=c 9285 9286# Object file extension for compiled C test sources. 9287objext=o 9288objext=$objext 9289 9290# Code to be used in simple compile tests 9291lt_simple_compile_test_code="int some_variable = 0;" 9292 9293# Code to be used in simple link tests 9294lt_simple_link_test_code='int main(){return(0);}' 9295 9296 9297 9298 9299 9300 9301 9302# If no C compiler was specified, use CC. 9303LTCC=${LTCC-"$CC"} 9304 9305# If no C compiler flags were specified, use CFLAGS. 9306LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9307 9308# Allow CC to be a program name with arguments. 9309compiler=$CC 9310 9311# Save the default compiler, since it gets overwritten when the other 9312# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9313compiler_DEFAULT=$CC 9314 9315# save warnings/boilerplate of simple test code 9316ac_outfile=conftest.$ac_objext 9317echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9318eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9319_lt_compiler_boilerplate=`cat conftest.err` 9320$RM conftest* 9321 9322ac_outfile=conftest.$ac_objext 9323echo "$lt_simple_link_test_code" >conftest.$ac_ext 9324eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9325_lt_linker_boilerplate=`cat conftest.err` 9326$RM -r conftest* 9327 9328 9329## CAVEAT EMPTOR: 9330## There is no encapsulation within the following macros, do not change 9331## the running order or otherwise move them around unless you know exactly 9332## what you are doing... 9333if test -n "$compiler"; then 9334 9335lt_prog_compiler_no_builtin_flag= 9336 9337if test yes = "$GCC"; then 9338 case $cc_basename in 9339 nvcc*) 9340 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9341 *) 9342 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9343 esac 9344 9345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9346$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9347if ${lt_cv_prog_compiler_rtti_exceptions+:} false 9348then : 9349 $as_echo_n "(cached) " >&6 9350else 9351 lt_cv_prog_compiler_rtti_exceptions=no 9352 ac_outfile=conftest.$ac_objext 9353 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9354 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9355 # Insert the option either (1) after the last *FLAGS variable, or 9356 # (2) before a word containing "conftest.", or (3) at the end. 9357 # Note that $ac_compile itself does not contain backslashes and begins 9358 # with a dollar sign (not a hyphen), so the echo should work correctly. 9359 # The option is referenced via a variable to avoid confusing sed. 9360 lt_compile=`echo "$ac_compile" | $SED \ 9361 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9362 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9363 -e 's:$: $lt_compiler_flag:'` 9364 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9365 (eval "$lt_compile" 2>conftest.err) 9366 ac_status=$? 9367 cat conftest.err >&5 9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9369 if (exit $ac_status) && test -s "$ac_outfile"; then 9370 # The compiler can only warn and ignore the option if not recognized 9371 # So say no if there are warnings other than the usual output. 9372 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9373 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9374 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9375 lt_cv_prog_compiler_rtti_exceptions=yes 9376 fi 9377 fi 9378 $RM conftest* 9379 9380fi 9381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9382$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9383 9384if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9385 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9386else 9387 : 9388fi 9389 9390fi 9391 9392 9393 9394 9395 9396 9397 lt_prog_compiler_wl= 9398lt_prog_compiler_pic= 9399lt_prog_compiler_static= 9400 9401 9402 if test yes = "$GCC"; then 9403 lt_prog_compiler_wl='-Wl,' 9404 lt_prog_compiler_static='-static' 9405 9406 case $host_os in 9407 aix*) 9408 # All AIX code is PIC. 9409 if test ia64 = "$host_cpu"; then 9410 # AIX 5 now supports IA64 processor 9411 lt_prog_compiler_static='-Bstatic' 9412 fi 9413 lt_prog_compiler_pic='-fPIC' 9414 ;; 9415 9416 amigaos*) 9417 case $host_cpu in 9418 powerpc) 9419 # see comment about AmigaOS4 .so support 9420 lt_prog_compiler_pic='-fPIC' 9421 ;; 9422 m68k) 9423 # FIXME: we need at least 68020 code to build shared libraries, but 9424 # adding the '-m68020' flag to GCC prevents building anything better, 9425 # like '-m68040'. 9426 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9427 ;; 9428 esac 9429 ;; 9430 9431 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9432 # PIC is the default for these OSes. 9433 ;; 9434 9435 mingw* | cygwin* | pw32* | os2* | cegcc*) 9436 # This hack is so that the source file can tell whether it is being 9437 # built for inclusion in a dll (and should export symbols for example). 9438 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9439 # (--disable-auto-import) libraries 9440 lt_prog_compiler_pic='-DDLL_EXPORT' 9441 case $host_os in 9442 os2*) 9443 lt_prog_compiler_static='$wl-static' 9444 ;; 9445 esac 9446 ;; 9447 9448 darwin* | rhapsody*) 9449 # PIC is the default on this platform 9450 # Common symbols not allowed in MH_DYLIB files 9451 lt_prog_compiler_pic='-fno-common' 9452 ;; 9453 9454 haiku*) 9455 # PIC is the default for Haiku. 9456 # The "-static" flag exists, but is broken. 9457 lt_prog_compiler_static= 9458 ;; 9459 9460 hpux*) 9461 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9462 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9463 # sets the default TLS model and affects inlining. 9464 case $host_cpu in 9465 hppa*64*) 9466 # +Z the default 9467 ;; 9468 *) 9469 lt_prog_compiler_pic='-fPIC' 9470 ;; 9471 esac 9472 ;; 9473 9474 interix[3-9]*) 9475 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9476 # Instead, we relocate shared libraries at runtime. 9477 ;; 9478 9479 msdosdjgpp*) 9480 # Just because we use GCC doesn't mean we suddenly get shared libraries 9481 # on systems that don't support them. 9482 lt_prog_compiler_can_build_shared=no 9483 enable_shared=no 9484 ;; 9485 9486 *nto* | *qnx*) 9487 # QNX uses GNU C++, but need to define -shared option too, otherwise 9488 # it will coredump. 9489 lt_prog_compiler_pic='-fPIC -shared' 9490 ;; 9491 9492 sysv4*MP*) 9493 if test -d /usr/nec; then 9494 lt_prog_compiler_pic=-Kconform_pic 9495 fi 9496 ;; 9497 9498 *) 9499 lt_prog_compiler_pic='-fPIC' 9500 ;; 9501 esac 9502 9503 case $cc_basename in 9504 nvcc*) # Cuda Compiler Driver 2.2 9505 lt_prog_compiler_wl='-Xlinker ' 9506 if test -n "$lt_prog_compiler_pic"; then 9507 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9508 fi 9509 ;; 9510 esac 9511 else 9512 # PORTME Check for flag to pass linker flags through the system compiler. 9513 case $host_os in 9514 aix*) 9515 lt_prog_compiler_wl='-Wl,' 9516 if test ia64 = "$host_cpu"; then 9517 # AIX 5 now supports IA64 processor 9518 lt_prog_compiler_static='-Bstatic' 9519 else 9520 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9521 fi 9522 ;; 9523 9524 darwin* | rhapsody*) 9525 # PIC is the default on this platform 9526 # Common symbols not allowed in MH_DYLIB files 9527 lt_prog_compiler_pic='-fno-common' 9528 case $cc_basename in 9529 nagfor*) 9530 # NAG Fortran compiler 9531 lt_prog_compiler_wl='-Wl,-Wl,,' 9532 lt_prog_compiler_pic='-PIC' 9533 lt_prog_compiler_static='-Bstatic' 9534 ;; 9535 esac 9536 ;; 9537 9538 mingw* | cygwin* | pw32* | os2* | cegcc*) 9539 # This hack is so that the source file can tell whether it is being 9540 # built for inclusion in a dll (and should export symbols for example). 9541 lt_prog_compiler_pic='-DDLL_EXPORT' 9542 case $host_os in 9543 os2*) 9544 lt_prog_compiler_static='$wl-static' 9545 ;; 9546 esac 9547 ;; 9548 9549 hpux9* | hpux10* | hpux11*) 9550 lt_prog_compiler_wl='-Wl,' 9551 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9552 # not for PA HP-UX. 9553 case $host_cpu in 9554 hppa*64*|ia64*) 9555 # +Z the default 9556 ;; 9557 *) 9558 lt_prog_compiler_pic='+Z' 9559 ;; 9560 esac 9561 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9562 lt_prog_compiler_static='$wl-a ${wl}archive' 9563 ;; 9564 9565 irix5* | irix6* | nonstopux*) 9566 lt_prog_compiler_wl='-Wl,' 9567 # PIC (with -KPIC) is the default. 9568 lt_prog_compiler_static='-non_shared' 9569 ;; 9570 9571 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9572 case $cc_basename in 9573 # old Intel for x86_64, which still supported -KPIC. 9574 ecc*) 9575 lt_prog_compiler_wl='-Wl,' 9576 lt_prog_compiler_pic='-KPIC' 9577 lt_prog_compiler_static='-static' 9578 ;; 9579 # icc used to be incompatible with GCC. 9580 # ICC 10 doesn't accept -KPIC any more. 9581 icc* | ifort*) 9582 lt_prog_compiler_wl='-Wl,' 9583 lt_prog_compiler_pic='-fPIC' 9584 lt_prog_compiler_static='-static' 9585 ;; 9586 # Lahey Fortran 8.1. 9587 lf95*) 9588 lt_prog_compiler_wl='-Wl,' 9589 lt_prog_compiler_pic='--shared' 9590 lt_prog_compiler_static='--static' 9591 ;; 9592 nagfor*) 9593 # NAG Fortran compiler 9594 lt_prog_compiler_wl='-Wl,-Wl,,' 9595 lt_prog_compiler_pic='-PIC' 9596 lt_prog_compiler_static='-Bstatic' 9597 ;; 9598 tcc*) 9599 # Fabrice Bellard et al's Tiny C Compiler 9600 lt_prog_compiler_wl='-Wl,' 9601 lt_prog_compiler_pic='-fPIC' 9602 lt_prog_compiler_static='-static' 9603 ;; 9604 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9605 # Portland Group compilers (*not* the Pentium gcc compiler, 9606 # which looks to be a dead project) 9607 lt_prog_compiler_wl='-Wl,' 9608 lt_prog_compiler_pic='-fpic' 9609 lt_prog_compiler_static='-Bstatic' 9610 ;; 9611 ccc*) 9612 lt_prog_compiler_wl='-Wl,' 9613 # All Alpha code is PIC. 9614 lt_prog_compiler_static='-non_shared' 9615 ;; 9616 xl* | bgxl* | bgf* | mpixl*) 9617 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9618 lt_prog_compiler_wl='-Wl,' 9619 lt_prog_compiler_pic='-qpic' 9620 lt_prog_compiler_static='-qstaticlink' 9621 ;; 9622 *) 9623 case `$CC -V 2>&1 | sed 5q` in 9624 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9625 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9626 lt_prog_compiler_pic='-KPIC' 9627 lt_prog_compiler_static='-Bstatic' 9628 lt_prog_compiler_wl='' 9629 ;; 9630 *Sun\ F* | *Sun*Fortran*) 9631 lt_prog_compiler_pic='-KPIC' 9632 lt_prog_compiler_static='-Bstatic' 9633 lt_prog_compiler_wl='-Qoption ld ' 9634 ;; 9635 *Sun\ C*) 9636 # Sun C 5.9 9637 lt_prog_compiler_pic='-KPIC' 9638 lt_prog_compiler_static='-Bstatic' 9639 lt_prog_compiler_wl='-Wl,' 9640 ;; 9641 *Intel*\ [CF]*Compiler*) 9642 lt_prog_compiler_wl='-Wl,' 9643 lt_prog_compiler_pic='-fPIC' 9644 lt_prog_compiler_static='-static' 9645 ;; 9646 *Portland\ Group*) 9647 lt_prog_compiler_wl='-Wl,' 9648 lt_prog_compiler_pic='-fpic' 9649 lt_prog_compiler_static='-Bstatic' 9650 ;; 9651 esac 9652 ;; 9653 esac 9654 ;; 9655 9656 newsos6) 9657 lt_prog_compiler_pic='-KPIC' 9658 lt_prog_compiler_static='-Bstatic' 9659 ;; 9660 9661 *nto* | *qnx*) 9662 # QNX uses GNU C++, but need to define -shared option too, otherwise 9663 # it will coredump. 9664 lt_prog_compiler_pic='-fPIC -shared' 9665 ;; 9666 9667 osf3* | osf4* | osf5*) 9668 lt_prog_compiler_wl='-Wl,' 9669 # All OSF/1 code is PIC. 9670 lt_prog_compiler_static='-non_shared' 9671 ;; 9672 9673 rdos*) 9674 lt_prog_compiler_static='-non_shared' 9675 ;; 9676 9677 solaris*) 9678 lt_prog_compiler_pic='-KPIC' 9679 lt_prog_compiler_static='-Bstatic' 9680 case $cc_basename in 9681 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9682 lt_prog_compiler_wl='-Qoption ld ';; 9683 *) 9684 lt_prog_compiler_wl='-Wl,';; 9685 esac 9686 ;; 9687 9688 sunos4*) 9689 lt_prog_compiler_wl='-Qoption ld ' 9690 lt_prog_compiler_pic='-PIC' 9691 lt_prog_compiler_static='-Bstatic' 9692 ;; 9693 9694 sysv4 | sysv4.2uw2* | sysv4.3*) 9695 lt_prog_compiler_wl='-Wl,' 9696 lt_prog_compiler_pic='-KPIC' 9697 lt_prog_compiler_static='-Bstatic' 9698 ;; 9699 9700 sysv4*MP*) 9701 if test -d /usr/nec; then 9702 lt_prog_compiler_pic='-Kconform_pic' 9703 lt_prog_compiler_static='-Bstatic' 9704 fi 9705 ;; 9706 9707 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9708 lt_prog_compiler_wl='-Wl,' 9709 lt_prog_compiler_pic='-KPIC' 9710 lt_prog_compiler_static='-Bstatic' 9711 ;; 9712 9713 unicos*) 9714 lt_prog_compiler_wl='-Wl,' 9715 lt_prog_compiler_can_build_shared=no 9716 ;; 9717 9718 uts4*) 9719 lt_prog_compiler_pic='-pic' 9720 lt_prog_compiler_static='-Bstatic' 9721 ;; 9722 9723 *) 9724 lt_prog_compiler_can_build_shared=no 9725 ;; 9726 esac 9727 fi 9728 9729case $host_os in 9730 # For platforms that do not support PIC, -DPIC is meaningless: 9731 *djgpp*) 9732 lt_prog_compiler_pic= 9733 ;; 9734 *) 9735 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9736 ;; 9737esac 9738 9739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9740$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9741if ${lt_cv_prog_compiler_pic+:} false 9742then : 9743 $as_echo_n "(cached) " >&6 9744else 9745 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9746fi 9747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9748$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9749lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9750 9751# 9752# Check to make sure the PIC flag actually works. 9753# 9754if test -n "$lt_prog_compiler_pic"; then 9755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9756$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9757if ${lt_cv_prog_compiler_pic_works+:} false 9758then : 9759 $as_echo_n "(cached) " >&6 9760else 9761 lt_cv_prog_compiler_pic_works=no 9762 ac_outfile=conftest.$ac_objext 9763 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9764 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9765 # Insert the option either (1) after the last *FLAGS variable, or 9766 # (2) before a word containing "conftest.", or (3) at the end. 9767 # Note that $ac_compile itself does not contain backslashes and begins 9768 # with a dollar sign (not a hyphen), so the echo should work correctly. 9769 # The option is referenced via a variable to avoid confusing sed. 9770 lt_compile=`echo "$ac_compile" | $SED \ 9771 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9772 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9773 -e 's:$: $lt_compiler_flag:'` 9774 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9775 (eval "$lt_compile" 2>conftest.err) 9776 ac_status=$? 9777 cat conftest.err >&5 9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9779 if (exit $ac_status) && test -s "$ac_outfile"; then 9780 # The compiler can only warn and ignore the option if not recognized 9781 # So say no if there are warnings other than the usual output. 9782 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9783 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9784 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9785 lt_cv_prog_compiler_pic_works=yes 9786 fi 9787 fi 9788 $RM conftest* 9789 9790fi 9791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9792$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9793 9794if test yes = "$lt_cv_prog_compiler_pic_works"; then 9795 case $lt_prog_compiler_pic in 9796 "" | " "*) ;; 9797 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9798 esac 9799else 9800 lt_prog_compiler_pic= 9801 lt_prog_compiler_can_build_shared=no 9802fi 9803 9804fi 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816# 9817# Check to make sure the static flag actually works. 9818# 9819wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9821$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9822if ${lt_cv_prog_compiler_static_works+:} false 9823then : 9824 $as_echo_n "(cached) " >&6 9825else 9826 lt_cv_prog_compiler_static_works=no 9827 save_LDFLAGS=$LDFLAGS 9828 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9829 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9830 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9831 # The linker can only warn and ignore the option if not recognized 9832 # So say no if there are warnings 9833 if test -s conftest.err; then 9834 # Append any errors to the config.log. 9835 cat conftest.err 1>&5 9836 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9837 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9838 if diff conftest.exp conftest.er2 >/dev/null; then 9839 lt_cv_prog_compiler_static_works=yes 9840 fi 9841 else 9842 lt_cv_prog_compiler_static_works=yes 9843 fi 9844 fi 9845 $RM -r conftest* 9846 LDFLAGS=$save_LDFLAGS 9847 9848fi 9849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9850$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9851 9852if test yes = "$lt_cv_prog_compiler_static_works"; then 9853 : 9854else 9855 lt_prog_compiler_static= 9856fi 9857 9858 9859 9860 9861 9862 9863 9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9865$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9866if ${lt_cv_prog_compiler_c_o+:} false 9867then : 9868 $as_echo_n "(cached) " >&6 9869else 9870 lt_cv_prog_compiler_c_o=no 9871 $RM -r conftest 2>/dev/null 9872 mkdir conftest 9873 cd conftest 9874 mkdir out 9875 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9876 9877 lt_compiler_flag="-o out/conftest2.$ac_objext" 9878 # Insert the option either (1) after the last *FLAGS variable, or 9879 # (2) before a word containing "conftest.", or (3) at the end. 9880 # Note that $ac_compile itself does not contain backslashes and begins 9881 # with a dollar sign (not a hyphen), so the echo should work correctly. 9882 lt_compile=`echo "$ac_compile" | $SED \ 9883 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9884 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9885 -e 's:$: $lt_compiler_flag:'` 9886 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9887 (eval "$lt_compile" 2>out/conftest.err) 9888 ac_status=$? 9889 cat out/conftest.err >&5 9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9891 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9892 then 9893 # The compiler can only warn and ignore the option if not recognized 9894 # So say no if there are warnings 9895 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9896 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9897 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9898 lt_cv_prog_compiler_c_o=yes 9899 fi 9900 fi 9901 chmod u+w . 2>&5 9902 $RM conftest* 9903 # SGI C++ compiler will create directory out/ii_files/ for 9904 # template instantiation 9905 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9906 $RM out/* && rmdir out 9907 cd .. 9908 $RM -r conftest 9909 $RM conftest* 9910 9911fi 9912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9913$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9914 9915 9916 9917 9918 9919 9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9921$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9922if ${lt_cv_prog_compiler_c_o+:} false 9923then : 9924 $as_echo_n "(cached) " >&6 9925else 9926 lt_cv_prog_compiler_c_o=no 9927 $RM -r conftest 2>/dev/null 9928 mkdir conftest 9929 cd conftest 9930 mkdir out 9931 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9932 9933 lt_compiler_flag="-o out/conftest2.$ac_objext" 9934 # Insert the option either (1) after the last *FLAGS variable, or 9935 # (2) before a word containing "conftest.", or (3) at the end. 9936 # Note that $ac_compile itself does not contain backslashes and begins 9937 # with a dollar sign (not a hyphen), so the echo should work correctly. 9938 lt_compile=`echo "$ac_compile" | $SED \ 9939 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9940 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9941 -e 's:$: $lt_compiler_flag:'` 9942 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9943 (eval "$lt_compile" 2>out/conftest.err) 9944 ac_status=$? 9945 cat out/conftest.err >&5 9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9947 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9948 then 9949 # The compiler can only warn and ignore the option if not recognized 9950 # So say no if there are warnings 9951 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9952 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9953 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9954 lt_cv_prog_compiler_c_o=yes 9955 fi 9956 fi 9957 chmod u+w . 2>&5 9958 $RM conftest* 9959 # SGI C++ compiler will create directory out/ii_files/ for 9960 # template instantiation 9961 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9962 $RM out/* && rmdir out 9963 cd .. 9964 $RM -r conftest 9965 $RM conftest* 9966 9967fi 9968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9969$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9970 9971 9972 9973 9974hard_links=nottested 9975if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9976 # do not overwrite the value of need_locks provided by the user 9977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9978$as_echo_n "checking if we can lock with hard links... " >&6; } 9979 hard_links=yes 9980 $RM conftest* 9981 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9982 touch conftest.a 9983 ln conftest.a conftest.b 2>&5 || hard_links=no 9984 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9986$as_echo "$hard_links" >&6; } 9987 if test no = "$hard_links"; then 9988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9989$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9990 need_locks=warn 9991 fi 9992else 9993 need_locks=no 9994fi 9995 9996 9997 9998 9999 10000 10001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10002$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10003 10004 runpath_var= 10005 allow_undefined_flag= 10006 always_export_symbols=no 10007 archive_cmds= 10008 archive_expsym_cmds= 10009 compiler_needs_object=no 10010 enable_shared_with_static_runtimes=no 10011 export_dynamic_flag_spec= 10012 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10013 hardcode_automatic=no 10014 hardcode_direct=no 10015 hardcode_direct_absolute=no 10016 hardcode_libdir_flag_spec= 10017 hardcode_libdir_separator= 10018 hardcode_minus_L=no 10019 hardcode_shlibpath_var=unsupported 10020 inherit_rpath=no 10021 link_all_deplibs=unknown 10022 module_cmds= 10023 module_expsym_cmds= 10024 old_archive_from_new_cmds= 10025 old_archive_from_expsyms_cmds= 10026 thread_safe_flag_spec= 10027 whole_archive_flag_spec= 10028 # include_expsyms should be a list of space-separated symbols to be *always* 10029 # included in the symbol list 10030 include_expsyms= 10031 # exclude_expsyms can be an extended regexp of symbols to exclude 10032 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10033 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10034 # as well as any symbol that contains 'd'. 10035 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10036 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10037 # platforms (ab)use it in PIC code, but their linkers get confused if 10038 # the symbol is explicitly referenced. Since portable code cannot 10039 # rely on this symbol name, it's probably fine to never include it in 10040 # preloaded symbol tables. 10041 # Exclude shared library initialization/finalization symbols. 10042 extract_expsyms_cmds= 10043 10044 case $host_os in 10045 cygwin* | mingw* | pw32* | cegcc*) 10046 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10047 # When not using gcc, we currently assume that we are using 10048 # Microsoft Visual C++. 10049 if test yes != "$GCC"; then 10050 with_gnu_ld=no 10051 fi 10052 ;; 10053 interix*) 10054 # we just hope/assume this is gcc and not c89 (= MSVC++) 10055 with_gnu_ld=yes 10056 ;; 10057 openbsd* | bitrig*) 10058 with_gnu_ld=no 10059 ;; 10060 esac 10061 10062 ld_shlibs=yes 10063 10064 # On some targets, GNU ld is compatible enough with the native linker 10065 # that we're better off using the native interface for both. 10066 lt_use_gnu_ld_interface=no 10067 if test yes = "$with_gnu_ld"; then 10068 case $host_os in 10069 aix*) 10070 # The AIX port of GNU ld has always aspired to compatibility 10071 # with the native linker. However, as the warning in the GNU ld 10072 # block says, versions before 2.19.5* couldn't really create working 10073 # shared libraries, regardless of the interface used. 10074 case `$LD -v 2>&1` in 10075 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10076 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10077 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10078 *) 10079 lt_use_gnu_ld_interface=yes 10080 ;; 10081 esac 10082 ;; 10083 *) 10084 lt_use_gnu_ld_interface=yes 10085 ;; 10086 esac 10087 fi 10088 10089 if test yes = "$lt_use_gnu_ld_interface"; then 10090 # If archive_cmds runs LD, not CC, wlarc should be empty 10091 wlarc='$wl' 10092 10093 # Set some defaults for GNU ld with shared library support. These 10094 # are reset later if shared libraries are not supported. Putting them 10095 # here allows them to be overridden if necessary. 10096 runpath_var=LD_RUN_PATH 10097 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10098 export_dynamic_flag_spec='$wl--export-dynamic' 10099 # ancient GNU ld didn't support --whole-archive et. al. 10100 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10101 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10102 else 10103 whole_archive_flag_spec= 10104 fi 10105 supports_anon_versioning=no 10106 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 10107 *GNU\ gold*) supports_anon_versioning=yes ;; 10108 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10109 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10110 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10111 *\ 2.11.*) ;; # other 2.11 versions 10112 *) supports_anon_versioning=yes ;; 10113 esac 10114 10115 # See if GNU ld supports shared libraries. 10116 case $host_os in 10117 aix[3-9]*) 10118 # On AIX/PPC, the GNU linker is very broken 10119 if test ia64 != "$host_cpu"; then 10120 ld_shlibs=no 10121 cat <<_LT_EOF 1>&2 10122 10123*** Warning: the GNU linker, at least up to release 2.19, is reported 10124*** to be unable to reliably create shared libraries on AIX. 10125*** Therefore, libtool is disabling shared libraries support. If you 10126*** really care for shared libraries, you may want to install binutils 10127*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10128*** You will then need to restart the configuration process. 10129 10130_LT_EOF 10131 fi 10132 ;; 10133 10134 amigaos*) 10135 case $host_cpu in 10136 powerpc) 10137 # see comment about AmigaOS4 .so support 10138 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10139 archive_expsym_cmds='' 10140 ;; 10141 m68k) 10142 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)' 10143 hardcode_libdir_flag_spec='-L$libdir' 10144 hardcode_minus_L=yes 10145 ;; 10146 esac 10147 ;; 10148 10149 beos*) 10150 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10151 allow_undefined_flag=unsupported 10152 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10153 # support --undefined. This deserves some investigation. FIXME 10154 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10155 else 10156 ld_shlibs=no 10157 fi 10158 ;; 10159 10160 cygwin* | mingw* | pw32* | cegcc*) 10161 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10162 # as there is no search path for DLLs. 10163 hardcode_libdir_flag_spec='-L$libdir' 10164 export_dynamic_flag_spec='$wl--export-all-symbols' 10165 allow_undefined_flag=unsupported 10166 always_export_symbols=no 10167 enable_shared_with_static_runtimes=yes 10168 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' 10169 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10170 10171 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10172 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10173 # If the export-symbols file already is a .def file, use it as 10174 # is; otherwise, prepend EXPORTS... 10175 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10176 cp $export_symbols $output_objdir/$soname.def; 10177 else 10178 echo EXPORTS > $output_objdir/$soname.def; 10179 cat $export_symbols >> $output_objdir/$soname.def; 10180 fi~ 10181 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10182 else 10183 ld_shlibs=no 10184 fi 10185 ;; 10186 10187 haiku*) 10188 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10189 link_all_deplibs=yes 10190 ;; 10191 10192 os2*) 10193 hardcode_libdir_flag_spec='-L$libdir' 10194 hardcode_minus_L=yes 10195 allow_undefined_flag=unsupported 10196 shrext_cmds=.dll 10197 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10198 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10199 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10200 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10201 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10202 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10203 emximp -o $lib $output_objdir/$libname.def' 10204 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10205 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10206 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10207 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10208 prefix_cmds="$SED"~ 10209 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10210 prefix_cmds="$prefix_cmds -e 1d"; 10211 fi~ 10212 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10213 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10214 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10215 emximp -o $lib $output_objdir/$libname.def' 10216 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10217 enable_shared_with_static_runtimes=yes 10218 file_list_spec='@' 10219 ;; 10220 10221 interix[3-9]*) 10222 hardcode_direct=no 10223 hardcode_shlibpath_var=no 10224 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10225 export_dynamic_flag_spec='$wl-E' 10226 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10227 # Instead, shared libraries are loaded at an image base (0x10000000 by 10228 # default) and relocated if they conflict, which is a slow very memory 10229 # consuming and fragmenting process. To avoid this, we pick a random, 10230 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10231 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10232 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10233 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' 10234 ;; 10235 10236 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10237 tmp_diet=no 10238 if test linux-dietlibc = "$host_os"; then 10239 case $cc_basename in 10240 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10241 esac 10242 fi 10243 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10244 && test no = "$tmp_diet" 10245 then 10246 tmp_addflag=' $pic_flag' 10247 tmp_sharedflag='-shared' 10248 case $cc_basename,$host_cpu in 10249 pgcc*) # Portland Group C compiler 10250 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' 10251 tmp_addflag=' $pic_flag' 10252 ;; 10253 pgf77* | pgf90* | pgf95* | pgfortran*) 10254 # Portland Group f77 and f90 compilers 10255 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' 10256 tmp_addflag=' $pic_flag -Mnomain' ;; 10257 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10258 tmp_addflag=' -i_dynamic' ;; 10259 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10260 tmp_addflag=' -i_dynamic -nofor_main' ;; 10261 ifc* | ifort*) # Intel Fortran compiler 10262 tmp_addflag=' -nofor_main' ;; 10263 lf95*) # Lahey Fortran 8.1 10264 whole_archive_flag_spec= 10265 tmp_sharedflag='--shared' ;; 10266 nagfor*) # NAGFOR 5.3 10267 tmp_sharedflag='-Wl,-shared' ;; 10268 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10269 tmp_sharedflag='-qmkshrobj' 10270 tmp_addflag= ;; 10271 nvcc*) # Cuda Compiler Driver 2.2 10272 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' 10273 compiler_needs_object=yes 10274 ;; 10275 esac 10276 case `$CC -V 2>&1 | sed 5q` in 10277 *Sun\ C*) # Sun C 5.9 10278 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' 10279 compiler_needs_object=yes 10280 tmp_sharedflag='-G' ;; 10281 *Sun\ F*) # Sun Fortran 8.3 10282 tmp_sharedflag='-G' ;; 10283 esac 10284 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10285 10286 if test yes = "$supports_anon_versioning"; then 10287 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10288 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10289 echo "local: *; };" >> $output_objdir/$libname.ver~ 10290 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10291 fi 10292 10293 case $cc_basename in 10294 tcc*) 10295 export_dynamic_flag_spec='-rdynamic' 10296 ;; 10297 xlf* | bgf* | bgxlf* | mpixlf*) 10298 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10299 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10300 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10301 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10302 if test yes = "$supports_anon_versioning"; then 10303 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10304 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10305 echo "local: *; };" >> $output_objdir/$libname.ver~ 10306 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10307 fi 10308 ;; 10309 esac 10310 else 10311 ld_shlibs=no 10312 fi 10313 ;; 10314 10315 netbsd*) 10316 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10317 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10318 wlarc= 10319 else 10320 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10321 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10322 fi 10323 ;; 10324 10325 solaris*) 10326 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10327 ld_shlibs=no 10328 cat <<_LT_EOF 1>&2 10329 10330*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10331*** create shared libraries on Solaris systems. Therefore, libtool 10332*** is disabling shared libraries support. We urge you to upgrade GNU 10333*** binutils to release 2.9.1 or newer. Another option is to modify 10334*** your PATH or compiler configuration so that the native linker is 10335*** used, and then restart. 10336 10337_LT_EOF 10338 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 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 else 10342 ld_shlibs=no 10343 fi 10344 ;; 10345 10346 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10347 case `$LD -v 2>&1` in 10348 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10349 ld_shlibs=no 10350 cat <<_LT_EOF 1>&2 10351 10352*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10353*** reliably create shared libraries on SCO systems. Therefore, libtool 10354*** is disabling shared libraries support. We urge you to upgrade GNU 10355*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10356*** your PATH or compiler configuration so that the native linker is 10357*** used, and then restart. 10358 10359_LT_EOF 10360 ;; 10361 *) 10362 # For security reasons, it is highly recommended that you always 10363 # use absolute paths for naming shared libraries, and exclude the 10364 # DT_RUNPATH tag from executables and libraries. But doing so 10365 # requires that you compile everything twice, which is a pain. 10366 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10367 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10368 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10369 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10370 else 10371 ld_shlibs=no 10372 fi 10373 ;; 10374 esac 10375 ;; 10376 10377 sunos4*) 10378 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10379 wlarc= 10380 hardcode_direct=yes 10381 hardcode_shlibpath_var=no 10382 ;; 10383 10384 *) 10385 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10386 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10387 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10388 else 10389 ld_shlibs=no 10390 fi 10391 ;; 10392 esac 10393 10394 if test no = "$ld_shlibs"; then 10395 runpath_var= 10396 hardcode_libdir_flag_spec= 10397 export_dynamic_flag_spec= 10398 whole_archive_flag_spec= 10399 fi 10400 else 10401 # PORTME fill in a description of your system's linker (not GNU ld) 10402 case $host_os in 10403 aix3*) 10404 allow_undefined_flag=unsupported 10405 always_export_symbols=yes 10406 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' 10407 # Note: this linker hardcodes the directories in LIBPATH if there 10408 # are no directories specified by -L. 10409 hardcode_minus_L=yes 10410 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10411 # Neither direct hardcoding nor static linking is supported with a 10412 # broken collect2. 10413 hardcode_direct=unsupported 10414 fi 10415 ;; 10416 10417 aix[4-9]*) 10418 if test ia64 = "$host_cpu"; then 10419 # On IA64, the linker does run time linking by default, so we don't 10420 # have to do anything special. 10421 aix_use_runtimelinking=no 10422 exp_sym_flag='-Bexport' 10423 no_entry_flag= 10424 else 10425 # If we're using GNU nm, then we don't want the "-C" option. 10426 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10427 # Without the "-l" option, or with the "-B" option, AIX nm treats 10428 # weak defined symbols like other global defined symbols, whereas 10429 # GNU nm marks them as "W". 10430 # While the 'weak' keyword is ignored in the Export File, we need 10431 # it in the Import File for the 'aix-soname' feature, so we have 10432 # to replace the "-B" option with "-P" for AIX nm. 10433 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10434 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' 10435 else 10436 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' 10437 fi 10438 aix_use_runtimelinking=no 10439 10440 # Test if we are trying to use run time linking or normal 10441 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10442 # have runtime linking enabled, and use it for executables. 10443 # For shared libraries, we enable/disable runtime linking 10444 # depending on the kind of the shared library created - 10445 # when "with_aix_soname,aix_use_runtimelinking" is: 10446 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10447 # "aix,yes" lib.so shared, rtl:yes, for executables 10448 # lib.a static archive 10449 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10450 # lib.a(lib.so.V) shared, rtl:no, for executables 10451 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10452 # lib.a(lib.so.V) shared, rtl:no 10453 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10454 # lib.a static archive 10455 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10456 for ld_flag in $LDFLAGS; do 10457 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10458 aix_use_runtimelinking=yes 10459 break 10460 fi 10461 done 10462 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10463 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10464 # so we don't have lib.a shared libs to link our executables. 10465 # We have to force runtime linking in this case. 10466 aix_use_runtimelinking=yes 10467 LDFLAGS="$LDFLAGS -Wl,-brtl" 10468 fi 10469 ;; 10470 esac 10471 10472 exp_sym_flag='-bexport' 10473 no_entry_flag='-bnoentry' 10474 fi 10475 10476 # When large executables or shared objects are built, AIX ld can 10477 # have problems creating the table of contents. If linking a library 10478 # or program results in "error TOC overflow" add -mminimal-toc to 10479 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10480 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10481 10482 archive_cmds='' 10483 hardcode_direct=yes 10484 hardcode_direct_absolute=yes 10485 hardcode_libdir_separator=':' 10486 link_all_deplibs=yes 10487 file_list_spec='$wl-f,' 10488 case $with_aix_soname,$aix_use_runtimelinking in 10489 aix,*) ;; # traditional, no import file 10490 svr4,* | *,yes) # use import file 10491 # The Import File defines what to hardcode. 10492 hardcode_direct=no 10493 hardcode_direct_absolute=no 10494 ;; 10495 esac 10496 10497 if test yes = "$GCC"; then 10498 case $host_os in aix4.[012]|aix4.[012].*) 10499 # We only want to do this on AIX 4.2 and lower, the check 10500 # below for broken collect2 doesn't work under 4.3+ 10501 collect2name=`$CC -print-prog-name=collect2` 10502 if test -f "$collect2name" && 10503 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10504 then 10505 # We have reworked collect2 10506 : 10507 else 10508 # We have old collect2 10509 hardcode_direct=unsupported 10510 # It fails to find uninstalled libraries when the uninstalled 10511 # path is not listed in the libpath. Setting hardcode_minus_L 10512 # to unsupported forces relinking 10513 hardcode_minus_L=yes 10514 hardcode_libdir_flag_spec='-L$libdir' 10515 hardcode_libdir_separator= 10516 fi 10517 ;; 10518 esac 10519 shared_flag='-shared' 10520 if test yes = "$aix_use_runtimelinking"; then 10521 shared_flag="$shared_flag "'$wl-G' 10522 fi 10523 # Need to ensure runtime linking is disabled for the traditional 10524 # shared library, or the linker may eventually find shared libraries 10525 # /with/ Import File - we do not want to mix them. 10526 shared_flag_aix='-shared' 10527 shared_flag_svr4='-shared $wl-G' 10528 else 10529 # not using gcc 10530 if test ia64 = "$host_cpu"; then 10531 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10532 # chokes on -Wl,-G. The following line is correct: 10533 shared_flag='-G' 10534 else 10535 if test yes = "$aix_use_runtimelinking"; then 10536 shared_flag='$wl-G' 10537 else 10538 shared_flag='$wl-bM:SRE' 10539 fi 10540 shared_flag_aix='$wl-bM:SRE' 10541 shared_flag_svr4='$wl-G' 10542 fi 10543 fi 10544 10545 export_dynamic_flag_spec='$wl-bexpall' 10546 # It seems that -bexpall does not export symbols beginning with 10547 # underscore (_), so it is better to generate a list of symbols to export. 10548 always_export_symbols=yes 10549 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10550 # Warning - without using the other runtime loading flags (-brtl), 10551 # -berok will link without error, but may produce a broken library. 10552 allow_undefined_flag='-berok' 10553 # Determine the default libpath from the value encoded in an 10554 # empty executable. 10555 if test set = "${lt_cv_aix_libpath+set}"; then 10556 aix_libpath=$lt_cv_aix_libpath 10557else 10558 if ${lt_cv_aix_libpath_+:} false 10559then : 10560 $as_echo_n "(cached) " >&6 10561else 10562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10563/* end confdefs.h. */ 10564 10565int 10566main (void) 10567{ 10568 10569 ; 10570 return 0; 10571} 10572_ACEOF 10573if ac_fn_c_try_link "$LINENO" 10574then : 10575 10576 lt_aix_libpath_sed=' 10577 /Import File Strings/,/^$/ { 10578 /^0/ { 10579 s/^0 *\([^ ]*\) *$/\1/ 10580 p 10581 } 10582 }' 10583 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10584 # Check for a 64-bit object if we didn't find anything. 10585 if test -z "$lt_cv_aix_libpath_"; then 10586 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10587 fi 10588fi 10589rm -f core conftest.err conftest.$ac_objext \ 10590 conftest$ac_exeext conftest.$ac_ext 10591 if test -z "$lt_cv_aix_libpath_"; then 10592 lt_cv_aix_libpath_=/usr/lib:/lib 10593 fi 10594 10595fi 10596 10597 aix_libpath=$lt_cv_aix_libpath_ 10598fi 10599 10600 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10601 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 10602 else 10603 if test ia64 = "$host_cpu"; then 10604 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10605 allow_undefined_flag="-z nodefs" 10606 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" 10607 else 10608 # Determine the default libpath from the value encoded in an 10609 # empty executable. 10610 if test set = "${lt_cv_aix_libpath+set}"; then 10611 aix_libpath=$lt_cv_aix_libpath 10612else 10613 if ${lt_cv_aix_libpath_+:} false 10614then : 10615 $as_echo_n "(cached) " >&6 10616else 10617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10618/* end confdefs.h. */ 10619 10620int 10621main (void) 10622{ 10623 10624 ; 10625 return 0; 10626} 10627_ACEOF 10628if ac_fn_c_try_link "$LINENO" 10629then : 10630 10631 lt_aix_libpath_sed=' 10632 /Import File Strings/,/^$/ { 10633 /^0/ { 10634 s/^0 *\([^ ]*\) *$/\1/ 10635 p 10636 } 10637 }' 10638 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10639 # Check for a 64-bit object if we didn't find anything. 10640 if test -z "$lt_cv_aix_libpath_"; then 10641 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10642 fi 10643fi 10644rm -f core conftest.err conftest.$ac_objext \ 10645 conftest$ac_exeext conftest.$ac_ext 10646 if test -z "$lt_cv_aix_libpath_"; then 10647 lt_cv_aix_libpath_=/usr/lib:/lib 10648 fi 10649 10650fi 10651 10652 aix_libpath=$lt_cv_aix_libpath_ 10653fi 10654 10655 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10656 # Warning - without using the other run time loading flags, 10657 # -berok will link without error, but may produce a broken library. 10658 no_undefined_flag=' $wl-bernotok' 10659 allow_undefined_flag=' $wl-berok' 10660 if test yes = "$with_gnu_ld"; then 10661 # We only use this code for GNU lds that support --whole-archive. 10662 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10663 else 10664 # Exported symbols can be pulled into shared objects from archives 10665 whole_archive_flag_spec='$convenience' 10666 fi 10667 archive_cmds_need_lc=yes 10668 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10669 # -brtl affects multiple linker settings, -berok does not and is overridden later 10670 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10671 if test svr4 != "$with_aix_soname"; then 10672 # This is similar to how AIX traditionally builds its shared libraries. 10673 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' 10674 fi 10675 if test aix != "$with_aix_soname"; then 10676 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' 10677 else 10678 # used by -dlpreopen to get the symbols 10679 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10680 fi 10681 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10682 fi 10683 fi 10684 ;; 10685 10686 amigaos*) 10687 case $host_cpu in 10688 powerpc) 10689 # see comment about AmigaOS4 .so support 10690 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10691 archive_expsym_cmds='' 10692 ;; 10693 m68k) 10694 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)' 10695 hardcode_libdir_flag_spec='-L$libdir' 10696 hardcode_minus_L=yes 10697 ;; 10698 esac 10699 ;; 10700 10701 bsdi[45]*) 10702 export_dynamic_flag_spec=-rdynamic 10703 ;; 10704 10705 cygwin* | mingw* | pw32* | cegcc*) 10706 # When not using gcc, we currently assume that we are using 10707 # Microsoft Visual C++. 10708 # hardcode_libdir_flag_spec is actually meaningless, as there is 10709 # no search path for DLLs. 10710 case $cc_basename in 10711 cl*) 10712 # Native MSVC 10713 hardcode_libdir_flag_spec=' ' 10714 allow_undefined_flag=unsupported 10715 always_export_symbols=yes 10716 file_list_spec='@' 10717 # Tell ltmain to make .lib files, not .a files. 10718 libext=lib 10719 # Tell ltmain to make .dll files, not .so files. 10720 shrext_cmds=.dll 10721 # FIXME: Setting linknames here is a bad hack. 10722 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10723 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10724 cp "$export_symbols" "$output_objdir/$soname.def"; 10725 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10726 else 10727 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10728 fi~ 10729 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10730 linknames=' 10731 # The linker will not automatically build a static lib if we build a DLL. 10732 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10733 enable_shared_with_static_runtimes=yes 10734 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10735 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10736 # Don't use ranlib 10737 old_postinstall_cmds='chmod 644 $oldlib' 10738 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10739 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10740 case $lt_outputfile in 10741 *.exe|*.EXE) ;; 10742 *) 10743 lt_outputfile=$lt_outputfile.exe 10744 lt_tool_outputfile=$lt_tool_outputfile.exe 10745 ;; 10746 esac~ 10747 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10748 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10749 $RM "$lt_outputfile.manifest"; 10750 fi' 10751 ;; 10752 *) 10753 # Assume MSVC wrapper 10754 hardcode_libdir_flag_spec=' ' 10755 allow_undefined_flag=unsupported 10756 # Tell ltmain to make .lib files, not .a files. 10757 libext=lib 10758 # Tell ltmain to make .dll files, not .so files. 10759 shrext_cmds=.dll 10760 # FIXME: Setting linknames here is a bad hack. 10761 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10762 # The linker will automatically build a .lib file if we build a DLL. 10763 old_archive_from_new_cmds='true' 10764 # FIXME: Should let the user specify the lib program. 10765 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10766 enable_shared_with_static_runtimes=yes 10767 ;; 10768 esac 10769 ;; 10770 10771 darwin* | rhapsody*) 10772 10773 10774 archive_cmds_need_lc=no 10775 hardcode_direct=no 10776 hardcode_automatic=yes 10777 hardcode_shlibpath_var=unsupported 10778 if test yes = "$lt_cv_ld_force_load"; then 10779 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\"`' 10780 10781 else 10782 whole_archive_flag_spec='' 10783 fi 10784 link_all_deplibs=yes 10785 allow_undefined_flag=$_lt_dar_allow_undefined 10786 case $cc_basename in 10787 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10788 *) _lt_dar_can_shared=$GCC ;; 10789 esac 10790 if test yes = "$_lt_dar_can_shared"; then 10791 output_verbose_link_cmd=func_echo_all 10792 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10793 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10794 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" 10795 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" 10796 10797 else 10798 ld_shlibs=no 10799 fi 10800 10801 ;; 10802 10803 dgux*) 10804 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10805 hardcode_libdir_flag_spec='-L$libdir' 10806 hardcode_shlibpath_var=no 10807 ;; 10808 10809 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10810 # support. Future versions do this automatically, but an explicit c++rt0.o 10811 # does not break anything, and helps significantly (at the cost of a little 10812 # extra space). 10813 freebsd2.2*) 10814 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10815 hardcode_libdir_flag_spec='-R$libdir' 10816 hardcode_direct=yes 10817 hardcode_shlibpath_var=no 10818 ;; 10819 10820 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10821 freebsd2.*) 10822 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10823 hardcode_direct=yes 10824 hardcode_minus_L=yes 10825 hardcode_shlibpath_var=no 10826 ;; 10827 10828 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10829 freebsd* | dragonfly*) 10830 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10831 hardcode_libdir_flag_spec='-R$libdir' 10832 hardcode_direct=yes 10833 hardcode_shlibpath_var=no 10834 ;; 10835 10836 hpux9*) 10837 if test yes = "$GCC"; then 10838 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' 10839 else 10840 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' 10841 fi 10842 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10843 hardcode_libdir_separator=: 10844 hardcode_direct=yes 10845 10846 # hardcode_minus_L: Not really in the search PATH, 10847 # but as the default location of the library. 10848 hardcode_minus_L=yes 10849 export_dynamic_flag_spec='$wl-E' 10850 ;; 10851 10852 hpux10*) 10853 if test yes,no = "$GCC,$with_gnu_ld"; then 10854 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10855 else 10856 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10857 fi 10858 if test no = "$with_gnu_ld"; then 10859 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10860 hardcode_libdir_separator=: 10861 hardcode_direct=yes 10862 hardcode_direct_absolute=yes 10863 export_dynamic_flag_spec='$wl-E' 10864 # hardcode_minus_L: Not really in the search PATH, 10865 # but as the default location of the library. 10866 hardcode_minus_L=yes 10867 fi 10868 ;; 10869 10870 hpux11*) 10871 if test yes,no = "$GCC,$with_gnu_ld"; then 10872 case $host_cpu in 10873 hppa*64*) 10874 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10875 ;; 10876 ia64*) 10877 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10878 ;; 10879 *) 10880 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10881 ;; 10882 esac 10883 else 10884 case $host_cpu in 10885 hppa*64*) 10886 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10887 ;; 10888 ia64*) 10889 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10890 ;; 10891 *) 10892 10893 # Older versions of the 11.00 compiler do not understand -b yet 10894 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10896$as_echo_n "checking if $CC understands -b... " >&6; } 10897if ${lt_cv_prog_compiler__b+:} false 10898then : 10899 $as_echo_n "(cached) " >&6 10900else 10901 lt_cv_prog_compiler__b=no 10902 save_LDFLAGS=$LDFLAGS 10903 LDFLAGS="$LDFLAGS -b" 10904 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10905 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10906 # The linker can only warn and ignore the option if not recognized 10907 # So say no if there are warnings 10908 if test -s conftest.err; then 10909 # Append any errors to the config.log. 10910 cat conftest.err 1>&5 10911 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10912 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10913 if diff conftest.exp conftest.er2 >/dev/null; then 10914 lt_cv_prog_compiler__b=yes 10915 fi 10916 else 10917 lt_cv_prog_compiler__b=yes 10918 fi 10919 fi 10920 $RM -r conftest* 10921 LDFLAGS=$save_LDFLAGS 10922 10923fi 10924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10925$as_echo "$lt_cv_prog_compiler__b" >&6; } 10926 10927if test yes = "$lt_cv_prog_compiler__b"; then 10928 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10929else 10930 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10931fi 10932 10933 ;; 10934 esac 10935 fi 10936 if test no = "$with_gnu_ld"; then 10937 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10938 hardcode_libdir_separator=: 10939 10940 case $host_cpu in 10941 hppa*64*|ia64*) 10942 hardcode_direct=no 10943 hardcode_shlibpath_var=no 10944 ;; 10945 *) 10946 hardcode_direct=yes 10947 hardcode_direct_absolute=yes 10948 export_dynamic_flag_spec='$wl-E' 10949 10950 # hardcode_minus_L: Not really in the search PATH, 10951 # but as the default location of the library. 10952 hardcode_minus_L=yes 10953 ;; 10954 esac 10955 fi 10956 ;; 10957 10958 irix5* | irix6* | nonstopux*) 10959 if test yes = "$GCC"; then 10960 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' 10961 # Try to use the -exported_symbol ld option, if it does not 10962 # work, assume that -exports_file does not work either and 10963 # implicitly export all symbols. 10964 # This should be the same for all languages, so no per-tag cache variable. 10965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10966$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10967if ${lt_cv_irix_exported_symbol+:} false 10968then : 10969 $as_echo_n "(cached) " >&6 10970else 10971 save_LDFLAGS=$LDFLAGS 10972 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10974/* end confdefs.h. */ 10975int foo (void) { return 0; } 10976_ACEOF 10977if ac_fn_c_try_link "$LINENO" 10978then : 10979 lt_cv_irix_exported_symbol=yes 10980else 10981 lt_cv_irix_exported_symbol=no 10982fi 10983rm -f core conftest.err conftest.$ac_objext \ 10984 conftest$ac_exeext conftest.$ac_ext 10985 LDFLAGS=$save_LDFLAGS 10986fi 10987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10988$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10989 if test yes = "$lt_cv_irix_exported_symbol"; then 10990 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' 10991 fi 10992 else 10993 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' 10994 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' 10995 fi 10996 archive_cmds_need_lc='no' 10997 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10998 hardcode_libdir_separator=: 10999 inherit_rpath=yes 11000 link_all_deplibs=yes 11001 ;; 11002 11003 linux*) 11004 case $cc_basename in 11005 tcc*) 11006 # Fabrice Bellard et al's Tiny C Compiler 11007 ld_shlibs=yes 11008 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11009 ;; 11010 esac 11011 ;; 11012 11013 netbsd*) 11014 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11015 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11016 else 11017 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11018 fi 11019 hardcode_libdir_flag_spec='-R$libdir' 11020 hardcode_direct=yes 11021 hardcode_shlibpath_var=no 11022 ;; 11023 11024 newsos6) 11025 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11026 hardcode_direct=yes 11027 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11028 hardcode_libdir_separator=: 11029 hardcode_shlibpath_var=no 11030 ;; 11031 11032 *nto* | *qnx*) 11033 ;; 11034 11035 openbsd* | bitrig*) 11036 if test -f /usr/libexec/ld.so; then 11037 hardcode_direct=yes 11038 hardcode_shlibpath_var=no 11039 hardcode_direct_absolute=yes 11040 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11041 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11042 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11043 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11044 export_dynamic_flag_spec='$wl-E' 11045 else 11046 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11047 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11048 fi 11049 else 11050 ld_shlibs=no 11051 fi 11052 ;; 11053 11054 os2*) 11055 hardcode_libdir_flag_spec='-L$libdir' 11056 hardcode_minus_L=yes 11057 allow_undefined_flag=unsupported 11058 shrext_cmds=.dll 11059 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11060 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11061 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11062 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11063 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11064 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11065 emximp -o $lib $output_objdir/$libname.def' 11066 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11067 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11068 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11069 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11070 prefix_cmds="$SED"~ 11071 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11072 prefix_cmds="$prefix_cmds -e 1d"; 11073 fi~ 11074 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11075 cat $export_symbols | $prefix_cmds >> $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 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11079 enable_shared_with_static_runtimes=yes 11080 file_list_spec='@' 11081 ;; 11082 11083 osf3*) 11084 if test yes = "$GCC"; then 11085 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11086 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' 11087 else 11088 allow_undefined_flag=' -expect_unresolved \*' 11089 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' 11090 fi 11091 archive_cmds_need_lc='no' 11092 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11093 hardcode_libdir_separator=: 11094 ;; 11095 11096 osf4* | osf5*) # as osf3* with the addition of -msym flag 11097 if test yes = "$GCC"; then 11098 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11099 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' 11100 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11101 else 11102 allow_undefined_flag=' -expect_unresolved \*' 11103 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' 11104 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~ 11105 $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' 11106 11107 # Both c and cxx compiler support -rpath directly 11108 hardcode_libdir_flag_spec='-rpath $libdir' 11109 fi 11110 archive_cmds_need_lc='no' 11111 hardcode_libdir_separator=: 11112 ;; 11113 11114 solaris*) 11115 no_undefined_flag=' -z defs' 11116 if test yes = "$GCC"; then 11117 wlarc='$wl' 11118 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11119 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11120 $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' 11121 else 11122 case `$CC -V 2>&1` in 11123 *"Compilers 5.0"*) 11124 wlarc='' 11125 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11126 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11127 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11128 ;; 11129 *) 11130 wlarc='$wl' 11131 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11132 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11133 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11134 ;; 11135 esac 11136 fi 11137 hardcode_libdir_flag_spec='-R$libdir' 11138 hardcode_shlibpath_var=no 11139 case $host_os in 11140 solaris2.[0-5] | solaris2.[0-5].*) ;; 11141 *) 11142 # The compiler driver will combine and reorder linker options, 11143 # but understands '-z linker_flag'. GCC discards it without '$wl', 11144 # but is careful enough not to reorder. 11145 # Supported since Solaris 2.6 (maybe 2.5.1?) 11146 if test yes = "$GCC"; then 11147 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11148 else 11149 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11150 fi 11151 ;; 11152 esac 11153 link_all_deplibs=yes 11154 ;; 11155 11156 sunos4*) 11157 if test sequent = "$host_vendor"; then 11158 # Use $CC to link under sequent, because it throws in some extra .o 11159 # files that make .init and .fini sections work. 11160 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11161 else 11162 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11163 fi 11164 hardcode_libdir_flag_spec='-L$libdir' 11165 hardcode_direct=yes 11166 hardcode_minus_L=yes 11167 hardcode_shlibpath_var=no 11168 ;; 11169 11170 sysv4) 11171 case $host_vendor in 11172 sni) 11173 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11174 hardcode_direct=yes # is this really true??? 11175 ;; 11176 siemens) 11177 ## LD is ld it makes a PLAMLIB 11178 ## CC just makes a GrossModule. 11179 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11180 reload_cmds='$CC -r -o $output$reload_objs' 11181 hardcode_direct=no 11182 ;; 11183 motorola) 11184 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11185 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11186 ;; 11187 esac 11188 runpath_var='LD_RUN_PATH' 11189 hardcode_shlibpath_var=no 11190 ;; 11191 11192 sysv4.3*) 11193 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11194 hardcode_shlibpath_var=no 11195 export_dynamic_flag_spec='-Bexport' 11196 ;; 11197 11198 sysv4*MP*) 11199 if test -d /usr/nec; then 11200 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11201 hardcode_shlibpath_var=no 11202 runpath_var=LD_RUN_PATH 11203 hardcode_runpath_var=yes 11204 ld_shlibs=yes 11205 fi 11206 ;; 11207 11208 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11209 no_undefined_flag='$wl-z,text' 11210 archive_cmds_need_lc=no 11211 hardcode_shlibpath_var=no 11212 runpath_var='LD_RUN_PATH' 11213 11214 if test yes = "$GCC"; then 11215 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11216 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11217 else 11218 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11219 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11220 fi 11221 ;; 11222 11223 sysv5* | sco3.2v5* | sco5v6*) 11224 # Note: We CANNOT use -z defs as we might desire, because we do not 11225 # link with -lc, and that would cause any symbols used from libc to 11226 # always be unresolved, which means just about no library would 11227 # ever link correctly. If we're not using GNU ld we use -z text 11228 # though, which does catch some bad symbols but isn't as heavy-handed 11229 # as -z defs. 11230 no_undefined_flag='$wl-z,text' 11231 allow_undefined_flag='$wl-z,nodefs' 11232 archive_cmds_need_lc=no 11233 hardcode_shlibpath_var=no 11234 hardcode_libdir_flag_spec='$wl-R,$libdir' 11235 hardcode_libdir_separator=':' 11236 link_all_deplibs=yes 11237 export_dynamic_flag_spec='$wl-Bexport' 11238 runpath_var='LD_RUN_PATH' 11239 11240 if test yes = "$GCC"; then 11241 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11242 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11243 else 11244 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11245 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11246 fi 11247 ;; 11248 11249 uts4*) 11250 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11251 hardcode_libdir_flag_spec='-L$libdir' 11252 hardcode_shlibpath_var=no 11253 ;; 11254 11255 *) 11256 ld_shlibs=no 11257 ;; 11258 esac 11259 11260 if test sni = "$host_vendor"; then 11261 case $host in 11262 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11263 export_dynamic_flag_spec='$wl-Blargedynsym' 11264 ;; 11265 esac 11266 fi 11267 fi 11268 11269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11270$as_echo "$ld_shlibs" >&6; } 11271test no = "$ld_shlibs" && can_build_shared=no 11272 11273with_gnu_ld=$with_gnu_ld 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289# 11290# Do we need to explicitly link libc? 11291# 11292case "x$archive_cmds_need_lc" in 11293x|xyes) 11294 # Assume -lc should be added 11295 archive_cmds_need_lc=yes 11296 11297 if test yes,yes = "$GCC,$enable_shared"; then 11298 case $archive_cmds in 11299 *'~'*) 11300 # FIXME: we may have to deal with multi-command sequences. 11301 ;; 11302 '$CC '*) 11303 # Test whether the compiler implicitly links with -lc since on some 11304 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11305 # to ld, don't add -lc before -lgcc. 11306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11307$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11308if ${lt_cv_archive_cmds_need_lc+:} false 11309then : 11310 $as_echo_n "(cached) " >&6 11311else 11312 $RM conftest* 11313 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11314 11315 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11316 (eval $ac_compile) 2>&5 11317 ac_status=$? 11318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11319 test $ac_status = 0; } 2>conftest.err; then 11320 soname=conftest 11321 lib=conftest 11322 libobjs=conftest.$ac_objext 11323 deplibs= 11324 wl=$lt_prog_compiler_wl 11325 pic_flag=$lt_prog_compiler_pic 11326 compiler_flags=-v 11327 linker_flags=-v 11328 verstring= 11329 output_objdir=. 11330 libname=conftest 11331 lt_save_allow_undefined_flag=$allow_undefined_flag 11332 allow_undefined_flag= 11333 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11334 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11335 ac_status=$? 11336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11337 test $ac_status = 0; } 11338 then 11339 lt_cv_archive_cmds_need_lc=no 11340 else 11341 lt_cv_archive_cmds_need_lc=yes 11342 fi 11343 allow_undefined_flag=$lt_save_allow_undefined_flag 11344 else 11345 cat conftest.err 1>&5 11346 fi 11347 $RM conftest* 11348 11349fi 11350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11351$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11352 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11353 ;; 11354 esac 11355 fi 11356 ;; 11357esac 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11511$as_echo_n "checking dynamic linker characteristics... " >&6; } 11512 11513if test yes = "$GCC"; then 11514 case $host_os in 11515 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11516 *) lt_awk_arg='/^libraries:/' ;; 11517 esac 11518 case $host_os in 11519 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11520 *) lt_sed_strip_eq='s|=/|/|g' ;; 11521 esac 11522 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11523 case $lt_search_path_spec in 11524 *\;*) 11525 # if the path contains ";" then we assume it to be the separator 11526 # otherwise default to the standard path separator (i.e. ":") - it is 11527 # assumed that no part of a normal pathname contains ";" but that should 11528 # okay in the real world where ";" in dirpaths is itself problematic. 11529 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11530 ;; 11531 *) 11532 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11533 ;; 11534 esac 11535 # Ok, now we have the path, separated by spaces, we can step through it 11536 # and add multilib dir if necessary... 11537 lt_tmp_lt_search_path_spec= 11538 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11539 # ...but if some path component already ends with the multilib dir we assume 11540 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11541 case "$lt_multi_os_dir; $lt_search_path_spec " in 11542 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11543 lt_multi_os_dir= 11544 ;; 11545 esac 11546 for lt_sys_path in $lt_search_path_spec; do 11547 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11548 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11549 elif test -n "$lt_multi_os_dir"; then 11550 test -d "$lt_sys_path" && \ 11551 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11552 fi 11553 done 11554 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11555BEGIN {RS = " "; FS = "/|\n";} { 11556 lt_foo = ""; 11557 lt_count = 0; 11558 for (lt_i = NF; lt_i > 0; lt_i--) { 11559 if ($lt_i != "" && $lt_i != ".") { 11560 if ($lt_i == "..") { 11561 lt_count++; 11562 } else { 11563 if (lt_count == 0) { 11564 lt_foo = "/" $lt_i lt_foo; 11565 } else { 11566 lt_count--; 11567 } 11568 } 11569 } 11570 } 11571 if (lt_foo != "") { lt_freq[lt_foo]++; } 11572 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11573}'` 11574 # AWK program above erroneously prepends '/' to C:/dos/paths 11575 # for these hosts. 11576 case $host_os in 11577 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11578 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11579 esac 11580 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11581else 11582 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11583fi 11584library_names_spec= 11585libname_spec='lib$name' 11586soname_spec= 11587shrext_cmds=.so 11588postinstall_cmds= 11589postuninstall_cmds= 11590finish_cmds= 11591finish_eval= 11592shlibpath_var= 11593shlibpath_overrides_runpath=unknown 11594version_type=none 11595dynamic_linker="$host_os ld.so" 11596sys_lib_dlsearch_path_spec="/lib /usr/lib" 11597need_lib_prefix=unknown 11598hardcode_into_libs=no 11599 11600# when you set need_version to no, make sure it does not cause -set_version 11601# flags to be left without arguments 11602need_version=unknown 11603 11604 11605 11606case $host_os in 11607aix3*) 11608 version_type=linux # correct to gnu/linux during the next big refactor 11609 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11610 shlibpath_var=LIBPATH 11611 11612 # AIX 3 has no versioning support, so we append a major version to the name. 11613 soname_spec='$libname$release$shared_ext$major' 11614 ;; 11615 11616aix[4-9]*) 11617 version_type=linux # correct to gnu/linux during the next big refactor 11618 need_lib_prefix=no 11619 need_version=no 11620 hardcode_into_libs=yes 11621 if test ia64 = "$host_cpu"; then 11622 # AIX 5 supports IA64 11623 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11624 shlibpath_var=LD_LIBRARY_PATH 11625 else 11626 # With GCC up to 2.95.x, collect2 would create an import file 11627 # for dependence libraries. The import file would start with 11628 # the line '#! .'. This would cause the generated library to 11629 # depend on '.', always an invalid library. This was fixed in 11630 # development snapshots of GCC prior to 3.0. 11631 case $host_os in 11632 aix4 | aix4.[01] | aix4.[01].*) 11633 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11634 echo ' yes ' 11635 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11636 : 11637 else 11638 can_build_shared=no 11639 fi 11640 ;; 11641 esac 11642 # Using Import Files as archive members, it is possible to support 11643 # filename-based versioning of shared library archives on AIX. While 11644 # this would work for both with and without runtime linking, it will 11645 # prevent static linking of such archives. So we do filename-based 11646 # shared library versioning with .so extension only, which is used 11647 # when both runtime linking and shared linking is enabled. 11648 # Unfortunately, runtime linking may impact performance, so we do 11649 # not want this to be the default eventually. Also, we use the 11650 # versioned .so libs for executables only if there is the -brtl 11651 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11652 # To allow for filename-based versioning support, we need to create 11653 # libNAME.so.V as an archive file, containing: 11654 # *) an Import File, referring to the versioned filename of the 11655 # archive as well as the shared archive member, telling the 11656 # bitwidth (32 or 64) of that shared object, and providing the 11657 # list of exported symbols of that shared object, eventually 11658 # decorated with the 'weak' keyword 11659 # *) the shared object with the F_LOADONLY flag set, to really avoid 11660 # it being seen by the linker. 11661 # At run time we better use the real file rather than another symlink, 11662 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11663 11664 case $with_aix_soname,$aix_use_runtimelinking in 11665 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11666 # soname into executable. Probably we can add versioning support to 11667 # collect2, so additional links can be useful in future. 11668 aix,yes) # traditional libtool 11669 dynamic_linker='AIX unversionable lib.so' 11670 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11671 # instead of lib<name>.a to let people know that these are not 11672 # typical AIX shared libraries. 11673 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11674 ;; 11675 aix,no) # traditional AIX only 11676 dynamic_linker='AIX lib.a(lib.so.V)' 11677 # We preserve .a as extension for shared libraries through AIX4.2 11678 # and later when we are not doing run time linking. 11679 library_names_spec='$libname$release.a $libname.a' 11680 soname_spec='$libname$release$shared_ext$major' 11681 ;; 11682 svr4,*) # full svr4 only 11683 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11684 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11685 # We do not specify a path in Import Files, so LIBPATH fires. 11686 shlibpath_overrides_runpath=yes 11687 ;; 11688 *,yes) # both, prefer svr4 11689 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11690 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11691 # unpreferred sharedlib libNAME.a needs extra handling 11692 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"' 11693 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"' 11694 # We do not specify a path in Import Files, so LIBPATH fires. 11695 shlibpath_overrides_runpath=yes 11696 ;; 11697 *,no) # both, prefer aix 11698 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11699 library_names_spec='$libname$release.a $libname.a' 11700 soname_spec='$libname$release$shared_ext$major' 11701 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11702 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)' 11703 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"' 11704 ;; 11705 esac 11706 shlibpath_var=LIBPATH 11707 fi 11708 ;; 11709 11710amigaos*) 11711 case $host_cpu in 11712 powerpc) 11713 # Since July 2007 AmigaOS4 officially supports .so libraries. 11714 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11715 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11716 ;; 11717 m68k) 11718 library_names_spec='$libname.ixlibrary $libname.a' 11719 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11720 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' 11721 ;; 11722 esac 11723 ;; 11724 11725beos*) 11726 library_names_spec='$libname$shared_ext' 11727 dynamic_linker="$host_os ld.so" 11728 shlibpath_var=LIBRARY_PATH 11729 ;; 11730 11731bsdi[45]*) 11732 version_type=linux # correct to gnu/linux during the next big refactor 11733 need_version=no 11734 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11735 soname_spec='$libname$release$shared_ext$major' 11736 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11737 shlibpath_var=LD_LIBRARY_PATH 11738 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11739 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11740 # the default ld.so.conf also contains /usr/contrib/lib and 11741 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11742 # libtool to hard-code these into programs 11743 ;; 11744 11745cygwin* | mingw* | pw32* | cegcc*) 11746 version_type=windows 11747 shrext_cmds=.dll 11748 need_version=no 11749 need_lib_prefix=no 11750 11751 case $GCC,$cc_basename in 11752 yes,*) 11753 # gcc 11754 library_names_spec='$libname.dll.a' 11755 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11756 postinstall_cmds='base_file=`basename \$file`~ 11757 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11758 dldir=$destdir/`dirname \$dlpath`~ 11759 test -d \$dldir || mkdir -p \$dldir~ 11760 $install_prog $dir/$dlname \$dldir/$dlname~ 11761 chmod a+x \$dldir/$dlname~ 11762 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11763 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11764 fi' 11765 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11766 dlpath=$dir/\$dldll~ 11767 $RM \$dlpath' 11768 shlibpath_overrides_runpath=yes 11769 11770 case $host_os in 11771 cygwin*) 11772 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11773 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11774 11775 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11776 ;; 11777 mingw* | cegcc*) 11778 # MinGW DLLs use traditional 'lib' prefix 11779 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11780 ;; 11781 pw32*) 11782 # pw32 DLLs use 'pw' prefix rather than 'lib' 11783 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11784 ;; 11785 esac 11786 dynamic_linker='Win32 ld.exe' 11787 ;; 11788 11789 *,cl*) 11790 # Native MSVC 11791 libname_spec='$name' 11792 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11793 library_names_spec='$libname.dll.lib' 11794 11795 case $build_os in 11796 mingw*) 11797 sys_lib_search_path_spec= 11798 lt_save_ifs=$IFS 11799 IFS=';' 11800 for lt_path in $LIB 11801 do 11802 IFS=$lt_save_ifs 11803 # Let DOS variable expansion print the short 8.3 style file name. 11804 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11805 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11806 done 11807 IFS=$lt_save_ifs 11808 # Convert to MSYS style. 11809 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11810 ;; 11811 cygwin*) 11812 # Convert to unix form, then to dos form, then back to unix form 11813 # but this time dos style (no spaces!) so that the unix form looks 11814 # like /cygdrive/c/PROGRA~1:/cygdr... 11815 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11816 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11817 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11818 ;; 11819 *) 11820 sys_lib_search_path_spec=$LIB 11821 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11822 # It is most probably a Windows format PATH. 11823 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11824 else 11825 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11826 fi 11827 # FIXME: find the short name or the path components, as spaces are 11828 # common. (e.g. "Program Files" -> "PROGRA~1") 11829 ;; 11830 esac 11831 11832 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11833 postinstall_cmds='base_file=`basename \$file`~ 11834 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11835 dldir=$destdir/`dirname \$dlpath`~ 11836 test -d \$dldir || mkdir -p \$dldir~ 11837 $install_prog $dir/$dlname \$dldir/$dlname' 11838 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11839 dlpath=$dir/\$dldll~ 11840 $RM \$dlpath' 11841 shlibpath_overrides_runpath=yes 11842 dynamic_linker='Win32 link.exe' 11843 ;; 11844 11845 *) 11846 # Assume MSVC wrapper 11847 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11848 dynamic_linker='Win32 ld.exe' 11849 ;; 11850 esac 11851 # FIXME: first we should search . and the directory the executable is in 11852 shlibpath_var=PATH 11853 ;; 11854 11855darwin* | rhapsody*) 11856 dynamic_linker="$host_os dyld" 11857 version_type=darwin 11858 need_lib_prefix=no 11859 need_version=no 11860 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11861 soname_spec='$libname$release$major$shared_ext' 11862 shlibpath_overrides_runpath=yes 11863 shlibpath_var=DYLD_LIBRARY_PATH 11864 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11865 11866 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11867 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11868 ;; 11869 11870dgux*) 11871 version_type=linux # correct to gnu/linux during the next big refactor 11872 need_lib_prefix=no 11873 need_version=no 11874 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11875 soname_spec='$libname$release$shared_ext$major' 11876 shlibpath_var=LD_LIBRARY_PATH 11877 ;; 11878 11879freebsd* | dragonfly*) 11880 # DragonFly does not have aout. When/if they implement a new 11881 # versioning mechanism, adjust this. 11882 if test -x /usr/bin/objformat; then 11883 objformat=`/usr/bin/objformat` 11884 else 11885 case $host_os in 11886 freebsd[23].*) objformat=aout ;; 11887 *) objformat=elf ;; 11888 esac 11889 fi 11890 version_type=freebsd-$objformat 11891 case $version_type in 11892 freebsd-elf*) 11893 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11894 soname_spec='$libname$release$shared_ext$major' 11895 need_version=no 11896 need_lib_prefix=no 11897 ;; 11898 freebsd-*) 11899 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11900 need_version=yes 11901 ;; 11902 esac 11903 shlibpath_var=LD_LIBRARY_PATH 11904 case $host_os in 11905 freebsd2.*) 11906 shlibpath_overrides_runpath=yes 11907 ;; 11908 freebsd3.[01]* | freebsdelf3.[01]*) 11909 shlibpath_overrides_runpath=yes 11910 hardcode_into_libs=yes 11911 ;; 11912 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11913 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11914 shlibpath_overrides_runpath=no 11915 hardcode_into_libs=yes 11916 ;; 11917 *) # from 4.6 on, and DragonFly 11918 shlibpath_overrides_runpath=yes 11919 hardcode_into_libs=yes 11920 ;; 11921 esac 11922 ;; 11923 11924haiku*) 11925 version_type=linux # correct to gnu/linux during the next big refactor 11926 need_lib_prefix=no 11927 need_version=no 11928 dynamic_linker="$host_os runtime_loader" 11929 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11930 soname_spec='$libname$release$shared_ext$major' 11931 shlibpath_var=LIBRARY_PATH 11932 shlibpath_overrides_runpath=no 11933 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11934 hardcode_into_libs=yes 11935 ;; 11936 11937hpux9* | hpux10* | hpux11*) 11938 # Give a soname corresponding to the major version so that dld.sl refuses to 11939 # link against other versions. 11940 version_type=sunos 11941 need_lib_prefix=no 11942 need_version=no 11943 case $host_cpu in 11944 ia64*) 11945 shrext_cmds='.so' 11946 hardcode_into_libs=yes 11947 dynamic_linker="$host_os dld.so" 11948 shlibpath_var=LD_LIBRARY_PATH 11949 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11950 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11951 soname_spec='$libname$release$shared_ext$major' 11952 if test 32 = "$HPUX_IA64_MODE"; then 11953 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11954 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11955 else 11956 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11957 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11958 fi 11959 ;; 11960 hppa*64*) 11961 shrext_cmds='.sl' 11962 hardcode_into_libs=yes 11963 dynamic_linker="$host_os dld.sl" 11964 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11965 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11966 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11967 soname_spec='$libname$release$shared_ext$major' 11968 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11969 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11970 ;; 11971 *) 11972 shrext_cmds='.sl' 11973 dynamic_linker="$host_os dld.sl" 11974 shlibpath_var=SHLIB_PATH 11975 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11976 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11977 soname_spec='$libname$release$shared_ext$major' 11978 ;; 11979 esac 11980 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11981 postinstall_cmds='chmod 555 $lib' 11982 # or fails outright, so override atomically: 11983 install_override_mode=555 11984 ;; 11985 11986interix[3-9]*) 11987 version_type=linux # correct to gnu/linux during the next big refactor 11988 need_lib_prefix=no 11989 need_version=no 11990 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11991 soname_spec='$libname$release$shared_ext$major' 11992 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11993 shlibpath_var=LD_LIBRARY_PATH 11994 shlibpath_overrides_runpath=no 11995 hardcode_into_libs=yes 11996 ;; 11997 11998irix5* | irix6* | nonstopux*) 11999 case $host_os in 12000 nonstopux*) version_type=nonstopux ;; 12001 *) 12002 if test yes = "$lt_cv_prog_gnu_ld"; then 12003 version_type=linux # correct to gnu/linux during the next big refactor 12004 else 12005 version_type=irix 12006 fi ;; 12007 esac 12008 need_lib_prefix=no 12009 need_version=no 12010 soname_spec='$libname$release$shared_ext$major' 12011 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12012 case $host_os in 12013 irix5* | nonstopux*) 12014 libsuff= shlibsuff= 12015 ;; 12016 *) 12017 case $LD in # libtool.m4 will add one of these switches to LD 12018 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12019 libsuff= shlibsuff= libmagic=32-bit;; 12020 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12021 libsuff=32 shlibsuff=N32 libmagic=N32;; 12022 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12023 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12024 *) libsuff= shlibsuff= libmagic=never-match;; 12025 esac 12026 ;; 12027 esac 12028 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12029 shlibpath_overrides_runpath=no 12030 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12031 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12032 hardcode_into_libs=yes 12033 ;; 12034 12035# No shared lib support for Linux oldld, aout, or coff. 12036linux*oldld* | linux*aout* | linux*coff*) 12037 dynamic_linker=no 12038 ;; 12039 12040linux*android*) 12041 version_type=none # Android doesn't support versioned libraries. 12042 need_lib_prefix=no 12043 need_version=no 12044 library_names_spec='$libname$release$shared_ext' 12045 soname_spec='$libname$release$shared_ext' 12046 finish_cmds= 12047 shlibpath_var=LD_LIBRARY_PATH 12048 shlibpath_overrides_runpath=yes 12049 12050 # This implies no fast_install, which is unacceptable. 12051 # Some rework will be needed to allow for fast_install 12052 # before this can be enabled. 12053 hardcode_into_libs=yes 12054 12055 dynamic_linker='Android linker' 12056 # Don't embed -rpath directories since the linker doesn't support them. 12057 hardcode_libdir_flag_spec='-L$libdir' 12058 ;; 12059 12060# This must be glibc/ELF. 12061linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12062 version_type=linux # correct to gnu/linux during the next big refactor 12063 need_lib_prefix=no 12064 need_version=no 12065 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12066 soname_spec='$libname$release$shared_ext$major' 12067 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12068 shlibpath_var=LD_LIBRARY_PATH 12069 shlibpath_overrides_runpath=no 12070 12071 # Some binutils ld are patched to set DT_RUNPATH 12072 if ${lt_cv_shlibpath_overrides_runpath+:} false 12073then : 12074 $as_echo_n "(cached) " >&6 12075else 12076 lt_cv_shlibpath_overrides_runpath=no 12077 save_LDFLAGS=$LDFLAGS 12078 save_libdir=$libdir 12079 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12080 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12082/* end confdefs.h. */ 12083 12084int 12085main (void) 12086{ 12087 12088 ; 12089 return 0; 12090} 12091_ACEOF 12092if ac_fn_c_try_link "$LINENO" 12093then : 12094 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 12095then : 12096 lt_cv_shlibpath_overrides_runpath=yes 12097fi 12098fi 12099rm -f core conftest.err conftest.$ac_objext \ 12100 conftest$ac_exeext conftest.$ac_ext 12101 LDFLAGS=$save_LDFLAGS 12102 libdir=$save_libdir 12103 12104fi 12105 12106 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12107 12108 # This implies no fast_install, which is unacceptable. 12109 # Some rework will be needed to allow for fast_install 12110 # before this can be enabled. 12111 hardcode_into_libs=yes 12112 12113 # Ideally, we could use ldconfig to report *all* directores which are 12114 # searched for libraries, however this is still not possible. Aside from not 12115 # being certain /sbin/ldconfig is available, command 12116 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12117 # even though it is searched at run-time. Try to do the best guess by 12118 # appending ld.so.conf contents (and includes) to the search path. 12119 if test -f /etc/ld.so.conf; then 12120 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' ' '` 12121 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12122 fi 12123 12124 # We used to test for /lib/ld.so.1 and disable shared libraries on 12125 # powerpc, because MkLinux only supported shared libraries with the 12126 # GNU dynamic linker. Since this was broken with cross compilers, 12127 # most powerpc-linux boxes support dynamic linking these days and 12128 # people can always --disable-shared, the test was removed, and we 12129 # assume the GNU/Linux dynamic linker is in use. 12130 dynamic_linker='GNU/Linux ld.so' 12131 ;; 12132 12133netbsd*) 12134 version_type=sunos 12135 need_lib_prefix=no 12136 need_version=no 12137 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12138 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12139 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12140 dynamic_linker='NetBSD (a.out) ld.so' 12141 else 12142 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12143 soname_spec='$libname$release$shared_ext$major' 12144 dynamic_linker='NetBSD ld.elf_so' 12145 fi 12146 shlibpath_var=LD_LIBRARY_PATH 12147 shlibpath_overrides_runpath=yes 12148 hardcode_into_libs=yes 12149 ;; 12150 12151newsos6) 12152 version_type=linux # correct to gnu/linux during the next big refactor 12153 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12154 shlibpath_var=LD_LIBRARY_PATH 12155 shlibpath_overrides_runpath=yes 12156 ;; 12157 12158*nto* | *qnx*) 12159 version_type=qnx 12160 need_lib_prefix=no 12161 need_version=no 12162 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12163 soname_spec='$libname$release$shared_ext$major' 12164 shlibpath_var=LD_LIBRARY_PATH 12165 shlibpath_overrides_runpath=no 12166 hardcode_into_libs=yes 12167 dynamic_linker='ldqnx.so' 12168 ;; 12169 12170openbsd* | bitrig*) 12171 version_type=sunos 12172 sys_lib_dlsearch_path_spec=/usr/lib 12173 need_lib_prefix=no 12174 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12175 need_version=no 12176 else 12177 need_version=yes 12178 fi 12179 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12180 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12181 shlibpath_var=LD_LIBRARY_PATH 12182 shlibpath_overrides_runpath=yes 12183 ;; 12184 12185os2*) 12186 libname_spec='$name' 12187 version_type=windows 12188 shrext_cmds=.dll 12189 need_version=no 12190 need_lib_prefix=no 12191 # OS/2 can only load a DLL with a base name of 8 characters or less. 12192 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12193 v=$($ECHO $release$versuffix | tr -d .-); 12194 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12195 $ECHO $n$v`$shared_ext' 12196 library_names_spec='${libname}_dll.$libext' 12197 dynamic_linker='OS/2 ld.exe' 12198 shlibpath_var=BEGINLIBPATH 12199 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12200 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12201 postinstall_cmds='base_file=`basename \$file`~ 12202 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12203 dldir=$destdir/`dirname \$dlpath`~ 12204 test -d \$dldir || mkdir -p \$dldir~ 12205 $install_prog $dir/$dlname \$dldir/$dlname~ 12206 chmod a+x \$dldir/$dlname~ 12207 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12208 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12209 fi' 12210 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12211 dlpath=$dir/\$dldll~ 12212 $RM \$dlpath' 12213 ;; 12214 12215osf3* | osf4* | osf5*) 12216 version_type=osf 12217 need_lib_prefix=no 12218 need_version=no 12219 soname_spec='$libname$release$shared_ext$major' 12220 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12221 shlibpath_var=LD_LIBRARY_PATH 12222 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12223 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12224 ;; 12225 12226rdos*) 12227 dynamic_linker=no 12228 ;; 12229 12230solaris*) 12231 version_type=linux # correct to gnu/linux during the next big refactor 12232 need_lib_prefix=no 12233 need_version=no 12234 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12235 soname_spec='$libname$release$shared_ext$major' 12236 shlibpath_var=LD_LIBRARY_PATH 12237 shlibpath_overrides_runpath=yes 12238 hardcode_into_libs=yes 12239 # ldd complains unless libraries are executable 12240 postinstall_cmds='chmod +x $lib' 12241 ;; 12242 12243sunos4*) 12244 version_type=sunos 12245 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12246 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12247 shlibpath_var=LD_LIBRARY_PATH 12248 shlibpath_overrides_runpath=yes 12249 if test yes = "$with_gnu_ld"; then 12250 need_lib_prefix=no 12251 fi 12252 need_version=yes 12253 ;; 12254 12255sysv4 | sysv4.3*) 12256 version_type=linux # correct to gnu/linux during the next big refactor 12257 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12258 soname_spec='$libname$release$shared_ext$major' 12259 shlibpath_var=LD_LIBRARY_PATH 12260 case $host_vendor in 12261 sni) 12262 shlibpath_overrides_runpath=no 12263 need_lib_prefix=no 12264 runpath_var=LD_RUN_PATH 12265 ;; 12266 siemens) 12267 need_lib_prefix=no 12268 ;; 12269 motorola) 12270 need_lib_prefix=no 12271 need_version=no 12272 shlibpath_overrides_runpath=no 12273 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12274 ;; 12275 esac 12276 ;; 12277 12278sysv4*MP*) 12279 if test -d /usr/nec; then 12280 version_type=linux # correct to gnu/linux during the next big refactor 12281 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12282 soname_spec='$libname$shared_ext.$major' 12283 shlibpath_var=LD_LIBRARY_PATH 12284 fi 12285 ;; 12286 12287sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12288 version_type=sco 12289 need_lib_prefix=no 12290 need_version=no 12291 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12292 soname_spec='$libname$release$shared_ext$major' 12293 shlibpath_var=LD_LIBRARY_PATH 12294 shlibpath_overrides_runpath=yes 12295 hardcode_into_libs=yes 12296 if test yes = "$with_gnu_ld"; then 12297 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12298 else 12299 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12300 case $host_os in 12301 sco3.2v5*) 12302 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12303 ;; 12304 esac 12305 fi 12306 sys_lib_dlsearch_path_spec='/usr/lib' 12307 ;; 12308 12309tpf*) 12310 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12311 version_type=linux # correct to gnu/linux during the next big refactor 12312 need_lib_prefix=no 12313 need_version=no 12314 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12315 shlibpath_var=LD_LIBRARY_PATH 12316 shlibpath_overrides_runpath=no 12317 hardcode_into_libs=yes 12318 ;; 12319 12320uts4*) 12321 version_type=linux # correct to gnu/linux during the next big refactor 12322 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12323 soname_spec='$libname$release$shared_ext$major' 12324 shlibpath_var=LD_LIBRARY_PATH 12325 ;; 12326 12327*) 12328 dynamic_linker=no 12329 ;; 12330esac 12331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12332$as_echo "$dynamic_linker" >&6; } 12333test no = "$dynamic_linker" && can_build_shared=no 12334 12335variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12336if test yes = "$GCC"; then 12337 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12338fi 12339 12340if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12341 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12342fi 12343 12344if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12345 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12346fi 12347 12348# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12349configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12350 12351# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12352func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12353 12354# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12355configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12356 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12454$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12455hardcode_action= 12456if test -n "$hardcode_libdir_flag_spec" || 12457 test -n "$runpath_var" || 12458 test yes = "$hardcode_automatic"; then 12459 12460 # We can hardcode non-existent directories. 12461 if test no != "$hardcode_direct" && 12462 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12463 # have to relink, otherwise we might link with an installed library 12464 # when we should be linking with a yet-to-be-installed one 12465 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12466 test no != "$hardcode_minus_L"; then 12467 # Linking always hardcodes the temporary library directory. 12468 hardcode_action=relink 12469 else 12470 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12471 hardcode_action=immediate 12472 fi 12473else 12474 # We cannot hardcode anything, or else we can only hardcode existing 12475 # directories. 12476 hardcode_action=unsupported 12477fi 12478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12479$as_echo "$hardcode_action" >&6; } 12480 12481if test relink = "$hardcode_action" || 12482 test yes = "$inherit_rpath"; then 12483 # Fast installation is not supported 12484 enable_fast_install=no 12485elif test yes = "$shlibpath_overrides_runpath" || 12486 test no = "$enable_shared"; then 12487 # Fast installation is not necessary 12488 enable_fast_install=needless 12489fi 12490 12491 12492 12493 12494 12495 12496 if test yes != "$enable_dlopen"; then 12497 enable_dlopen=unknown 12498 enable_dlopen_self=unknown 12499 enable_dlopen_self_static=unknown 12500else 12501 lt_cv_dlopen=no 12502 lt_cv_dlopen_libs= 12503 12504 case $host_os in 12505 beos*) 12506 lt_cv_dlopen=load_add_on 12507 lt_cv_dlopen_libs= 12508 lt_cv_dlopen_self=yes 12509 ;; 12510 12511 mingw* | pw32* | cegcc*) 12512 lt_cv_dlopen=LoadLibrary 12513 lt_cv_dlopen_libs= 12514 ;; 12515 12516 cygwin*) 12517 lt_cv_dlopen=dlopen 12518 lt_cv_dlopen_libs= 12519 ;; 12520 12521 darwin*) 12522 # if libdl is installed we need to link against it 12523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12524$as_echo_n "checking for dlopen in -ldl... " >&6; } 12525if ${ac_cv_lib_dl_dlopen+:} false 12526then : 12527 $as_echo_n "(cached) " >&6 12528else 12529 ac_check_lib_save_LIBS=$LIBS 12530LIBS="-ldl $LIBS" 12531cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12532/* end confdefs.h. */ 12533 12534/* Override any GCC internal prototype to avoid an error. 12535 Use char because int might match the return type of a GCC 12536 builtin and then its argument prototype would still apply. */ 12537#ifdef __cplusplus 12538extern "C" 12539#endif 12540char dlopen (); 12541int 12542main (void) 12543{ 12544return dlopen (); 12545 ; 12546 return 0; 12547} 12548_ACEOF 12549if ac_fn_c_try_link "$LINENO" 12550then : 12551 ac_cv_lib_dl_dlopen=yes 12552else 12553 ac_cv_lib_dl_dlopen=no 12554fi 12555rm -f core conftest.err conftest.$ac_objext \ 12556 conftest$ac_exeext conftest.$ac_ext 12557LIBS=$ac_check_lib_save_LIBS 12558fi 12559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12560$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12561if test "x$ac_cv_lib_dl_dlopen" = xyes 12562then : 12563 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12564else 12565 12566 lt_cv_dlopen=dyld 12567 lt_cv_dlopen_libs= 12568 lt_cv_dlopen_self=yes 12569 12570fi 12571 12572 ;; 12573 12574 tpf*) 12575 # Don't try to run any link tests for TPF. We know it's impossible 12576 # because TPF is a cross-compiler, and we know how we open DSOs. 12577 lt_cv_dlopen=dlopen 12578 lt_cv_dlopen_libs= 12579 lt_cv_dlopen_self=no 12580 ;; 12581 12582 *) 12583 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12584if test "x$ac_cv_func_shl_load" = xyes 12585then : 12586 lt_cv_dlopen=shl_load 12587else 12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12589$as_echo_n "checking for shl_load in -ldld... " >&6; } 12590if ${ac_cv_lib_dld_shl_load+:} false 12591then : 12592 $as_echo_n "(cached) " >&6 12593else 12594 ac_check_lib_save_LIBS=$LIBS 12595LIBS="-ldld $LIBS" 12596cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12597/* end confdefs.h. */ 12598 12599/* Override any GCC internal prototype to avoid an error. 12600 Use char because int might match the return type of a GCC 12601 builtin and then its argument prototype would still apply. */ 12602#ifdef __cplusplus 12603extern "C" 12604#endif 12605char shl_load (); 12606int 12607main (void) 12608{ 12609return shl_load (); 12610 ; 12611 return 0; 12612} 12613_ACEOF 12614if ac_fn_c_try_link "$LINENO" 12615then : 12616 ac_cv_lib_dld_shl_load=yes 12617else 12618 ac_cv_lib_dld_shl_load=no 12619fi 12620rm -f core conftest.err conftest.$ac_objext \ 12621 conftest$ac_exeext conftest.$ac_ext 12622LIBS=$ac_check_lib_save_LIBS 12623fi 12624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12625$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12626if test "x$ac_cv_lib_dld_shl_load" = xyes 12627then : 12628 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12629else 12630 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12631if test "x$ac_cv_func_dlopen" = xyes 12632then : 12633 lt_cv_dlopen=dlopen 12634else 12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12636$as_echo_n "checking for dlopen in -ldl... " >&6; } 12637if ${ac_cv_lib_dl_dlopen+:} false 12638then : 12639 $as_echo_n "(cached) " >&6 12640else 12641 ac_check_lib_save_LIBS=$LIBS 12642LIBS="-ldl $LIBS" 12643cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12644/* end confdefs.h. */ 12645 12646/* Override any GCC internal prototype to avoid an error. 12647 Use char because int might match the return type of a GCC 12648 builtin and then its argument prototype would still apply. */ 12649#ifdef __cplusplus 12650extern "C" 12651#endif 12652char dlopen (); 12653int 12654main (void) 12655{ 12656return dlopen (); 12657 ; 12658 return 0; 12659} 12660_ACEOF 12661if ac_fn_c_try_link "$LINENO" 12662then : 12663 ac_cv_lib_dl_dlopen=yes 12664else 12665 ac_cv_lib_dl_dlopen=no 12666fi 12667rm -f core conftest.err conftest.$ac_objext \ 12668 conftest$ac_exeext conftest.$ac_ext 12669LIBS=$ac_check_lib_save_LIBS 12670fi 12671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12672$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12673if test "x$ac_cv_lib_dl_dlopen" = xyes 12674then : 12675 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12676else 12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12678$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12679if ${ac_cv_lib_svld_dlopen+:} false 12680then : 12681 $as_echo_n "(cached) " >&6 12682else 12683 ac_check_lib_save_LIBS=$LIBS 12684LIBS="-lsvld $LIBS" 12685cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12686/* end confdefs.h. */ 12687 12688/* Override any GCC internal prototype to avoid an error. 12689 Use char because int might match the return type of a GCC 12690 builtin and then its argument prototype would still apply. */ 12691#ifdef __cplusplus 12692extern "C" 12693#endif 12694char dlopen (); 12695int 12696main (void) 12697{ 12698return dlopen (); 12699 ; 12700 return 0; 12701} 12702_ACEOF 12703if ac_fn_c_try_link "$LINENO" 12704then : 12705 ac_cv_lib_svld_dlopen=yes 12706else 12707 ac_cv_lib_svld_dlopen=no 12708fi 12709rm -f core conftest.err conftest.$ac_objext \ 12710 conftest$ac_exeext conftest.$ac_ext 12711LIBS=$ac_check_lib_save_LIBS 12712fi 12713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12714$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12715if test "x$ac_cv_lib_svld_dlopen" = xyes 12716then : 12717 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12718else 12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12720$as_echo_n "checking for dld_link in -ldld... " >&6; } 12721if ${ac_cv_lib_dld_dld_link+:} false 12722then : 12723 $as_echo_n "(cached) " >&6 12724else 12725 ac_check_lib_save_LIBS=$LIBS 12726LIBS="-ldld $LIBS" 12727cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12728/* end confdefs.h. */ 12729 12730/* Override any GCC internal prototype to avoid an error. 12731 Use char because int might match the return type of a GCC 12732 builtin and then its argument prototype would still apply. */ 12733#ifdef __cplusplus 12734extern "C" 12735#endif 12736char dld_link (); 12737int 12738main (void) 12739{ 12740return dld_link (); 12741 ; 12742 return 0; 12743} 12744_ACEOF 12745if ac_fn_c_try_link "$LINENO" 12746then : 12747 ac_cv_lib_dld_dld_link=yes 12748else 12749 ac_cv_lib_dld_dld_link=no 12750fi 12751rm -f core conftest.err conftest.$ac_objext \ 12752 conftest$ac_exeext conftest.$ac_ext 12753LIBS=$ac_check_lib_save_LIBS 12754fi 12755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12756$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12757if test "x$ac_cv_lib_dld_dld_link" = xyes 12758then : 12759 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12760fi 12761 12762 12763fi 12764 12765 12766fi 12767 12768 12769fi 12770 12771 12772fi 12773 12774 12775fi 12776 12777 ;; 12778 esac 12779 12780 if test no = "$lt_cv_dlopen"; then 12781 enable_dlopen=no 12782 else 12783 enable_dlopen=yes 12784 fi 12785 12786 case $lt_cv_dlopen in 12787 dlopen) 12788 save_CPPFLAGS=$CPPFLAGS 12789 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12790 12791 save_LDFLAGS=$LDFLAGS 12792 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12793 12794 save_LIBS=$LIBS 12795 LIBS="$lt_cv_dlopen_libs $LIBS" 12796 12797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12798$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12799if ${lt_cv_dlopen_self+:} false 12800then : 12801 $as_echo_n "(cached) " >&6 12802else 12803 if test yes = "$cross_compiling"; then : 12804 lt_cv_dlopen_self=cross 12805else 12806 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12807 lt_status=$lt_dlunknown 12808 cat > conftest.$ac_ext <<_LT_EOF 12809#line $LINENO "configure" 12810#include "confdefs.h" 12811 12812#if HAVE_DLFCN_H 12813#include <dlfcn.h> 12814#endif 12815 12816#include <stdio.h> 12817 12818#ifdef RTLD_GLOBAL 12819# define LT_DLGLOBAL RTLD_GLOBAL 12820#else 12821# ifdef DL_GLOBAL 12822# define LT_DLGLOBAL DL_GLOBAL 12823# else 12824# define LT_DLGLOBAL 0 12825# endif 12826#endif 12827 12828/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12829 find out it does not work in some platform. */ 12830#ifndef LT_DLLAZY_OR_NOW 12831# ifdef RTLD_LAZY 12832# define LT_DLLAZY_OR_NOW RTLD_LAZY 12833# else 12834# ifdef DL_LAZY 12835# define LT_DLLAZY_OR_NOW DL_LAZY 12836# else 12837# ifdef RTLD_NOW 12838# define LT_DLLAZY_OR_NOW RTLD_NOW 12839# else 12840# ifdef DL_NOW 12841# define LT_DLLAZY_OR_NOW DL_NOW 12842# else 12843# define LT_DLLAZY_OR_NOW 0 12844# endif 12845# endif 12846# endif 12847# endif 12848#endif 12849 12850/* When -fvisibility=hidden is used, assume the code has been annotated 12851 correspondingly for the symbols needed. */ 12852#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12853int fnord () __attribute__((visibility("default"))); 12854#endif 12855 12856int fnord () { return 42; } 12857int main () 12858{ 12859 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12860 int status = $lt_dlunknown; 12861 12862 if (self) 12863 { 12864 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12865 else 12866 { 12867 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12868 else puts (dlerror ()); 12869 } 12870 /* dlclose (self); */ 12871 } 12872 else 12873 puts (dlerror ()); 12874 12875 return status; 12876} 12877_LT_EOF 12878 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12879 (eval $ac_link) 2>&5 12880 ac_status=$? 12881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12882 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12883 (./conftest; exit; ) >&5 2>/dev/null 12884 lt_status=$? 12885 case x$lt_status in 12886 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12887 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12888 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12889 esac 12890 else : 12891 # compilation failed 12892 lt_cv_dlopen_self=no 12893 fi 12894fi 12895rm -fr conftest* 12896 12897 12898fi 12899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12900$as_echo "$lt_cv_dlopen_self" >&6; } 12901 12902 if test yes = "$lt_cv_dlopen_self"; then 12903 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12905$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12906if ${lt_cv_dlopen_self_static+:} false 12907then : 12908 $as_echo_n "(cached) " >&6 12909else 12910 if test yes = "$cross_compiling"; then : 12911 lt_cv_dlopen_self_static=cross 12912else 12913 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12914 lt_status=$lt_dlunknown 12915 cat > conftest.$ac_ext <<_LT_EOF 12916#line $LINENO "configure" 12917#include "confdefs.h" 12918 12919#if HAVE_DLFCN_H 12920#include <dlfcn.h> 12921#endif 12922 12923#include <stdio.h> 12924 12925#ifdef RTLD_GLOBAL 12926# define LT_DLGLOBAL RTLD_GLOBAL 12927#else 12928# ifdef DL_GLOBAL 12929# define LT_DLGLOBAL DL_GLOBAL 12930# else 12931# define LT_DLGLOBAL 0 12932# endif 12933#endif 12934 12935/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12936 find out it does not work in some platform. */ 12937#ifndef LT_DLLAZY_OR_NOW 12938# ifdef RTLD_LAZY 12939# define LT_DLLAZY_OR_NOW RTLD_LAZY 12940# else 12941# ifdef DL_LAZY 12942# define LT_DLLAZY_OR_NOW DL_LAZY 12943# else 12944# ifdef RTLD_NOW 12945# define LT_DLLAZY_OR_NOW RTLD_NOW 12946# else 12947# ifdef DL_NOW 12948# define LT_DLLAZY_OR_NOW DL_NOW 12949# else 12950# define LT_DLLAZY_OR_NOW 0 12951# endif 12952# endif 12953# endif 12954# endif 12955#endif 12956 12957/* When -fvisibility=hidden is used, assume the code has been annotated 12958 correspondingly for the symbols needed. */ 12959#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12960int fnord () __attribute__((visibility("default"))); 12961#endif 12962 12963int fnord () { return 42; } 12964int main () 12965{ 12966 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12967 int status = $lt_dlunknown; 12968 12969 if (self) 12970 { 12971 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12972 else 12973 { 12974 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12975 else puts (dlerror ()); 12976 } 12977 /* dlclose (self); */ 12978 } 12979 else 12980 puts (dlerror ()); 12981 12982 return status; 12983} 12984_LT_EOF 12985 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12986 (eval $ac_link) 2>&5 12987 ac_status=$? 12988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12989 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12990 (./conftest; exit; ) >&5 2>/dev/null 12991 lt_status=$? 12992 case x$lt_status in 12993 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12994 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12995 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12996 esac 12997 else : 12998 # compilation failed 12999 lt_cv_dlopen_self_static=no 13000 fi 13001fi 13002rm -fr conftest* 13003 13004 13005fi 13006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13007$as_echo "$lt_cv_dlopen_self_static" >&6; } 13008 fi 13009 13010 CPPFLAGS=$save_CPPFLAGS 13011 LDFLAGS=$save_LDFLAGS 13012 LIBS=$save_LIBS 13013 ;; 13014 esac 13015 13016 case $lt_cv_dlopen_self in 13017 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13018 *) enable_dlopen_self=unknown ;; 13019 esac 13020 13021 case $lt_cv_dlopen_self_static in 13022 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13023 *) enable_dlopen_self_static=unknown ;; 13024 esac 13025fi 13026 13027 13028 13029 13030 13031 13032 13033 13034 13035 13036 13037 13038 13039 13040 13041 13042 13043striplib= 13044old_striplib= 13045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13046$as_echo_n "checking whether stripping libraries is possible... " >&6; } 13047if test -z "$STRIP"; then 13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13049$as_echo "no" >&6; } 13050else 13051 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13052 old_striplib="$STRIP --strip-debug" 13053 striplib="$STRIP --strip-unneeded" 13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13055$as_echo "yes" >&6; } 13056 else 13057 case $host_os in 13058 darwin*) 13059 # FIXME - insert some real tests, host_os isn't really good enough 13060 striplib="$STRIP -x" 13061 old_striplib="$STRIP -S" 13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13063$as_echo "yes" >&6; } 13064 ;; 13065 freebsd*) 13066 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 13067 old_striplib="$STRIP --strip-debug" 13068 striplib="$STRIP --strip-unneeded" 13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13070$as_echo "yes" >&6; } 13071 else 13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13073$as_echo "no" >&6; } 13074 fi 13075 ;; 13076 *) 13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13078$as_echo "no" >&6; } 13079 ;; 13080 esac 13081 fi 13082fi 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 # Report what library types will actually be built 13096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13097$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13099$as_echo "$can_build_shared" >&6; } 13100 13101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13102$as_echo_n "checking whether to build shared libraries... " >&6; } 13103 test no = "$can_build_shared" && enable_shared=no 13104 13105 # On AIX, shared libraries and static libraries use the same namespace, and 13106 # are all built from PIC. 13107 case $host_os in 13108 aix3*) 13109 test yes = "$enable_shared" && enable_static=no 13110 if test -n "$RANLIB"; then 13111 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13112 postinstall_cmds='$RANLIB $lib' 13113 fi 13114 ;; 13115 13116 aix[4-9]*) 13117 if test ia64 != "$host_cpu"; then 13118 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13119 yes,aix,yes) ;; # shared object as lib.so file only 13120 yes,svr4,*) ;; # shared object as lib.so archive member only 13121 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13122 esac 13123 fi 13124 ;; 13125 esac 13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13127$as_echo "$enable_shared" >&6; } 13128 13129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13130$as_echo_n "checking whether to build static libraries... " >&6; } 13131 # Make sure either enable_shared or enable_static is yes. 13132 test yes = "$enable_shared" || enable_static=yes 13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13134$as_echo "$enable_static" >&6; } 13135 13136 13137 13138 13139fi 13140ac_ext=c 13141ac_cpp='$CPP $CPPFLAGS' 13142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13144ac_compiler_gnu=$ac_cv_c_compiler_gnu 13145 13146CC=$lt_save_CC 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 ac_config_commands="$ac_config_commands libtool" 13163 13164 13165 13166 13167# Only expand once: 13168 13169 13170 13171# ============================================================= 13172# Check for typedefs, structures, and compiler characteristics. 13173# ============================================================= 13174 13175if test $ac_cv_c_compiler_gnu = yes; then 13176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 13177$as_echo_n "checking whether $CC needs -traditional... " >&6; } 13178if ${ac_cv_prog_gcc_traditional+:} false 13179then : 13180 $as_echo_n "(cached) " >&6 13181else 13182 ac_pattern="Autoconf.*'x'" 13183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13184/* end confdefs.h. */ 13185#include <sgtty.h> 13186Autoconf TIOCGETP 13187_ACEOF 13188if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13189 $EGREP "$ac_pattern" >/dev/null 2>&1 13190then : 13191 ac_cv_prog_gcc_traditional=yes 13192else 13193 ac_cv_prog_gcc_traditional=no 13194fi 13195rm -f conftest* 13196 13197 13198 if test $ac_cv_prog_gcc_traditional = no; then 13199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13200/* end confdefs.h. */ 13201#include <termio.h> 13202Autoconf TCGETA 13203_ACEOF 13204if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13205 $EGREP "$ac_pattern" >/dev/null 2>&1 13206then : 13207 ac_cv_prog_gcc_traditional=yes 13208fi 13209rm -f conftest* 13210 13211 fi 13212fi 13213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 13214$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 13215 if test $ac_cv_prog_gcc_traditional = yes; then 13216 CC="$CC -traditional" 13217 fi 13218fi 13219 13220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 13221$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 13222if ${ac_cv_c_const+:} false 13223then : 13224 $as_echo_n "(cached) " >&6 13225else 13226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13227/* end confdefs.h. */ 13228 13229int 13230main (void) 13231{ 13232 13233#ifndef __cplusplus 13234 /* Ultrix mips cc rejects this sort of thing. */ 13235 typedef int charset[2]; 13236 const charset cs = { 0, 0 }; 13237 /* SunOS 4.1.1 cc rejects this. */ 13238 char const *const *pcpcc; 13239 char **ppc; 13240 /* NEC SVR4.0.2 mips cc rejects this. */ 13241 struct point {int x, y;}; 13242 static struct point const zero = {0,0}; 13243 /* AIX XL C 1.02.0.0 rejects this. 13244 It does not let you subtract one const X* pointer from another in 13245 an arm of an if-expression whose if-part is not a constant 13246 expression */ 13247 const char *g = "string"; 13248 pcpcc = &g + (g ? g-g : 0); 13249 /* HPUX 7.0 cc rejects these. */ 13250 ++pcpcc; 13251 ppc = (char**) pcpcc; 13252 pcpcc = (char const *const *) ppc; 13253 { /* SCO 3.2v4 cc rejects this sort of thing. */ 13254 char tx; 13255 char *t = &tx; 13256 char const *s = 0 ? (char *) 0 : (char const *) 0; 13257 13258 *t++ = 0; 13259 if (s) return 0; 13260 } 13261 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 13262 int x[] = {25, 17}; 13263 const int *foo = &x[0]; 13264 ++foo; 13265 } 13266 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 13267 typedef const int *iptr; 13268 iptr p = 0; 13269 ++p; 13270 } 13271 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 13272 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 13273 struct s { int j; const int *ap[3]; } bx; 13274 struct s *b = &bx; b->j = 5; 13275 } 13276 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 13277 const int foo = 10; 13278 if (!foo) return 0; 13279 } 13280 return !cs[0] && !zero.x; 13281#endif 13282 13283 ; 13284 return 0; 13285} 13286_ACEOF 13287if ac_fn_c_try_compile "$LINENO" 13288then : 13289 ac_cv_c_const=yes 13290else 13291 ac_cv_c_const=no 13292fi 13293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13294fi 13295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 13296$as_echo "$ac_cv_c_const" >&6; } 13297if test $ac_cv_c_const = no; then 13298 13299$as_echo "#define const /**/" >>confdefs.h 13300 13301fi 13302 13303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 13304$as_echo_n "checking for inline... " >&6; } 13305if ${ac_cv_c_inline+:} false 13306then : 13307 $as_echo_n "(cached) " >&6 13308else 13309 ac_cv_c_inline=no 13310for ac_kw in inline __inline__ __inline; do 13311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13312/* end confdefs.h. */ 13313#ifndef __cplusplus 13314typedef int foo_t; 13315static $ac_kw foo_t static_foo () {return 0; } 13316$ac_kw foo_t foo () {return 0; } 13317#endif 13318 13319_ACEOF 13320if ac_fn_c_try_compile "$LINENO" 13321then : 13322 ac_cv_c_inline=$ac_kw 13323fi 13324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13325 test "$ac_cv_c_inline" != no && break 13326done 13327 13328fi 13329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 13330$as_echo "$ac_cv_c_inline" >&6; } 13331 13332case $ac_cv_c_inline in 13333 inline | yes) ;; 13334 *) 13335 case $ac_cv_c_inline in 13336 no) ac_val=;; 13337 *) ac_val=$ac_cv_c_inline;; 13338 esac 13339 cat >>confdefs.h <<_ACEOF 13340#ifndef __cplusplus 13341#define inline $ac_val 13342#endif 13343_ACEOF 13344 ;; 13345esac 13346 13347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler understands the signed keyword" >&5 13348$as_echo_n "checking if compiler understands the signed keyword... " >&6; } 13349if ${libmikmod_cv_gcc_signed+:} false 13350then : 13351 $as_echo_n "(cached) " >&6 13352else 13353 13354 ac_ext=c 13355ac_cpp='$CPP $CPPFLAGS' 13356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13358ac_compiler_gnu=$ac_cv_c_compiler_gnu 13359 13360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13361/* end confdefs.h. */ 13362 13363int 13364main (void) 13365{ 13366signed int t = 0; 13367 ; 13368 return 0; 13369} 13370_ACEOF 13371if ac_fn_c_try_compile "$LINENO" 13372then : 13373 libmikmod_cv_gcc_signed=yes 13374else 13375 libmikmod_cv_gcc_signed=no 13376fi 13377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13378 ac_ext=c 13379ac_cpp='$CPP $CPPFLAGS' 13380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13382ac_compiler_gnu=$ac_cv_c_compiler_gnu 13383 13384fi 13385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libmikmod_cv_gcc_signed" >&5 13386$as_echo "$libmikmod_cv_gcc_signed" >&6; } 13387if test $libmikmod_cv_gcc_signed = no 13388then 13389 13390$as_echo "#define signed /**/" >>confdefs.h 13391 13392fi 13393 13394ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 13395if test "x$ac_cv_type_pid_t" = xyes 13396then : 13397 13398else 13399 13400cat >>confdefs.h <<_ACEOF 13401#define pid_t int 13402_ACEOF 13403 13404fi 13405 13406ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 13407if test "x$ac_cv_type_size_t" = xyes 13408then : 13409 13410else 13411 13412cat >>confdefs.h <<_ACEOF 13413#define size_t unsigned int 13414_ACEOF 13415 13416fi 13417 13418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 13419$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 13420if ${ac_cv_c_bigendian+:} false 13421then : 13422 $as_echo_n "(cached) " >&6 13423else 13424 ac_cv_c_bigendian=unknown 13425 # See if we're dealing with a universal compiler. 13426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13427/* end confdefs.h. */ 13428#ifndef __APPLE_CC__ 13429 not a universal capable compiler 13430 #endif 13431 typedef int dummy; 13432 13433_ACEOF 13434if ac_fn_c_try_compile "$LINENO" 13435then : 13436 13437 # Check for potential -arch flags. It is not universal unless 13438 # there are at least two -arch flags with different values. 13439 ac_arch= 13440 ac_prev= 13441 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 13442 if test -n "$ac_prev"; then 13443 case $ac_word in 13444 i?86 | x86_64 | ppc | ppc64) 13445 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 13446 ac_arch=$ac_word 13447 else 13448 ac_cv_c_bigendian=universal 13449 break 13450 fi 13451 ;; 13452 esac 13453 ac_prev= 13454 elif test "x$ac_word" = "x-arch"; then 13455 ac_prev=arch 13456 fi 13457 done 13458fi 13459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13460 if test $ac_cv_c_bigendian = unknown; then 13461 # See if sys/param.h defines the BYTE_ORDER macro. 13462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13463/* end confdefs.h. */ 13464#include <sys/types.h> 13465 #include <sys/param.h> 13466 13467int 13468main (void) 13469{ 13470#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 13471 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 13472 && LITTLE_ENDIAN) 13473 bogus endian macros 13474 #endif 13475 13476 ; 13477 return 0; 13478} 13479_ACEOF 13480if ac_fn_c_try_compile "$LINENO" 13481then : 13482 # It does; now see whether it defined to BIG_ENDIAN or not. 13483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13484/* end confdefs.h. */ 13485#include <sys/types.h> 13486 #include <sys/param.h> 13487 13488int 13489main (void) 13490{ 13491#if BYTE_ORDER != BIG_ENDIAN 13492 not big endian 13493 #endif 13494 13495 ; 13496 return 0; 13497} 13498_ACEOF 13499if ac_fn_c_try_compile "$LINENO" 13500then : 13501 ac_cv_c_bigendian=yes 13502else 13503 ac_cv_c_bigendian=no 13504fi 13505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13506fi 13507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13508 fi 13509 if test $ac_cv_c_bigendian = unknown; then 13510 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 13511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13512/* end confdefs.h. */ 13513#include <limits.h> 13514 13515int 13516main (void) 13517{ 13518#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 13519 bogus endian macros 13520 #endif 13521 13522 ; 13523 return 0; 13524} 13525_ACEOF 13526if ac_fn_c_try_compile "$LINENO" 13527then : 13528 # It does; now see whether it defined to _BIG_ENDIAN or not. 13529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13530/* end confdefs.h. */ 13531#include <limits.h> 13532 13533int 13534main (void) 13535{ 13536#ifndef _BIG_ENDIAN 13537 not big endian 13538 #endif 13539 13540 ; 13541 return 0; 13542} 13543_ACEOF 13544if ac_fn_c_try_compile "$LINENO" 13545then : 13546 ac_cv_c_bigendian=yes 13547else 13548 ac_cv_c_bigendian=no 13549fi 13550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13551fi 13552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13553 fi 13554 if test $ac_cv_c_bigendian = unknown; then 13555 # Compile a test program. 13556 if test "$cross_compiling" = yes 13557then : 13558 # Try to guess by grepping values from an object file. 13559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13560/* end confdefs.h. */ 13561short int ascii_mm[] = 13562 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 13563 short int ascii_ii[] = 13564 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 13565 int use_ascii (int i) { 13566 return ascii_mm[i] + ascii_ii[i]; 13567 } 13568 short int ebcdic_ii[] = 13569 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 13570 short int ebcdic_mm[] = 13571 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 13572 int use_ebcdic (int i) { 13573 return ebcdic_mm[i] + ebcdic_ii[i]; 13574 } 13575 extern int foo; 13576 13577int 13578main (void) 13579{ 13580return use_ascii (foo) == use_ebcdic (foo); 13581 ; 13582 return 0; 13583} 13584_ACEOF 13585if ac_fn_c_try_compile "$LINENO" 13586then : 13587 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 13588 ac_cv_c_bigendian=yes 13589 fi 13590 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 13591 if test "$ac_cv_c_bigendian" = unknown; then 13592 ac_cv_c_bigendian=no 13593 else 13594 # finding both strings is unlikely to happen, but who knows? 13595 ac_cv_c_bigendian=unknown 13596 fi 13597 fi 13598fi 13599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13600else 13601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13602/* end confdefs.h. */ 13603$ac_includes_default 13604int 13605main (void) 13606{ 13607 13608 /* Are we little or big endian? From Harbison&Steele. */ 13609 union 13610 { 13611 long int l; 13612 char c[sizeof (long int)]; 13613 } u; 13614 u.l = 1; 13615 return u.c[sizeof (long int) - 1] == 1; 13616 13617 ; 13618 return 0; 13619} 13620_ACEOF 13621if ac_fn_c_try_run "$LINENO" 13622then : 13623 ac_cv_c_bigendian=no 13624else 13625 ac_cv_c_bigendian=yes 13626fi 13627rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13628 conftest.$ac_objext conftest.beam conftest.$ac_ext 13629fi 13630 13631 fi 13632fi 13633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 13634$as_echo "$ac_cv_c_bigendian" >&6; } 13635 case $ac_cv_c_bigendian in #( 13636 yes) 13637 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 13638;; #( 13639 no) 13640 ;; #( 13641 universal) 13642 13643$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 13644 13645 ;; #( 13646 *) 13647 as_fn_error $? "unknown endianness 13648 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 13649 esac 13650 13651 13652# ======================= 13653# Check for header files. 13654# ======================= 13655 13656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 13657$as_echo_n "checking for ANSI C header files... " >&6; } 13658if ${ac_cv_header_stdc+:} false 13659then : 13660 $as_echo_n "(cached) " >&6 13661else 13662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13663/* end confdefs.h. */ 13664#include <stdlib.h> 13665#include <stdarg.h> 13666#include <string.h> 13667#include <float.h> 13668 13669int 13670main (void) 13671{ 13672 13673 ; 13674 return 0; 13675} 13676_ACEOF 13677if ac_fn_c_try_compile "$LINENO" 13678then : 13679 ac_cv_header_stdc=yes 13680else 13681 ac_cv_header_stdc=no 13682fi 13683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13684 13685if test $ac_cv_header_stdc = yes; then 13686 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 13687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13688/* end confdefs.h. */ 13689#include <string.h> 13690 13691_ACEOF 13692if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13693 $EGREP "memchr" >/dev/null 2>&1 13694then : 13695 13696else 13697 ac_cv_header_stdc=no 13698fi 13699rm -f conftest* 13700 13701fi 13702 13703if test $ac_cv_header_stdc = yes; then 13704 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 13705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13706/* end confdefs.h. */ 13707#include <stdlib.h> 13708 13709_ACEOF 13710if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13711 $EGREP "free" >/dev/null 2>&1 13712then : 13713 13714else 13715 ac_cv_header_stdc=no 13716fi 13717rm -f conftest* 13718 13719fi 13720 13721if test $ac_cv_header_stdc = yes; then 13722 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 13723 if test "$cross_compiling" = yes 13724then : 13725 : 13726else 13727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13728/* end confdefs.h. */ 13729#include <ctype.h> 13730#include <stdlib.h> 13731#if ((' ' & 0x0FF) == 0x020) 13732# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 13733# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 13734#else 13735# define ISLOWER(c) \ 13736 (('a' <= (c) && (c) <= 'i') \ 13737 || ('j' <= (c) && (c) <= 'r') \ 13738 || ('s' <= (c) && (c) <= 'z')) 13739# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 13740#endif 13741 13742#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 13743int 13744main (void) 13745{ 13746 int i; 13747 for (i = 0; i < 256; i++) 13748 if (XOR (islower (i), ISLOWER (i)) 13749 || toupper (i) != TOUPPER (i)) 13750 return 2; 13751 return 0; 13752} 13753_ACEOF 13754if ac_fn_c_try_run "$LINENO" 13755then : 13756 13757else 13758 ac_cv_header_stdc=no 13759fi 13760rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13761 conftest.$ac_objext conftest.beam conftest.$ac_ext 13762fi 13763 13764fi 13765fi 13766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 13767$as_echo "$ac_cv_header_stdc" >&6; } 13768if test $ac_cv_header_stdc = yes; then 13769 13770$as_echo "#define STDC_HEADERS 1" >>confdefs.h 13771 13772fi 13773 13774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 13775$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 13776if ${ac_cv_header_sys_wait_h+:} false 13777then : 13778 $as_echo_n "(cached) " >&6 13779else 13780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13781/* end confdefs.h. */ 13782#include <sys/types.h> 13783#include <sys/wait.h> 13784#ifndef WEXITSTATUS 13785# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 13786#endif 13787#ifndef WIFEXITED 13788# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 13789#endif 13790 13791int 13792main (void) 13793{ 13794 int s; 13795 wait (&s); 13796 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 13797 ; 13798 return 0; 13799} 13800_ACEOF 13801if ac_fn_c_try_compile "$LINENO" 13802then : 13803 ac_cv_header_sys_wait_h=yes 13804else 13805 ac_cv_header_sys_wait_h=no 13806fi 13807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13808fi 13809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 13810$as_echo "$ac_cv_header_sys_wait_h" >&6; } 13811if test $ac_cv_header_sys_wait_h = yes; then 13812 13813$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 13814 13815fi 13816 13817for ac_header in fcntl.h limits.h malloc.h memory.h sys/ioctl.h unistd.h 13818do : 13819 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13820ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13821if eval test \"x\$"$as_ac_Header"\" = x"yes" 13822then : 13823 cat >>confdefs.h <<_ACEOF 13824#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13825_ACEOF 13826 13827fi 13828 13829done 13830 13831 13832# ============================ 13833# Check for library functions. 13834# ============================ 13835 13836for ac_func in posix_memalign setenv snprintf srandom 13837do : 13838 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13839ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13840if eval test \"x\$"$as_ac_var"\" = x"yes" 13841then : 13842 cat >>confdefs.h <<_ACEOF 13843#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13844_ACEOF 13845 13846fi 13847done 13848 13849ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp" 13850if test "x$ac_cv_func_memcmp" = xyes 13851then : 13852 $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h 13853 13854else 13855 case " $LIBOBJS " in 13856 *" memcmp.$ac_objext "* ) ;; 13857 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 13858 ;; 13859esac 13860 13861fi 13862 13863ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr" 13864if test "x$ac_cv_func_strstr" = xyes 13865then : 13866 $as_echo "#define HAVE_STRSTR 1" >>confdefs.h 13867 13868else 13869 case " $LIBOBJS " in 13870 *" strstr.$ac_objext "* ) ;; 13871 *) LIBOBJS="$LIBOBJS strstr.$ac_objext" 13872 ;; 13873esac 13874 13875fi 13876 13877 13878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5 13879$as_echo_n "checking for floor in -lm... " >&6; } 13880if ${ac_cv_lib_m_floor+:} false 13881then : 13882 $as_echo_n "(cached) " >&6 13883else 13884 ac_check_lib_save_LIBS=$LIBS 13885LIBS="-lm $LIBS" 13886cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13887/* end confdefs.h. */ 13888 13889/* Override any GCC internal prototype to avoid an error. 13890 Use char because int might match the return type of a GCC 13891 builtin and then its argument prototype would still apply. */ 13892#ifdef __cplusplus 13893extern "C" 13894#endif 13895char floor (); 13896int 13897main (void) 13898{ 13899return floor (); 13900 ; 13901 return 0; 13902} 13903_ACEOF 13904if ac_fn_c_try_link "$LINENO" 13905then : 13906 ac_cv_lib_m_floor=yes 13907else 13908 ac_cv_lib_m_floor=no 13909fi 13910rm -f core conftest.err conftest.$ac_objext \ 13911 conftest$ac_exeext conftest.$ac_ext 13912LIBS=$ac_check_lib_save_LIBS 13913fi 13914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5 13915$as_echo "$ac_cv_lib_m_floor" >&6; } 13916if test "x$ac_cv_lib_m_floor" = xyes 13917then : 13918 LIBRARY_LIB="-lm $LIBRARY_LIB" 13919fi 13920 13921cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13922/* end confdefs.h. */ 13923#include <math.h> 13924 13925_ACEOF 13926if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13927 $EGREP "srandom" >/dev/null 2>&1 13928then : 13929 13930$as_echo "#define SRANDOM_IN_MATH_H 1" >>confdefs.h 13931 13932fi 13933rm -f conftest* 13934 13935 13936# ==================== 13937# Check for libraries. 13938# ==================== 13939 13940# dl functions 13941# ------------ 13942if test $libmikmod_mingw = yes 13943then 13944 # libmikmod_dynload variable is for dlopen() api only 13945 libmikmod_dynload=no 13946fi 13947 13948if test $libmikmod_dynload = yes 13949then 13950 libmikmod_dynload=no 13951 libmikmod_dllib= 13952 # SunOS-style shared libraries 13953 for ac_header in dlfcn.h 13954do : 13955 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 13956if test "x$ac_cv_header_dlfcn_h" = xyes 13957then : 13958 cat >>confdefs.h <<_ACEOF 13959#define HAVE_DLFCN_H 1 13960_ACEOF 13961 13962fi 13963 13964done 13965 13966 if test $ac_cv_header_dlfcn_h = yes 13967 then 13968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5 13969$as_echo_n "checking for dlopen in -lc... " >&6; } 13970if ${ac_cv_lib_c_dlopen+:} false 13971then : 13972 $as_echo_n "(cached) " >&6 13973else 13974 ac_check_lib_save_LIBS=$LIBS 13975LIBS="-lc $LIBS" 13976cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13977/* end confdefs.h. */ 13978 13979/* Override any GCC internal prototype to avoid an error. 13980 Use char because int might match the return type of a GCC 13981 builtin and then its argument prototype would still apply. */ 13982#ifdef __cplusplus 13983extern "C" 13984#endif 13985char dlopen (); 13986int 13987main (void) 13988{ 13989return dlopen (); 13990 ; 13991 return 0; 13992} 13993_ACEOF 13994if ac_fn_c_try_link "$LINENO" 13995then : 13996 ac_cv_lib_c_dlopen=yes 13997else 13998 ac_cv_lib_c_dlopen=no 13999fi 14000rm -f core conftest.err conftest.$ac_objext \ 14001 conftest$ac_exeext conftest.$ac_ext 14002LIBS=$ac_check_lib_save_LIBS 14003fi 14004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5 14005$as_echo "$ac_cv_lib_c_dlopen" >&6; } 14006if test "x$ac_cv_lib_c_dlopen" = xyes 14007then : 14008 libmikmod_dynload=sun 14009else 14010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 14011$as_echo_n "checking for dlopen in -ldl... " >&6; } 14012if ${ac_cv_lib_dl_dlopen+:} false 14013then : 14014 $as_echo_n "(cached) " >&6 14015else 14016 ac_check_lib_save_LIBS=$LIBS 14017LIBS="-ldl $LIBS" 14018cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14019/* end confdefs.h. */ 14020 14021/* Override any GCC internal prototype to avoid an error. 14022 Use char because int might match the return type of a GCC 14023 builtin and then its argument prototype would still apply. */ 14024#ifdef __cplusplus 14025extern "C" 14026#endif 14027char dlopen (); 14028int 14029main (void) 14030{ 14031return dlopen (); 14032 ; 14033 return 0; 14034} 14035_ACEOF 14036if ac_fn_c_try_link "$LINENO" 14037then : 14038 ac_cv_lib_dl_dlopen=yes 14039else 14040 ac_cv_lib_dl_dlopen=no 14041fi 14042rm -f core conftest.err conftest.$ac_objext \ 14043 conftest$ac_exeext conftest.$ac_ext 14044LIBS=$ac_check_lib_save_LIBS 14045fi 14046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 14047$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 14048if test "x$ac_cv_lib_dl_dlopen" = xyes 14049then : 14050 libmikmod_dynload=sun 14051 libmikmod_dllib="-ldl" 14052else 14053 libmikmod_dynload=no 14054fi 14055 14056fi 14057 14058 else 14059 # HP-UX-style shared libraries 14060 for ac_header in dl.h 14061do : 14062 ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default" 14063if test "x$ac_cv_header_dl_h" = xyes 14064then : 14065 cat >>confdefs.h <<_ACEOF 14066#define HAVE_DL_H 1 14067_ACEOF 14068 14069fi 14070 14071done 14072 14073 if test $ac_cv_header_dl_h = yes 14074 then 14075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 14076$as_echo_n "checking for shl_load in -ldld... " >&6; } 14077if ${ac_cv_lib_dld_shl_load+:} false 14078then : 14079 $as_echo_n "(cached) " >&6 14080else 14081 ac_check_lib_save_LIBS=$LIBS 14082LIBS="-ldld $LIBS" 14083cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14084/* end confdefs.h. */ 14085 14086/* Override any GCC internal prototype to avoid an error. 14087 Use char because int might match the return type of a GCC 14088 builtin and then its argument prototype would still apply. */ 14089#ifdef __cplusplus 14090extern "C" 14091#endif 14092char shl_load (); 14093int 14094main (void) 14095{ 14096return shl_load (); 14097 ; 14098 return 0; 14099} 14100_ACEOF 14101if ac_fn_c_try_link "$LINENO" 14102then : 14103 ac_cv_lib_dld_shl_load=yes 14104else 14105 ac_cv_lib_dld_shl_load=no 14106fi 14107rm -f core conftest.err conftest.$ac_objext \ 14108 conftest$ac_exeext conftest.$ac_ext 14109LIBS=$ac_check_lib_save_LIBS 14110fi 14111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 14112$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 14113if test "x$ac_cv_lib_dld_shl_load" = xyes 14114then : 14115 libmikmod_dynload=hp 14116 libmikmod_dllib="-ldld" 14117 CFLAGS="${CFLAGS} -DMIKMOD_DLAPI_HP=1 -I${srcdir}/dlapi" 14118else 14119 libmikmod_dynload=no 14120fi 14121 14122 fi 14123 fi 14124fi 14125 14126if test $libmikmod_dynload = sun 14127then 14128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking wherever dynamically loaded symbols need underscores" >&5 14129$as_echo_n "checking wherever dynamically loaded symbols need underscores... " >&6; } 14130if ${libmikmod_cv_dynload_underscores+:} false 14131then : 14132 $as_echo_n "(cached) " >&6 14133else 14134 libmikmod_oldlibs=$LIBS 14135 LIBS="$LIBS $libmikmod_dllib" 14136 14137 ac_ext=c 14138ac_cpp='$CPP $CPPFLAGS' 14139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14141ac_compiler_gnu=$ac_cv_c_compiler_gnu 14142 14143 if test "$cross_compiling" = yes 14144then : 14145 libmikmod_cv_dynload_underscores=no 14146else 14147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14148/* end confdefs.h. */ 14149#include <dlfcn.h> 14150#ifndef RTLD_GLOBAL 14151#define RTLD_GLOBAL 0 14152#endif 14153int main(void) { 14154 void *libc, *printfptr; 14155 libc = dlopen("libc.so", RTLD_LAZY | RTLD_GLOBAL); 14156 if (!libc) exit(1); 14157 printfptr = dlsym(libc, "_printf"); 14158 dlclose(libc); 14159 exit(!printfptr); 14160} 14161_ACEOF 14162if ac_fn_c_try_run "$LINENO" 14163then : 14164 libmikmod_cv_dynload_underscores=yes 14165else 14166 libmikmod_cv_dynload_underscores=no 14167fi 14168rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14169 conftest.$ac_objext conftest.beam conftest.$ac_ext 14170fi 14171 14172 ac_ext=c 14173ac_cpp='$CPP $CPPFLAGS' 14174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14176ac_compiler_gnu=$ac_cv_c_compiler_gnu 14177 14178 LIBS=$libmikmod_oldlibs 14179 14180fi 14181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libmikmod_cv_dynload_underscores" >&5 14182$as_echo "$libmikmod_cv_dynload_underscores" >&6; } 14183 if test $libmikmod_cv_dynload_underscores = yes 14184 then 14185 14186$as_echo "#define DLSYM_NEEDS_UNDERSCORE 1" >>confdefs.h 14187 14188 fi 14189fi 14190 14191# POSIX.4 threads 14192# --------------- 14193if test $libmikmod_mingw = yes || test $libmikmod_amiga = yes 14194then 14195 libmikmod_threads=no 14196fi 14197 14198if test $libmikmod_threads = yes 14199then 14200 libmikmod_threads=no 14201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler recognizes -pthread" >&5 14202$as_echo_n "checking if compiler recognizes -pthread... " >&6; } 14203if ${libmikmod_cv_gcc_pthread+:} false 14204then : 14205 $as_echo_n "(cached) " >&6 14206else 14207 ac_save_CFLAGS=$CFLAGS 14208 CFLAGS="$CFLAGS -pthread" 14209 14210 ac_ext=c 14211ac_cpp='$CPP $CPPFLAGS' 14212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14214ac_compiler_gnu=$ac_cv_c_compiler_gnu 14215 14216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14217/* end confdefs.h. */ 14218#include <pthread.h> 14219int 14220main (void) 14221{ 14222int p = pthread_create(NULL,NULL,NULL,NULL); 14223 ; 14224 return 0; 14225} 14226_ACEOF 14227if ac_fn_c_try_link "$LINENO" 14228then : 14229 libmikmod_cv_gcc_pthread=yes 14230else 14231 libmikmod_cv_gcc_pthread=no 14232fi 14233rm -f core conftest.err conftest.$ac_objext \ 14234 conftest$ac_exeext conftest.$ac_ext 14235 ac_ext=c 14236ac_cpp='$CPP $CPPFLAGS' 14237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14239ac_compiler_gnu=$ac_cv_c_compiler_gnu 14240 14241 CFLAGS=$ac_save_CFLAGS 14242 14243fi 14244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libmikmod_cv_gcc_pthread" >&5 14245$as_echo "$libmikmod_cv_gcc_pthread" >&6; } 14246 if test $libmikmod_cv_gcc_pthread = yes 14247 then 14248 if test $libmikmod_darwin = no && test $libmikmod_haiku = no 14249 then 14250 libmikmod_threads="" 14251 CFLAGS="$CFLAGS -pthread" 14252 fi 14253 else 14254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 14255$as_echo_n "checking for pthread_create in -lpthread... " >&6; } 14256if ${ac_cv_lib_pthread_pthread_create+:} false 14257then : 14258 $as_echo_n "(cached) " >&6 14259else 14260 ac_check_lib_save_LIBS=$LIBS 14261LIBS="-lpthread $LIBS" 14262cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14263/* end confdefs.h. */ 14264 14265/* Override any GCC internal prototype to avoid an error. 14266 Use char because int might match the return type of a GCC 14267 builtin and then its argument prototype would still apply. */ 14268#ifdef __cplusplus 14269extern "C" 14270#endif 14271char pthread_create (); 14272int 14273main (void) 14274{ 14275return pthread_create (); 14276 ; 14277 return 0; 14278} 14279_ACEOF 14280if ac_fn_c_try_link "$LINENO" 14281then : 14282 ac_cv_lib_pthread_pthread_create=yes 14283else 14284 ac_cv_lib_pthread_pthread_create=no 14285fi 14286rm -f core conftest.err conftest.$ac_objext \ 14287 conftest$ac_exeext conftest.$ac_ext 14288LIBS=$ac_check_lib_save_LIBS 14289fi 14290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 14291$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } 14292if test "x$ac_cv_lib_pthread_pthread_create" = xyes 14293then : 14294 libmikmod_threads=-lpthread 14295else 14296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 14297$as_echo_n "checking for pthread_create in -lc_r... " >&6; } 14298if ${ac_cv_lib_c_r_pthread_create+:} false 14299then : 14300 $as_echo_n "(cached) " >&6 14301else 14302 ac_check_lib_save_LIBS=$LIBS 14303LIBS="-lc_r $LIBS" 14304cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14305/* end confdefs.h. */ 14306 14307/* Override any GCC internal prototype to avoid an error. 14308 Use char because int might match the return type of a GCC 14309 builtin and then its argument prototype would still apply. */ 14310#ifdef __cplusplus 14311extern "C" 14312#endif 14313char pthread_create (); 14314int 14315main (void) 14316{ 14317return pthread_create (); 14318 ; 14319 return 0; 14320} 14321_ACEOF 14322if ac_fn_c_try_link "$LINENO" 14323then : 14324 ac_cv_lib_c_r_pthread_create=yes 14325else 14326 ac_cv_lib_c_r_pthread_create=no 14327fi 14328rm -f core conftest.err conftest.$ac_objext \ 14329 conftest$ac_exeext conftest.$ac_ext 14330LIBS=$ac_check_lib_save_LIBS 14331fi 14332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 14333$as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } 14334if test "x$ac_cv_lib_c_r_pthread_create" = xyes 14335then : 14336 libmikmod_threads=-lc_r 14337fi 14338 14339fi 14340 14341 fi 14342fi 14343 14344# ALSA - Linux only 14345# ----------------- 14346if test $libmikmod_driver_alsa = yes 14347then 14348 libmikmod_driver_alsa=no 14349 for ac_header in alsa/asoundlib.h 14350do : 14351 ac_fn_c_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" 14352if test "x$ac_cv_header_alsa_asoundlib_h" = xyes 14353then : 14354 cat >>confdefs.h <<_ACEOF 14355#define HAVE_ALSA_ASOUNDLIB_H 1 14356_ACEOF 14357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_open in -lasound" >&5 14358$as_echo_n "checking for snd_pcm_open in -lasound... " >&6; } 14359if ${ac_cv_lib_asound_snd_pcm_open+:} false 14360then : 14361 $as_echo_n "(cached) " >&6 14362else 14363 ac_check_lib_save_LIBS=$LIBS 14364LIBS="-lasound $LIBS" 14365cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14366/* end confdefs.h. */ 14367 14368/* Override any GCC internal prototype to avoid an error. 14369 Use char because int might match the return type of a GCC 14370 builtin and then its argument prototype would still apply. */ 14371#ifdef __cplusplus 14372extern "C" 14373#endif 14374char snd_pcm_open (); 14375int 14376main (void) 14377{ 14378return snd_pcm_open (); 14379 ; 14380 return 0; 14381} 14382_ACEOF 14383if ac_fn_c_try_link "$LINENO" 14384then : 14385 ac_cv_lib_asound_snd_pcm_open=yes 14386else 14387 ac_cv_lib_asound_snd_pcm_open=no 14388fi 14389rm -f core conftest.err conftest.$ac_objext \ 14390 conftest$ac_exeext conftest.$ac_ext 14391LIBS=$ac_check_lib_save_LIBS 14392fi 14393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_open" >&5 14394$as_echo "$ac_cv_lib_asound_snd_pcm_open" >&6; } 14395if test "x$ac_cv_lib_asound_snd_pcm_open" = xyes 14396then : 14397 libmikmod_driver_alsa=yes 14398fi 14399 14400fi 14401 14402done 14403 14404fi 14405 14406# Amiga audio 14407# --------------------- 14408if test $libmikmod_driver_ahi = yes 14409then 14410 libmikmod_driver_ahi=no 14411 for ac_header in devices/ahi.h 14412do : 14413 ac_fn_c_check_header_mongrel "$LINENO" "devices/ahi.h" "ac_cv_header_devices_ahi_h" "$ac_includes_default" 14414if test "x$ac_cv_header_devices_ahi_h" = xyes 14415then : 14416 cat >>confdefs.h <<_ACEOF 14417#define HAVE_DEVICES_AHI_H 1 14418_ACEOF 14419 libmikmod_driver_ahi=yes 14420fi 14421 14422done 14423 14424fi 14425 14426# pulseaudio 14427# ---------- 14428if test $libmikmod_driver_pulseaudio = yes 14429then 14430 libmikmod_driver_pulseaudio=no 14431 for ac_header in pulse/simple.h 14432do : 14433 ac_fn_c_check_header_mongrel "$LINENO" "pulse/simple.h" "ac_cv_header_pulse_simple_h" "$ac_includes_default" 14434if test "x$ac_cv_header_pulse_simple_h" = xyes 14435then : 14436 cat >>confdefs.h <<_ACEOF 14437#define HAVE_PULSE_SIMPLE_H 1 14438_ACEOF 14439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pa_simple_new in -lpulse-simple" >&5 14440$as_echo_n "checking for pa_simple_new in -lpulse-simple... " >&6; } 14441if ${ac_cv_lib_pulse_simple_pa_simple_new+:} false 14442then : 14443 $as_echo_n "(cached) " >&6 14444else 14445 ac_check_lib_save_LIBS=$LIBS 14446LIBS="-lpulse-simple $LIBS" 14447cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14448/* end confdefs.h. */ 14449 14450/* Override any GCC internal prototype to avoid an error. 14451 Use char because int might match the return type of a GCC 14452 builtin and then its argument prototype would still apply. */ 14453#ifdef __cplusplus 14454extern "C" 14455#endif 14456char pa_simple_new (); 14457int 14458main (void) 14459{ 14460return pa_simple_new (); 14461 ; 14462 return 0; 14463} 14464_ACEOF 14465if ac_fn_c_try_link "$LINENO" 14466then : 14467 ac_cv_lib_pulse_simple_pa_simple_new=yes 14468else 14469 ac_cv_lib_pulse_simple_pa_simple_new=no 14470fi 14471rm -f core conftest.err conftest.$ac_objext \ 14472 conftest$ac_exeext conftest.$ac_ext 14473LIBS=$ac_check_lib_save_LIBS 14474fi 14475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pulse_simple_pa_simple_new" >&5 14476$as_echo "$ac_cv_lib_pulse_simple_pa_simple_new" >&6; } 14477if test "x$ac_cv_lib_pulse_simple_pa_simple_new" = xyes 14478then : 14479 libmikmod_driver_pulseaudio=yes 14480fi 14481 14482fi 14483 14484done 14485 14486fi 14487 14488# esd 14489# --- 14490if test $libmikmod_driver_esd = yes 14491then 14492 libmikmod_driver_esd=no 14493 14494# Check whether --with-esd-prefix was given. 14495if test "${with_esd_prefix+set}" = set 14496then : 14497 withval=$with_esd_prefix; esd_prefix="$withval" 14498else 14499 esd_prefix="" 14500fi 14501 14502 14503# Check whether --with-esd-exec-prefix was given. 14504if test "${with_esd_exec_prefix+set}" = set 14505then : 14506 withval=$with_esd_exec_prefix; esd_exec_prefix="$withval" 14507else 14508 esd_exec_prefix="" 14509fi 14510 14511# Check whether --enable-esdtest was given. 14512if test "${enable_esdtest+set}" = set 14513then : 14514 enableval=$enable_esdtest; 14515else 14516 enable_esdtest=yes 14517fi 14518 14519 14520 if test x$esd_exec_prefix != x ; then 14521 esd_args="$esd_args --exec-prefix=$esd_exec_prefix" 14522 if test x${ESD_CONFIG+set} != xset ; then 14523 ESD_CONFIG=$esd_exec_prefix/bin/esd-config 14524 fi 14525 fi 14526 if test x$esd_prefix != x ; then 14527 esd_args="$esd_args --prefix=$esd_prefix" 14528 if test x${ESD_CONFIG+set} != xset ; then 14529 ESD_CONFIG=$esd_prefix/bin/esd-config 14530 fi 14531 fi 14532 14533 # Extract the first word of "esd-config", so it can be a program name with args. 14534set dummy esd-config; ac_word=$2 14535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14536$as_echo_n "checking for $ac_word... " >&6; } 14537if ${ac_cv_path_ESD_CONFIG+:} false 14538then : 14539 $as_echo_n "(cached) " >&6 14540else 14541 case $ESD_CONFIG in 14542 [\\/]* | ?:[\\/]*) 14543 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path. 14544 ;; 14545 *) 14546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14547for as_dir in $PATH 14548do 14549 IFS=$as_save_IFS 14550 test -z "$as_dir" && as_dir=. 14551 for ac_exec_ext in '' $ac_executable_extensions; do 14552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14553 ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext" 14554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14555 break 2 14556 fi 14557done 14558 done 14559IFS=$as_save_IFS 14560 14561 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no" 14562 ;; 14563esac 14564fi 14565ESD_CONFIG=$ac_cv_path_ESD_CONFIG 14566if test -n "$ESD_CONFIG"; then 14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5 14568$as_echo "$ESD_CONFIG" >&6; } 14569else 14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14571$as_echo "no" >&6; } 14572fi 14573 14574 14575 min_esd_version="0.2.18" 14576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5 14577$as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; } 14578 no_esd="" 14579 if test "$ESD_CONFIG" = "no" ; then 14580 no_esd=yes 14581 else 14582 14583 ac_ext=c 14584ac_cpp='$CPP $CPPFLAGS' 14585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14587ac_compiler_gnu=$ac_cv_c_compiler_gnu 14588 14589 ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags` 14590 ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs` 14591 14592 esd_major_version=`$ESD_CONFIG $esd_args --version | \ 14593 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 14594 esd_minor_version=`$ESD_CONFIG $esd_args --version | \ 14595 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 14596 esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \ 14597 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 14598 if test "x$enable_esdtest" = "xyes" ; then 14599 ac_save_CFLAGS="$CFLAGS" 14600 ac_save_LIBS="$LIBS" 14601 CFLAGS="$CFLAGS $ESD_CFLAGS" 14602 LIBS="$LIBS $ESD_LIBS" 14603 rm -f conf.esdtest 14604 if test "$cross_compiling" = yes 14605then : 14606 echo $ac_n "cross compiling; assumed OK... $ac_c" 14607else 14608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14609/* end confdefs.h. */ 14610 14611#include <stdio.h> 14612#include <stdlib.h> 14613#include <string.h> 14614#include <esd.h> 14615 14616char* 14617my_strdup (char *str) 14618{ 14619 char *new_str; 14620 14621 if (str) 14622 { 14623 new_str = (char *) malloc ((strlen (str) + 1) * sizeof(char)); 14624 strcpy (new_str, str); 14625 } 14626 else 14627 new_str = NULL; 14628 14629 return new_str; 14630} 14631 14632int main () 14633{ 14634 int major, minor, micro; 14635 char *tmp_version; 14636 14637 system ("touch conf.esdtest"); 14638 14639 /* HP/UX 9 (%@#!) writes to sscanf strings */ 14640 tmp_version = my_strdup("$min_esd_version"); 14641 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 14642 printf("%s, bad version string\n", "$min_esd_version"); 14643 exit(1); 14644 } 14645 14646 if (($esd_major_version > major) || 14647 (($esd_major_version == major) && ($esd_minor_version > minor)) || 14648 (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro))) 14649 { 14650 return 0; 14651 } 14652 else 14653 { 14654 printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version); 14655 printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro); 14656 printf("*** best to upgrade to the required version.\n"); 14657 printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n"); 14658 printf("*** to point to the correct copy of esd-config, and remove the file\n"); 14659 printf("*** config.cache before re-running configure\n"); 14660 return 1; 14661 } 14662} 14663 14664 14665_ACEOF 14666if ac_fn_c_try_run "$LINENO" 14667then : 14668 14669else 14670 no_esd=yes 14671fi 14672rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14673 conftest.$ac_objext conftest.beam conftest.$ac_ext 14674fi 14675 14676 CFLAGS="$ac_save_CFLAGS" 14677 LIBS="$ac_save_LIBS" 14678 ac_ext=c 14679ac_cpp='$CPP $CPPFLAGS' 14680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14682ac_compiler_gnu=$ac_cv_c_compiler_gnu 14683 14684 fi 14685 fi 14686 if test "x$no_esd" = x ; then 14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14688$as_echo "yes" >&6; } 14689 libmikmod_driver_esd=yes 14690 else 14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14692$as_echo "no" >&6; } 14693 if test "$ESD_CONFIG" = "no" ; then 14694 echo "*** The esd-config script installed by ESD could not be found" 14695 echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in" 14696 echo "*** your path, or set the ESD_CONFIG environment variable to the" 14697 echo "*** full path to esd-config." 14698 else 14699 if test -f conf.esdtest ; then 14700 : 14701 else 14702 echo "*** Could not run ESD test program, checking why..." 14703 CFLAGS="$CFLAGS $ESD_CFLAGS" 14704 LIBS="$LIBS $ESD_LIBS" 14705 14706 ac_ext=c 14707ac_cpp='$CPP $CPPFLAGS' 14708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14710ac_compiler_gnu=$ac_cv_c_compiler_gnu 14711 14712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14713/* end confdefs.h. */ 14714 14715#include <stdio.h> 14716#include <esd.h> 14717 14718int 14719main (void) 14720{ 14721 return 0; 14722 ; 14723 return 0; 14724} 14725_ACEOF 14726if ac_fn_c_try_link "$LINENO" 14727then : 14728 echo "*** The test program compiled, but did not run. This usually means" 14729 echo "*** that the run-time linker is not finding ESD or finding the wrong" 14730 echo "*** version of ESD. If it is not finding ESD, you'll need to set your" 14731 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 14732 echo "*** to the installed location Also, make sure you have run ldconfig if that" 14733 echo "*** is required on your system" 14734 echo "***" 14735 echo "*** If you have an old version installed, it is best to remove it, although" 14736 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 14737else 14738 echo "*** The test program failed to compile or link. See the file config.log for the" 14739 echo "*** exact error that occured. This usually means ESD was incorrectly installed" 14740 echo "*** or that you have moved ESD since it was installed. In the latter case, you" 14741 echo "*** may want to edit the esd-config script: $ESD_CONFIG" 14742fi 14743rm -f core conftest.err conftest.$ac_objext \ 14744 conftest$ac_exeext conftest.$ac_ext 14745 CFLAGS="$ac_save_CFLAGS" 14746 LIBS="$ac_save_LIBS" 14747 ac_ext=c 14748ac_cpp='$CPP $CPPFLAGS' 14749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14751ac_compiler_gnu=$ac_cv_c_compiler_gnu 14752 14753 fi 14754 fi 14755 ESD_CFLAGS="" 14756 ESD_LIBS="" 14757 : 14758 fi 14759 14760 14761 rm -f conf.esdtest 14762 14763fi 14764 14765# nas 14766# --- 14767if test $libmikmod_driver_nas = yes 14768then 14769 libmikmod_driver_nas=no 14770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 14771$as_echo_n "checking for X... " >&6; } 14772 14773 14774# Check whether --with-x was given. 14775if test "${with_x+set}" = set 14776then : 14777 withval=$with_x; 14778fi 14779 14780# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 14781if test "x$with_x" = xno; then 14782 # The user explicitly disabled X. 14783 have_x=disabled 14784else 14785 case $x_includes,$x_libraries in #( 14786 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 14787 *,NONE | NONE,*) if ${ac_cv_have_x+:} false 14788then : 14789 $as_echo_n "(cached) " >&6 14790else 14791 # One or both of the vars are not set, and there is no cached value. 14792ac_x_includes=no ac_x_libraries=no 14793rm -f -r conftest.dir 14794if mkdir conftest.dir; then 14795 cd conftest.dir 14796 cat >Imakefile <<'_ACEOF' 14797incroot: 14798 @echo incroot='${INCROOT}' 14799usrlibdir: 14800 @echo usrlibdir='${USRLIBDIR}' 14801libdir: 14802 @echo libdir='${LIBDIR}' 14803_ACEOF 14804 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 14805 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 14806 for ac_var in incroot usrlibdir libdir; do 14807 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 14808 done 14809 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 14810 for ac_extension in a so sl dylib la dll; do 14811 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 14812 test -f "$ac_im_libdir/libX11.$ac_extension"; then 14813 ac_im_usrlibdir=$ac_im_libdir; break 14814 fi 14815 done 14816 # Screen out bogus values from the imake configuration. They are 14817 # bogus both because they are the default anyway, and because 14818 # using them would break gcc on systems where it needs fixed includes. 14819 case $ac_im_incroot in 14820 /usr/include) ac_x_includes= ;; 14821 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 14822 esac 14823 case $ac_im_usrlibdir in 14824 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 14825 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 14826 esac 14827 fi 14828 cd .. 14829 rm -f -r conftest.dir 14830fi 14831 14832# Standard set of common directories for X headers. 14833# Check X11 before X11Rn because it is often a symlink to the current release. 14834ac_x_header_dirs=' 14835/usr/X11/include 14836/usr/X11R7/include 14837/usr/X11R6/include 14838/usr/X11R5/include 14839/usr/X11R4/include 14840 14841/usr/include/X11 14842/usr/include/X11R7 14843/usr/include/X11R6 14844/usr/include/X11R5 14845/usr/include/X11R4 14846 14847/usr/local/X11/include 14848/usr/local/X11R7/include 14849/usr/local/X11R6/include 14850/usr/local/X11R5/include 14851/usr/local/X11R4/include 14852 14853/usr/local/include/X11 14854/usr/local/include/X11R7 14855/usr/local/include/X11R6 14856/usr/local/include/X11R5 14857/usr/local/include/X11R4 14858 14859/usr/X386/include 14860/usr/x386/include 14861/usr/XFree86/include/X11 14862 14863/usr/include 14864/usr/local/include 14865/usr/unsupported/include 14866/usr/athena/include 14867/usr/local/x11r5/include 14868/usr/lpp/Xamples/include 14869 14870/usr/openwin/include 14871/usr/openwin/share/include' 14872 14873if test "$ac_x_includes" = no; then 14874 # Guess where to find include files, by looking for Xlib.h. 14875 # First, try using that file with no special directory specified. 14876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14877/* end confdefs.h. */ 14878#include <X11/Xlib.h> 14879_ACEOF 14880if ac_fn_c_try_cpp "$LINENO" 14881then : 14882 # We can compile using X headers with no special include directory. 14883ac_x_includes= 14884else 14885 for ac_dir in $ac_x_header_dirs; do 14886 if test -r "$ac_dir/X11/Xlib.h"; then 14887 ac_x_includes=$ac_dir 14888 break 14889 fi 14890done 14891fi 14892rm -f conftest.err conftest.i conftest.$ac_ext 14893fi # $ac_x_includes = no 14894 14895if test "$ac_x_libraries" = no; then 14896 # Check for the libraries. 14897 # See if we find them without any special options. 14898 # Don't add to $LIBS permanently. 14899 ac_save_LIBS=$LIBS 14900 LIBS="-lX11 $LIBS" 14901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14902/* end confdefs.h. */ 14903#include <X11/Xlib.h> 14904int 14905main (void) 14906{ 14907XrmInitialize () 14908 ; 14909 return 0; 14910} 14911_ACEOF 14912if ac_fn_c_try_link "$LINENO" 14913then : 14914 LIBS=$ac_save_LIBS 14915# We can link X programs with no special library path. 14916ac_x_libraries= 14917else 14918 LIBS=$ac_save_LIBS 14919for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 14920do 14921 # Don't even attempt the hair of trying to link an X program! 14922 for ac_extension in a so sl dylib la dll; do 14923 if test -r "$ac_dir/libX11.$ac_extension"; then 14924 ac_x_libraries=$ac_dir 14925 break 2 14926 fi 14927 done 14928done 14929fi 14930rm -f core conftest.err conftest.$ac_objext \ 14931 conftest$ac_exeext conftest.$ac_ext 14932fi # $ac_x_libraries = no 14933 14934case $ac_x_includes,$ac_x_libraries in #( 14935 no,* | *,no | *\'*) 14936 # Didn't find X, or a directory has "'" in its name. 14937 ac_cv_have_x="have_x=no";; #( 14938 *) 14939 # Record where we found X for the cache. 14940 ac_cv_have_x="have_x=yes\ 14941 ac_x_includes='$ac_x_includes'\ 14942 ac_x_libraries='$ac_x_libraries'" 14943esac 14944fi 14945;; #( 14946 *) have_x=yes;; 14947 esac 14948 eval "$ac_cv_have_x" 14949fi # $with_x != no 14950 14951if test "$have_x" != yes; then 14952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 14953$as_echo "$have_x" >&6; } 14954 no_x=yes 14955else 14956 # If each of the values was on the command line, it overrides each guess. 14957 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 14958 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 14959 # Update the cache value to reflect the command line values. 14960 ac_cv_have_x="have_x=yes\ 14961 ac_x_includes='$x_includes'\ 14962 ac_x_libraries='$x_libraries'" 14963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 14964$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 14965fi 14966 14967 for ac_header in audio/audiolib.h 14968do : 14969 ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default" 14970if test "x$ac_cv_header_audio_audiolib_h" = xyes 14971then : 14972 cat >>confdefs.h <<_ACEOF 14973#define HAVE_AUDIO_AUDIOLIB_H 1 14974_ACEOF 14975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuCreateFlow in -laudio" >&5 14976$as_echo_n "checking for AuCreateFlow in -laudio... " >&6; } 14977if ${ac_cv_lib_audio_AuCreateFlow+:} false 14978then : 14979 $as_echo_n "(cached) " >&6 14980else 14981 ac_check_lib_save_LIBS=$LIBS 14982LIBS="-laudio $LIBS" 14983cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14984/* end confdefs.h. */ 14985 14986/* Override any GCC internal prototype to avoid an error. 14987 Use char because int might match the return type of a GCC 14988 builtin and then its argument prototype would still apply. */ 14989#ifdef __cplusplus 14990extern "C" 14991#endif 14992char AuCreateFlow (); 14993int 14994main (void) 14995{ 14996return AuCreateFlow (); 14997 ; 14998 return 0; 14999} 15000_ACEOF 15001if ac_fn_c_try_link "$LINENO" 15002then : 15003 ac_cv_lib_audio_AuCreateFlow=yes 15004else 15005 ac_cv_lib_audio_AuCreateFlow=no 15006fi 15007rm -f core conftest.err conftest.$ac_objext \ 15008 conftest$ac_exeext conftest.$ac_ext 15009LIBS=$ac_check_lib_save_LIBS 15010fi 15011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuCreateFlow" >&5 15012$as_echo "$ac_cv_lib_audio_AuCreateFlow" >&6; } 15013if test "x$ac_cv_lib_audio_AuCreateFlow" = xyes 15014then : 15015 libmikmod_driver_nas=yes 15016fi 15017 15018fi 15019 15020done 15021 15022 if test $libmikmod_driver_nas = no 15023 then 15024 if test -n "$ac_x_includes" || test -n "$ac_x_libraries" 15025 then 15026 ac_save_CFLAGS=$CFLAGS 15027 ac_save_LDFLAGS=$LDFLAGS 15028 ac_save_LIBS=$LIBS 15029 test -n "$ac_x_includes" && CFLAGS="$CFLAGS -I$ac_x_includes" 15030 test -n "$ac_x_libraries" && LDFLAGS="$LDFLAGS -L$ac_x_libraries" 15031 LIBS="$LIBS -laudio" 15032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 locations for NAS" >&5 15033$as_echo_n "checking X11 locations for NAS... " >&6; } 15034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15035/* end confdefs.h. */ 15036#include <audio/audiolib.h> 15037int 15038main (void) 15039{ 15040AuFlowID f=AuCreateFlow(0,0); 15041 ; 15042 return 0; 15043} 15044_ACEOF 15045if ac_fn_c_try_link "$LINENO" 15046then : 15047 libmikmod_driver_nas=yes 15048fi 15049rm -f core conftest.err conftest.$ac_objext \ 15050 conftest$ac_exeext conftest.$ac_ext 15051 CFLAGS=$ac_save_CFLAGS 15052 LDFLAGS=$ac_save_LDFLAGS 15053 LIBS=$ac_save_LIBS 15054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libmikmod_driver_nas" >&5 15055$as_echo "$libmikmod_driver_nas" >&6; } 15056 if test $libmikmod_driver_nas = yes 15057 then 15058 test -n "$ac_x_includes" && CFLAGS="$CFLAGS -I$ac_x_includes" 15059 test -n "$ac_x_libraries" && LIBRARY_LIB="$LIBRARY_LIB -L$ac_x_libraries" 15060 fi 15061 fi 15062 fi 15063fi 15064 15065# OpenAL - all supported platforms 15066# ----------------- 15067if test $libmikmod_driver_openal = yes 15068then 15069 libmikmod_driver_openal=no 15070 if test $libmikmod_darwin = yes 15071 then 15072 # header-only test is good enough. need 10.4. 15073 for ac_header in OpenAL/al.h OpenAL/alc.h 15074do : 15075 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15076ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 15077#if HAVE_OPENAL_AL_H 15078# include <OpenAL/al.h> 15079#endif 15080#if HAVE_OPENAL_ALC_H 15081# include <OpenAL/alc.h> 15082#endif 15083 15084" 15085if eval test \"x\$"$as_ac_Header"\" = x"yes" 15086then : 15087 cat >>confdefs.h <<_ACEOF 15088#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15089_ACEOF 15090 15091fi 15092 15093done 15094 15095 if test $ac_cv_header_OpenAL_al_h = yes && test $ac_cv_header_OpenAL_alc_h = yes 15096 then 15097 libmikmod_driver_openal=yes 15098 fi 15099 else 15100 for ac_header in AL/al.h AL/alc.h AL/alext.h 15101do : 15102 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15103ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 15104#if HAVE_AL_AL_H 15105# include <AL/al.h> 15106#endif 15107#if HAVE_AL_ALC_H 15108# include <AL/alc.h> 15109#endif 15110 15111" 15112if eval test \"x\$"$as_ac_Header"\" = x"yes" 15113then : 15114 cat >>confdefs.h <<_ACEOF 15115#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15116_ACEOF 15117 15118fi 15119 15120done 15121 15122 if test $ac_cv_header_AL_al_h = yes && test $ac_cv_header_AL_alc_h = yes 15123 then 15124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alEnable in -lopenal" >&5 15125$as_echo_n "checking for alEnable in -lopenal... " >&6; } 15126if ${ac_cv_lib_openal_alEnable+:} false 15127then : 15128 $as_echo_n "(cached) " >&6 15129else 15130 ac_check_lib_save_LIBS=$LIBS 15131LIBS="-lopenal $LIBS" 15132cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15133/* end confdefs.h. */ 15134 15135/* Override any GCC internal prototype to avoid an error. 15136 Use char because int might match the return type of a GCC 15137 builtin and then its argument prototype would still apply. */ 15138#ifdef __cplusplus 15139extern "C" 15140#endif 15141char alEnable (); 15142int 15143main (void) 15144{ 15145return alEnable (); 15146 ; 15147 return 0; 15148} 15149_ACEOF 15150if ac_fn_c_try_link "$LINENO" 15151then : 15152 ac_cv_lib_openal_alEnable=yes 15153else 15154 ac_cv_lib_openal_alEnable=no 15155fi 15156rm -f core conftest.err conftest.$ac_objext \ 15157 conftest$ac_exeext conftest.$ac_ext 15158LIBS=$ac_check_lib_save_LIBS 15159fi 15160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openal_alEnable" >&5 15161$as_echo "$ac_cv_lib_openal_alEnable" >&6; } 15162if test "x$ac_cv_lib_openal_alEnable" = xyes 15163then : 15164 libmikmod_driver_openal=yes 15165fi 15166 15167 fi 15168 fi 15169fi 15170 15171# SDL - all supported platforms 15172# ----------------- 15173if test $libmikmod_driver_sdl = yes 15174then 15175 libmikmod_driver_sdl=no 15176 if test $try_sdl2 = yes 15177 then 15178 15179 15180 15181 15182 15183 15184 15185if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 15186 if test -n "$ac_tool_prefix"; then 15187 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 15188set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 15189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15190$as_echo_n "checking for $ac_word... " >&6; } 15191if ${ac_cv_path_PKG_CONFIG+:} false 15192then : 15193 $as_echo_n "(cached) " >&6 15194else 15195 case $PKG_CONFIG in 15196 [\\/]* | ?:[\\/]*) 15197 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 15198 ;; 15199 *) 15200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15201for as_dir in $PATH 15202do 15203 IFS=$as_save_IFS 15204 test -z "$as_dir" && as_dir=. 15205 for ac_exec_ext in '' $ac_executable_extensions; do 15206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15207 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 15208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15209 break 2 15210 fi 15211done 15212 done 15213IFS=$as_save_IFS 15214 15215 ;; 15216esac 15217fi 15218PKG_CONFIG=$ac_cv_path_PKG_CONFIG 15219if test -n "$PKG_CONFIG"; then 15220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 15221$as_echo "$PKG_CONFIG" >&6; } 15222else 15223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15224$as_echo "no" >&6; } 15225fi 15226 15227 15228fi 15229if test -z "$ac_cv_path_PKG_CONFIG"; then 15230 ac_pt_PKG_CONFIG=$PKG_CONFIG 15231 # Extract the first word of "pkg-config", so it can be a program name with args. 15232set dummy pkg-config; ac_word=$2 15233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15234$as_echo_n "checking for $ac_word... " >&6; } 15235if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false 15236then : 15237 $as_echo_n "(cached) " >&6 15238else 15239 case $ac_pt_PKG_CONFIG in 15240 [\\/]* | ?:[\\/]*) 15241 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 15242 ;; 15243 *) 15244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15245for as_dir in $PATH 15246do 15247 IFS=$as_save_IFS 15248 test -z "$as_dir" && as_dir=. 15249 for ac_exec_ext in '' $ac_executable_extensions; do 15250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15251 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 15252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15253 break 2 15254 fi 15255done 15256 done 15257IFS=$as_save_IFS 15258 15259 ;; 15260esac 15261fi 15262ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 15263if test -n "$ac_pt_PKG_CONFIG"; then 15264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 15265$as_echo "$ac_pt_PKG_CONFIG" >&6; } 15266else 15267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15268$as_echo "no" >&6; } 15269fi 15270 15271 if test "x$ac_pt_PKG_CONFIG" = x; then 15272 PKG_CONFIG="" 15273 else 15274 case $cross_compiling:$ac_tool_warned in 15275yes:) 15276{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15277$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15278ac_tool_warned=yes ;; 15279esac 15280 PKG_CONFIG=$ac_pt_PKG_CONFIG 15281 fi 15282else 15283 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 15284fi 15285 15286fi 15287if test -n "$PKG_CONFIG"; then 15288 _pkg_min_version=0.9.0 15289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 15290$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 15291 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 15292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15293$as_echo "yes" >&6; } 15294 else 15295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15296$as_echo "no" >&6; } 15297 PKG_CONFIG="" 15298 fi 15299fi 15300 15301# Check whether --with-sdl-prefix was given. 15302if test "${with_sdl_prefix+set}" = set 15303then : 15304 withval=$with_sdl_prefix; sdl_prefix="$withval" 15305else 15306 sdl_prefix="" 15307fi 15308 15309 15310# Check whether --with-sdl-exec-prefix was given. 15311if test "${with_sdl_exec_prefix+set}" = set 15312then : 15313 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval" 15314else 15315 sdl_exec_prefix="" 15316fi 15317 15318# Check whether --enable-sdltest was given. 15319if test "${enable_sdltest+set}" = set 15320then : 15321 enableval=$enable_sdltest; 15322else 15323 enable_sdltest=yes 15324fi 15325 15326 15327 min_sdl_version="2.0.0" 15328 15329 if test "x$sdl_prefix$sdl_exec_prefix" = x ; then 15330 15331pkg_failed=no 15332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL" >&5 15333$as_echo_n "checking for SDL... " >&6; } 15334 15335if test -n "$SDL_CFLAGS"; then 15336 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS" 15337 elif test -n "$PKG_CONFIG"; then 15338 if test -n "$PKG_CONFIG" && \ 15339 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$min_sdl_version\""; } >&5 15340 ($PKG_CONFIG --exists --print-errors "sdl2 >= $min_sdl_version") 2>&5 15341 ac_status=$? 15342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15343 test $ac_status = 0; }; then 15344 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl2 >= $min_sdl_version" 2>/dev/null` 15345 test "x$?" != "x0" && pkg_failed=yes 15346else 15347 pkg_failed=yes 15348fi 15349 else 15350 pkg_failed=untried 15351fi 15352if test -n "$SDL_LIBS"; then 15353 pkg_cv_SDL_LIBS="$SDL_LIBS" 15354 elif test -n "$PKG_CONFIG"; then 15355 if test -n "$PKG_CONFIG" && \ 15356 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$min_sdl_version\""; } >&5 15357 ($PKG_CONFIG --exists --print-errors "sdl2 >= $min_sdl_version") 2>&5 15358 ac_status=$? 15359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15360 test $ac_status = 0; }; then 15361 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl2 >= $min_sdl_version" 2>/dev/null` 15362 test "x$?" != "x0" && pkg_failed=yes 15363else 15364 pkg_failed=yes 15365fi 15366 else 15367 pkg_failed=untried 15368fi 15369 15370 15371 15372if test $pkg_failed = yes; then 15373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15374$as_echo "no" >&6; } 15375 15376if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15377 _pkg_short_errors_supported=yes 15378else 15379 _pkg_short_errors_supported=no 15380fi 15381 if test $_pkg_short_errors_supported = yes; then 15382 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl2 >= $min_sdl_version" 2>&1` 15383 else 15384 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl2 >= $min_sdl_version" 2>&1` 15385 fi 15386 # Put the nasty error message in config.log where it belongs 15387 echo "$SDL_PKG_ERRORS" >&5 15388 15389 sdl_pc=no 15390elif test $pkg_failed = untried; then 15391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15392$as_echo "no" >&6; } 15393 sdl_pc=no 15394else 15395 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS 15396 SDL_LIBS=$pkg_cv_SDL_LIBS 15397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15398$as_echo "yes" >&6; } 15399 sdl_pc=yes 15400fi 15401 else 15402 sdl_pc=no 15403 if test x$sdl_exec_prefix != x ; then 15404 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix" 15405 if test x${SDL2_CONFIG+set} != xset ; then 15406 SDL2_CONFIG=$sdl_exec_prefix/bin/sdl2-config 15407 fi 15408 fi 15409 if test x$sdl_prefix != x ; then 15410 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix" 15411 if test x${SDL2_CONFIG+set} != xset ; then 15412 SDL2_CONFIG=$sdl_prefix/bin/sdl2-config 15413 fi 15414 fi 15415 fi 15416 15417 if test "x$sdl_pc" = xyes ; then 15418 no_sdl="" 15419 SDL2_CONFIG="pkg-config sdl2" 15420 else 15421 as_save_PATH="$PATH" 15422 if test "x$prefix" != xNONE && test "$cross_compiling" != yes; then 15423 PATH="$prefix/bin:$prefix/usr/bin:$PATH" 15424 fi 15425 # Extract the first word of "sdl2-config", so it can be a program name with args. 15426set dummy sdl2-config; ac_word=$2 15427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15428$as_echo_n "checking for $ac_word... " >&6; } 15429if ${ac_cv_path_SDL2_CONFIG+:} false 15430then : 15431 $as_echo_n "(cached) " >&6 15432else 15433 case $SDL2_CONFIG in 15434 [\\/]* | ?:[\\/]*) 15435 ac_cv_path_SDL2_CONFIG="$SDL2_CONFIG" # Let the user override the test with a path. 15436 ;; 15437 *) 15438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15439for as_dir in $PATH 15440do 15441 IFS=$as_save_IFS 15442 test -z "$as_dir" && as_dir=. 15443 for ac_exec_ext in '' $ac_executable_extensions; do 15444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15445 ac_cv_path_SDL2_CONFIG="$as_dir/$ac_word$ac_exec_ext" 15446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15447 break 2 15448 fi 15449done 15450 done 15451IFS=$as_save_IFS 15452 15453 test -z "$ac_cv_path_SDL2_CONFIG" && ac_cv_path_SDL2_CONFIG="no" 15454 ;; 15455esac 15456fi 15457SDL2_CONFIG=$ac_cv_path_SDL2_CONFIG 15458if test -n "$SDL2_CONFIG"; then 15459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL2_CONFIG" >&5 15460$as_echo "$SDL2_CONFIG" >&6; } 15461else 15462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15463$as_echo "no" >&6; } 15464fi 15465 15466 15467 PATH="$as_save_PATH" 15468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5 15469$as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; } 15470 no_sdl="" 15471 15472 if test "$SDL2_CONFIG" = "no" ; then 15473 no_sdl=yes 15474 else 15475 SDL_CFLAGS=`$SDL2_CONFIG $sdl_config_args --cflags` 15476 SDL_LIBS=`$SDL2_CONFIG $sdl_config_args --libs` 15477 15478 sdl_major_version=`$SDL2_CONFIG $sdl_config_args --version | \ 15479 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 15480 sdl_minor_version=`$SDL2_CONFIG $sdl_config_args --version | \ 15481 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 15482 sdl_micro_version=`$SDL2_CONFIG $sdl_config_args --version | \ 15483 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 15484 if test "x$enable_sdltest" = "xyes" ; then 15485 ac_save_CFLAGS="$CFLAGS" 15486 ac_save_CXXFLAGS="$CXXFLAGS" 15487 ac_save_LIBS="$LIBS" 15488 CFLAGS="$CFLAGS $SDL_CFLAGS" 15489 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 15490 LIBS="$LIBS $SDL_LIBS" 15491 rm -f conf.sdltest 15492 if test "$cross_compiling" = yes 15493then : 15494 echo $ac_n "cross compiling; assumed OK... $ac_c" 15495else 15496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15497/* end confdefs.h. */ 15498 15499#include <stdio.h> 15500#include <stdlib.h> 15501#include <string.h> 15502#include "SDL.h" 15503 15504char* 15505my_strdup (char *str) 15506{ 15507 char *new_str; 15508 15509 if (str) 15510 { 15511 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); 15512 strcpy (new_str, str); 15513 } 15514 else 15515 new_str = NULL; 15516 15517 return new_str; 15518} 15519 15520int main (int argc, char *argv[]) 15521{ 15522 int major, minor, micro; 15523 char *tmp_version; 15524 15525 /* This hangs on some systems (?) 15526 system ("touch conf.sdltest"); 15527 */ 15528 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } 15529 15530 /* HP/UX 9 (%@#!) writes to sscanf strings */ 15531 tmp_version = my_strdup("$min_sdl_version"); 15532 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 15533 printf("%s, bad version string\n", "$min_sdl_version"); 15534 exit(1); 15535 } 15536 15537 if (($sdl_major_version > major) || 15538 (($sdl_major_version == major) && ($sdl_minor_version > minor)) || 15539 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) 15540 { 15541 return 0; 15542 } 15543 else 15544 { 15545 printf("\n*** 'sdl2-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); 15546 printf("*** of SDL required is %d.%d.%d. If sdl2-config is correct, then it is\n", major, minor, micro); 15547 printf("*** best to upgrade to the required version.\n"); 15548 printf("*** If sdl2-config was wrong, set the environment variable SDL2_CONFIG\n"); 15549 printf("*** to point to the correct copy of sdl2-config, and remove the file\n"); 15550 printf("*** config.cache before re-running configure\n"); 15551 return 1; 15552 } 15553} 15554 15555 15556_ACEOF 15557if ac_fn_c_try_run "$LINENO" 15558then : 15559 15560else 15561 no_sdl=yes 15562fi 15563rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15564 conftest.$ac_objext conftest.beam conftest.$ac_ext 15565fi 15566 15567 CFLAGS="$ac_save_CFLAGS" 15568 CXXFLAGS="$ac_save_CXXFLAGS" 15569 LIBS="$ac_save_LIBS" 15570 fi 15571 fi 15572 if test "x$no_sdl" = x ; then 15573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15574$as_echo "yes" >&6; } 15575 else 15576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15577$as_echo "no" >&6; } 15578 fi 15579 fi 15580 if test "x$no_sdl" = x ; then 15581 libmikmod_driver_sdl=yes 15582 else 15583 if test "$SDL2_CONFIG" = "no" ; then 15584 echo "*** The sdl2-config script installed by SDL could not be found" 15585 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" 15586 echo "*** your path, or set the SDL2_CONFIG environment variable to the" 15587 echo "*** full path to sdl2-config." 15588 else 15589 if test -f conf.sdltest ; then 15590 : 15591 else 15592 echo "*** Could not run SDL test program, checking why..." 15593 CFLAGS="$CFLAGS $SDL_CFLAGS" 15594 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 15595 LIBS="$LIBS $SDL_LIBS" 15596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15597/* end confdefs.h. */ 15598 15599#include <stdio.h> 15600#include "SDL.h" 15601 15602int main(int argc, char *argv[]) 15603{ return 0; } 15604#undef main 15605#define main K_and_R_C_main 15606 15607int 15608main (void) 15609{ 15610 return 0; 15611 ; 15612 return 0; 15613} 15614_ACEOF 15615if ac_fn_c_try_link "$LINENO" 15616then : 15617 echo "*** The test program compiled, but did not run. This usually means" 15618 echo "*** that the run-time linker is not finding SDL or finding the wrong" 15619 echo "*** version of SDL. If it is not finding SDL, you'll need to set your" 15620 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 15621 echo "*** to the installed location Also, make sure you have run ldconfig if that" 15622 echo "*** is required on your system" 15623 echo "***" 15624 echo "*** If you have an old version installed, it is best to remove it, although" 15625 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 15626else 15627 echo "*** The test program failed to compile or link. See the file config.log for the" 15628 echo "*** exact error that occured. This usually means SDL was incorrectly installed" 15629 echo "*** or that you have moved SDL since it was installed. In the latter case, you" 15630 echo "*** may want to edit the sdl2-config script: $SDL2_CONFIG" 15631fi 15632rm -f core conftest.err conftest.$ac_objext \ 15633 conftest$ac_exeext conftest.$ac_ext 15634 CFLAGS="$ac_save_CFLAGS" 15635 CXXFLAGS="$ac_save_CXXFLAGS" 15636 LIBS="$ac_save_LIBS" 15637 fi 15638 fi 15639 SDL_CFLAGS="" 15640 SDL_LIBS="" 15641 : 15642 fi 15643 15644 15645 rm -f conf.sdltest 15646 15647 fi 15648 if test $libmikmod_driver_sdl != yes 15649 then 15650 15651# Check whether --with-sdl-prefix was given. 15652if test "${with_sdl_prefix+set}" = set 15653then : 15654 withval=$with_sdl_prefix; sdl_prefix="$withval" 15655else 15656 sdl_prefix="" 15657fi 15658 15659 15660# Check whether --with-sdl-exec-prefix was given. 15661if test "${with_sdl_exec_prefix+set}" = set 15662then : 15663 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval" 15664else 15665 sdl_exec_prefix="" 15666fi 15667 15668# Check whether --enable-sdltest was given. 15669if test "${enable_sdltest+set}" = set 15670then : 15671 enableval=$enable_sdltest; 15672else 15673 enable_sdltest=yes 15674fi 15675 15676 15677 if test x$sdl_exec_prefix != x ; then 15678 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix" 15679 if test x${SDL_CONFIG+set} != xset ; then 15680 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config 15681 fi 15682 fi 15683 if test x$sdl_prefix != x ; then 15684 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix" 15685 if test x${SDL_CONFIG+set} != xset ; then 15686 SDL_CONFIG=$sdl_prefix/bin/sdl-config 15687 fi 15688 fi 15689 15690 as_save_PATH="$PATH" 15691 if test "x$prefix" != xNONE && test "$cross_compiling" != yes; then 15692 PATH="$prefix/bin:$prefix/usr/bin:$PATH" 15693 fi 15694 # Extract the first word of "sdl-config", so it can be a program name with args. 15695set dummy sdl-config; ac_word=$2 15696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15697$as_echo_n "checking for $ac_word... " >&6; } 15698if ${ac_cv_path_SDL_CONFIG+:} false 15699then : 15700 $as_echo_n "(cached) " >&6 15701else 15702 case $SDL_CONFIG in 15703 [\\/]* | ?:[\\/]*) 15704 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. 15705 ;; 15706 *) 15707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15708for as_dir in $PATH 15709do 15710 IFS=$as_save_IFS 15711 test -z "$as_dir" && as_dir=. 15712 for ac_exec_ext in '' $ac_executable_extensions; do 15713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15714 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" 15715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15716 break 2 15717 fi 15718done 15719 done 15720IFS=$as_save_IFS 15721 15722 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" 15723 ;; 15724esac 15725fi 15726SDL_CONFIG=$ac_cv_path_SDL_CONFIG 15727if test -n "$SDL_CONFIG"; then 15728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5 15729$as_echo "$SDL_CONFIG" >&6; } 15730else 15731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15732$as_echo "no" >&6; } 15733fi 15734 15735 15736 PATH="$as_save_PATH" 15737 min_sdl_version="1.2.0" 15738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5 15739$as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; } 15740 no_sdl="" 15741 if test "$SDL_CONFIG" = "no" ; then 15742 no_sdl=yes 15743 else 15744 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags` 15745 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs` 15746 15747 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \ 15748 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 15749 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \ 15750 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 15751 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ 15752 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 15753 if test "x$enable_sdltest" = "xyes" ; then 15754 ac_save_CFLAGS="$CFLAGS" 15755 ac_save_CXXFLAGS="$CXXFLAGS" 15756 ac_save_LIBS="$LIBS" 15757 CFLAGS="$CFLAGS $SDL_CFLAGS" 15758 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 15759 LIBS="$LIBS $SDL_LIBS" 15760 rm -f conf.sdltest 15761 if test "$cross_compiling" = yes 15762then : 15763 echo $ac_n "cross compiling; assumed OK... $ac_c" 15764else 15765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15766/* end confdefs.h. */ 15767 15768#include <stdio.h> 15769#include <stdlib.h> 15770#include <string.h> 15771#include "SDL.h" 15772 15773char* 15774my_strdup (char *str) 15775{ 15776 char *new_str; 15777 15778 if (str) 15779 { 15780 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); 15781 strcpy (new_str, str); 15782 } 15783 else 15784 new_str = NULL; 15785 15786 return new_str; 15787} 15788 15789int main (int argc, char *argv[]) 15790{ 15791 int major, minor, micro; 15792 char *tmp_version; 15793 15794 /* This hangs on some systems (?) 15795 system ("touch conf.sdltest"); 15796 */ 15797 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } 15798 15799 /* HP/UX 9 (%@#!) writes to sscanf strings */ 15800 tmp_version = my_strdup("$min_sdl_version"); 15801 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 15802 printf("%s, bad version string\n", "$min_sdl_version"); 15803 exit(1); 15804 } 15805 15806 if (($sdl_major_version > major) || 15807 (($sdl_major_version == major) && ($sdl_minor_version > minor)) || 15808 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) 15809 { 15810 return 0; 15811 } 15812 else 15813 { 15814 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); 15815 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); 15816 printf("*** best to upgrade to the required version.\n"); 15817 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); 15818 printf("*** to point to the correct copy of sdl-config, and remove the file\n"); 15819 printf("*** config.cache before re-running configure\n"); 15820 return 1; 15821 } 15822} 15823 15824 15825_ACEOF 15826if ac_fn_c_try_run "$LINENO" 15827then : 15828 15829else 15830 no_sdl=yes 15831fi 15832rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15833 conftest.$ac_objext conftest.beam conftest.$ac_ext 15834fi 15835 15836 CFLAGS="$ac_save_CFLAGS" 15837 CXXFLAGS="$ac_save_CXXFLAGS" 15838 LIBS="$ac_save_LIBS" 15839 fi 15840 fi 15841 if test "x$no_sdl" = x ; then 15842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15843$as_echo "yes" >&6; } 15844 libmikmod_driver_sdl=yes 15845 else 15846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15847$as_echo "no" >&6; } 15848 if test "$SDL_CONFIG" = "no" ; then 15849 echo "*** The sdl-config script installed by SDL could not be found" 15850 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" 15851 echo "*** your path, or set the SDL_CONFIG environment variable to the" 15852 echo "*** full path to sdl-config." 15853 else 15854 if test -f conf.sdltest ; then 15855 : 15856 else 15857 echo "*** Could not run SDL test program, checking why..." 15858 CFLAGS="$CFLAGS $SDL_CFLAGS" 15859 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 15860 LIBS="$LIBS $SDL_LIBS" 15861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15862/* end confdefs.h. */ 15863 15864#include <stdio.h> 15865#include "SDL.h" 15866 15867int main(int argc, char *argv[]) 15868{ return 0; } 15869#undef main 15870#define main K_and_R_C_main 15871 15872int 15873main (void) 15874{ 15875 return 0; 15876 ; 15877 return 0; 15878} 15879_ACEOF 15880if ac_fn_c_try_link "$LINENO" 15881then : 15882 echo "*** The test program compiled, but did not run. This usually means" 15883 echo "*** that the run-time linker is not finding SDL or finding the wrong" 15884 echo "*** version of SDL. If it is not finding SDL, you'll need to set your" 15885 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 15886 echo "*** to the installed location Also, make sure you have run ldconfig if that" 15887 echo "*** is required on your system" 15888 echo "***" 15889 echo "*** If you have an old version installed, it is best to remove it, although" 15890 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 15891else 15892 echo "*** The test program failed to compile or link. See the file config.log for the" 15893 echo "*** exact error that occured. This usually means SDL was incorrectly installed" 15894 echo "*** or that you have moved SDL since it was installed. In the latter case, you" 15895 echo "*** may want to edit the sdl-config script: $SDL_CONFIG" 15896fi 15897rm -f core conftest.err conftest.$ac_objext \ 15898 conftest$ac_exeext conftest.$ac_ext 15899 CFLAGS="$ac_save_CFLAGS" 15900 CXXFLAGS="$ac_save_CXXFLAGS" 15901 LIBS="$ac_save_LIBS" 15902 fi 15903 fi 15904 SDL_CFLAGS="" 15905 SDL_LIBS="" 15906 : 15907 fi 15908 15909 15910 rm -f conf.sdltest 15911 15912 fi 15913 # we don't need linking to SDLmain, because we are a library. 15914 # we also don't need -lmingw32 for MinGW, because gcc adds it automatically. 15915 # -mwindows doesn't make sense for us, either, i.e. no need for extra gdi32 15916 # and comdlg32 linkage, nor the extra "--subsystem windows" flag. 15917 SDL_CFLAGS="`echo $SDL_CFLAGS|sed -e 's/-Dmain=SDL_main//'`" 15918 SDL_LIBS="`echo $SDL_LIBS|sed -e 's/-lSDLmain//'|sed -e 's/-lmingw32//'|sed -e 's/-mwindows//'`" 15919fi 15920 15921 15922 15923# Windows audio 15924# --------------------- 15925case $host_os in 15926 mingw*|cygwin*) 15927 # do a windows.h check, just in case.. 15928 for ac_header in windows.h 15929do : 15930 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" 15931if test "x$ac_cv_header_windows_h" = xyes 15932then : 15933 cat >>confdefs.h <<_ACEOF 15934#define HAVE_WINDOWS_H 1 15935_ACEOF 15936 15937else 15938 as_fn_error $? "Targeting windows, but windows.h not available" "$LINENO" 5 15939fi 15940 15941done 15942 15943 if test $libmikmod_driver_ds = yes 15944 then 15945 libmikmod_driver_ds=no 15946 for ac_header in dsound.h 15947do : 15948 ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default" 15949if test "x$ac_cv_header_dsound_h" = xyes 15950then : 15951 cat >>confdefs.h <<_ACEOF 15952#define HAVE_DSOUND_H 1 15953_ACEOF 15954 libmikmod_driver_ds=yes 15955fi 15956 15957done 15958 15959 fi 15960 if test $libmikmod_driver_xaudio2 = yes 15961 then 15962 libmikmod_driver_xaudio2=no 15963 ac_save_CPPFLAGS=$CPPFLAGS 15964 if test $use_xaudio28 = yes 15965 then 15966 CPPFLAGS="$CPPLAGS -D_WIN32_WINNT=0x0602" 15967 fi 15968 for ac_header in xaudio2.h 15969do : 15970 ac_fn_c_check_header_mongrel "$LINENO" "xaudio2.h" "ac_cv_header_xaudio2_h" "$ac_includes_default" 15971if test "x$ac_cv_header_xaudio2_h" = xyes 15972then : 15973 cat >>confdefs.h <<_ACEOF 15974#define HAVE_XAUDIO2_H 1 15975_ACEOF 15976 libmikmod_driver_xaudio2=yes 15977fi 15978 15979done 15980 15981 if test $libmikmod_driver_xaudio2 = yes 15982 then 15983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XAUDIO2_VOICE_NOSAMPLESPLAYED is defined" >&5 15984$as_echo_n "checking if XAUDIO2_VOICE_NOSAMPLESPLAYED is defined... " >&6; } 15985if ${libmikmod_cv_xaudio2_7_header+:} false 15986then : 15987 $as_echo_n "(cached) " >&6 15988else 15989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15990/* end confdefs.h. */ 15991#include <xaudio2.h> 15992int 15993main (void) 15994{ 15995int flag=XAUDIO2_VOICE_NOSAMPLESPLAYED; 15996 ; 15997 return 0; 15998} 15999_ACEOF 16000if ac_fn_c_try_compile "$LINENO" 16001then : 16002 libmikmod_cv_xaudio2_7_header=yes 16003else 16004 libmikmod_cv_xaudio2_7_header=no 16005fi 16006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16007fi 16008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libmikmod_cv_xaudio2_7_header" >&5 16009$as_echo "$libmikmod_cv_xaudio2_7_header" >&6; } 16010 if test $libmikmod_cv_xaudio2_7_header = yes && test $use_xaudio28 = yes 16011 then 16012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xaudio2.h <= 2.7 and xaudio2.8 enabled - build will likely fail." >&5 16013$as_echo "$as_me: WARNING: xaudio2.h <= 2.7 and xaudio2.8 enabled - build will likely fail." >&2;} 16014 fi 16015 if test $libmikmod_cv_xaudio2_7_header = no && test $use_xaudio28 != yes 16016 then 16017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xaudio2.h >= 2.8 and xaudio2.8 disabled - build will likely fail." >&5 16018$as_echo "$as_me: WARNING: xaudio2.h >= 2.8 and xaudio2.8 disabled - build will likely fail." >&2;} 16019 fi 16020 fi 16021 CPPFLAGS=$ac_save_CPPFLAGS 16022 fi 16023 ;; 16024 16025 *) libmikmod_driver_win=no 16026 libmikmod_driver_ds=no 16027 libmikmod_driver_xaudio2=no 16028 ;; 16029esac 16030 16031# OS/2 audio 16032# --------------------- 16033case $host_os in 16034 emx*) 16035 # do an os2.h check, just in case.. 16036 for ac_header in os2.h 16037do : 16038 ac_fn_c_check_header_mongrel "$LINENO" "os2.h" "ac_cv_header_os2_h" "$ac_includes_default" 16039if test "x$ac_cv_header_os2_h" = xyes 16040then : 16041 cat >>confdefs.h <<_ACEOF 16042#define HAVE_OS2_H 1 16043_ACEOF 16044 16045else 16046 as_fn_error $? "Targeting OS/2, but os2.h not available" "$LINENO" 5 16047fi 16048 16049done 16050 16051 ;; 16052esac 16053 16054# sgi audio - IRIX only 16055# --------------------- 16056if test $libmikmod_driver_sgi = yes 16057then 16058 libmikmod_driver_sgi=no 16059 for ac_header in dmedia/audio.h 16060do : 16061 ac_fn_c_check_header_mongrel "$LINENO" "dmedia/audio.h" "ac_cv_header_dmedia_audio_h" "$ac_includes_default" 16062if test "x$ac_cv_header_dmedia_audio_h" = xyes 16063then : 16064 cat >>confdefs.h <<_ACEOF 16065#define HAVE_DMEDIA_AUDIO_H 1 16066_ACEOF 16067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALseterrorhandler in -laudio" >&5 16068$as_echo_n "checking for ALseterrorhandler in -laudio... " >&6; } 16069if ${ac_cv_lib_audio_ALseterrorhandler+:} false 16070then : 16071 $as_echo_n "(cached) " >&6 16072else 16073 ac_check_lib_save_LIBS=$LIBS 16074LIBS="-laudio $LIBS" 16075cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16076/* end confdefs.h. */ 16077 16078/* Override any GCC internal prototype to avoid an error. 16079 Use char because int might match the return type of a GCC 16080 builtin and then its argument prototype would still apply. */ 16081#ifdef __cplusplus 16082extern "C" 16083#endif 16084char ALseterrorhandler (); 16085int 16086main (void) 16087{ 16088return ALseterrorhandler (); 16089 ; 16090 return 0; 16091} 16092_ACEOF 16093if ac_fn_c_try_link "$LINENO" 16094then : 16095 ac_cv_lib_audio_ALseterrorhandler=yes 16096else 16097 ac_cv_lib_audio_ALseterrorhandler=no 16098fi 16099rm -f core conftest.err conftest.$ac_objext \ 16100 conftest$ac_exeext conftest.$ac_ext 16101LIBS=$ac_check_lib_save_LIBS 16102fi 16103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_ALseterrorhandler" >&5 16104$as_echo "$ac_cv_lib_audio_ALseterrorhandler" >&6; } 16105if test "x$ac_cv_lib_audio_ALseterrorhandler" = xyes 16106then : 16107 libmikmod_driver_sgi=yes 16108fi 16109 16110fi 16111 16112done 16113 16114fi 16115 16116# audiofile 16117# --------- 16118if test $libmikmod_driver_af = yes 16119then 16120 libmikmod_driver_af=no 16121 for ac_header in AF/AFlib.h 16122do : 16123 ac_fn_c_check_header_mongrel "$LINENO" "AF/AFlib.h" "ac_cv_header_AF_AFlib_h" "$ac_includes_default" 16124if test "x$ac_cv_header_AF_AFlib_h" = xyes 16125then : 16126 cat >>confdefs.h <<_ACEOF 16127#define HAVE_AF_AFLIB_H 1 16128_ACEOF 16129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AFOpenAudioConn in -lAF" >&5 16130$as_echo_n "checking for AFOpenAudioConn in -lAF... " >&6; } 16131if ${ac_cv_lib_AF_AFOpenAudioConn+:} false 16132then : 16133 $as_echo_n "(cached) " >&6 16134else 16135 ac_check_lib_save_LIBS=$LIBS 16136LIBS="-lAF $LIBS" 16137cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16138/* end confdefs.h. */ 16139 16140/* Override any GCC internal prototype to avoid an error. 16141 Use char because int might match the return type of a GCC 16142 builtin and then its argument prototype would still apply. */ 16143#ifdef __cplusplus 16144extern "C" 16145#endif 16146char AFOpenAudioConn (); 16147int 16148main (void) 16149{ 16150return AFOpenAudioConn (); 16151 ; 16152 return 0; 16153} 16154_ACEOF 16155if ac_fn_c_try_link "$LINENO" 16156then : 16157 ac_cv_lib_AF_AFOpenAudioConn=yes 16158else 16159 ac_cv_lib_AF_AFOpenAudioConn=no 16160fi 16161rm -f core conftest.err conftest.$ac_objext \ 16162 conftest$ac_exeext conftest.$ac_ext 16163LIBS=$ac_check_lib_save_LIBS 16164fi 16165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_AF_AFOpenAudioConn" >&5 16166$as_echo "$ac_cv_lib_AF_AFOpenAudioConn" >&6; } 16167if test "x$ac_cv_lib_AF_AFOpenAudioConn" = xyes 16168then : 16169 libmikmod_driver_af=yes 16170fi 16171 16172fi 16173 16174done 16175 16176fi 16177 16178# libgus - Linux only 16179# ------------------- 16180if test $libmikmod_driver_ultra = yes 16181then 16182 libmikmod_driver_ultra=no 16183 for ac_header in libgus.h 16184do : 16185 ac_fn_c_check_header_mongrel "$LINENO" "libgus.h" "ac_cv_header_libgus_h" "$ac_includes_default" 16186if test "x$ac_cv_header_libgus_h" = xyes 16187then : 16188 cat >>confdefs.h <<_ACEOF 16189#define HAVE_LIBGUS_H 1 16190_ACEOF 16191 16192fi 16193 16194done 16195 16196 if test $ac_cv_header_libgus_h = yes 16197 then 16198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libgus is new enough" >&5 16199$as_echo_n "checking if libgus is new enough... " >&6; } 16200if ${libmikmod_cv_libgus_h_good+:} false 16201then : 16202 $as_echo_n "(cached) " >&6 16203else 16204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16205/* end confdefs.h. */ 16206#include <libgus.h> 16207int 16208main (void) 16209{ 16210gus_info_t *info; 16211int flg1=GUS_INSTR_SIMPLE; 16212int flg2=GUS_WAVE_BIDIR; 16213 ; 16214 return 0; 16215} 16216_ACEOF 16217if ac_fn_c_try_compile "$LINENO" 16218then : 16219 libmikmod_cv_libgus_h_good=yes 16220else 16221 libmikmod_cv_libgus_h_good=no 16222fi 16223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16224fi 16225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libmikmod_cv_libgus_h_good" >&5 16226$as_echo "$libmikmod_cv_libgus_h_good" >&6; } 16227 16228 if test $libmikmod_cv_libgus_h_good = yes 16229 then 16230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gus_cards in -lgus" >&5 16231$as_echo_n "checking for gus_cards in -lgus... " >&6; } 16232if ${ac_cv_lib_gus_gus_cards+:} false 16233then : 16234 $as_echo_n "(cached) " >&6 16235else 16236 ac_check_lib_save_LIBS=$LIBS 16237LIBS="-lgus $LIBS" 16238cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16239/* end confdefs.h. */ 16240 16241/* Override any GCC internal prototype to avoid an error. 16242 Use char because int might match the return type of a GCC 16243 builtin and then its argument prototype would still apply. */ 16244#ifdef __cplusplus 16245extern "C" 16246#endif 16247char gus_cards (); 16248int 16249main (void) 16250{ 16251return gus_cards (); 16252 ; 16253 return 0; 16254} 16255_ACEOF 16256if ac_fn_c_try_link "$LINENO" 16257then : 16258 ac_cv_lib_gus_gus_cards=yes 16259else 16260 ac_cv_lib_gus_gus_cards=no 16261fi 16262rm -f core conftest.err conftest.$ac_objext \ 16263 conftest$ac_exeext conftest.$ac_ext 16264LIBS=$ac_check_lib_save_LIBS 16265fi 16266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gus_gus_cards" >&5 16267$as_echo "$ac_cv_lib_gus_gus_cards" >&6; } 16268if test "x$ac_cv_lib_gus_gus_cards" = xyes 16269then : 16270 libmikmod_driver_ultra=yes 16271fi 16272 16273 fi 16274 fi 16275fi 16276 16277# sam9407 - Linux only 16278# -------------------- 16279if test $libmikmod_driver_sam9407 = yes 16280then 16281 libmikmod_driver_sam9407=no 16282 for ac_header in sys/sam9407.h 16283do : 16284 ac_fn_c_check_header_mongrel "$LINENO" "sys/sam9407.h" "ac_cv_header_sys_sam9407_h" "$ac_includes_default" 16285if test "x$ac_cv_header_sys_sam9407_h" = xyes 16286then : 16287 cat >>confdefs.h <<_ACEOF 16288#define HAVE_SYS_SAM9407_H 1 16289_ACEOF 16290 libmikmod_driver_sam9407=yes 16291fi 16292 16293done 16294 16295fi 16296 16297# AIX audio 16298# --------- 16299if test $libmikmod_driver_aix = yes 16300then 16301 libmikmod_driver_aix=no 16302 for ac_header in sys/audio.h sys/acpa.h 16303do : 16304 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16305ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16306if eval test \"x\$"$as_ac_Header"\" = x"yes" 16307then : 16308 cat >>confdefs.h <<_ACEOF 16309#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16310_ACEOF 16311 16312fi 16313 16314done 16315 16316 if test $ac_cv_header_sys_audio_h = yes && test $ac_cv_header_sys_acpa_h = yes 16317 then 16318 libmikmod_driver_aix=yes 16319 fi 16320fi 16321 16322# HP/UX audio 16323# ----------- 16324if test $libmikmod_driver_hp = yes 16325then 16326 libmikmod_driver_hp=no 16327 for ac_header in sys/audio.h 16328do : 16329 ac_fn_c_check_header_mongrel "$LINENO" "sys/audio.h" "ac_cv_header_sys_audio_h" "$ac_includes_default" 16330if test "x$ac_cv_header_sys_audio_h" = xyes 16331then : 16332 cat >>confdefs.h <<_ACEOF 16333#define HAVE_SYS_AUDIO_H 1 16334_ACEOF 16335 libmikmod_driver_hp=yes 16336fi 16337 16338done 16339 16340fi 16341 16342# sndio - OpenBSD only 16343# -------------------- 16344if test $libmikmod_driver_sndio = yes 16345then 16346 libmikmod_driver_sndio=no 16347 for ac_header in sndio.h 16348do : 16349 ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default" 16350if test "x$ac_cv_header_sndio_h" = xyes 16351then : 16352 cat >>confdefs.h <<_ACEOF 16353#define HAVE_SNDIO_H 1 16354_ACEOF 16355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5 16356$as_echo_n "checking for sio_open in -lsndio... " >&6; } 16357if ${ac_cv_lib_sndio_sio_open+:} false 16358then : 16359 $as_echo_n "(cached) " >&6 16360else 16361 ac_check_lib_save_LIBS=$LIBS 16362LIBS="-lsndio $LIBS" 16363cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16364/* end confdefs.h. */ 16365 16366/* Override any GCC internal prototype to avoid an error. 16367 Use char because int might match the return type of a GCC 16368 builtin and then its argument prototype would still apply. */ 16369#ifdef __cplusplus 16370extern "C" 16371#endif 16372char sio_open (); 16373int 16374main (void) 16375{ 16376return sio_open (); 16377 ; 16378 return 0; 16379} 16380_ACEOF 16381if ac_fn_c_try_link "$LINENO" 16382then : 16383 ac_cv_lib_sndio_sio_open=yes 16384else 16385 ac_cv_lib_sndio_sio_open=no 16386fi 16387rm -f core conftest.err conftest.$ac_objext \ 16388 conftest$ac_exeext conftest.$ac_ext 16389LIBS=$ac_check_lib_save_LIBS 16390fi 16391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5 16392$as_echo "$ac_cv_lib_sndio_sio_open" >&6; } 16393if test "x$ac_cv_lib_sndio_sio_open" = xyes 16394then : 16395 libmikmod_driver_sndio=yes 16396fi 16397 16398fi 16399 16400done 16401 16402fi 16403 16404# sunaudio - NetBSD/OpenBSD/SunOS/Solaris only 16405# -------------------------------------------- 16406if test $libmikmod_driver_sun = yes 16407then 16408 libmikmod_driver_sun=no 16409 for ac_header in sun/audioio.h sys/audioio.h 16410do : 16411 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16412ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16413if eval test \"x\$"$as_ac_Header"\" = x"yes" 16414then : 16415 cat >>confdefs.h <<_ACEOF 16416#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16417_ACEOF 16418 16419fi 16420 16421done 16422 16423 if test $ac_cv_header_sun_audioio_h = yes || test $ac_cv_header_sys_audioio_h = yes 16424 then 16425 libmikmod_driver_sun=yes 16426 fi 16427fi 16428 16429# ================ 16430# Choose settings. 16431# ================ 16432 16433if test $libmikmod_driver_raw = yes 16434then 16435 libmikmod_driverlist="raw $libmikmod_driverlist" 16436 16437$as_echo "#define DRV_RAW 1" >>confdefs.h 16438 16439fi 16440if test $libmikmod_driver_wav = yes 16441then 16442 libmikmod_driverlist="wav $libmikmod_driverlist" 16443 16444$as_echo "#define DRV_WAV 1" >>confdefs.h 16445 16446fi 16447if test $libmikmod_driver_aiff = yes 16448then 16449 libmikmod_driverlist="aiff $libmikmod_driverlist" 16450 16451$as_echo "#define DRV_AIFF 1" >>confdefs.h 16452 16453fi 16454 16455if test $libmikmod_driver_pipe = yes 16456then 16457 libmikmod_driverlist="pipe $libmikmod_driverlist" 16458 16459$as_echo "#define DRV_PIPE 1" >>confdefs.h 16460 16461fi 16462if test $libmikmod_driver_stdout = yes 16463then 16464 libmikmod_driverlist="stdout $libmikmod_driverlist" 16465 16466$as_echo "#define DRV_STDOUT 1" >>confdefs.h 16467 16468fi 16469 16470if test $libmikmod_driver_af = yes 16471then 16472 libmikmod_driverlist="$libmikmod_driverlist audiofile" 16473 16474$as_echo "#define DRV_AF 1" >>confdefs.h 16475 16476 LIBRARY_LIB="-lAF $LIBRARY_LIB" 16477fi 16478 16479if test $libmikmod_driver_win = yes 16480then 16481 libmikmod_driverlist="win $libmikmod_driverlist" 16482 16483$as_echo "#define DRV_WIN 1" >>confdefs.h 16484 16485 LIBRARY_LIB="-lwinmm $LIBRARY_LIB" 16486fi 16487 16488if test $libmikmod_driver_ds = yes 16489then 16490 libmikmod_driverlist="ds $libmikmod_driverlist" 16491 16492$as_echo "#define DRV_DS 1" >>confdefs.h 16493 16494 LIBRARY_LIB="-ldsound $LIBRARY_LIB" 16495fi 16496 16497if test $libmikmod_driver_xaudio2 = yes 16498then 16499 libmikmod_driverlist="xaudio2 $libmikmod_driverlist" 16500 16501$as_echo "#define DRV_XAUDIO2 1" >>confdefs.h 16502 16503 LIBRARY_LIB="-lole32 $LIBRARY_LIB" 16504 if test $use_xaudio28 = yes 16505 then 16506 16507$as_echo "#define DRV_XAUDIO28 1" >>confdefs.h 16508 16509 LIBRARY_LIB="-lxaudio2_8 $LIBRARY_LIB" 16510 fi 16511fi 16512 16513if test $libmikmod_driver_os2 = yes 16514then 16515 libmikmod_driverlist="os2 $libmikmod_driverlist" 16516 16517$as_echo "#define DRV_OS2 1" >>confdefs.h 16518 16519 # drv_os2 and drv_dart both link to mmpm2 16520 if test $libmikmod_driver_dart = no 16521 then 16522 LIBRARY_LIB="-lmmpm2 $LIBRARY_LIB" 16523 fi 16524fi 16525 16526if test $libmikmod_driver_dart = yes 16527then 16528 libmikmod_driverlist="dart $libmikmod_driverlist" 16529 16530$as_echo "#define DRV_DART 1" >>confdefs.h 16531 16532 LIBRARY_LIB="-lmmpm2 $LIBRARY_LIB" 16533fi 16534 16535if test $libmikmod_driver_aix = yes 16536then 16537 libmikmod_driverlist="aix $libmikmod_driverlist" 16538 16539$as_echo "#define DRV_AIX 1" >>confdefs.h 16540 16541fi 16542 16543if test $libmikmod_driver_ahi = yes 16544then 16545 libmikmod_driverlist="ahi $libmikmod_driverlist" 16546 16547$as_echo "#define DRV_AHI 1" >>confdefs.h 16548 16549fi 16550 16551if test $libmikmod_driver_alsa = yes 16552then 16553 libmikmod_driverlist="alsa $libmikmod_driverlist" 16554 16555$as_echo "#define DRV_ALSA 1" >>confdefs.h 16556 16557 if test $libmikmod_dynload = no 16558 then 16559 LIBRARY_LIB="-lasound $LIBRARY_LIB" 16560 fi 16561fi 16562 16563if test $libmikmod_driver_pulseaudio = yes 16564then 16565 libmikmod_driverlist="pulseaudio $libmikmod_driverlist" 16566 16567$as_echo "#define DRV_PULSEAUDIO 1" >>confdefs.h 16568 16569 LIBRARY_LIB="-lpulse-simple -lpulse $LIBRARY_LIB" 16570fi 16571 16572if test $libmikmod_driver_esd = yes 16573then 16574 libmikmod_driverlist="esd $libmikmod_driverlist" 16575 16576$as_echo "#define DRV_ESD 1" >>confdefs.h 16577 16578 CFLAGS="$CFLAGS $ESD_CFLAGS" 16579 # Under Solaris and perhaps other systems, we have to forward esd 16580 # dependencies to libmikmod's dependency list. 16581 # However, no need to keep libraries we won't require (libossaudio on BSD 16582 # systems, libaudiofile, libasound on Linux) 16583 if test $libmikmod_dynload != no 16584 then 16585 ESD_LIBS="`echo $ESD_LIBS|sed -e 's/-lesd//'|sed -e 's/-lasound//'|sed -e 's/-laudiofile//'|sed -e 's/-lossaudio//'`" 16586 fi 16587 LIBRARY_LIB="$ESD_LIBS $LIBRARY_LIB" 16588fi 16589 16590if test $libmikmod_driver_nas = yes 16591then 16592 libmikmod_driverlist="nas $libmikmod_driverlist" 16593 16594$as_echo "#define DRV_NAS 1" >>confdefs.h 16595 16596 LIBRARY_LIB="-laudio $LIBRARY_LIB" 16597fi 16598 16599if test $libmikmod_driver_hp = yes 16600then 16601 libmikmod_driverlist="hp $libmikmod_driverlist" 16602 16603$as_echo "#define DRV_HP 1" >>confdefs.h 16604 16605fi 16606 16607if test $libmikmod_driver_openal = yes 16608then 16609 libmikmod_driverlist="openal $libmikmod_driverlist" 16610 16611$as_echo "#define DRV_OPENAL 1" >>confdefs.h 16612 16613 if test $libmikmod_darwin = yes 16614 then 16615 LIBRARY_LIB="-framework OpenAL $LIBRARY_LIB" 16616 else 16617 LIBRARY_LIB="-lopenal $LIBRARY_LIB" 16618 fi 16619fi 16620 16621if test $libmikmod_driver_sdl = yes 16622then 16623 libmikmod_driverlist="sdl $libmikmod_driverlist" 16624 16625$as_echo "#define DRV_SDL 1" >>confdefs.h 16626 16627 CFLAGS="$SDL_CFLAGS $CFLAGS" 16628 LIBRARY_LIB="$SDL_LIBS $LIBRARY_LIB" 16629fi 16630 16631if test $libmikmod_driver_oss = yes && test $libmikmod_mingw = no && test $libmikmod_darwin = no 16632then 16633 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h 16634do : 16635 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16636ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16637if eval test \"x\$"$as_ac_Header"\" = x"yes" 16638then : 16639 cat >>confdefs.h <<_ACEOF 16640#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16641_ACEOF 16642 16643fi 16644 16645done 16646 16647 16648 # NetBSD and OpenBSD use ossaudio emulation layer, 16649 # otherwise no link library is needed. 16650 oss_library="" 16651 case $host_os in 16652 netbsd*|openbsd*) 16653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5 16654$as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; } 16655if ${ac_cv_lib_ossaudio__oss_ioctl+:} false 16656then : 16657 $as_echo_n "(cached) " >&6 16658else 16659 ac_check_lib_save_LIBS=$LIBS 16660LIBS="-lossaudio $LIBS" 16661cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16662/* end confdefs.h. */ 16663 16664/* Override any GCC internal prototype to avoid an error. 16665 Use char because int might match the return type of a GCC 16666 builtin and then its argument prototype would still apply. */ 16667#ifdef __cplusplus 16668extern "C" 16669#endif 16670char _oss_ioctl (); 16671int 16672main (void) 16673{ 16674return _oss_ioctl (); 16675 ; 16676 return 0; 16677} 16678_ACEOF 16679if ac_fn_c_try_link "$LINENO" 16680then : 16681 ac_cv_lib_ossaudio__oss_ioctl=yes 16682else 16683 ac_cv_lib_ossaudio__oss_ioctl=no 16684fi 16685rm -f core conftest.err conftest.$ac_objext \ 16686 conftest$ac_exeext conftest.$ac_ext 16687LIBS=$ac_check_lib_save_LIBS 16688fi 16689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 16690$as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; } 16691if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes 16692then : 16693 oss_library="-lossaudio" 16694fi 16695 16696 ;; 16697 esac 16698 16699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OSS code compiles" >&5 16700$as_echo_n "checking whether OSS code compiles... " >&6; } 16701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16702/* end confdefs.h. */ 16703#ifdef HAVE_SYS_IOCTL_H 16704# include <sys/ioctl.h> 16705#endif 16706#ifdef HAVE_SYS_SOUNDCARD_H 16707# include <sys/soundcard.h> 16708#elif defined(HAVE_MACHINE_SOUNDCARD_H) 16709# include <machine/soundcard.h> 16710#elif defined(HAVE_SOUNDCARD_H) 16711# include <soundcard.h> 16712#else 16713error No OSS header present. 16714#endif 16715int 16716main (void) 16717{ 16718int i=SNDCTL_DSP_RESET; 16719 ; 16720 return 0; 16721} 16722_ACEOF 16723if ac_fn_c_try_compile "$LINENO" 16724then : 16725 libmikmod_driver_oss=yes 16726else 16727 libmikmod_driver_oss=no 16728fi 16729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libmikmod_driver_oss" >&5 16731$as_echo "$libmikmod_driver_oss" >&6; } 16732 if test $libmikmod_driver_oss = yes 16733 then 16734 libmikmod_driverlist="oss $libmikmod_driverlist" 16735 16736$as_echo "#define DRV_OSS 1" >>confdefs.h 16737 16738 if test -n "$oss_library" 16739 then 16740 LIBRARY_LIB="$oss_library $LIBRARY_LIB" 16741 fi 16742 fi 16743fi 16744 16745if test $libmikmod_driver_osx = yes 16746then 16747 libmikmod_driverlist="osx $libmikmod_driverlist" 16748 16749$as_echo "#define DRV_OSX 1" >>confdefs.h 16750 16751 LIBRARY_LIB="-framework CoreAudio $LIBRARY_LIB" 16752fi 16753 16754#OpenSL ES driver (e.g. Android) 16755if test $libmikmod_driver_osles = yes 16756then 16757 16758$as_echo "#define DRV_OSLES 1" >>confdefs.h 16759 16760 LIBRARY_LIB="-lOpenSLES $LIBRARY_LIB" 16761fi 16762 16763if test $libmikmod_driver_mac = yes 16764then 16765 libmikmod_driverlist="mac $libmikmod_driverlist" 16766 16767$as_echo "#define DRV_MAC 1" >>confdefs.h 16768 16769 LIBRARY_LIB="-framework Carbon $LIBRARY_LIB" 16770fi 16771 16772if test $libmikmod_driver_sam9407 = yes 16773then 16774 libmikmod_driverlist="sam9407 $libmikmod_driverlist" 16775 16776$as_echo "#define DRV_SAM9407 1" >>confdefs.h 16777 16778fi 16779 16780if test $libmikmod_driver_sgi = yes 16781then 16782 libmikmod_driverlist="sgi $libmikmod_driverlist" 16783 16784$as_echo "#define DRV_SGI 1" >>confdefs.h 16785 16786 LIBRARY_LIB="-laudio $LIBRARY_LIB" 16787fi 16788 16789if test $libmikmod_driver_sndio = yes 16790then 16791 libmikmod_driverlist="sndio $libmikmod_driverlist" 16792 16793$as_echo "#define DRV_SNDIO 1" >>confdefs.h 16794 16795 LIBRARY_LIB="-lsndio $LIBRARY_LIB" 16796fi 16797 16798if test $libmikmod_driver_sun = yes 16799then 16800 libmikmod_driverlist="sunaudio $libmikmod_driverlist" 16801 16802$as_echo "#define DRV_SUN 1" >>confdefs.h 16803 16804fi 16805 16806if test $libmikmod_driver_ultra = yes 16807then 16808 libmikmod_driverlist="ultra $libmikmod_driverlist" 16809 16810$as_echo "#define DRV_ULTRA 1" >>confdefs.h 16811 16812 if test $libmikmod_dynload = no 16813 then 16814 LIBRARY_LIB="-lgus $LIBRARY_LIB" 16815 fi 16816fi 16817 16818if test $libmikmod_debug = yes 16819then 16820 16821$as_echo "#define MIKMOD_DEBUG 1" >>confdefs.h 16822 16823 CC="$CC -g" 16824fi 16825 16826if test $libmikmod_dynload != no 16827then 16828 16829$as_echo "#define MIKMOD_DYNAMIC 1" >>confdefs.h 16830 16831 16832 LIBRARY_LIB="$libmikmod_dllib $LIBRARY_LIB" 16833 if test $libmikmod_dynload = sun 16834 then 16835 # RTLD_GLOBAL is not defined under every system 16836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RTLD_GLOBAL is defined" >&5 16837$as_echo_n "checking if RTLD_GLOBAL is defined... " >&6; } 16838if ${libmikmod_cv_decl_rtld_global+:} false 16839then : 16840 $as_echo_n "(cached) " >&6 16841else 16842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16843/* end confdefs.h. */ 16844#include <dlfcn.h> 16845int 16846main (void) 16847{ 16848int flag=RTLD_GLOBAL; 16849 ; 16850 return 0; 16851} 16852_ACEOF 16853if ac_fn_c_try_compile "$LINENO" 16854then : 16855 libmikmod_cv_decl_rtld_global=yes 16856else 16857 libmikmod_cv_decl_rtld_global=no 16858fi 16859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16860fi 16861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libmikmod_cv_decl_rtld_global" >&5 16862$as_echo "$libmikmod_cv_decl_rtld_global" >&6; } 16863 if test $libmikmod_cv_decl_rtld_global = yes 16864 then 16865 16866$as_echo "#define HAVE_RTLD_GLOBAL 1" >>confdefs.h 16867 16868 fi 16869 fi 16870fi 16871 16872# If compiling with gcc, use adequate optimization flags 16873if test $ac_cv_c_compiler_gnu = yes 16874then 16875 # On at least x86 platforms, gcc 2.7.2.1 and earlier won't work if -O3 (or 16876 # -finline-functions) are used. Versions 2.7.2.3, 2.8.x and egcs are ok 16877 # (didn't test 2.7.2.2). 16878 # Until there's an easy way to catch broken inlining, we choose flags known 16879 # to work correctly depending of the compiler version. 16880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inlining functions is safe" >&5 16881$as_echo_n "checking if inlining functions is safe... " >&6; } 16882if ${libmikmod_cv_gcc_inline_safe+:} false 16883then : 16884 $as_echo_n "(cached) " >&6 16885else 16886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16887/* end confdefs.h. */ 16888 16889int 16890main (void) 16891{ 16892 16893#if !(defined __GNUC__ && (__GNUC__ > 2 || __GNUC__ == 2 && __GNUC_MINOR__ > 7)) 16894#error inlining functions is not safe 16895#endif 16896 16897 ; 16898 return 0; 16899} 16900_ACEOF 16901if ac_fn_c_try_compile "$LINENO" 16902then : 16903 libmikmod_cv_gcc_inline_safe=yes 16904else 16905 libmikmod_cv_gcc_inline_safe=no 16906fi 16907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16908fi 16909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libmikmod_cv_gcc_inline_safe" >&5 16910$as_echo "$libmikmod_cv_gcc_inline_safe" >&6; } 16911 if test $libmikmod_cv_gcc_inline_safe = no 16912 then 16913 CFLAGS="$CFLAGS -fno-strength-reduce" 16914 fi 16915 CFLAGS="$CFLAGS -ffast-math" 16916 if test $libmikmod_darwin = yes 16917 then 16918 CFLAGS="$CFLAGS -fno-common" 16919 fi 16920 if test $libmikmod_debug = yes 16921 then 16922 CFLAGS="$CFLAGS -Wall -Werror" 16923 else 16924 CFLAGS="$CFLAGS -Wall" 16925 fi 16926 16927 # pgcc 2.95.2 appears not to be able to compile libmikmod, although regular 16928 # gcc works fine. Issue a warning if the compiler is pgcc, until a reliable 16929 # way to detect flawed version (or, better, a reliable workaround) is 16930 # found. 16931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is pgcc" >&5 16932$as_echo_n "checking if compiler is pgcc... " >&6; } 16933 if ($CC -v 2>&1 | grep ^pgcc > /dev/null) 2>/dev/null 16934 then 16935 libmikmod_gcc_is_pgcc=yes 16936 else 16937 libmikmod_gcc_is_pgcc=no 16938 fi 16939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libmikmod_gcc_is_pgcc" >&5 16940$as_echo "$libmikmod_gcc_is_pgcc" >&6; } 16941 if test $libmikmod_gcc_is_pgcc = yes 16942 then 16943 echo " 16944*** Version 2.95.2 of this compiler, and perhaps others, are unable to 16945*** compile libmikmod. If compilation fails for playercode/virtch.c 16946*** around line 650, with the error ``internal error--insn does not 16947*** satisfy its constraints'', then you'll have to use another compiler. 16948" >&2 16949 fi 16950fi 16951 16952if test x$libmikmod_threads != xno 16953then 16954 16955$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 16956 16957 CFLAGS="$CFLAGS -D_REENTRANT" 16958 LIBRARY_LIB="$libmikmod_threads $LIBRARY_LIB" 16959 REENTRANT="-D_REENTRANT" 16960 if test $libmikmod_cv_gcc_pthread = yes 16961 then 16962 if test $libmikmod_darwin = no && test $libmikmod_haiku = no 16963 then 16964 REENTRANT="-pthread $REENTRANT" 16965 LIB_LDADD="-pthread" 16966 fi 16967 fi 16968fi 16969 16970case $host_cpu in 16971 ppc|ppc64|powerpc|powerpc64) 16972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use altivec" >&5 16973$as_echo_n "checking whether to use altivec... " >&6; } 16974 if test x$libmikmod_simd = xyes 16975 then 16976 case $host_os in 16977 darwin*) 16978 CFLAGS="$CFLAGS -faltivec -force_cpusubtype_ALL" ;; 16979 *) 16980 CFLAGS="$CFLAGS -maltivec" ;; 16981 esac 16982 libmikmod_altivec=yes 16983 libmikmod_simd=altivec 16984 fi 16985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libmikmod_altivec" >&5 16986$as_echo "$libmikmod_altivec" >&6; } 16987 ;; 16988 16989 i*86|x86_64) 16990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sse2" >&5 16991$as_echo_n "checking whether to use sse2... " >&6; } 16992 if test x$libmikmod_simd = xyes 16993 then 16994 case `arch` in 16995 i*86) CFLAGS="$CFLAGS -msse2" ;; 16996 esac 16997 libmikmod_sse2=yes 16998 libmikmod_simd=sse2 16999 fi 17000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libmikmod_sse2" >&5 17001$as_echo "$libmikmod_sse2" >&6; } 17002 ;; 17003esac 17004 17005# see if we set libmikmod_simd properly 17006case $libmikmod_simd in 17007 altivec|sse2) 17008 17009$as_echo "#define MIKMOD_SIMD 1" >>confdefs.h 17010 ;; 17011 *) libmikmod_simd=no ;; 17012esac 17013 17014# MIKMOD_UNIX override 17015if test "$libmikmod_unix" = "0" || test "$libmikmod_unix" = "1" 17016then 17017 17018cat >>confdefs.h <<_ACEOF 17019#define MIKMOD_UNIX $libmikmod_unix 17020_ACEOF 17021 17022fi 17023 17024if test $libmikmod_hqmixer = no 17025then 17026 17027$as_echo "#define NO_HQMIXER 1" >>confdefs.h 17028 17029fi 17030 17031# symbol visibility 17032ac_save_CFLAGS="$CFLAGS" 17033CFLAGS="$CFLAGS -fvisibility=hidden -Werror" 17034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports visibility attributes" >&5 17035$as_echo_n "checking if compiler supports visibility attributes... " >&6; } 17036if ${libmikmod_cv_gcc_visibility+:} false 17037then : 17038 $as_echo_n "(cached) " >&6 17039else 17040 17041 ac_ext=c 17042ac_cpp='$CPP $CPPFLAGS' 17043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17045ac_compiler_gnu=$ac_cv_c_compiler_gnu 17046 17047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17048/* end confdefs.h. */ 17049void foo(void); 17050__attribute__((visibility("default"))) void foo(void) {} 17051int 17052main (void) 17053{ 17054 17055 ; 17056 return 0; 17057} 17058_ACEOF 17059if ac_fn_c_try_compile "$LINENO" 17060then : 17061 libmikmod_cv_gcc_visibility=yes 17062else 17063 libmikmod_cv_gcc_visibility=no 17064fi 17065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17066 ac_ext=c 17067ac_cpp='$CPP $CPPFLAGS' 17068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17070ac_compiler_gnu=$ac_cv_c_compiler_gnu 17071 17072fi 17073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libmikmod_cv_gcc_visibility" >&5 17074$as_echo "$libmikmod_cv_gcc_visibility" >&6; } 17075# we want symbol -fvisibility for elf targets, however it works 17076# with darwin/macho too. other than that, windows, dos, os/2, amiga 17077# do not need it: for any such targets, the -Werror switch is 17078# supposed to fail the above check. (I'm adding the manual test 17079# below nonetheless, just in case.) 17080case $host_os in 17081 mingw*|cygwin*|emx*|*djgpp|amigaos*|aros*|morphos*) 17082 libmikmod_cv_gcc_visibility=no 17083 ;; 17084esac 17085CFLAGS="$ac_save_CFLAGS" 17086if test $libmikmod_cv_gcc_visibility = yes 17087then 17088 CFLAGS="$CFLAGS -DSYM_VISIBILITY -fvisibility=hidden" 17089fi 17090 17091# ================= 17092# Create Makefiles. 17093# ================= 17094 17095 if test "$libmikmod_docs" = yes; then 17096 BUILD_DOCS_TRUE= 17097 BUILD_DOCS_FALSE='#' 17098else 17099 BUILD_DOCS_TRUE='#' 17100 BUILD_DOCS_FALSE= 17101fi 17102 17103 17104 17105 17106 17107 17108 17109 17110 17111 17112 17113 17114 17115ac_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" 17116 17117ac_config_headers="$ac_config_headers config.h" 17118 17119cat >confcache <<\_ACEOF 17120# This file is a shell script that caches the results of configure 17121# tests run on this system so they can be shared between configure 17122# scripts and configure runs, see configure's option --config-cache. 17123# It is not useful on other systems. If it contains results you don't 17124# want to keep, you may remove or edit it. 17125# 17126# config.status only pays attention to the cache file if you give it 17127# the --recheck option to rerun configure. 17128# 17129# `ac_cv_env_foo' variables (set or unset) will be overridden when 17130# loading this file, other *unset* `ac_cv_foo' will be assigned the 17131# following values. 17132 17133_ACEOF 17134 17135# The following way of writing the cache mishandles newlines in values, 17136# but we know of no workaround that is simple, portable, and efficient. 17137# So, we kill variables containing newlines. 17138# Ultrix sh set writes to stderr and can't be redirected directly, 17139# and sets the high bit in the cache file unless we assign to the vars. 17140( 17141 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17142 eval ac_val=\$$ac_var 17143 case $ac_val in #( 17144 *${as_nl}*) 17145 case $ac_var in #( 17146 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17147$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17148 esac 17149 case $ac_var in #( 17150 _ | IFS | as_nl) ;; #( 17151 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17152 *) { eval $ac_var=; unset $ac_var;} ;; 17153 esac ;; 17154 esac 17155 done 17156 17157 (set) 2>&1 | 17158 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17159 *${as_nl}ac_space=\ *) 17160 # `set' does not quote correctly, so add quotes: double-quote 17161 # substitution turns \\\\ into \\, and sed turns \\ into \. 17162 sed -n \ 17163 "s/'/'\\\\''/g; 17164 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17165 ;; #( 17166 *) 17167 # `set' quotes correctly as required by POSIX, so do not add quotes. 17168 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17169 ;; 17170 esac | 17171 sort 17172) | 17173 sed ' 17174 /^ac_cv_env_/b end 17175 t clear 17176 :clear 17177 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17178 t end 17179 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17180 :end' >>confcache 17181if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17182 if test -w "$cache_file"; then 17183 if test "x$cache_file" != "x/dev/null"; then 17184 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17185$as_echo "$as_me: updating cache $cache_file" >&6;} 17186 if test ! -f "$cache_file" || test -h "$cache_file"; then 17187 cat confcache >"$cache_file" 17188 else 17189 case $cache_file in #( 17190 */* | ?:*) 17191 mv -f confcache "$cache_file"$$ && 17192 mv -f "$cache_file"$$ "$cache_file" ;; #( 17193 *) 17194 mv -f confcache "$cache_file" ;; 17195 esac 17196 fi 17197 fi 17198 else 17199 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17200$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17201 fi 17202fi 17203rm -f confcache 17204 17205test "x$prefix" = xNONE && prefix=$ac_default_prefix 17206# Let make expand exec_prefix. 17207test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17208 17209DEFS=-DHAVE_CONFIG_H 17210 17211ac_libobjs= 17212ac_ltlibobjs= 17213U= 17214for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17215 # 1. Remove the extension, and $U if already installed. 17216 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17217 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 17218 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17219 # will be set to the directory where LIBOBJS objects are built. 17220 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17221 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17222done 17223LIBOBJS=$ac_libobjs 17224 17225LTLIBOBJS=$ac_ltlibobjs 17226 17227 17228 if test -n "$EXEEXT"; then 17229 am__EXEEXT_TRUE= 17230 am__EXEEXT_FALSE='#' 17231else 17232 am__EXEEXT_TRUE='#' 17233 am__EXEEXT_FALSE= 17234fi 17235 17236if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 17237 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 17238Usually this means the macro was only invoked conditionally." "$LINENO" 5 17239fi 17240if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 17241 as_fn_error $? "conditional \"AMDEP\" was never defined. 17242Usually this means the macro was only invoked conditionally." "$LINENO" 5 17243fi 17244if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17245 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17246Usually this means the macro was only invoked conditionally." "$LINENO" 5 17247fi 17248 17249if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then 17250 as_fn_error $? "conditional \"BUILD_DOCS\" was never defined. 17251Usually this means the macro was only invoked conditionally." "$LINENO" 5 17252fi 17253 17254: "${CONFIG_STATUS=./config.status}" 17255ac_write_fail=0 17256ac_clean_files_save=$ac_clean_files 17257ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17258{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17259$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17260as_write_fail=0 17261cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17262#! $SHELL 17263# Generated by $as_me. 17264# Run this file to recreate the current configuration. 17265# Compiler output produced by configure, useful for debugging 17266# configure, is in config.log if it exists. 17267 17268debug=false 17269ac_cs_recheck=false 17270ac_cs_silent=false 17271 17272SHELL=\${CONFIG_SHELL-$SHELL} 17273export SHELL 17274_ASEOF 17275cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 17276## -------------------- ## 17277## M4sh Initialization. ## 17278## -------------------- ## 17279 17280# Be more Bourne compatible 17281DUALCASE=1; export DUALCASE # for MKS sh 17282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1 17283then : 17284 emulate sh 17285 NULLCMD=: 17286 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 17287 # is contrary to our usage. Disable this feature. 17288 alias -g '${1+"$@"}'='"$@"' 17289 setopt NO_GLOB_SUBST 17290else 17291 case `(set -o) 2>/dev/null` in #( 17292 *posix*) : 17293 set -o posix ;; #( 17294 *) : 17295 ;; 17296esac 17297fi 17298 17299 17300as_nl=' 17301' 17302export as_nl 17303# Printing a long string crashes Solaris 7 /usr/bin/printf. 17304as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 17305as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 17306as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 17307# Prefer a ksh shell builtin over an external printf program on Solaris, 17308# but without wasting forks for bash or zsh. 17309if test -z "$BASH_VERSION$ZSH_VERSION" \ 17310 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 17311 as_echo='print -r --' 17312 as_echo_n='print -rn --' 17313elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 17314 as_echo='printf %s\n' 17315 as_echo_n='printf %s' 17316else 17317 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 17318 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 17319 as_echo_n='/usr/ucb/echo -n' 17320 else 17321 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 17322 as_echo_n_body='eval 17323 arg=$1; 17324 case $arg in #( 17325 *"$as_nl"*) 17326 expr "X$arg" : "X\\(.*\\)$as_nl"; 17327 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 17328 esac; 17329 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 17330 ' 17331 export as_echo_n_body 17332 as_echo_n='sh -c $as_echo_n_body as_echo' 17333 fi 17334 export as_echo_body 17335 as_echo='sh -c $as_echo_body as_echo' 17336fi 17337 17338# The user is always right. 17339if test "${PATH_SEPARATOR+set}" != set; then 17340 PATH_SEPARATOR=: 17341 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 17342 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 17343 PATH_SEPARATOR=';' 17344 } 17345fi 17346 17347 17348# IFS 17349# We need space, tab and new line, in precisely that order. Quoting is 17350# there to prevent editors from complaining about space-tab. 17351# (If _AS_PATH_WALK were called with IFS unset, it would disable word 17352# splitting by setting IFS to empty value.) 17353IFS=" "" $as_nl" 17354 17355# Find who we are. Look in the path if we contain no directory separator. 17356as_myself= 17357case $0 in #(( 17358 *[\\/]* ) as_myself=$0 ;; 17359 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17360for as_dir in $PATH 17361do 17362 IFS=$as_save_IFS 17363 test -z "$as_dir" && as_dir=. 17364 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 17365 done 17366IFS=$as_save_IFS 17367 17368 ;; 17369esac 17370# We did not find ourselves, most probably we were run as `sh COMMAND' 17371# in which case we are not to be found in the path. 17372if test "x$as_myself" = x; then 17373 as_myself=$0 17374fi 17375if test ! -f "$as_myself"; then 17376 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 17377 exit 1 17378fi 17379 17380# Unset variables that we do not need and which cause bugs (e.g. in 17381# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 17382# suppresses any "Segmentation fault" message there. '((' could 17383# trigger a bug in pdksh 5.2.14. 17384for as_var in BASH_ENV ENV MAIL MAILPATH 17385do eval test x\${$as_var+set} = xset \ 17386 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 17387done 17388PS1='$ ' 17389PS2='> ' 17390PS4='+ ' 17391 17392# NLS nuisances. 17393LC_ALL=C 17394export LC_ALL 17395LANGUAGE=C 17396export LANGUAGE 17397 17398# CDPATH. 17399(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17400 17401 17402# as_fn_error STATUS ERROR [LINENO LOG_FD] 17403# ---------------------------------------- 17404# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 17405# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 17406# script with STATUS, using 1 if that was 0. 17407as_fn_error () 17408{ 17409 as_status=$1; test $as_status -eq 0 && as_status=1 17410 if test "$4"; then 17411 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17412 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 17413 fi 17414 $as_echo "$as_me: error: $2" >&2 17415 as_fn_exit $as_status 17416} # as_fn_error 17417 17418 17419# as_fn_set_status STATUS 17420# ----------------------- 17421# Set $? to STATUS, without forking. 17422as_fn_set_status () 17423{ 17424 return $1 17425} # as_fn_set_status 17426 17427# as_fn_exit STATUS 17428# ----------------- 17429# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 17430as_fn_exit () 17431{ 17432 set +e 17433 as_fn_set_status $1 17434 exit $1 17435} # as_fn_exit 17436 17437# as_fn_unset VAR 17438# --------------- 17439# Portably unset VAR. 17440as_fn_unset () 17441{ 17442 { eval $1=; unset $1;} 17443} 17444as_unset=as_fn_unset 17445# as_fn_append VAR VALUE 17446# ---------------------- 17447# Append the text in VALUE to the end of the definition contained in VAR. Take 17448# advantage of any shell optimizations that allow amortized linear growth over 17449# repeated appends, instead of the typical quadratic growth present in naive 17450# implementations. 17451if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 17452then : 17453 eval 'as_fn_append () 17454 { 17455 eval $1+=\$2 17456 }' 17457else 17458 as_fn_append () 17459 { 17460 eval $1=\$$1\$2 17461 } 17462fi # as_fn_append 17463 17464# as_fn_arith ARG... 17465# ------------------ 17466# Perform arithmetic evaluation on the ARGs, and store the result in the 17467# global $as_val. Take advantage of shells that can avoid forks. The arguments 17468# must be portable across $(()) and expr. 17469if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 17470then : 17471 eval 'as_fn_arith () 17472 { 17473 as_val=$(( $* )) 17474 }' 17475else 17476 as_fn_arith () 17477 { 17478 as_val=`expr "$@" || test $? -eq 1` 17479 } 17480fi # as_fn_arith 17481 17482 17483if expr a : '\(a\)' >/dev/null 2>&1 && 17484 test "X`expr 00001 : '.*\(...\)'`" = X001; then 17485 as_expr=expr 17486else 17487 as_expr=false 17488fi 17489 17490if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 17491 as_basename=basename 17492else 17493 as_basename=false 17494fi 17495 17496if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 17497 as_dirname=dirname 17498else 17499 as_dirname=false 17500fi 17501 17502as_me=`$as_basename -- "$0" || 17503$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 17504 X"$0" : 'X\(//\)$' \| \ 17505 X"$0" : 'X\(/\)' \| . 2>/dev/null || 17506$as_echo X/"$0" | 17507 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17508 s//\1/ 17509 q 17510 } 17511 /^X\/\(\/\/\)$/{ 17512 s//\1/ 17513 q 17514 } 17515 /^X\/\(\/\).*/{ 17516 s//\1/ 17517 q 17518 } 17519 s/.*/./; q'` 17520 17521# Avoid depending upon Character Ranges. 17522as_cr_letters='abcdefghijklmnopqrstuvwxyz' 17523as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 17524as_cr_Letters=$as_cr_letters$as_cr_LETTERS 17525as_cr_digits='0123456789' 17526as_cr_alnum=$as_cr_Letters$as_cr_digits 17527 17528ECHO_C= ECHO_N= ECHO_T= 17529case `echo -n x` in #((((( 17530-n*) 17531 case `echo 'xy\c'` in 17532 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 17533 xy) ECHO_C='\c';; 17534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 17535 ECHO_T=' ';; 17536 esac;; 17537*) 17538 ECHO_N='-n';; 17539esac 17540 17541rm -f conf$$ conf$$.exe conf$$.file 17542if test -d conf$$.dir; then 17543 rm -f conf$$.dir/conf$$.file 17544else 17545 rm -f conf$$.dir 17546 mkdir conf$$.dir 2>/dev/null 17547fi 17548if (echo >conf$$.file) 2>/dev/null; then 17549 if ln -s conf$$.file conf$$ 2>/dev/null; then 17550 as_ln_s='ln -s' 17551 # ... but there are two gotchas: 17552 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 17553 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 17554 # In both cases, we have to default to `cp -pR'. 17555 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 17556 as_ln_s='cp -pR' 17557 elif ln conf$$.file conf$$ 2>/dev/null; then 17558 as_ln_s=ln 17559 else 17560 as_ln_s='cp -pR' 17561 fi 17562else 17563 as_ln_s='cp -pR' 17564fi 17565rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 17566rmdir conf$$.dir 2>/dev/null 17567 17568 17569# as_fn_mkdir_p 17570# ------------- 17571# Create "$as_dir" as a directory, including parents if necessary. 17572as_fn_mkdir_p () 17573{ 17574 17575 case $as_dir in #( 17576 -*) as_dir=./$as_dir;; 17577 esac 17578 test -d "$as_dir" || eval $as_mkdir_p || { 17579 as_dirs= 17580 while :; do 17581 case $as_dir in #( 17582 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 17583 *) as_qdir=$as_dir;; 17584 esac 17585 as_dirs="'$as_qdir' $as_dirs" 17586 as_dir=`$as_dirname -- "$as_dir" || 17587$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17588 X"$as_dir" : 'X\(//\)[^/]' \| \ 17589 X"$as_dir" : 'X\(//\)$' \| \ 17590 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17591$as_echo X"$as_dir" | 17592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17593 s//\1/ 17594 q 17595 } 17596 /^X\(\/\/\)[^/].*/{ 17597 s//\1/ 17598 q 17599 } 17600 /^X\(\/\/\)$/{ 17601 s//\1/ 17602 q 17603 } 17604 /^X\(\/\).*/{ 17605 s//\1/ 17606 q 17607 } 17608 s/.*/./; q'` 17609 test -d "$as_dir" && break 17610 done 17611 test -z "$as_dirs" || eval "mkdir $as_dirs" 17612 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 17613 17614 17615} # as_fn_mkdir_p 17616if mkdir -p . 2>/dev/null; then 17617 as_mkdir_p='mkdir -p "$as_dir"' 17618else 17619 test -d ./-p && rmdir ./-p 17620 as_mkdir_p=false 17621fi 17622 17623 17624# as_fn_executable_p FILE 17625# ----------------------- 17626# Test if FILE is an executable regular file. 17627as_fn_executable_p () 17628{ 17629 test -f "$1" && test -x "$1" 17630} # as_fn_executable_p 17631as_test_x='test -x' 17632as_executable_p=as_fn_executable_p 17633 17634# Sed expression to map a string onto a valid CPP name. 17635as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17636 17637# Sed expression to map a string onto a valid variable name. 17638as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17639 17640 17641exec 6>&1 17642## ----------------------------------- ## 17643## Main body of $CONFIG_STATUS script. ## 17644## ----------------------------------- ## 17645_ASEOF 17646test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 17647 17648cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17649# Save the log message, to keep $0 and so on meaningful, and to 17650# report actual input values of CONFIG_FILES etc. instead of their 17651# values after options handling. 17652ac_log=" 17653This file was extended by libmikmod $as_me 3.3.11, which was 17654generated by GNU Autoconf 2.69. Invocation command line was 17655 17656 CONFIG_FILES = $CONFIG_FILES 17657 CONFIG_HEADERS = $CONFIG_HEADERS 17658 CONFIG_LINKS = $CONFIG_LINKS 17659 CONFIG_COMMANDS = $CONFIG_COMMANDS 17660 $ $0 $@ 17661 17662on `(hostname || uname -n) 2>/dev/null | sed 1q` 17663" 17664 17665_ACEOF 17666 17667case $ac_config_files in *" 17668"*) set x $ac_config_files; shift; ac_config_files=$*;; 17669esac 17670 17671case $ac_config_headers in *" 17672"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 17673esac 17674 17675 17676cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17677# Files that config.status was made for. 17678config_files="$ac_config_files" 17679config_headers="$ac_config_headers" 17680config_commands="$ac_config_commands" 17681 17682_ACEOF 17683 17684cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17685ac_cs_usage="\ 17686\`$as_me' instantiates files and other configuration actions 17687from templates according to the current configuration. Unless the files 17688and actions are specified as TAGs, all are instantiated by default. 17689 17690Usage: $0 [OPTION]... [TAG]... 17691 17692 -h, --help print this help, then exit 17693 -V, --version print version number and configuration settings, then exit 17694 --config print configuration, then exit 17695 -q, --quiet, --silent 17696 do not print progress messages 17697 -d, --debug don't remove temporary files 17698 --recheck update $as_me by reconfiguring in the same conditions 17699 --file=FILE[:TEMPLATE] 17700 instantiate the configuration file FILE 17701 --header=FILE[:TEMPLATE] 17702 instantiate the configuration header FILE 17703 17704Configuration files: 17705$config_files 17706 17707Configuration headers: 17708$config_headers 17709 17710Configuration commands: 17711$config_commands 17712 17713Report bugs to the package provider." 17714 17715_ACEOF 17716cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17717ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 17718ac_cs_version="\\ 17719libmikmod config.status 3.3.11 17720configured by $0, generated by GNU Autoconf 2.69, 17721 with options \\"\$ac_cs_config\\" 17722 17723Copyright (C) 2012 Free Software Foundation, Inc. 17724This config.status script is free software; the Free Software Foundation 17725gives unlimited permission to copy, distribute and modify it." 17726 17727ac_pwd='$ac_pwd' 17728srcdir='$srcdir' 17729INSTALL='$INSTALL' 17730MKDIR_P='$MKDIR_P' 17731AWK='$AWK' 17732test -n "\$AWK" || AWK=awk 17733_ACEOF 17734 17735cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17736# The default lists apply if the user does not specify any file. 17737ac_need_defaults=: 17738while test $# != 0 17739do 17740 case $1 in 17741 --*=?*) 17742 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17743 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17744 ac_shift=: 17745 ;; 17746 --*=) 17747 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17748 ac_optarg= 17749 ac_shift=: 17750 ;; 17751 *) 17752 ac_option=$1 17753 ac_optarg=$2 17754 ac_shift=shift 17755 ;; 17756 esac 17757 17758 case $ac_option in 17759 # Handling of the options. 17760 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17761 ac_cs_recheck=: ;; 17762 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17763 $as_echo "$ac_cs_version"; exit ;; 17764 --config | --confi | --conf | --con | --co | --c ) 17765 $as_echo "$ac_cs_config"; exit ;; 17766 --debug | --debu | --deb | --de | --d | -d ) 17767 debug=: ;; 17768 --file | --fil | --fi | --f ) 17769 $ac_shift 17770 case $ac_optarg in 17771 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17772 '') as_fn_error $? "missing file argument" ;; 17773 esac 17774 as_fn_append CONFIG_FILES " '$ac_optarg'" 17775 ac_need_defaults=false;; 17776 --header | --heade | --head | --hea ) 17777 $ac_shift 17778 case $ac_optarg in 17779 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17780 esac 17781 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 17782 ac_need_defaults=false;; 17783 --he | --h) 17784 # Conflict between --help and --header 17785 as_fn_error $? "ambiguous option: \`$1' 17786Try \`$0 --help' for more information.";; 17787 --help | --hel | -h ) 17788 $as_echo "$ac_cs_usage"; exit ;; 17789 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17790 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17791 ac_cs_silent=: ;; 17792 17793 # This is an error. 17794 -*) as_fn_error $? "unrecognized option: \`$1' 17795Try \`$0 --help' for more information." ;; 17796 17797 *) as_fn_append ac_config_targets " $1" 17798 ac_need_defaults=false ;; 17799 17800 esac 17801 shift 17802done 17803 17804ac_configure_extra_args= 17805 17806if $ac_cs_silent; then 17807 exec 6>/dev/null 17808 ac_configure_extra_args="$ac_configure_extra_args --silent" 17809fi 17810 17811_ACEOF 17812cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17813if \$ac_cs_recheck; then 17814 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17815 shift 17816 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 17817 CONFIG_SHELL='$SHELL' 17818 export CONFIG_SHELL 17819 exec "\$@" 17820fi 17821 17822_ACEOF 17823cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17824exec 5>>config.log 17825{ 17826 echo 17827 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17828## Running $as_me. ## 17829_ASBOX 17830 $as_echo "$ac_log" 17831} >&5 17832 17833_ACEOF 17834cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17835# 17836# INIT-COMMANDS 17837# 17838AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 17839 17840 17841# The HP-UX ksh and POSIX shell print the target directory to stdout 17842# if CDPATH is set. 17843(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17844 17845sed_quote_subst='$sed_quote_subst' 17846double_quote_subst='$double_quote_subst' 17847delay_variable_subst='$delay_variable_subst' 17848AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 17849DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 17850OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 17851macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 17852macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 17853enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 17854enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 17855pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 17856enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 17857shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 17858SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 17859ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 17860PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 17861host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 17862host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 17863host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 17864build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 17865build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 17866build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 17867SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 17868Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 17869GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 17870EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 17871FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 17872LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 17873NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 17874LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 17875max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 17876ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 17877exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 17878lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 17879lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 17880lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 17881lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 17882lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 17883reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 17884reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 17885deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 17886file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 17887file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 17888want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 17889sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 17890AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 17891AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 17892archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 17893STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 17894RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 17895old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17896old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17897old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 17898lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 17899CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 17900CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 17901compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 17902GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 17903lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 17904lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 17905lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 17906lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 17907lt_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"`' 17908lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 17909nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 17910lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 17911lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 17912objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 17913MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 17914lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 17915lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 17916lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 17917lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 17918lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 17919need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 17920MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 17921DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 17922NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 17923LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 17924OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 17925OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 17926libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 17927shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 17928extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17929archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 17930enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 17931export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 17932whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 17933compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 17934old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 17935old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17936archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 17937archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17938module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 17939module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17940with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 17941allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 17942no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 17943hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 17944hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 17945hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 17946hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 17947hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 17948hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 17949hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 17950inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 17951link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 17952always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 17953export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 17954exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 17955include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 17956prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 17957postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 17958file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 17959variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 17960need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 17961need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 17962version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 17963runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 17964shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 17965shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 17966libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 17967library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 17968soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 17969install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 17970postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17971postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17972finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 17973finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 17974hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 17975sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 17976configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 17977configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 17978hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 17979enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 17980enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 17981enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 17982old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 17983striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 17984 17985LTCC='$LTCC' 17986LTCFLAGS='$LTCFLAGS' 17987compiler='$compiler_DEFAULT' 17988 17989# A function that is used when there is no print builtin or printf. 17990func_fallback_echo () 17991{ 17992 eval 'cat <<_LTECHO_EOF 17993\$1 17994_LTECHO_EOF' 17995} 17996 17997# Quote evaled strings. 17998for var in AS \ 17999DLLTOOL \ 18000OBJDUMP \ 18001SHELL \ 18002ECHO \ 18003PATH_SEPARATOR \ 18004SED \ 18005GREP \ 18006EGREP \ 18007FGREP \ 18008LD \ 18009NM \ 18010LN_S \ 18011lt_SP2NL \ 18012lt_NL2SP \ 18013reload_flag \ 18014deplibs_check_method \ 18015file_magic_cmd \ 18016file_magic_glob \ 18017want_nocaseglob \ 18018sharedlib_from_linklib_cmd \ 18019AR \ 18020AR_FLAGS \ 18021archiver_list_spec \ 18022STRIP \ 18023RANLIB \ 18024CC \ 18025CFLAGS \ 18026compiler \ 18027lt_cv_sys_global_symbol_pipe \ 18028lt_cv_sys_global_symbol_to_cdecl \ 18029lt_cv_sys_global_symbol_to_import \ 18030lt_cv_sys_global_symbol_to_c_name_address \ 18031lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18032lt_cv_nm_interface \ 18033nm_file_list_spec \ 18034lt_cv_truncate_bin \ 18035lt_prog_compiler_no_builtin_flag \ 18036lt_prog_compiler_pic \ 18037lt_prog_compiler_wl \ 18038lt_prog_compiler_static \ 18039lt_cv_prog_compiler_c_o \ 18040need_locks \ 18041MANIFEST_TOOL \ 18042DSYMUTIL \ 18043NMEDIT \ 18044LIPO \ 18045OTOOL \ 18046OTOOL64 \ 18047shrext_cmds \ 18048export_dynamic_flag_spec \ 18049whole_archive_flag_spec \ 18050compiler_needs_object \ 18051with_gnu_ld \ 18052allow_undefined_flag \ 18053no_undefined_flag \ 18054hardcode_libdir_flag_spec \ 18055hardcode_libdir_separator \ 18056exclude_expsyms \ 18057include_expsyms \ 18058file_list_spec \ 18059variables_saved_for_relink \ 18060libname_spec \ 18061library_names_spec \ 18062soname_spec \ 18063install_override_mode \ 18064finish_eval \ 18065old_striplib \ 18066striplib; do 18067 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18068 *[\\\\\\\`\\"\\\$]*) 18069 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 18070 ;; 18071 *) 18072 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18073 ;; 18074 esac 18075done 18076 18077# Double-quote double-evaled strings. 18078for var in reload_cmds \ 18079old_postinstall_cmds \ 18080old_postuninstall_cmds \ 18081old_archive_cmds \ 18082extract_expsyms_cmds \ 18083old_archive_from_new_cmds \ 18084old_archive_from_expsyms_cmds \ 18085archive_cmds \ 18086archive_expsym_cmds \ 18087module_cmds \ 18088module_expsym_cmds \ 18089export_symbols_cmds \ 18090prelink_cmds \ 18091postlink_cmds \ 18092postinstall_cmds \ 18093postuninstall_cmds \ 18094finish_cmds \ 18095sys_lib_search_path_spec \ 18096configure_time_dlsearch_path \ 18097configure_time_lt_sys_library_path; do 18098 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18099 *[\\\\\\\`\\"\\\$]*) 18100 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 18101 ;; 18102 *) 18103 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18104 ;; 18105 esac 18106done 18107 18108ac_aux_dir='$ac_aux_dir' 18109 18110# See if we are running on zsh, and set the options that allow our 18111# commands through without removal of \ escapes INIT. 18112if test -n "\${ZSH_VERSION+set}"; then 18113 setopt NO_GLOB_SUBST 18114fi 18115 18116 18117 PACKAGE='$PACKAGE' 18118 VERSION='$VERSION' 18119 RM='$RM' 18120 ofile='$ofile' 18121 18122 18123 18124 18125_ACEOF 18126 18127cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18128 18129# Handling of arguments. 18130for ac_config_target in $ac_config_targets 18131do 18132 case $ac_config_target in 18133 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18134 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18135 "libmikmod-config") CONFIG_FILES="$CONFIG_FILES libmikmod-config" ;; 18136 "libmikmod.pc") CONFIG_FILES="$CONFIG_FILES libmikmod.pc" ;; 18137 "libmikmod.spec") CONFIG_FILES="$CONFIG_FILES libmikmod.spec" ;; 18138 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18139 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;; 18140 "docs/libmikmod-config.1") CONFIG_FILES="$CONFIG_FILES docs/libmikmod-config.1" ;; 18141 "dlapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlapi/Makefile" ;; 18142 "drivers/Makefile") CONFIG_FILES="$CONFIG_FILES drivers/Makefile" ;; 18143 "drivers/dos/Makefile") CONFIG_FILES="$CONFIG_FILES drivers/dos/Makefile" ;; 18144 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 18145 "loaders/Makefile") CONFIG_FILES="$CONFIG_FILES loaders/Makefile" ;; 18146 "mmio/Makefile") CONFIG_FILES="$CONFIG_FILES mmio/Makefile" ;; 18147 "depackers/Makefile") CONFIG_FILES="$CONFIG_FILES depackers/Makefile" ;; 18148 "playercode/Makefile") CONFIG_FILES="$CONFIG_FILES playercode/Makefile" ;; 18149 "posix/Makefile") CONFIG_FILES="$CONFIG_FILES posix/Makefile" ;; 18150 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 18151 18152 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18153 esac 18154done 18155 18156 18157# If the user did not use the arguments to specify the items to instantiate, 18158# then the envvar interface is used. Set only those that are not. 18159# We use the long form for the default assignment because of an extremely 18160# bizarre bug on SunOS 4.1.3. 18161if $ac_need_defaults; then 18162 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18163 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18164 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18165fi 18166 18167# Have a temporary directory for convenience. Make it in the build tree 18168# simply because there is no reason against having it here, and in addition, 18169# creating and moving files from /tmp can sometimes cause problems. 18170# Hook for its removal unless debugging. 18171# Note that there is a small window in which the directory will not be cleaned: 18172# after its creation but before its name has been assigned to `$tmp'. 18173$debug || 18174{ 18175 tmp= ac_tmp= 18176 trap 'exit_status=$? 18177 : "${ac_tmp:=$tmp}" 18178 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 18179' 0 18180 trap 'as_fn_exit 1' 1 2 13 15 18181} 18182# Create a (secure) tmp directory for tmp files. 18183 18184{ 18185 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18186 test -d "$tmp" 18187} || 18188{ 18189 tmp=./conf$$-$RANDOM 18190 (umask 077 && mkdir "$tmp") 18191} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18192ac_tmp=$tmp 18193 18194# Set up the scripts for CONFIG_FILES section. 18195# No need to generate them if there are no CONFIG_FILES. 18196# This happens for instance with `./config.status config.h'. 18197if test -n "$CONFIG_FILES"; then 18198 18199 18200ac_cr=`echo X | tr X '\015'` 18201# On cygwin, bash can eat \r inside `` if the user requested igncr. 18202# But we know of no other shell where ac_cr would be empty at this 18203# point, so we can use a bashism as a fallback. 18204if test "x$ac_cr" = x; then 18205 eval ac_cr=\$\'\\r\' 18206fi 18207ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18208if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18209 ac_cs_awk_cr='\\r' 18210else 18211 ac_cs_awk_cr=$ac_cr 18212fi 18213 18214echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 18215_ACEOF 18216 18217 18218{ 18219 echo "cat >conf$$subs.awk <<_ACEOF" && 18220 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 18221 echo "_ACEOF" 18222} >conf$$subs.sh || 18223 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18224ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 18225ac_delim='%!_!# ' 18226for ac_last_try in false false false false false :; do 18227 . ./conf$$subs.sh || 18228 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18229 18230 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 18231 if test $ac_delim_n = $ac_delim_num; then 18232 break 18233 elif $ac_last_try; then 18234 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18235 else 18236 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18237 fi 18238done 18239rm -f conf$$subs.sh 18240 18241cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18242cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 18243_ACEOF 18244sed -n ' 18245h 18246s/^/S["/; s/!.*/"]=/ 18247p 18248g 18249s/^[^!]*!// 18250:repl 18251t repl 18252s/'"$ac_delim"'$// 18253t delim 18254:nl 18255h 18256s/\(.\{148\}\)..*/\1/ 18257t more1 18258s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 18259p 18260n 18261b repl 18262:more1 18263s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18264p 18265g 18266s/.\{148\}// 18267t nl 18268:delim 18269h 18270s/\(.\{148\}\)..*/\1/ 18271t more2 18272s/["\\]/\\&/g; s/^/"/; s/$/"/ 18273p 18274b 18275:more2 18276s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18277p 18278g 18279s/.\{148\}// 18280t delim 18281' <conf$$subs.awk | sed ' 18282/^[^""]/{ 18283 N 18284 s/\n// 18285} 18286' >>$CONFIG_STATUS || ac_write_fail=1 18287rm -f conf$$subs.awk 18288cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18289_ACAWK 18290cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 18291 for (key in S) S_is_set[key] = 1 18292 FS = "" 18293 18294} 18295{ 18296 line = $ 0 18297 nfields = split(line, field, "@") 18298 substed = 0 18299 len = length(field[1]) 18300 for (i = 2; i < nfields; i++) { 18301 key = field[i] 18302 keylen = length(key) 18303 if (S_is_set[key]) { 18304 value = S[key] 18305 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 18306 len += length(value) + length(field[++i]) 18307 substed = 1 18308 } else 18309 len += 1 + keylen 18310 } 18311 18312 print line 18313} 18314 18315_ACAWK 18316_ACEOF 18317cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18318if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 18319 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 18320else 18321 cat 18322fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 18323 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 18324_ACEOF 18325 18326# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 18327# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 18328# trailing colons and then remove the whole line if VPATH becomes empty 18329# (actually we leave an empty line to preserve line numbers). 18330if test "x$srcdir" = x.; then 18331 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 18332h 18333s/// 18334s/^/:/ 18335s/[ ]*$/:/ 18336s/:\$(srcdir):/:/g 18337s/:\${srcdir}:/:/g 18338s/:@srcdir@:/:/g 18339s/^:*// 18340s/:*$// 18341x 18342s/\(=[ ]*\).*/\1/ 18343G 18344s/\n// 18345s/^[^=]*=[ ]*$// 18346}' 18347fi 18348 18349cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18350fi # test -n "$CONFIG_FILES" 18351 18352# Set up the scripts for CONFIG_HEADERS section. 18353# No need to generate them if there are no CONFIG_HEADERS. 18354# This happens for instance with `./config.status Makefile'. 18355if test -n "$CONFIG_HEADERS"; then 18356cat >"$ac_tmp/defines.awk" <<\_ACAWK || 18357BEGIN { 18358_ACEOF 18359 18360# Transform confdefs.h into an awk script `defines.awk', embedded as 18361# here-document in config.status, that substitutes the proper values into 18362# config.h.in to produce config.h. 18363 18364# Create a delimiter string that does not exist in confdefs.h, to ease 18365# handling of long lines. 18366ac_delim='%!_!# ' 18367for ac_last_try in false false :; do 18368 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 18369 if test -z "$ac_tt"; then 18370 break 18371 elif $ac_last_try; then 18372 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 18373 else 18374 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18375 fi 18376done 18377 18378# For the awk script, D is an array of macro values keyed by name, 18379# likewise P contains macro parameters if any. Preserve backslash 18380# newline sequences. 18381 18382ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 18383sed -n ' 18384s/.\{148\}/&'"$ac_delim"'/g 18385t rset 18386:rset 18387s/^[ ]*#[ ]*define[ ][ ]*/ / 18388t def 18389d 18390:def 18391s/\\$// 18392t bsnl 18393s/["\\]/\\&/g 18394s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18395D["\1"]=" \3"/p 18396s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 18397d 18398:bsnl 18399s/["\\]/\\&/g 18400s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18401D["\1"]=" \3\\\\\\n"\\/p 18402t cont 18403s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 18404t cont 18405d 18406:cont 18407n 18408s/.\{148\}/&'"$ac_delim"'/g 18409t clear 18410:clear 18411s/\\$// 18412t bsnlc 18413s/["\\]/\\&/g; s/^/"/; s/$/"/p 18414d 18415:bsnlc 18416s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 18417b cont 18418' <confdefs.h | sed ' 18419s/'"$ac_delim"'/"\\\ 18420"/g' >>$CONFIG_STATUS || ac_write_fail=1 18421 18422cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18423 for (key in D) D_is_set[key] = 1 18424 FS = "" 18425} 18426/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 18427 line = \$ 0 18428 split(line, arg, " ") 18429 if (arg[1] == "#") { 18430 defundef = arg[2] 18431 mac1 = arg[3] 18432 } else { 18433 defundef = substr(arg[1], 2) 18434 mac1 = arg[2] 18435 } 18436 split(mac1, mac2, "(") #) 18437 macro = mac2[1] 18438 prefix = substr(line, 1, index(line, defundef) - 1) 18439 if (D_is_set[macro]) { 18440 # Preserve the white space surrounding the "#". 18441 print prefix "define", macro P[macro] D[macro] 18442 next 18443 } else { 18444 # Replace #undef with comments. This is necessary, for example, 18445 # in the case of _POSIX_SOURCE, which is predefined and required 18446 # on some systems where configure will not decide to define it. 18447 if (defundef == "undef") { 18448 print "/*", prefix defundef, macro, "*/" 18449 next 18450 } 18451 } 18452} 18453{ print } 18454_ACAWK 18455_ACEOF 18456cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18457 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 18458fi # test -n "$CONFIG_HEADERS" 18459 18460 18461eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 18462shift 18463for ac_tag 18464do 18465 case $ac_tag in 18466 :[FHLC]) ac_mode=$ac_tag; continue;; 18467 esac 18468 case $ac_mode$ac_tag in 18469 :[FHL]*:*);; 18470 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 18471 :[FH]-) ac_tag=-:-;; 18472 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 18473 esac 18474 ac_save_IFS=$IFS 18475 IFS=: 18476 set x $ac_tag 18477 IFS=$ac_save_IFS 18478 shift 18479 ac_file=$1 18480 shift 18481 18482 case $ac_mode in 18483 :L) ac_source=$1;; 18484 :[FH]) 18485 ac_file_inputs= 18486 for ac_f 18487 do 18488 case $ac_f in 18489 -) ac_f="$ac_tmp/stdin";; 18490 *) # Look for the file first in the build tree, then in the source tree 18491 # (if the path is not absolute). The absolute path cannot be DOS-style, 18492 # because $ac_f cannot contain `:'. 18493 test -f "$ac_f" || 18494 case $ac_f in 18495 [\\/$]*) false;; 18496 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 18497 esac || 18498 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 18499 esac 18500 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 18501 as_fn_append ac_file_inputs " '$ac_f'" 18502 done 18503 18504 # Let's still pretend it is `configure' which instantiates (i.e., don't 18505 # use $as_me), people would be surprised to read: 18506 # /* config.h. Generated by config.status. */ 18507 configure_input='Generated from '` 18508 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 18509 `' by configure.' 18510 if test x"$ac_file" != x-; then 18511 configure_input="$ac_file. $configure_input" 18512 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 18513$as_echo "$as_me: creating $ac_file" >&6;} 18514 fi 18515 # Neutralize special characters interpreted by sed in replacement strings. 18516 case $configure_input in #( 18517 *\&* | *\|* | *\\* ) 18518 ac_sed_conf_input=`$as_echo "$configure_input" | 18519 sed 's/[\\\\&|]/\\\\&/g'`;; #( 18520 *) ac_sed_conf_input=$configure_input;; 18521 esac 18522 18523 case $ac_tag in 18524 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 18525 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 18526 esac 18527 ;; 18528 esac 18529 18530 ac_dir=`$as_dirname -- "$ac_file" || 18531$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18532 X"$ac_file" : 'X\(//\)[^/]' \| \ 18533 X"$ac_file" : 'X\(//\)$' \| \ 18534 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 18535$as_echo X"$ac_file" | 18536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18537 s//\1/ 18538 q 18539 } 18540 /^X\(\/\/\)[^/].*/{ 18541 s//\1/ 18542 q 18543 } 18544 /^X\(\/\/\)$/{ 18545 s//\1/ 18546 q 18547 } 18548 /^X\(\/\).*/{ 18549 s//\1/ 18550 q 18551 } 18552 s/.*/./; q'` 18553 as_dir="$ac_dir"; as_fn_mkdir_p 18554 ac_builddir=. 18555 18556case "$ac_dir" in 18557.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18558*) 18559 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 18560 # A ".." for each directory in $ac_dir_suffix. 18561 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 18562 case $ac_top_builddir_sub in 18563 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 18564 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 18565 esac ;; 18566esac 18567ac_abs_top_builddir=$ac_pwd 18568ac_abs_builddir=$ac_pwd$ac_dir_suffix 18569# for backward compatibility: 18570ac_top_builddir=$ac_top_build_prefix 18571 18572case $srcdir in 18573 .) # We are building in place. 18574 ac_srcdir=. 18575 ac_top_srcdir=$ac_top_builddir_sub 18576 ac_abs_top_srcdir=$ac_pwd ;; 18577 [\\/]* | ?:[\\/]* ) # Absolute name. 18578 ac_srcdir=$srcdir$ac_dir_suffix; 18579 ac_top_srcdir=$srcdir 18580 ac_abs_top_srcdir=$srcdir ;; 18581 *) # Relative name. 18582 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 18583 ac_top_srcdir=$ac_top_build_prefix$srcdir 18584 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 18585esac 18586ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 18587 18588 18589 case $ac_mode in 18590 :F) 18591 # 18592 # CONFIG_FILE 18593 # 18594 18595 case $INSTALL in 18596 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 18597 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 18598 esac 18599 ac_MKDIR_P=$MKDIR_P 18600 case $MKDIR_P in 18601 [\\/$]* | ?:[\\/]* ) ;; 18602 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 18603 esac 18604_ACEOF 18605 18606cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18607# If the template does not know about datarootdir, expand it. 18608# FIXME: This hack should be removed a few years after 2.60. 18609ac_datarootdir_hack=; ac_datarootdir_seen= 18610ac_sed_dataroot=' 18611/datarootdir/ { 18612 p 18613 q 18614} 18615/@datadir@/p 18616/@docdir@/p 18617/@infodir@/p 18618/@localedir@/p 18619/@mandir@/p' 18620case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 18621*datarootdir*) ac_datarootdir_seen=yes;; 18622*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 18623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 18624$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 18625_ACEOF 18626cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18627 ac_datarootdir_hack=' 18628 s&@datadir@&$datadir&g 18629 s&@docdir@&$docdir&g 18630 s&@infodir@&$infodir&g 18631 s&@localedir@&$localedir&g 18632 s&@mandir@&$mandir&g 18633 s&\\\${datarootdir}&$datarootdir&g' ;; 18634esac 18635_ACEOF 18636 18637# Neutralize VPATH when `$srcdir' = `.'. 18638# Shell code in configure.ac might set extrasub. 18639# FIXME: do we really want to maintain this feature? 18640cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18641ac_sed_extra="$ac_vpsub 18642$extrasub 18643_ACEOF 18644cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18645:t 18646/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18647s|@configure_input@|$ac_sed_conf_input|;t t 18648s&@top_builddir@&$ac_top_builddir_sub&;t t 18649s&@top_build_prefix@&$ac_top_build_prefix&;t t 18650s&@srcdir@&$ac_srcdir&;t t 18651s&@abs_srcdir@&$ac_abs_srcdir&;t t 18652s&@top_srcdir@&$ac_top_srcdir&;t t 18653s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18654s&@builddir@&$ac_builddir&;t t 18655s&@abs_builddir@&$ac_abs_builddir&;t t 18656s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 18657s&@INSTALL@&$ac_INSTALL&;t t 18658s&@MKDIR_P@&$ac_MKDIR_P&;t t 18659$ac_datarootdir_hack 18660" 18661eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 18662 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18663 18664test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 18665 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 18666 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 18667 "$ac_tmp/out"`; test -z "$ac_out"; } && 18668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18669which seems to be undefined. Please make sure it is defined" >&5 18670$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18671which seems to be undefined. Please make sure it is defined" >&2;} 18672 18673 rm -f "$ac_tmp/stdin" 18674 case $ac_file in 18675 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 18676 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 18677 esac \ 18678 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18679 ;; 18680 :H) 18681 # 18682 # CONFIG_HEADER 18683 # 18684 if test x"$ac_file" != x-; then 18685 { 18686 $as_echo "/* $configure_input */" \ 18687 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 18688 } >"$ac_tmp/config.h" \ 18689 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18690 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 18691 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 18692$as_echo "$as_me: $ac_file is unchanged" >&6;} 18693 else 18694 rm -f "$ac_file" 18695 mv "$ac_tmp/config.h" "$ac_file" \ 18696 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18697 fi 18698 else 18699 $as_echo "/* $configure_input */" \ 18700 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 18701 || as_fn_error $? "could not create -" "$LINENO" 5 18702 fi 18703# Compute "$ac_file"'s index in $config_headers. 18704_am_arg="$ac_file" 18705_am_stamp_count=1 18706for _am_header in $config_headers :; do 18707 case $_am_header in 18708 $_am_arg | $_am_arg:* ) 18709 break ;; 18710 * ) 18711 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 18712 esac 18713done 18714echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 18715$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18716 X"$_am_arg" : 'X\(//\)[^/]' \| \ 18717 X"$_am_arg" : 'X\(//\)$' \| \ 18718 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 18719$as_echo X"$_am_arg" | 18720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18721 s//\1/ 18722 q 18723 } 18724 /^X\(\/\/\)[^/].*/{ 18725 s//\1/ 18726 q 18727 } 18728 /^X\(\/\/\)$/{ 18729 s//\1/ 18730 q 18731 } 18732 /^X\(\/\).*/{ 18733 s//\1/ 18734 q 18735 } 18736 s/.*/./; q'`/stamp-h$_am_stamp_count 18737 ;; 18738 18739 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 18740$as_echo "$as_me: executing $ac_file commands" >&6;} 18741 ;; 18742 esac 18743 18744 18745 case $ac_file$ac_mode in 18746 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 18747 # Autoconf 2.62 quotes --file arguments for eval, but not when files 18748 # are listed without --file. Let's play safe and only enable the eval 18749 # if we detect the quoting. 18750 case $CONFIG_FILES in 18751 *\'*) eval set x "$CONFIG_FILES" ;; 18752 *) set x $CONFIG_FILES ;; 18753 esac 18754 shift 18755 for mf 18756 do 18757 # Strip MF so we end up with the name of the file. 18758 mf=`echo "$mf" | sed -e 's/:.*$//'` 18759 # Check whether this is an Automake generated Makefile or not. 18760 # We used to match only the files named `Makefile.in', but 18761 # some people rename them; so instead we look at the file content. 18762 # Grep'ing the first line is not enough: some people post-process 18763 # each Makefile.in and add a new line on top of each file to say so. 18764 # Grep'ing the whole file is not good either: AIX grep has a line 18765 # limit of 2048, but all sed's we know have understand at least 4000. 18766 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 18767 dirpart=`$as_dirname -- "$mf" || 18768$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18769 X"$mf" : 'X\(//\)[^/]' \| \ 18770 X"$mf" : 'X\(//\)$' \| \ 18771 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 18772$as_echo X"$mf" | 18773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18774 s//\1/ 18775 q 18776 } 18777 /^X\(\/\/\)[^/].*/{ 18778 s//\1/ 18779 q 18780 } 18781 /^X\(\/\/\)$/{ 18782 s//\1/ 18783 q 18784 } 18785 /^X\(\/\).*/{ 18786 s//\1/ 18787 q 18788 } 18789 s/.*/./; q'` 18790 else 18791 continue 18792 fi 18793 # Extract the definition of DEPDIR, am__include, and am__quote 18794 # from the Makefile without running `make'. 18795 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 18796 test -z "$DEPDIR" && continue 18797 am__include=`sed -n 's/^am__include = //p' < "$mf"` 18798 test -z "am__include" && continue 18799 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 18800 # When using ansi2knr, U may be empty or an underscore; expand it 18801 U=`sed -n 's/^U = //p' < "$mf"` 18802 # Find all dependency output files, they are included files with 18803 # $(DEPDIR) in their names. We invoke sed twice because it is the 18804 # simplest approach to changing $(DEPDIR) to its actual value in the 18805 # expansion. 18806 for file in `sed -n " 18807 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 18808 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 18809 # Make sure the directory exists. 18810 test -f "$dirpart/$file" && continue 18811 fdir=`$as_dirname -- "$file" || 18812$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18813 X"$file" : 'X\(//\)[^/]' \| \ 18814 X"$file" : 'X\(//\)$' \| \ 18815 X"$file" : 'X\(/\)' \| . 2>/dev/null || 18816$as_echo X"$file" | 18817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18818 s//\1/ 18819 q 18820 } 18821 /^X\(\/\/\)[^/].*/{ 18822 s//\1/ 18823 q 18824 } 18825 /^X\(\/\/\)$/{ 18826 s//\1/ 18827 q 18828 } 18829 /^X\(\/\).*/{ 18830 s//\1/ 18831 q 18832 } 18833 s/.*/./; q'` 18834 as_dir=$dirpart/$fdir; as_fn_mkdir_p 18835 # echo "creating $dirpart/$file" 18836 echo '# dummy' > "$dirpart/$file" 18837 done 18838 done 18839} 18840 ;; 18841 "libtool":C) 18842 18843 # See if we are running on zsh, and set the options that allow our 18844 # commands through without removal of \ escapes. 18845 if test -n "${ZSH_VERSION+set}"; then 18846 setopt NO_GLOB_SUBST 18847 fi 18848 18849 cfgfile=${ofile}T 18850 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 18851 $RM "$cfgfile" 18852 18853 cat <<_LT_EOF >> "$cfgfile" 18854#! $SHELL 18855# Generated automatically by $as_me ($PACKAGE) $VERSION 18856# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18857# NOTE: Changes made to this file will be lost: look at ltmain.sh. 18858 18859# Provide generalized library-building support services. 18860# Written by Gordon Matzigkeit, 1996 18861 18862# Copyright (C) 2014 Free Software Foundation, Inc. 18863# This is free software; see the source for copying conditions. There is NO 18864# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 18865 18866# GNU Libtool is free software; you can redistribute it and/or modify 18867# it under the terms of the GNU General Public License as published by 18868# the Free Software Foundation; either version 2 of of the License, or 18869# (at your option) any later version. 18870# 18871# As a special exception to the GNU General Public License, if you 18872# distribute this file as part of a program or library that is built 18873# using GNU Libtool, you may include this file under the same 18874# distribution terms that you use for the rest of that program. 18875# 18876# GNU Libtool is distributed in the hope that it will be useful, but 18877# WITHOUT ANY WARRANTY; without even the implied warranty of 18878# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18879# GNU General Public License for more details. 18880# 18881# You should have received a copy of the GNU General Public License 18882# along with this program. If not, see <http://www.gnu.org/licenses/>. 18883 18884 18885# The names of the tagged configurations supported by this script. 18886available_tags='' 18887 18888# Configured defaults for sys_lib_dlsearch_path munging. 18889: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 18890 18891# ### BEGIN LIBTOOL CONFIG 18892 18893# Assembler program. 18894AS=$lt_AS 18895 18896# DLL creation program. 18897DLLTOOL=$lt_DLLTOOL 18898 18899# Object dumper program. 18900OBJDUMP=$lt_OBJDUMP 18901 18902# Which release of libtool.m4 was used? 18903macro_version=$macro_version 18904macro_revision=$macro_revision 18905 18906# Whether or not to build shared libraries. 18907build_libtool_libs=$enable_shared 18908 18909# Whether or not to build static libraries. 18910build_old_libs=$enable_static 18911 18912# What type of objects to build. 18913pic_mode=$pic_mode 18914 18915# Whether or not to optimize for fast installation. 18916fast_install=$enable_fast_install 18917 18918# Shared archive member basename,for filename based shared library versioning on AIX. 18919shared_archive_member_spec=$shared_archive_member_spec 18920 18921# Shell to use when invoking shell scripts. 18922SHELL=$lt_SHELL 18923 18924# An echo program that protects backslashes. 18925ECHO=$lt_ECHO 18926 18927# The PATH separator for the build system. 18928PATH_SEPARATOR=$lt_PATH_SEPARATOR 18929 18930# The host system. 18931host_alias=$host_alias 18932host=$host 18933host_os=$host_os 18934 18935# The build system. 18936build_alias=$build_alias 18937build=$build 18938build_os=$build_os 18939 18940# A sed program that does not truncate output. 18941SED=$lt_SED 18942 18943# Sed that helps us avoid accidentally triggering echo(1) options like -n. 18944Xsed="\$SED -e 1s/^X//" 18945 18946# A grep program that handles long lines. 18947GREP=$lt_GREP 18948 18949# An ERE matcher. 18950EGREP=$lt_EGREP 18951 18952# A literal string matcher. 18953FGREP=$lt_FGREP 18954 18955# A BSD- or MS-compatible name lister. 18956NM=$lt_NM 18957 18958# Whether we need soft or hard links. 18959LN_S=$lt_LN_S 18960 18961# What is the maximum length of a command? 18962max_cmd_len=$max_cmd_len 18963 18964# Object file suffix (normally "o"). 18965objext=$ac_objext 18966 18967# Executable file suffix (normally ""). 18968exeext=$exeext 18969 18970# whether the shell understands "unset". 18971lt_unset=$lt_unset 18972 18973# turn spaces into newlines. 18974SP2NL=$lt_lt_SP2NL 18975 18976# turn newlines into spaces. 18977NL2SP=$lt_lt_NL2SP 18978 18979# convert \$build file names to \$host format. 18980to_host_file_cmd=$lt_cv_to_host_file_cmd 18981 18982# convert \$build files to toolchain format. 18983to_tool_file_cmd=$lt_cv_to_tool_file_cmd 18984 18985# Method to check whether dependent libraries are shared objects. 18986deplibs_check_method=$lt_deplibs_check_method 18987 18988# Command to use when deplibs_check_method = "file_magic". 18989file_magic_cmd=$lt_file_magic_cmd 18990 18991# How to find potential files when deplibs_check_method = "file_magic". 18992file_magic_glob=$lt_file_magic_glob 18993 18994# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 18995want_nocaseglob=$lt_want_nocaseglob 18996 18997# Command to associate shared and link libraries. 18998sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 18999 19000# The archiver. 19001AR=$lt_AR 19002 19003# Flags to create an archive. 19004AR_FLAGS=$lt_AR_FLAGS 19005 19006# How to feed a file listing to the archiver. 19007archiver_list_spec=$lt_archiver_list_spec 19008 19009# A symbol stripping program. 19010STRIP=$lt_STRIP 19011 19012# Commands used to install an old-style archive. 19013RANLIB=$lt_RANLIB 19014old_postinstall_cmds=$lt_old_postinstall_cmds 19015old_postuninstall_cmds=$lt_old_postuninstall_cmds 19016 19017# Whether to use a lock for old archive extraction. 19018lock_old_archive_extraction=$lock_old_archive_extraction 19019 19020# A C compiler. 19021LTCC=$lt_CC 19022 19023# LTCC compiler flags. 19024LTCFLAGS=$lt_CFLAGS 19025 19026# Take the output of nm and produce a listing of raw symbols and C names. 19027global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19028 19029# Transform the output of nm in a proper C declaration. 19030global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19031 19032# Transform the output of nm into a list of symbols to manually relocate. 19033global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 19034 19035# Transform the output of nm in a C name address pair. 19036global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19037 19038# Transform the output of nm in a C name address pair when lib prefix is needed. 19039global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19040 19041# The name lister interface. 19042nm_interface=$lt_lt_cv_nm_interface 19043 19044# Specify filename containing input files for \$NM. 19045nm_file_list_spec=$lt_nm_file_list_spec 19046 19047# The root where to search for dependent libraries,and where our libraries should be installed. 19048lt_sysroot=$lt_sysroot 19049 19050# Command to truncate a binary pipe. 19051lt_truncate_bin=$lt_lt_cv_truncate_bin 19052 19053# The name of the directory that contains temporary libtool files. 19054objdir=$objdir 19055 19056# Used to examine libraries when file_magic_cmd begins with "file". 19057MAGIC_CMD=$MAGIC_CMD 19058 19059# Must we lock files when doing compilation? 19060need_locks=$lt_need_locks 19061 19062# Manifest tool. 19063MANIFEST_TOOL=$lt_MANIFEST_TOOL 19064 19065# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19066DSYMUTIL=$lt_DSYMUTIL 19067 19068# Tool to change global to local symbols on Mac OS X. 19069NMEDIT=$lt_NMEDIT 19070 19071# Tool to manipulate fat objects and archives on Mac OS X. 19072LIPO=$lt_LIPO 19073 19074# ldd/readelf like tool for Mach-O binaries on Mac OS X. 19075OTOOL=$lt_OTOOL 19076 19077# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19078OTOOL64=$lt_OTOOL64 19079 19080# Old archive suffix (normally "a"). 19081libext=$libext 19082 19083# Shared library suffix (normally ".so"). 19084shrext_cmds=$lt_shrext_cmds 19085 19086# The commands to extract the exported symbol list from a shared archive. 19087extract_expsyms_cmds=$lt_extract_expsyms_cmds 19088 19089# Variables whose values should be saved in libtool wrapper scripts and 19090# restored at link time. 19091variables_saved_for_relink=$lt_variables_saved_for_relink 19092 19093# Do we need the "lib" prefix for modules? 19094need_lib_prefix=$need_lib_prefix 19095 19096# Do we need a version for libraries? 19097need_version=$need_version 19098 19099# Library versioning type. 19100version_type=$version_type 19101 19102# Shared library runtime path variable. 19103runpath_var=$runpath_var 19104 19105# Shared library path variable. 19106shlibpath_var=$shlibpath_var 19107 19108# Is shlibpath searched before the hard-coded library search path? 19109shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19110 19111# Format of library name prefix. 19112libname_spec=$lt_libname_spec 19113 19114# List of archive names. First name is the real one, the rest are links. 19115# The last name is the one that the linker finds with -lNAME 19116library_names_spec=$lt_library_names_spec 19117 19118# The coded name of the library, if different from the real name. 19119soname_spec=$lt_soname_spec 19120 19121# Permission mode override for installation of shared libraries. 19122install_override_mode=$lt_install_override_mode 19123 19124# Command to use after installation of a shared archive. 19125postinstall_cmds=$lt_postinstall_cmds 19126 19127# Command to use after uninstallation of a shared archive. 19128postuninstall_cmds=$lt_postuninstall_cmds 19129 19130# Commands used to finish a libtool library installation in a directory. 19131finish_cmds=$lt_finish_cmds 19132 19133# As "finish_cmds", except a single script fragment to be evaled but 19134# not shown. 19135finish_eval=$lt_finish_eval 19136 19137# Whether we should hardcode library paths into libraries. 19138hardcode_into_libs=$hardcode_into_libs 19139 19140# Compile-time system search path for libraries. 19141sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19142 19143# Detected run-time system search path for libraries. 19144sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 19145 19146# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 19147configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 19148 19149# Whether dlopen is supported. 19150dlopen_support=$enable_dlopen 19151 19152# Whether dlopen of programs is supported. 19153dlopen_self=$enable_dlopen_self 19154 19155# Whether dlopen of statically linked programs is supported. 19156dlopen_self_static=$enable_dlopen_self_static 19157 19158# Commands to strip libraries. 19159old_striplib=$lt_old_striplib 19160striplib=$lt_striplib 19161 19162 19163# The linker used to build libraries. 19164LD=$lt_LD 19165 19166# How to create reloadable object files. 19167reload_flag=$lt_reload_flag 19168reload_cmds=$lt_reload_cmds 19169 19170# Commands used to build an old-style archive. 19171old_archive_cmds=$lt_old_archive_cmds 19172 19173# A language specific compiler. 19174CC=$lt_compiler 19175 19176# Is the compiler the GNU compiler? 19177with_gcc=$GCC 19178 19179# Compiler flag to turn off builtin functions. 19180no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19181 19182# Additional compiler flags for building library objects. 19183pic_flag=$lt_lt_prog_compiler_pic 19184 19185# How to pass a linker flag through the compiler. 19186wl=$lt_lt_prog_compiler_wl 19187 19188# Compiler flag to prevent dynamic linking. 19189link_static_flag=$lt_lt_prog_compiler_static 19190 19191# Does compiler simultaneously support -c and -o options? 19192compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19193 19194# Whether or not to add -lc for building shared libraries. 19195build_libtool_need_lc=$archive_cmds_need_lc 19196 19197# Whether or not to disallow shared libs when runtime libs are static. 19198allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19199 19200# Compiler flag to allow reflexive dlopens. 19201export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19202 19203# Compiler flag to generate shared objects directly from archives. 19204whole_archive_flag_spec=$lt_whole_archive_flag_spec 19205 19206# Whether the compiler copes with passing no objects directly. 19207compiler_needs_object=$lt_compiler_needs_object 19208 19209# Create an old-style archive from a shared archive. 19210old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 19211 19212# Create a temporary old-style archive to link instead of a shared archive. 19213old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19214 19215# Commands used to build a shared archive. 19216archive_cmds=$lt_archive_cmds 19217archive_expsym_cmds=$lt_archive_expsym_cmds 19218 19219# Commands used to build a loadable module if different from building 19220# a shared archive. 19221module_cmds=$lt_module_cmds 19222module_expsym_cmds=$lt_module_expsym_cmds 19223 19224# Whether we are building with GNU ld or not. 19225with_gnu_ld=$lt_with_gnu_ld 19226 19227# Flag that allows shared libraries with undefined symbols to be built. 19228allow_undefined_flag=$lt_allow_undefined_flag 19229 19230# Flag that enforces no undefined symbols. 19231no_undefined_flag=$lt_no_undefined_flag 19232 19233# Flag to hardcode \$libdir into a binary during linking. 19234# This must work even if \$libdir does not exist 19235hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 19236 19237# Whether we need a single "-rpath" flag with a separated argument. 19238hardcode_libdir_separator=$lt_hardcode_libdir_separator 19239 19240# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19241# DIR into the resulting binary. 19242hardcode_direct=$hardcode_direct 19243 19244# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19245# DIR into the resulting binary and the resulting library dependency is 19246# "absolute",i.e impossible to change by setting \$shlibpath_var if the 19247# library is relocated. 19248hardcode_direct_absolute=$hardcode_direct_absolute 19249 19250# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19251# into the resulting binary. 19252hardcode_minus_L=$hardcode_minus_L 19253 19254# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19255# into the resulting binary. 19256hardcode_shlibpath_var=$hardcode_shlibpath_var 19257 19258# Set to "yes" if building a shared library automatically hardcodes DIR 19259# into the library and all subsequent libraries and executables linked 19260# against it. 19261hardcode_automatic=$hardcode_automatic 19262 19263# Set to yes if linker adds runtime paths of dependent libraries 19264# to runtime path list. 19265inherit_rpath=$inherit_rpath 19266 19267# Whether libtool must link a program against all its dependency libraries. 19268link_all_deplibs=$link_all_deplibs 19269 19270# Set to "yes" if exported symbols are required. 19271always_export_symbols=$always_export_symbols 19272 19273# The commands to list exported symbols. 19274export_symbols_cmds=$lt_export_symbols_cmds 19275 19276# Symbols that should not be listed in the preloaded symbols. 19277exclude_expsyms=$lt_exclude_expsyms 19278 19279# Symbols that must always be exported. 19280include_expsyms=$lt_include_expsyms 19281 19282# Commands necessary for linking programs (against libraries) with templates. 19283prelink_cmds=$lt_prelink_cmds 19284 19285# Commands necessary for finishing linking programs. 19286postlink_cmds=$lt_postlink_cmds 19287 19288# Specify filename containing input files. 19289file_list_spec=$lt_file_list_spec 19290 19291# How to hardcode a shared library path into an executable. 19292hardcode_action=$hardcode_action 19293 19294# ### END LIBTOOL CONFIG 19295 19296_LT_EOF 19297 19298 cat <<'_LT_EOF' >> "$cfgfile" 19299 19300# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 19301 19302# func_munge_path_list VARIABLE PATH 19303# ----------------------------------- 19304# VARIABLE is name of variable containing _space_ separated list of 19305# directories to be munged by the contents of PATH, which is string 19306# having a format: 19307# "DIR[:DIR]:" 19308# string "DIR[ DIR]" will be prepended to VARIABLE 19309# ":DIR[:DIR]" 19310# string "DIR[ DIR]" will be appended to VARIABLE 19311# "DIRP[:DIRP]::[DIRA:]DIRA" 19312# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 19313# "DIRA[ DIRA]" will be appended to VARIABLE 19314# "DIR[:DIR]" 19315# VARIABLE will be replaced by "DIR[ DIR]" 19316func_munge_path_list () 19317{ 19318 case x$2 in 19319 x) 19320 ;; 19321 *:) 19322 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 19323 ;; 19324 x:*) 19325 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 19326 ;; 19327 *::*) 19328 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 19329 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 19330 ;; 19331 *) 19332 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 19333 ;; 19334 esac 19335} 19336 19337 19338# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 19339func_cc_basename () 19340{ 19341 for cc_temp in $*""; do 19342 case $cc_temp in 19343 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19344 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19345 \-*) ;; 19346 *) break;; 19347 esac 19348 done 19349 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 19350} 19351 19352 19353# ### END FUNCTIONS SHARED WITH CONFIGURE 19354 19355_LT_EOF 19356 19357 case $host_os in 19358 aix3*) 19359 cat <<\_LT_EOF >> "$cfgfile" 19360# AIX sometimes has problems with the GCC collect2 program. For some 19361# reason, if we set the COLLECT_NAMES environment variable, the problems 19362# vanish in a puff of smoke. 19363if test set != "${COLLECT_NAMES+set}"; then 19364 COLLECT_NAMES= 19365 export COLLECT_NAMES 19366fi 19367_LT_EOF 19368 ;; 19369 esac 19370 19371 19372ltmain=$ac_aux_dir/ltmain.sh 19373 19374 19375 # We use sed instead of cat because bash on DJGPP gets confused if 19376 # if finds mixed CR/LF and LF-only lines. Since sed operates in 19377 # text mode, it properly converts lines to CR/LF. This bash problem 19378 # is reportedly fixed, but why not run on old versions too? 19379 sed '$q' "$ltmain" >> "$cfgfile" \ 19380 || (rm -f "$cfgfile"; exit 1) 19381 19382 mv -f "$cfgfile" "$ofile" || 19383 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 19384 chmod +x "$ofile" 19385 19386 ;; 19387 19388 esac 19389done # for ac_tag 19390 19391 19392as_fn_exit 0 19393_ACEOF 19394ac_clean_files=$ac_clean_files_save 19395 19396test $ac_write_fail = 0 || 19397 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 19398 19399 19400# configure is writing to config.log, and then calls config.status. 19401# config.status does its own redirection, appending to config.log. 19402# Unfortunately, on DOS this fails, as config.log is still kept open 19403# by configure, so config.status won't be able to write to it; its 19404# output is simply discarded. So we exec the FD to /dev/null, 19405# effectively closing config.log, so it can be properly (re)opened and 19406# appended to by config.status. When coming back to configure, we 19407# need to make the FD available again. 19408if test "$no_create" != yes; then 19409 ac_cs_success=: 19410 ac_config_status_args= 19411 test "$silent" = yes && 19412 ac_config_status_args="$ac_config_status_args --quiet" 19413 exec 5>/dev/null 19414 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 19415 exec 5>>config.log 19416 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 19417 # would make configure fail if this is the last instruction. 19418 $ac_cs_success || as_fn_exit 1 19419fi 19420if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 19421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 19422$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 19423fi 19424 19425 19426chmod +x libmikmod-config 19427 19428# ==================== 19429# Print configuration. 19430# ==================== 19431 19432if test $libmikmod_dynload != no 19433then 19434 libmikmod_dynload="yes, ${libmikmod_dynload} style" 19435fi 19436 19437echo " 19438Library configuration: 19439 19440 Source code location: $srcdir 19441 Compiler: $CC 19442 Compiler flags: $CFLAGS 19443 Debug version: $libmikmod_debug 19444 SIMD optimizations: $libmikmod_simd 19445 Dynamically loaded drivers whenever possible: $libmikmod_dynload 19446 Drivers to be compiled: $libmikmod_driverlist 19447 HQ Mixer: $libmikmod_hqmixer 19448 Install path: $prefix/lib, $prefix/include 19449" 19450