configure (858854B)
1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.69. 4 # 5 # 6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7 # 8 # 9 # This configure script is free software; the Free Software Foundation 10 # gives unlimited permission to copy, distribute and modify it. 11 ## -------------------- ## 12 ## M4sh Initialization. ## 13 ## -------------------- ## 14 15 # Be more Bourne compatible 16 DUALCASE=1; export DUALCASE # for MKS sh 17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24 else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30 esac 31 fi 32 33 34 as_nl=' 35 ' 36 export as_nl 37 # Printing a long string crashes Solaris 7 /usr/bin/printf. 38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41 # Prefer a ksh shell builtin over an external printf program on Solaris, 42 # but without wasting forks for bash or zsh. 43 if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50 else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70 fi 71 72 # The user is always right. 73 if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79 fi 80 81 82 # IFS 83 # We need space, tab and new line, in precisely that order. Quoting is 84 # there to prevent editors from complaining about space-tab. 85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 86 # splitting by setting IFS to empty value.) 87 IFS=" "" $as_nl" 88 89 # Find who we are. Look in the path if we contain no directory separator. 90 as_myself= 91 case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94 for as_dir in $PATH 95 do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100 IFS=$as_save_IFS 101 102 ;; 103 esac 104 # We did not find ourselves, most probably we were run as `sh COMMAND' 105 # in which case we are not to be found in the path. 106 if test "x$as_myself" = x; then 107 as_myself=$0 108 fi 109 if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112 fi 113 114 # Unset variables that we do not need and which cause bugs (e.g. in 115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116 # suppresses any "Segmentation fault" message there. '((' could 117 # trigger a bug in pdksh 5.2.14. 118 for as_var in BASH_ENV ENV MAIL MAILPATH 119 do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121 done 122 PS1='$ ' 123 PS2='> ' 124 PS4='+ ' 125 126 # NLS nuisances. 127 LC_ALL=C 128 export LC_ALL 129 LANGUAGE=C 130 export LANGUAGE 131 132 # CDPATH. 133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135 # Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140 # neutralization value for shells without unset; and this also 141 # works around shells that cannot unset nonexistent variables. 142 # Preserve -v and -x to the replacement shell. 143 BASH_ENV=/dev/null 144 ENV=/dev/null 145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146 case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151 esac 152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153 # Admittedly, this is quite paranoid, since all the known shells bail 154 # out after a failed `exec'. 155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156 as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160 if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168 else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174 esac 175 fi 176 " 177 as_required="as_fn_return () { (exit \$1); } 178 as_fn_success () { as_fn_return 0; } 179 as_fn_failure () { as_fn_return 1; } 180 as_fn_ret_success () { return 0; } 181 as_fn_ret_failure () { return 1; } 182 183 exitcode=0 184 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190 else 191 exitcode=1; echo positional parameters were not saved. 192 fi 193 test x\$exitcode = x0 || exit 1 194 test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199 200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 PATH=/empty FPATH=/empty; export PATH FPATH 205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 207 test \$(( 1 + 1 )) = 2 || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210 else 211 as_have_required=no 212 fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215 else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217 as_found=false 218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219 do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233 fi 234 fi 235 done;; 236 esac 237 as_found=false 238 done 239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242 fi; } 243 IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249 # neutralization value for shells without unset; and this also 250 # works around shells that cannot unset nonexistent variables. 251 # Preserve -v and -x to the replacement shell. 252 BASH_ENV=/dev/null 253 ENV=/dev/null 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255 case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260 esac 261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262 # Admittedly, this is quite paranoid, since all the known shells bail 263 # out after a failed `exec'. 264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265 exit 255 266 fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 276 $0: including any error possibly output before this 277 $0: message. Then install a modern shell, or manually run 278 $0: the script under such a shell if you do have one." 279 fi 280 exit 1 281 fi 282 fi 283 fi 284 SHELL=${CONFIG_SHELL-/bin/sh} 285 export SHELL 286 # Unset more variables known to interfere with behavior of common tools. 287 CLICOLOR_FORCE= GREP_OPTIONS= 288 unset CLICOLOR_FORCE GREP_OPTIONS 289 290 ## --------------------- ## 291 ## M4sh Shell Functions. ## 292 ## --------------------- ## 293 # as_fn_unset VAR 294 # --------------- 295 # Portably unset VAR. 296 as_fn_unset () 297 { 298 { eval $1=; unset $1;} 299 } 300 as_unset=as_fn_unset 301 302 # as_fn_set_status STATUS 303 # ----------------------- 304 # Set $? to STATUS, without forking. 305 as_fn_set_status () 306 { 307 return $1 308 } # as_fn_set_status 309 310 # as_fn_exit STATUS 311 # ----------------- 312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 313 as_fn_exit () 314 { 315 set +e 316 as_fn_set_status $1 317 exit $1 318 } # as_fn_exit 319 320 # as_fn_mkdir_p 321 # ------------- 322 # Create "$as_dir" as a directory, including parents if necessary. 323 as_fn_mkdir_p () 324 { 325 326 case $as_dir in #( 327 -*) as_dir=./$as_dir;; 328 esac 329 test -d "$as_dir" || eval $as_mkdir_p || { 330 as_dirs= 331 while :; do 332 case $as_dir in #( 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 334 *) as_qdir=$as_dir;; 335 esac 336 as_dirs="'$as_qdir' $as_dirs" 337 as_dir=`$as_dirname -- "$as_dir" || 338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 339 X"$as_dir" : 'X\(//\)[^/]' \| \ 340 X"$as_dir" : 'X\(//\)$' \| \ 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 342 $as_echo X"$as_dir" | 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)[^/].*/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\).*/{ 356 s//\1/ 357 q 358 } 359 s/.*/./; q'` 360 test -d "$as_dir" && break 361 done 362 test -z "$as_dirs" || eval "mkdir $as_dirs" 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 364 365 366 } # as_fn_mkdir_p 367 368 # as_fn_executable_p FILE 369 # ----------------------- 370 # Test if FILE is an executable regular file. 371 as_fn_executable_p () 372 { 373 test -f "$1" && test -x "$1" 374 } # as_fn_executable_p 375 # as_fn_append VAR VALUE 376 # ---------------------- 377 # Append the text in VALUE to the end of the definition contained in VAR. Take 378 # advantage of any shell optimizations that allow amortized linear growth over 379 # repeated appends, instead of the typical quadratic growth present in naive 380 # implementations. 381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 382 eval 'as_fn_append () 383 { 384 eval $1+=\$2 385 }' 386 else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391 fi # as_fn_append 392 393 # as_fn_arith ARG... 394 # ------------------ 395 # Perform arithmetic evaluation on the ARGs, and store the result in the 396 # global $as_val. Take advantage of shells that can avoid forks. The arguments 397 # must be portable across $(()) and expr. 398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403 else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408 fi # as_fn_arith 409 410 411 # as_fn_error STATUS ERROR [LINENO LOG_FD] 412 # ---------------------------------------- 413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 415 # script with STATUS, using 1 if that was 0. 416 as_fn_error () 417 { 418 as_status=$1; test $as_status -eq 0 && as_status=1 419 if test "$4"; then 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 422 fi 423 $as_echo "$as_me: error: $2" >&2 424 as_fn_exit $as_status 425 } # as_fn_error 426 427 if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430 else 431 as_expr=false 432 fi 433 434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436 else 437 as_basename=false 438 fi 439 440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442 else 443 as_dirname=false 444 fi 445 446 as_me=`$as_basename -- "$0" || 447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 448 X"$0" : 'X\(//\)$' \| \ 449 X"$0" : 'X\(/\)' \| . 2>/dev/null || 450 $as_echo X/"$0" | 451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\/\)$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\).*/{ 460 s//\1/ 461 q 462 } 463 s/.*/./; q'` 464 465 # Avoid depending upon Character Ranges. 466 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469 as_cr_digits='0123456789' 470 as_cr_alnum=$as_cr_Letters$as_cr_digits 471 472 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 478 sed -n ' 479 p 480 /[$]LINENO/= 481 ' <$as_myself | 482 sed ' 483 s/[$]LINENO.*/&-/ 484 t lineno 485 b 486 :lineno 487 N 488 :loop 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 490 t loop 491 s/-\n.*// 492 ' >$as_me.lineno && 493 chmod +x "$as_me.lineno" || 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 495 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 497 # already done that, so ensure we don't try to do so again and fall 498 # in an infinite loop. This has already happened in practice. 499 _as_can_reexec=no; export _as_can_reexec 500 # Don't try to exec as it changes $[0], causing all sort of problems 501 # (the dirname of $[0] is not the place where we might find the 502 # original and so on. Autoconf is especially sensitive to this). 503 . "./$as_me.lineno" 504 # Exit status is that of the last command. 505 exit 506 } 507 508 ECHO_C= ECHO_N= ECHO_T= 509 case `echo -n x` in #((((( 510 -n*) 511 case `echo 'xy\c'` in 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 513 xy) ECHO_C='\c';; 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 515 ECHO_T=' ';; 516 esac;; 517 *) 518 ECHO_N='-n';; 519 esac 520 521 rm -f conf$$ conf$$.exe conf$$.file 522 if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524 else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527 fi 528 if (echo >conf$$.file) 2>/dev/null; then 529 if ln -s conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s='ln -s' 531 # ... but there are two gotchas: 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 534 # In both cases, we have to default to `cp -pR'. 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 536 as_ln_s='cp -pR' 537 elif ln conf$$.file conf$$ 2>/dev/null; then 538 as_ln_s=ln 539 else 540 as_ln_s='cp -pR' 541 fi 542 else 543 as_ln_s='cp -pR' 544 fi 545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546 rmdir conf$$.dir 2>/dev/null 547 548 if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550 else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553 fi 554 555 as_test_x='test -x' 556 as_executable_p=as_fn_executable_p 557 558 # Sed expression to map a string onto a valid CPP name. 559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 560 561 # Sed expression to map a string onto a valid variable name. 562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564 SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567 test -n "$DJDIR" || exec 7<&0 </dev/null 568 exec 6>&1 569 570 # Name of the host. 571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 572 # so uname gets run too. 573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575 # 576 # Initializations. 577 # 578 ac_default_prefix=/usr/local 579 ac_clean_files= 580 ac_config_libobj_dir=. 581 LIBOBJS= 582 cross_compiling=no 583 subdirs= 584 MFLAGS= 585 MAKEFLAGS= 586 587 # Identity of this package. 588 PACKAGE_NAME= 589 PACKAGE_TARNAME= 590 PACKAGE_VERSION= 591 PACKAGE_STRING= 592 PACKAGE_BUGREPORT= 593 PACKAGE_URL= 594 595 ac_unique_file="README.txt" 596 # Factoring default headers for most tests. 597 ac_includes_default="\ 598 #include <stdio.h> 599 #ifdef HAVE_SYS_TYPES_H 600 # include <sys/types.h> 601 #endif 602 #ifdef HAVE_SYS_STAT_H 603 # include <sys/stat.h> 604 #endif 605 #ifdef STDC_HEADERS 606 # include <stdlib.h> 607 # include <stddef.h> 608 #else 609 # ifdef HAVE_STDLIB_H 610 # include <stdlib.h> 611 # endif 612 #endif 613 #ifdef HAVE_STRING_H 614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 615 # include <memory.h> 616 # endif 617 # include <string.h> 618 #endif 619 #ifdef HAVE_STRINGS_H 620 # include <strings.h> 621 #endif 622 #ifdef HAVE_INTTYPES_H 623 # include <inttypes.h> 624 #endif 625 #ifdef HAVE_STDINT_H 626 # include <stdint.h> 627 #endif 628 #ifdef HAVE_UNISTD_H 629 # include <unistd.h> 630 #endif" 631 632 ac_subst_vars='LTLIBOBJS 633 WAYLAND_SCANNER 634 EXTRA_LDFLAGS 635 BUILD_LDFLAGS 636 EXTRA_CFLAGS 637 BUILD_CFLAGS 638 SDLTEST_OBJECTS 639 SDLMAIN_OBJECTS 640 VERSION_OBJECTS 641 GEN_OBJECTS 642 GEN_HEADERS 643 OBJECTS 644 INCLUDE 645 ac_aux_dir 646 ENABLE_STATIC_FALSE 647 ENABLE_STATIC_TRUE 648 ENABLE_SHARED_FALSE 649 ENABLE_SHARED_TRUE 650 PKG_CONFIG_LIBS_PRIV 651 SDL_RLD_FLAGS 652 SDL_STATIC_LIBS 653 SDL_LIBS 654 SDL_CFLAGS 655 INSTALL_SDL2_CONFIG 656 LIBUSB_LIBS 657 LIBUSB_CFLAGS 658 IBUS_LIBS 659 IBUS_CFLAGS 660 DBUS_LIBS 661 DBUS_CFLAGS 662 LIBGBM_LIBS 663 LIBGBM_CFLAGS 664 LIBDRM_LIBS 665 LIBDRM_CFLAGS 666 DIRECTFB_LIBS 667 DIRECTFB_CFLAGS 668 X_EXTRA_LIBS 669 X_LIBS 670 X_PRE_LIBS 671 X_CFLAGS 672 XMKMF 673 RPI_LIBS 674 RPI_CFLAGS 675 FUSIONSOUND_LIBS 676 FUSIONSOUND_CFLAGS 677 ARTSCONFIG 678 PULSEAUDIO_LIBS 679 PULSEAUDIO_CFLAGS 680 ESD_LIBS 681 ESD_CFLAGS 682 ESD_CONFIG 683 JACK_LIBS 684 JACK_CFLAGS 685 ALSA_LIBS 686 ALSA_CFLAGS 687 POW_LIB 688 LIBOBJS 689 ALLOCA 690 PKG_CONFIG_LIBDIR 691 PKG_CONFIG_PATH 692 PKG_CONFIG 693 SET_MAKE 694 INSTALL_DATA 695 INSTALL_SCRIPT 696 INSTALL_PROGRAM 697 CXXCPP 698 ac_ct_CXX 699 CXXFLAGS 700 CXX 701 LT_AGE 702 LT_REVISION 703 LT_CURRENT 704 LT_RELEASE 705 RC 706 CPP 707 OTOOL64 708 OTOOL 709 LIPO 710 NMEDIT 711 DSYMUTIL 712 MANIFEST_TOOL 713 AWK 714 RANLIB 715 STRIP 716 ac_ct_AR 717 AR 718 LN_S 719 NM 720 ac_ct_DUMPBIN 721 DUMPBIN 722 LD 723 FGREP 724 EGREP 725 GREP 726 SED 727 OBJEXT 728 EXEEXT 729 ac_ct_CC 730 CPPFLAGS 731 LDFLAGS 732 CFLAGS 733 CC 734 host_os 735 host_vendor 736 host_cpu 737 host 738 build_os 739 build_vendor 740 build_cpu 741 build 742 LIBTOOL 743 OBJDUMP 744 DLLTOOL 745 AS 746 SDL_VERSION 747 SDL_BINARY_AGE 748 SDL_INTERFACE_AGE 749 SDL_MICRO_VERSION 750 SDL_MINOR_VERSION 751 SDL_MAJOR_VERSION 752 target_alias 753 host_alias 754 build_alias 755 LIBS 756 ECHO_T 757 ECHO_N 758 ECHO_C 759 DEFS 760 mandir 761 localedir 762 libdir 763 psdir 764 pdfdir 765 dvidir 766 htmldir 767 infodir 768 docdir 769 oldincludedir 770 includedir 771 localstatedir 772 sharedstatedir 773 sysconfdir 774 datadir 775 datarootdir 776 libexecdir 777 sbindir 778 bindir 779 program_transform_name 780 prefix 781 exec_prefix 782 PACKAGE_URL 783 PACKAGE_BUGREPORT 784 PACKAGE_STRING 785 PACKAGE_VERSION 786 PACKAGE_TARNAME 787 PACKAGE_NAME 788 PATH_SEPARATOR 789 SHELL' 790 ac_subst_files='' 791 ac_user_opts=' 792 enable_option_checking 793 enable_shared 794 enable_static 795 with_pic 796 enable_fast_install 797 with_gnu_ld 798 with_sysroot 799 enable_libtool_lock 800 enable_assertions 801 enable_dependency_tracking 802 enable_libc 803 enable_gcc_atomics 804 enable_atomic 805 enable_audio 806 enable_video 807 enable_render 808 enable_events 809 enable_joystick 810 enable_haptic 811 enable_sensor 812 enable_power 813 enable_filesystem 814 enable_threads 815 enable_timers 816 enable_file 817 enable_loadso 818 enable_cpuinfo 819 enable_assembly 820 enable_ssemath 821 enable_mmx 822 enable_3dnow 823 enable_sse 824 enable_sse2 825 enable_sse3 826 enable_altivec 827 enable_oss 828 enable_alsa 829 with_alsa_prefix 830 with_alsa_inc_prefix 831 enable_alsatest 832 enable_alsa_shared 833 enable_jack 834 enable_jack_shared 835 enable_esd 836 with_esd_prefix 837 with_esd_exec_prefix 838 enable_esdtest 839 enable_esd_shared 840 enable_pulseaudio 841 enable_pulseaudio_shared 842 enable_arts 843 enable_arts_shared 844 enable_nas 845 enable_nas_shared 846 enable_sndio 847 enable_sndio_shared 848 enable_fusionsound 849 enable_fusionsound_shared 850 enable_diskaudio 851 enable_dummyaudio 852 enable_libsamplerate 853 enable_libsamplerate_shared 854 enable_arm_simd 855 enable_arm_neon 856 enable_video_wayland 857 enable_video_wayland_qt_touch 858 enable_wayland_shared 859 enable_video_rpi 860 enable_video_x11 861 with_x 862 enable_x11_shared 863 enable_video_x11_xcursor 864 enable_video_x11_xdbe 865 enable_video_x11_xinerama 866 enable_video_x11_xinput 867 enable_video_x11_xrandr 868 enable_video_x11_scrnsaver 869 enable_video_x11_xshape 870 enable_video_x11_vm 871 enable_video_vivante 872 enable_video_cocoa 873 enable_video_metal 874 enable_render_metal 875 enable_video_directfb 876 enable_directfb_shared 877 enable_video_kmsdrm 878 enable_kmsdrm_shared 879 enable_video_dummy 880 enable_video_opengl 881 enable_video_opengles 882 enable_video_opengles1 883 enable_video_opengles2 884 enable_video_vulkan 885 enable_libudev 886 enable_dbus 887 enable_ime 888 enable_ibus 889 enable_fcitx 890 enable_joystick_mfi 891 enable_pthreads 892 enable_pthread_sem 893 enable_directx 894 enable_wasapi 895 enable_sdl_dlopen 896 enable_hidapi 897 enable_hidapi_libusb 898 enable_clock_gettime 899 enable_rpath 900 enable_backgrounding_signal 901 enable_foregrounding_signal 902 enable_joystick_virtual 903 enable_render_d3d 904 enable_sdl2_config 905 ' 906 ac_precious_vars='build_alias 907 host_alias 908 target_alias 909 CC 910 CFLAGS 911 LDFLAGS 912 LIBS 913 CPPFLAGS 914 CPP 915 CXX 916 CXXFLAGS 917 CCC 918 CXXCPP 919 PKG_CONFIG 920 PKG_CONFIG_PATH 921 PKG_CONFIG_LIBDIR 922 JACK_CFLAGS 923 JACK_LIBS 924 PULSEAUDIO_CFLAGS 925 PULSEAUDIO_LIBS 926 FUSIONSOUND_CFLAGS 927 FUSIONSOUND_LIBS 928 RPI_CFLAGS 929 RPI_LIBS 930 XMKMF 931 DIRECTFB_CFLAGS 932 DIRECTFB_LIBS 933 LIBDRM_CFLAGS 934 LIBDRM_LIBS 935 LIBGBM_CFLAGS 936 LIBGBM_LIBS 937 DBUS_CFLAGS 938 DBUS_LIBS 939 IBUS_CFLAGS 940 IBUS_LIBS 941 LIBUSB_CFLAGS 942 LIBUSB_LIBS' 943 944 945 # Initialize some variables set by options. 946 ac_init_help= 947 ac_init_version=false 948 ac_unrecognized_opts= 949 ac_unrecognized_sep= 950 # The variables have the same names as the options, with 951 # dashes changed to underlines. 952 cache_file=/dev/null 953 exec_prefix=NONE 954 no_create= 955 no_recursion= 956 prefix=NONE 957 program_prefix=NONE 958 program_suffix=NONE 959 program_transform_name=s,x,x, 960 silent= 961 site= 962 srcdir= 963 verbose= 964 x_includes=NONE 965 x_libraries=NONE 966 967 # Installation directory options. 968 # These are left unexpanded so users can "make install exec_prefix=/foo" 969 # and all the variables that are supposed to be based on exec_prefix 970 # by default will actually change. 971 # Use braces instead of parens because sh, perl, etc. also accept them. 972 # (The list follows the same order as the GNU Coding Standards.) 973 bindir='${exec_prefix}/bin' 974 sbindir='${exec_prefix}/sbin' 975 libexecdir='${exec_prefix}/libexec' 976 datarootdir='${prefix}/share' 977 datadir='${datarootdir}' 978 sysconfdir='${prefix}/etc' 979 sharedstatedir='${prefix}/com' 980 localstatedir='${prefix}/var' 981 includedir='${prefix}/include' 982 oldincludedir='/usr/include' 983 docdir='${datarootdir}/doc/${PACKAGE}' 984 infodir='${datarootdir}/info' 985 htmldir='${docdir}' 986 dvidir='${docdir}' 987 pdfdir='${docdir}' 988 psdir='${docdir}' 989 libdir='${exec_prefix}/lib' 990 localedir='${datarootdir}/locale' 991 mandir='${datarootdir}/man' 992 993 ac_prev= 994 ac_dashdash= 995 for ac_option 996 do 997 # If the previous option needs an argument, assign it. 998 if test -n "$ac_prev"; then 999 eval $ac_prev=\$ac_option 1000 ac_prev= 1001 continue 1002 fi 1003 1004 case $ac_option in 1005 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1006 *=) ac_optarg= ;; 1007 *) ac_optarg=yes ;; 1008 esac 1009 1010 # Accept the important Cygnus configure options, so we can diagnose typos. 1011 1012 case $ac_dashdash$ac_option in 1013 --) 1014 ac_dashdash=yes ;; 1015 1016 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1017 ac_prev=bindir ;; 1018 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1019 bindir=$ac_optarg ;; 1020 1021 -build | --build | --buil | --bui | --bu) 1022 ac_prev=build_alias ;; 1023 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1024 build_alias=$ac_optarg ;; 1025 1026 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1027 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1028 ac_prev=cache_file ;; 1029 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1030 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1031 cache_file=$ac_optarg ;; 1032 1033 --config-cache | -C) 1034 cache_file=config.cache ;; 1035 1036 -datadir | --datadir | --datadi | --datad) 1037 ac_prev=datadir ;; 1038 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1039 datadir=$ac_optarg ;; 1040 1041 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1042 | --dataroo | --dataro | --datar) 1043 ac_prev=datarootdir ;; 1044 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1045 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1046 datarootdir=$ac_optarg ;; 1047 1048 -disable-* | --disable-*) 1049 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1050 # Reject names that are not valid shell variable names. 1051 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1052 as_fn_error $? "invalid feature name: $ac_useropt" 1053 ac_useropt_orig=$ac_useropt 1054 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1055 case $ac_user_opts in 1056 *" 1057 "enable_$ac_useropt" 1058 "*) ;; 1059 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1060 ac_unrecognized_sep=', ';; 1061 esac 1062 eval enable_$ac_useropt=no ;; 1063 1064 -docdir | --docdir | --docdi | --doc | --do) 1065 ac_prev=docdir ;; 1066 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1067 docdir=$ac_optarg ;; 1068 1069 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1070 ac_prev=dvidir ;; 1071 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1072 dvidir=$ac_optarg ;; 1073 1074 -enable-* | --enable-*) 1075 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1076 # Reject names that are not valid shell variable names. 1077 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1078 as_fn_error $? "invalid feature name: $ac_useropt" 1079 ac_useropt_orig=$ac_useropt 1080 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1081 case $ac_user_opts in 1082 *" 1083 "enable_$ac_useropt" 1084 "*) ;; 1085 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1086 ac_unrecognized_sep=', ';; 1087 esac 1088 eval enable_$ac_useropt=\$ac_optarg ;; 1089 1090 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1091 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1092 | --exec | --exe | --ex) 1093 ac_prev=exec_prefix ;; 1094 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1095 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1096 | --exec=* | --exe=* | --ex=*) 1097 exec_prefix=$ac_optarg ;; 1098 1099 -gas | --gas | --ga | --g) 1100 # Obsolete; use --with-gas. 1101 with_gas=yes ;; 1102 1103 -help | --help | --hel | --he | -h) 1104 ac_init_help=long ;; 1105 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1106 ac_init_help=recursive ;; 1107 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1108 ac_init_help=short ;; 1109 1110 -host | --host | --hos | --ho) 1111 ac_prev=host_alias ;; 1112 -host=* | --host=* | --hos=* | --ho=*) 1113 host_alias=$ac_optarg ;; 1114 1115 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1116 ac_prev=htmldir ;; 1117 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1118 | --ht=*) 1119 htmldir=$ac_optarg ;; 1120 1121 -includedir | --includedir | --includedi | --included | --include \ 1122 | --includ | --inclu | --incl | --inc) 1123 ac_prev=includedir ;; 1124 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1125 | --includ=* | --inclu=* | --incl=* | --inc=*) 1126 includedir=$ac_optarg ;; 1127 1128 -infodir | --infodir | --infodi | --infod | --info | --inf) 1129 ac_prev=infodir ;; 1130 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1131 infodir=$ac_optarg ;; 1132 1133 -libdir | --libdir | --libdi | --libd) 1134 ac_prev=libdir ;; 1135 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1136 libdir=$ac_optarg ;; 1137 1138 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1139 | --libexe | --libex | --libe) 1140 ac_prev=libexecdir ;; 1141 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1142 | --libexe=* | --libex=* | --libe=*) 1143 libexecdir=$ac_optarg ;; 1144 1145 -localedir | --localedir | --localedi | --localed | --locale) 1146 ac_prev=localedir ;; 1147 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1148 localedir=$ac_optarg ;; 1149 1150 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1151 | --localstate | --localstat | --localsta | --localst | --locals) 1152 ac_prev=localstatedir ;; 1153 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1154 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1155 localstatedir=$ac_optarg ;; 1156 1157 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1158 ac_prev=mandir ;; 1159 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1160 mandir=$ac_optarg ;; 1161 1162 -nfp | --nfp | --nf) 1163 # Obsolete; use --without-fp. 1164 with_fp=no ;; 1165 1166 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1167 | --no-cr | --no-c | -n) 1168 no_create=yes ;; 1169 1170 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1171 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1172 no_recursion=yes ;; 1173 1174 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1175 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1176 | --oldin | --oldi | --old | --ol | --o) 1177 ac_prev=oldincludedir ;; 1178 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1179 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1180 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1181 oldincludedir=$ac_optarg ;; 1182 1183 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1184 ac_prev=prefix ;; 1185 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1186 prefix=$ac_optarg ;; 1187 1188 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1189 | --program-pre | --program-pr | --program-p) 1190 ac_prev=program_prefix ;; 1191 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1192 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1193 program_prefix=$ac_optarg ;; 1194 1195 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1196 | --program-suf | --program-su | --program-s) 1197 ac_prev=program_suffix ;; 1198 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1199 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1200 program_suffix=$ac_optarg ;; 1201 1202 -program-transform-name | --program-transform-name \ 1203 | --program-transform-nam | --program-transform-na \ 1204 | --program-transform-n | --program-transform- \ 1205 | --program-transform | --program-transfor \ 1206 | --program-transfo | --program-transf \ 1207 | --program-trans | --program-tran \ 1208 | --progr-tra | --program-tr | --program-t) 1209 ac_prev=program_transform_name ;; 1210 -program-transform-name=* | --program-transform-name=* \ 1211 | --program-transform-nam=* | --program-transform-na=* \ 1212 | --program-transform-n=* | --program-transform-=* \ 1213 | --program-transform=* | --program-transfor=* \ 1214 | --program-transfo=* | --program-transf=* \ 1215 | --program-trans=* | --program-tran=* \ 1216 | --progr-tra=* | --program-tr=* | --program-t=*) 1217 program_transform_name=$ac_optarg ;; 1218 1219 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1220 ac_prev=pdfdir ;; 1221 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1222 pdfdir=$ac_optarg ;; 1223 1224 -psdir | --psdir | --psdi | --psd | --ps) 1225 ac_prev=psdir ;; 1226 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1227 psdir=$ac_optarg ;; 1228 1229 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1230 | -silent | --silent | --silen | --sile | --sil) 1231 silent=yes ;; 1232 1233 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1234 ac_prev=sbindir ;; 1235 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1236 | --sbi=* | --sb=*) 1237 sbindir=$ac_optarg ;; 1238 1239 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1240 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1241 | --sharedst | --shareds | --shared | --share | --shar \ 1242 | --sha | --sh) 1243 ac_prev=sharedstatedir ;; 1244 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1245 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1246 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1247 | --sha=* | --sh=*) 1248 sharedstatedir=$ac_optarg ;; 1249 1250 -site | --site | --sit) 1251 ac_prev=site ;; 1252 -site=* | --site=* | --sit=*) 1253 site=$ac_optarg ;; 1254 1255 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1256 ac_prev=srcdir ;; 1257 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1258 srcdir=$ac_optarg ;; 1259 1260 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1261 | --syscon | --sysco | --sysc | --sys | --sy) 1262 ac_prev=sysconfdir ;; 1263 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1264 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1265 sysconfdir=$ac_optarg ;; 1266 1267 -target | --target | --targe | --targ | --tar | --ta | --t) 1268 ac_prev=target_alias ;; 1269 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1270 target_alias=$ac_optarg ;; 1271 1272 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1273 verbose=yes ;; 1274 1275 -version | --version | --versio | --versi | --vers | -V) 1276 ac_init_version=: ;; 1277 1278 -with-* | --with-*) 1279 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1280 # Reject names that are not valid shell variable names. 1281 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1282 as_fn_error $? "invalid package name: $ac_useropt" 1283 ac_useropt_orig=$ac_useropt 1284 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1285 case $ac_user_opts in 1286 *" 1287 "with_$ac_useropt" 1288 "*) ;; 1289 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1290 ac_unrecognized_sep=', ';; 1291 esac 1292 eval with_$ac_useropt=\$ac_optarg ;; 1293 1294 -without-* | --without-*) 1295 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1296 # Reject names that are not valid shell variable names. 1297 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1298 as_fn_error $? "invalid package name: $ac_useropt" 1299 ac_useropt_orig=$ac_useropt 1300 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1301 case $ac_user_opts in 1302 *" 1303 "with_$ac_useropt" 1304 "*) ;; 1305 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1306 ac_unrecognized_sep=', ';; 1307 esac 1308 eval with_$ac_useropt=no ;; 1309 1310 --x) 1311 # Obsolete; use --with-x. 1312 with_x=yes ;; 1313 1314 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1315 | --x-incl | --x-inc | --x-in | --x-i) 1316 ac_prev=x_includes ;; 1317 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1318 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1319 x_includes=$ac_optarg ;; 1320 1321 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1322 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1323 ac_prev=x_libraries ;; 1324 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1325 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1326 x_libraries=$ac_optarg ;; 1327 1328 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1329 Try \`$0 --help' for more information" 1330 ;; 1331 1332 *=*) 1333 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1334 # Reject names that are not valid shell variable names. 1335 case $ac_envvar in #( 1336 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1337 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1338 esac 1339 eval $ac_envvar=\$ac_optarg 1340 export $ac_envvar ;; 1341 1342 *) 1343 # FIXME: should be removed in autoconf 3.0. 1344 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1345 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1346 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1347 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1348 ;; 1349 1350 esac 1351 done 1352 1353 if test -n "$ac_prev"; then 1354 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1355 as_fn_error $? "missing argument to $ac_option" 1356 fi 1357 1358 if test -n "$ac_unrecognized_opts"; then 1359 case $enable_option_checking in 1360 no) ;; 1361 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1362 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1363 esac 1364 fi 1365 1366 # Check all directory arguments for consistency. 1367 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1368 datadir sysconfdir sharedstatedir localstatedir includedir \ 1369 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1370 libdir localedir mandir 1371 do 1372 eval ac_val=\$$ac_var 1373 # Remove trailing slashes. 1374 case $ac_val in 1375 */ ) 1376 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1377 eval $ac_var=\$ac_val;; 1378 esac 1379 # Be sure to have absolute directory names. 1380 case $ac_val in 1381 [\\/$]* | ?:[\\/]* ) continue;; 1382 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1383 esac 1384 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1385 done 1386 1387 # There might be people who depend on the old broken behavior: `$host' 1388 # used to hold the argument of --host etc. 1389 # FIXME: To remove some day. 1390 build=$build_alias 1391 host=$host_alias 1392 target=$target_alias 1393 1394 # FIXME: To remove some day. 1395 if test "x$host_alias" != x; then 1396 if test "x$build_alias" = x; then 1397 cross_compiling=maybe 1398 elif test "x$build_alias" != "x$host_alias"; then 1399 cross_compiling=yes 1400 fi 1401 fi 1402 1403 ac_tool_prefix= 1404 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1405 1406 test "$silent" = yes && exec 6>/dev/null 1407 1408 1409 ac_pwd=`pwd` && test -n "$ac_pwd" && 1410 ac_ls_di=`ls -di .` && 1411 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1412 as_fn_error $? "working directory cannot be determined" 1413 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1414 as_fn_error $? "pwd does not report name of working directory" 1415 1416 1417 # Find the source files, if location was not specified. 1418 if test -z "$srcdir"; then 1419 ac_srcdir_defaulted=yes 1420 # Try the directory containing this script, then the parent directory. 1421 ac_confdir=`$as_dirname -- "$as_myself" || 1422 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1423 X"$as_myself" : 'X\(//\)[^/]' \| \ 1424 X"$as_myself" : 'X\(//\)$' \| \ 1425 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1426 $as_echo X"$as_myself" | 1427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1428 s//\1/ 1429 q 1430 } 1431 /^X\(\/\/\)[^/].*/{ 1432 s//\1/ 1433 q 1434 } 1435 /^X\(\/\/\)$/{ 1436 s//\1/ 1437 q 1438 } 1439 /^X\(\/\).*/{ 1440 s//\1/ 1441 q 1442 } 1443 s/.*/./; q'` 1444 srcdir=$ac_confdir 1445 if test ! -r "$srcdir/$ac_unique_file"; then 1446 srcdir=.. 1447 fi 1448 else 1449 ac_srcdir_defaulted=no 1450 fi 1451 if test ! -r "$srcdir/$ac_unique_file"; then 1452 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1453 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1454 fi 1455 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1456 ac_abs_confdir=`( 1457 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1458 pwd)` 1459 # When building in place, set srcdir=. 1460 if test "$ac_abs_confdir" = "$ac_pwd"; then 1461 srcdir=. 1462 fi 1463 # Remove unnecessary trailing slashes from srcdir. 1464 # Double slashes in file names in object file debugging info 1465 # mess up M-x gdb in Emacs. 1466 case $srcdir in 1467 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1468 esac 1469 for ac_var in $ac_precious_vars; do 1470 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1471 eval ac_env_${ac_var}_value=\$${ac_var} 1472 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1473 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1474 done 1475 1476 # 1477 # Report the --help message. 1478 # 1479 if test "$ac_init_help" = "long"; then 1480 # Omit some internal or obsolete options to make the list less imposing. 1481 # This message is too long to be a string in the A/UX 3.1 sh. 1482 cat <<_ACEOF 1483 \`configure' configures this package to adapt to many kinds of systems. 1484 1485 Usage: $0 [OPTION]... [VAR=VALUE]... 1486 1487 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1488 VAR=VALUE. See below for descriptions of some of the useful variables. 1489 1490 Defaults for the options are specified in brackets. 1491 1492 Configuration: 1493 -h, --help display this help and exit 1494 --help=short display options specific to this package 1495 --help=recursive display the short help of all the included packages 1496 -V, --version display version information and exit 1497 -q, --quiet, --silent do not print \`checking ...' messages 1498 --cache-file=FILE cache test results in FILE [disabled] 1499 -C, --config-cache alias for \`--cache-file=config.cache' 1500 -n, --no-create do not create output files 1501 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1502 1503 Installation directories: 1504 --prefix=PREFIX install architecture-independent files in PREFIX 1505 [$ac_default_prefix] 1506 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1507 [PREFIX] 1508 1509 By default, \`make install' will install all the files in 1510 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1511 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1512 for instance \`--prefix=\$HOME'. 1513 1514 For better control, use the options below. 1515 1516 Fine tuning of the installation directories: 1517 --bindir=DIR user executables [EPREFIX/bin] 1518 --sbindir=DIR system admin executables [EPREFIX/sbin] 1519 --libexecdir=DIR program executables [EPREFIX/libexec] 1520 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1521 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1522 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1523 --libdir=DIR object code libraries [EPREFIX/lib] 1524 --includedir=DIR C header files [PREFIX/include] 1525 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1526 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1527 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1528 --infodir=DIR info documentation [DATAROOTDIR/info] 1529 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1530 --mandir=DIR man documentation [DATAROOTDIR/man] 1531 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1532 --htmldir=DIR html documentation [DOCDIR] 1533 --dvidir=DIR dvi documentation [DOCDIR] 1534 --pdfdir=DIR pdf documentation [DOCDIR] 1535 --psdir=DIR ps documentation [DOCDIR] 1536 _ACEOF 1537 1538 cat <<\_ACEOF 1539 1540 X features: 1541 --x-includes=DIR X include files are in DIR 1542 --x-libraries=DIR X library files are in DIR 1543 1544 System types: 1545 --build=BUILD configure for building on BUILD [guessed] 1546 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1547 _ACEOF 1548 fi 1549 1550 if test -n "$ac_init_help"; then 1551 1552 cat <<\_ACEOF 1553 1554 Optional Features: 1555 --disable-option-checking ignore unrecognized --enable/--with options 1556 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1557 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1558 --enable-shared[=PKGS] build shared libraries [default=yes] 1559 --enable-static[=PKGS] build static libraries [default=yes] 1560 --enable-fast-install[=PKGS] 1561 optimize for fast installation [default=yes] 1562 --disable-libtool-lock avoid locking (might break parallel builds) 1563 --enable-assertions Enable internal sanity checks 1564 (auto/disabled/release/enabled/paranoid) 1565 [[default=auto]] 1566 --enable-dependency-tracking 1567 Use gcc -MMD -MT dependency tracking [[default=yes]] 1568 --enable-libc Use the system C library [[default=yes]] 1569 --enable-gcc-atomics Use gcc builtin atomics [[default=yes]] 1570 --enable-atomic Enable the atomic operations subsystem 1571 [[default=yes]] 1572 --enable-audio Enable the audio subsystem [[default=yes]] 1573 --enable-video Enable the video subsystem [[default=yes]] 1574 --enable-render Enable the render subsystem [[default=yes]] 1575 --enable-events Enable the events subsystem [[default=yes]] 1576 --enable-joystick Enable the joystick subsystem [[default=yes]] 1577 --enable-haptic Enable the haptic (force feedback) subsystem 1578 [[default=yes]] 1579 --enable-sensor Enable the sensor subsystem [[default=yes]] 1580 --enable-power Enable the power subsystem [[default=yes]] 1581 --enable-filesystem Enable the filesystem subsystem [[default=yes]] 1582 --enable-threads Enable the threading subsystem [[default=yes]] 1583 --enable-timers Enable the timer subsystem [[default=yes]] 1584 --enable-file Enable the file subsystem [[default=yes]] 1585 --enable-loadso Enable the shared object loading subsystem 1586 [[default=yes]] 1587 --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]] 1588 --enable-assembly Enable assembly routines [[default=yes]] 1589 --enable-ssemath Allow GCC to use SSE floating point math 1590 [[default=maybe]] 1591 --enable-mmx use MMX assembly routines [[default=yes]] 1592 --enable-3dnow use 3DNow! assembly routines [[default=yes]] 1593 --enable-sse use SSE assembly routines [[default=yes]] 1594 --enable-sse2 use SSE2 assembly routines [[default=maybe]] 1595 --enable-sse3 use SSE3 assembly routines [[default=maybe]] 1596 --enable-altivec use Altivec assembly routines [[default=yes]] 1597 --enable-oss support the OSS audio API [[default=maybe]] 1598 --enable-alsa support the ALSA audio API [[default=yes]] 1599 --disable-alsatest Do not try to compile and run a test Alsa program 1600 --enable-alsa-shared dynamically load ALSA audio support [[default=yes]] 1601 --enable-jack use JACK audio [[default=yes]] 1602 --enable-jack-shared dynamically load JACK audio support [[default=yes]] 1603 --enable-esd support the Enlightened Sound Daemon [[default=yes]] 1604 --disable-esdtest Do not try to compile and run a test ESD program 1605 --enable-esd-shared dynamically load ESD audio support [[default=yes]] 1606 --enable-pulseaudio use PulseAudio [[default=yes]] 1607 --enable-pulseaudio-shared 1608 dynamically load PulseAudio support [[default=yes]] 1609 --enable-arts support the Analog Real Time Synthesizer 1610 [[default=yes]] 1611 --enable-arts-shared dynamically load aRts audio support [[default=yes]] 1612 --enable-nas support the NAS audio API [[default=yes]] 1613 --enable-nas-shared dynamically load NAS audio support [[default=yes]] 1614 --enable-sndio support the sndio audio API [[default=yes]] 1615 --enable-sndio-shared dynamically load sndio audio support [[default=yes]] 1616 --enable-fusionsound use FusionSound audio driver [[default=no]] 1617 --enable-fusionsound-shared 1618 dynamically load fusionsound audio support 1619 [[default=yes]] 1620 --enable-diskaudio support the disk writer audio driver [[default=yes]] 1621 --enable-dummyaudio support the dummy audio driver [[default=yes]] 1622 --enable-libsamplerate use libsamplerate for audio rate conversion 1623 [[default=yes]] 1624 --enable-libsamplerate-shared 1625 dynamically load libsamplerate [[default=yes]] 1626 --enable-arm-simd use SIMD assembly blitters on ARM [[default=no]] 1627 --enable-arm-neon use NEON assembly blitters on ARM [[default=no]] 1628 --enable-video-wayland use Wayland video driver [[default=yes]] 1629 --enable-video-wayland-qt-touch 1630 QtWayland server support for Wayland video driver 1631 [[default=yes]] 1632 --enable-wayland-shared dynamically load Wayland support [[default=maybe]] 1633 --enable-video-rpi use Raspberry Pi video driver [[default=yes]] 1634 --enable-video-x11 use X11 video driver [[default=yes]] 1635 --enable-x11-shared dynamically load X11 support [[default=maybe]] 1636 --enable-video-x11-xcursor 1637 enable X11 Xcursor support [[default=yes]] 1638 --enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]] 1639 --enable-video-x11-xinerama 1640 enable X11 Xinerama support [[default=yes]] 1641 --enable-video-x11-xinput 1642 enable X11 XInput extension for manymouse, tablets, 1643 etc [[default=yes]] 1644 --enable-video-x11-xrandr 1645 enable X11 Xrandr extension for fullscreen 1646 [[default=yes]] 1647 --enable-video-x11-scrnsaver 1648 enable X11 screensaver extension [[default=yes]] 1649 --enable-video-x11-xshape 1650 enable X11 XShape support [[default=yes]] 1651 --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]] 1652 --enable-video-vivante use Vivante EGL video driver [[default=yes]] 1653 --enable-video-cocoa use Cocoa video driver [[default=yes]] 1654 --enable-video-metal include Metal support [[default=yes]] 1655 --enable-render-metal enable the Metal render driver [[default=yes]] 1656 --enable-video-directfb use DirectFB video driver [[default=no]] 1657 --enable-directfb-shared 1658 dynamically load directfb support [[default=yes]] 1659 --enable-video-kmsdrm use KMSDRM video driver [[default=no]] 1660 --enable-kmsdrm-shared dynamically load kmsdrm support [[default=yes]] 1661 --enable-video-dummy use dummy video driver [[default=yes]] 1662 --enable-video-opengl include OpenGL support [[default=yes]] 1663 --enable-video-opengles include OpenGL ES support [[default=yes]] 1664 --enable-video-opengles1 1665 include OpenGL ES 1.1 support [[default=yes]] 1666 --enable-video-opengles2 1667 include OpenGL ES 2.0 support [[default=yes]] 1668 --enable-video-vulkan include Vulkan support [[default=yes]] 1669 --enable-libudev enable libudev support [[default=yes]] 1670 --enable-dbus enable D-Bus support [[default=yes]] 1671 --enable-ime enable IME support [[default=yes]] 1672 --enable-ibus enable IBus support [[default=yes]] 1673 --enable-fcitx enable fcitx support [[default=yes]] 1674 --enable-joystick-mfi include macOS MFI joystick support [[default=yes]] 1675 --enable-pthreads use POSIX threads for multi-threading 1676 [[default=yes]] 1677 --enable-pthread-sem use pthread semaphores [[default=yes]] 1678 --enable-directx use DirectX for Windows audio/video [[default=yes]] 1679 --enable-wasapi use the Windows WASAPI audio driver [[default=yes]] 1680 --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]] 1681 --enable-hidapi use HIDAPI for low level joystick drivers 1682 [[default=yes]] 1683 --enable-hidapi-libusb use libusb for low level joystick drivers 1684 [[default=maybe]] 1685 --enable-clock_gettime use clock_gettime() instead of gettimeofday() on 1686 UNIX [[default=yes]] 1687 --enable-rpath use an rpath when linking SDL [[default=yes]] 1688 --enable-backgrounding-signal 1689 number to use for magic backgrounding signal or 'no' 1690 [[default=no]] 1691 --enable-foregrounding-signal 1692 number to use for magic foregrounding signal or 'no' 1693 [[default=no]] 1694 --enable-joystick-virtual 1695 enable virtual joystick APIs [[default=yes]] 1696 --enable-render-d3d enable the Direct3D render driver [[default=yes]] 1697 --enable-sdl2-config Install sdl2-config [default=yes] 1698 1699 Optional Packages: 1700 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1701 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1702 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1703 both] 1704 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1705 --with-sysroot=DIR Search for dependent libraries within DIR 1706 (or the compiler's sysroot if not specified). 1707 --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional) 1708 --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional) 1709 --with-esd-prefix=PFX Prefix where ESD is installed (optional) 1710 --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional) 1711 --with-x use the X Window System 1712 1713 Some influential environment variables: 1714 CC C compiler command 1715 CFLAGS C compiler flags 1716 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1717 nonstandard directory <lib dir> 1718 LIBS libraries to pass to the linker, e.g. -l<library> 1719 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1720 you have headers in a nonstandard directory <include dir> 1721 CPP C preprocessor 1722 CXX C++ compiler command 1723 CXXFLAGS C++ compiler flags 1724 CXXCPP C++ preprocessor 1725 PKG_CONFIG path to pkg-config utility 1726 PKG_CONFIG_PATH 1727 directories to add to pkg-config's search path 1728 PKG_CONFIG_LIBDIR 1729 path overriding pkg-config's built-in search path 1730 JACK_CFLAGS C compiler flags for JACK, overriding pkg-config 1731 JACK_LIBS linker flags for JACK, overriding pkg-config 1732 PULSEAUDIO_CFLAGS 1733 C compiler flags for PULSEAUDIO, overriding pkg-config 1734 PULSEAUDIO_LIBS 1735 linker flags for PULSEAUDIO, overriding pkg-config 1736 FUSIONSOUND_CFLAGS 1737 C compiler flags for FUSIONSOUND, overriding pkg-config 1738 FUSIONSOUND_LIBS 1739 linker flags for FUSIONSOUND, overriding pkg-config 1740 RPI_CFLAGS C compiler flags for RPI, overriding pkg-config 1741 RPI_LIBS linker flags for RPI, overriding pkg-config 1742 XMKMF Path to xmkmf, Makefile generator for X Window System 1743 DIRECTFB_CFLAGS 1744 C compiler flags for DIRECTFB, overriding pkg-config 1745 DIRECTFB_LIBS 1746 linker flags for DIRECTFB, overriding pkg-config 1747 LIBDRM_CFLAGS 1748 C compiler flags for LIBDRM, overriding pkg-config 1749 LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config 1750 LIBGBM_CFLAGS 1751 C compiler flags for LIBGBM, overriding pkg-config 1752 LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config 1753 DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config 1754 DBUS_LIBS linker flags for DBUS, overriding pkg-config 1755 IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config 1756 IBUS_LIBS linker flags for IBUS, overriding pkg-config 1757 LIBUSB_CFLAGS 1758 C compiler flags for LIBUSB, overriding pkg-config 1759 LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config 1760 1761 Use these variables to override the choices made by `configure' or to help 1762 it to find libraries and programs with nonstandard names/locations. 1763 1764 Report bugs to the package provider. 1765 _ACEOF 1766 ac_status=$? 1767 fi 1768 1769 if test "$ac_init_help" = "recursive"; then 1770 # If there are subdirs, report their specific --help. 1771 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1772 test -d "$ac_dir" || 1773 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1774 continue 1775 ac_builddir=. 1776 1777 case "$ac_dir" in 1778 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1779 *) 1780 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1781 # A ".." for each directory in $ac_dir_suffix. 1782 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1783 case $ac_top_builddir_sub in 1784 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1785 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1786 esac ;; 1787 esac 1788 ac_abs_top_builddir=$ac_pwd 1789 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1790 # for backward compatibility: 1791 ac_top_builddir=$ac_top_build_prefix 1792 1793 case $srcdir in 1794 .) # We are building in place. 1795 ac_srcdir=. 1796 ac_top_srcdir=$ac_top_builddir_sub 1797 ac_abs_top_srcdir=$ac_pwd ;; 1798 [\\/]* | ?:[\\/]* ) # Absolute name. 1799 ac_srcdir=$srcdir$ac_dir_suffix; 1800 ac_top_srcdir=$srcdir 1801 ac_abs_top_srcdir=$srcdir ;; 1802 *) # Relative name. 1803 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1804 ac_top_srcdir=$ac_top_build_prefix$srcdir 1805 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1806 esac 1807 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1808 1809 cd "$ac_dir" || { ac_status=$?; continue; } 1810 # Check for guested configure. 1811 if test -f "$ac_srcdir/configure.gnu"; then 1812 echo && 1813 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1814 elif test -f "$ac_srcdir/configure"; then 1815 echo && 1816 $SHELL "$ac_srcdir/configure" --help=recursive 1817 else 1818 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1819 fi || ac_status=$? 1820 cd "$ac_pwd" || { ac_status=$?; break; } 1821 done 1822 fi 1823 1824 test -n "$ac_init_help" && exit $ac_status 1825 if $ac_init_version; then 1826 cat <<\_ACEOF 1827 configure 1828 generated by GNU Autoconf 2.69 1829 1830 Copyright (C) 2012 Free Software Foundation, Inc. 1831 This configure script is free software; the Free Software Foundation 1832 gives unlimited permission to copy, distribute and modify it. 1833 _ACEOF 1834 exit 1835 fi 1836 1837 ## ------------------------ ## 1838 ## Autoconf initialization. ## 1839 ## ------------------------ ## 1840 1841 # ac_fn_c_try_compile LINENO 1842 # -------------------------- 1843 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1844 ac_fn_c_try_compile () 1845 { 1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1847 rm -f conftest.$ac_objext 1848 if { { ac_try="$ac_compile" 1849 case "(($ac_try" in 1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1851 *) ac_try_echo=$ac_try;; 1852 esac 1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1854 $as_echo "$ac_try_echo"; } >&5 1855 (eval "$ac_compile") 2>conftest.err 1856 ac_status=$? 1857 if test -s conftest.err; then 1858 grep -v '^ *+' conftest.err >conftest.er1 1859 cat conftest.er1 >&5 1860 mv -f conftest.er1 conftest.err 1861 fi 1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1863 test $ac_status = 0; } && { 1864 test -z "$ac_c_werror_flag" || 1865 test ! -s conftest.err 1866 } && test -s conftest.$ac_objext; then : 1867 ac_retval=0 1868 else 1869 $as_echo "$as_me: failed program was:" >&5 1870 sed 's/^/| /' conftest.$ac_ext >&5 1871 1872 ac_retval=1 1873 fi 1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1875 as_fn_set_status $ac_retval 1876 1877 } # ac_fn_c_try_compile 1878 1879 # ac_fn_c_try_link LINENO 1880 # ----------------------- 1881 # Try to link conftest.$ac_ext, and return whether this succeeded. 1882 ac_fn_c_try_link () 1883 { 1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1885 rm -f conftest.$ac_objext conftest$ac_exeext 1886 if { { ac_try="$ac_link" 1887 case "(($ac_try" in 1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1889 *) ac_try_echo=$ac_try;; 1890 esac 1891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1892 $as_echo "$ac_try_echo"; } >&5 1893 (eval "$ac_link") 2>conftest.err 1894 ac_status=$? 1895 if test -s conftest.err; then 1896 grep -v '^ *+' conftest.err >conftest.er1 1897 cat conftest.er1 >&5 1898 mv -f conftest.er1 conftest.err 1899 fi 1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1901 test $ac_status = 0; } && { 1902 test -z "$ac_c_werror_flag" || 1903 test ! -s conftest.err 1904 } && test -s conftest$ac_exeext && { 1905 test "$cross_compiling" = yes || 1906 test -x conftest$ac_exeext 1907 }; then : 1908 ac_retval=0 1909 else 1910 $as_echo "$as_me: failed program was:" >&5 1911 sed 's/^/| /' conftest.$ac_ext >&5 1912 1913 ac_retval=1 1914 fi 1915 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1916 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1917 # interfere with the next link command; also delete a directory that is 1918 # left behind by Apple's compiler. We do this before executing the actions. 1919 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1921 as_fn_set_status $ac_retval 1922 1923 } # ac_fn_c_try_link 1924 1925 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1926 # ------------------------------------------------------- 1927 # Tests whether HEADER exists and can be compiled using the include files in 1928 # INCLUDES, setting the cache variable VAR accordingly. 1929 ac_fn_c_check_header_compile () 1930 { 1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1933 $as_echo_n "checking for $2... " >&6; } 1934 if eval \${$3+:} false; then : 1935 $as_echo_n "(cached) " >&6 1936 else 1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1938 /* end confdefs.h. */ 1939 $4 1940 #include <$2> 1941 _ACEOF 1942 if ac_fn_c_try_compile "$LINENO"; then : 1943 eval "$3=yes" 1944 else 1945 eval "$3=no" 1946 fi 1947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1948 fi 1949 eval ac_res=\$$3 1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1951 $as_echo "$ac_res" >&6; } 1952 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1953 1954 } # ac_fn_c_check_header_compile 1955 1956 # ac_fn_c_try_cpp LINENO 1957 # ---------------------- 1958 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1959 ac_fn_c_try_cpp () 1960 { 1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1962 if { { ac_try="$ac_cpp conftest.$ac_ext" 1963 case "(($ac_try" in 1964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1965 *) ac_try_echo=$ac_try;; 1966 esac 1967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1968 $as_echo "$ac_try_echo"; } >&5 1969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1970 ac_status=$? 1971 if test -s conftest.err; then 1972 grep -v '^ *+' conftest.err >conftest.er1 1973 cat conftest.er1 >&5 1974 mv -f conftest.er1 conftest.err 1975 fi 1976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1977 test $ac_status = 0; } > conftest.i && { 1978 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1979 test ! -s conftest.err 1980 }; then : 1981 ac_retval=0 1982 else 1983 $as_echo "$as_me: failed program was:" >&5 1984 sed 's/^/| /' conftest.$ac_ext >&5 1985 1986 ac_retval=1 1987 fi 1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1989 as_fn_set_status $ac_retval 1990 1991 } # ac_fn_c_try_cpp 1992 1993 # ac_fn_c_try_run LINENO 1994 # ---------------------- 1995 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1996 # that executables *can* be run. 1997 ac_fn_c_try_run () 1998 { 1999 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2000 if { { ac_try="$ac_link" 2001 case "(($ac_try" in 2002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2003 *) ac_try_echo=$ac_try;; 2004 esac 2005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2006 $as_echo "$ac_try_echo"; } >&5 2007 (eval "$ac_link") 2>&5 2008 ac_status=$? 2009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2010 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2011 { { case "(($ac_try" in 2012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2013 *) ac_try_echo=$ac_try;; 2014 esac 2015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2016 $as_echo "$ac_try_echo"; } >&5 2017 (eval "$ac_try") 2>&5 2018 ac_status=$? 2019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2020 test $ac_status = 0; }; }; then : 2021 ac_retval=0 2022 else 2023 $as_echo "$as_me: program exited with status $ac_status" >&5 2024 $as_echo "$as_me: failed program was:" >&5 2025 sed 's/^/| /' conftest.$ac_ext >&5 2026 2027 ac_retval=$ac_status 2028 fi 2029 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2030 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2031 as_fn_set_status $ac_retval 2032 2033 } # ac_fn_c_try_run 2034 2035 # ac_fn_c_check_func LINENO FUNC VAR 2036 # ---------------------------------- 2037 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2038 ac_fn_c_check_func () 2039 { 2040 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2042 $as_echo_n "checking for $2... " >&6; } 2043 if eval \${$3+:} false; then : 2044 $as_echo_n "(cached) " >&6 2045 else 2046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2047 /* end confdefs.h. */ 2048 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2049 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2050 #define $2 innocuous_$2 2051 2052 /* System header to define __stub macros and hopefully few prototypes, 2053 which can conflict with char $2 (); below. 2054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2055 <limits.h> exists even on freestanding compilers. */ 2056 2057 #ifdef __STDC__ 2058 # include <limits.h> 2059 #else 2060 # include <assert.h> 2061 #endif 2062 2063 #undef $2 2064 2065 /* Override any GCC internal prototype to avoid an error. 2066 Use char because int might match the return type of a GCC 2067 builtin and then its argument prototype would still apply. */ 2068 #ifdef __cplusplus 2069 extern "C" 2070 #endif 2071 char $2 (); 2072 /* The GNU C library defines this for functions which it implements 2073 to always fail with ENOSYS. Some functions are actually named 2074 something starting with __ and the normal name is an alias. */ 2075 #if defined __stub_$2 || defined __stub___$2 2076 choke me 2077 #endif 2078 2079 int 2080 main () 2081 { 2082 return $2 (); 2083 ; 2084 return 0; 2085 } 2086 _ACEOF 2087 if ac_fn_c_try_link "$LINENO"; then : 2088 eval "$3=yes" 2089 else 2090 eval "$3=no" 2091 fi 2092 rm -f core conftest.err conftest.$ac_objext \ 2093 conftest$ac_exeext conftest.$ac_ext 2094 fi 2095 eval ac_res=\$$3 2096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2097 $as_echo "$ac_res" >&6; } 2098 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2099 2100 } # ac_fn_c_check_func 2101 2102 # ac_fn_cxx_try_compile LINENO 2103 # ---------------------------- 2104 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2105 ac_fn_cxx_try_compile () 2106 { 2107 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2108 rm -f conftest.$ac_objext 2109 if { { ac_try="$ac_compile" 2110 case "(($ac_try" in 2111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2112 *) ac_try_echo=$ac_try;; 2113 esac 2114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2115 $as_echo "$ac_try_echo"; } >&5 2116 (eval "$ac_compile") 2>conftest.err 2117 ac_status=$? 2118 if test -s conftest.err; then 2119 grep -v '^ *+' conftest.err >conftest.er1 2120 cat conftest.er1 >&5 2121 mv -f conftest.er1 conftest.err 2122 fi 2123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2124 test $ac_status = 0; } && { 2125 test -z "$ac_cxx_werror_flag" || 2126 test ! -s conftest.err 2127 } && test -s conftest.$ac_objext; then : 2128 ac_retval=0 2129 else 2130 $as_echo "$as_me: failed program was:" >&5 2131 sed 's/^/| /' conftest.$ac_ext >&5 2132 2133 ac_retval=1 2134 fi 2135 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2136 as_fn_set_status $ac_retval 2137 2138 } # ac_fn_cxx_try_compile 2139 2140 # ac_fn_cxx_try_cpp LINENO 2141 # ------------------------ 2142 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2143 ac_fn_cxx_try_cpp () 2144 { 2145 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2146 if { { ac_try="$ac_cpp conftest.$ac_ext" 2147 case "(($ac_try" in 2148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2149 *) ac_try_echo=$ac_try;; 2150 esac 2151 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2152 $as_echo "$ac_try_echo"; } >&5 2153 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2154 ac_status=$? 2155 if test -s conftest.err; then 2156 grep -v '^ *+' conftest.err >conftest.er1 2157 cat conftest.er1 >&5 2158 mv -f conftest.er1 conftest.err 2159 fi 2160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2161 test $ac_status = 0; } > conftest.i && { 2162 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2163 test ! -s conftest.err 2164 }; then : 2165 ac_retval=0 2166 else 2167 $as_echo "$as_me: failed program was:" >&5 2168 sed 's/^/| /' conftest.$ac_ext >&5 2169 2170 ac_retval=1 2171 fi 2172 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2173 as_fn_set_status $ac_retval 2174 2175 } # ac_fn_cxx_try_cpp 2176 2177 # ac_fn_cxx_try_link LINENO 2178 # ------------------------- 2179 # Try to link conftest.$ac_ext, and return whether this succeeded. 2180 ac_fn_cxx_try_link () 2181 { 2182 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2183 rm -f conftest.$ac_objext conftest$ac_exeext 2184 if { { ac_try="$ac_link" 2185 case "(($ac_try" in 2186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2187 *) ac_try_echo=$ac_try;; 2188 esac 2189 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2190 $as_echo "$ac_try_echo"; } >&5 2191 (eval "$ac_link") 2>conftest.err 2192 ac_status=$? 2193 if test -s conftest.err; then 2194 grep -v '^ *+' conftest.err >conftest.er1 2195 cat conftest.er1 >&5 2196 mv -f conftest.er1 conftest.err 2197 fi 2198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2199 test $ac_status = 0; } && { 2200 test -z "$ac_cxx_werror_flag" || 2201 test ! -s conftest.err 2202 } && test -s conftest$ac_exeext && { 2203 test "$cross_compiling" = yes || 2204 test -x conftest$ac_exeext 2205 }; then : 2206 ac_retval=0 2207 else 2208 $as_echo "$as_me: failed program was:" >&5 2209 sed 's/^/| /' conftest.$ac_ext >&5 2210 2211 ac_retval=1 2212 fi 2213 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2214 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2215 # interfere with the next link command; also delete a directory that is 2216 # left behind by Apple's compiler. We do this before executing the actions. 2217 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2218 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2219 as_fn_set_status $ac_retval 2220 2221 } # ac_fn_cxx_try_link 2222 2223 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2224 # ------------------------------------------------------- 2225 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2226 # the include files in INCLUDES and setting the cache variable VAR 2227 # accordingly. 2228 ac_fn_c_check_header_mongrel () 2229 { 2230 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2231 if eval \${$3+:} false; then : 2232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2233 $as_echo_n "checking for $2... " >&6; } 2234 if eval \${$3+:} false; then : 2235 $as_echo_n "(cached) " >&6 2236 fi 2237 eval ac_res=\$$3 2238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2239 $as_echo "$ac_res" >&6; } 2240 else 2241 # Is the header compilable? 2242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2243 $as_echo_n "checking $2 usability... " >&6; } 2244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2245 /* end confdefs.h. */ 2246 $4 2247 #include <$2> 2248 _ACEOF 2249 if ac_fn_c_try_compile "$LINENO"; then : 2250 ac_header_compiler=yes 2251 else 2252 ac_header_compiler=no 2253 fi 2254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2256 $as_echo "$ac_header_compiler" >&6; } 2257 2258 # Is the header present? 2259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2260 $as_echo_n "checking $2 presence... " >&6; } 2261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2262 /* end confdefs.h. */ 2263 #include <$2> 2264 _ACEOF 2265 if ac_fn_c_try_cpp "$LINENO"; then : 2266 ac_header_preproc=yes 2267 else 2268 ac_header_preproc=no 2269 fi 2270 rm -f conftest.err conftest.i conftest.$ac_ext 2271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2272 $as_echo "$ac_header_preproc" >&6; } 2273 2274 # So? What about this header? 2275 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2276 yes:no: ) 2277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2278 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2280 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2281 ;; 2282 no:yes:* ) 2283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2284 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2286 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2288 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2290 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2292 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2293 ;; 2294 esac 2295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2296 $as_echo_n "checking for $2... " >&6; } 2297 if eval \${$3+:} false; then : 2298 $as_echo_n "(cached) " >&6 2299 else 2300 eval "$3=\$ac_header_compiler" 2301 fi 2302 eval ac_res=\$$3 2303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2304 $as_echo "$ac_res" >&6; } 2305 fi 2306 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2307 2308 } # ac_fn_c_check_header_mongrel 2309 2310 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2311 # ------------------------------------------- 2312 # Tests whether TYPE exists after having included INCLUDES, setting cache 2313 # variable VAR accordingly. 2314 ac_fn_c_check_type () 2315 { 2316 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2318 $as_echo_n "checking for $2... " >&6; } 2319 if eval \${$3+:} false; then : 2320 $as_echo_n "(cached) " >&6 2321 else 2322 eval "$3=no" 2323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2324 /* end confdefs.h. */ 2325 $4 2326 int 2327 main () 2328 { 2329 if (sizeof ($2)) 2330 return 0; 2331 ; 2332 return 0; 2333 } 2334 _ACEOF 2335 if ac_fn_c_try_compile "$LINENO"; then : 2336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2337 /* end confdefs.h. */ 2338 $4 2339 int 2340 main () 2341 { 2342 if (sizeof (($2))) 2343 return 0; 2344 ; 2345 return 0; 2346 } 2347 _ACEOF 2348 if ac_fn_c_try_compile "$LINENO"; then : 2349 2350 else 2351 eval "$3=yes" 2352 fi 2353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2354 fi 2355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2356 fi 2357 eval ac_res=\$$3 2358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2359 $as_echo "$ac_res" >&6; } 2360 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2361 2362 } # ac_fn_c_check_type 2363 2364 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2365 # ---------------------------------------------------- 2366 # Tries to find if the field MEMBER exists in type AGGR, after including 2367 # INCLUDES, setting cache variable VAR accordingly. 2368 ac_fn_c_check_member () 2369 { 2370 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2372 $as_echo_n "checking for $2.$3... " >&6; } 2373 if eval \${$4+:} false; then : 2374 $as_echo_n "(cached) " >&6 2375 else 2376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2377 /* end confdefs.h. */ 2378 $5 2379 int 2380 main () 2381 { 2382 static $2 ac_aggr; 2383 if (ac_aggr.$3) 2384 return 0; 2385 ; 2386 return 0; 2387 } 2388 _ACEOF 2389 if ac_fn_c_try_compile "$LINENO"; then : 2390 eval "$4=yes" 2391 else 2392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2393 /* end confdefs.h. */ 2394 $5 2395 int 2396 main () 2397 { 2398 static $2 ac_aggr; 2399 if (sizeof ac_aggr.$3) 2400 return 0; 2401 ; 2402 return 0; 2403 } 2404 _ACEOF 2405 if ac_fn_c_try_compile "$LINENO"; then : 2406 eval "$4=yes" 2407 else 2408 eval "$4=no" 2409 fi 2410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2411 fi 2412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2413 fi 2414 eval ac_res=\$$4 2415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2416 $as_echo "$ac_res" >&6; } 2417 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2418 2419 } # ac_fn_c_check_member 2420 cat >config.log <<_ACEOF 2421 This file contains any messages produced by compilers while 2422 running configure, to aid debugging if configure makes a mistake. 2423 2424 It was created by $as_me, which was 2425 generated by GNU Autoconf 2.69. Invocation command line was 2426 2427 $ $0 $@ 2428 2429 _ACEOF 2430 exec 5>>config.log 2431 { 2432 cat <<_ASUNAME 2433 ## --------- ## 2434 ## Platform. ## 2435 ## --------- ## 2436 2437 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2438 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2439 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2440 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2441 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2442 2443 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2444 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2445 2446 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2447 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2448 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2449 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2450 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2451 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2452 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2453 2454 _ASUNAME 2455 2456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2457 for as_dir in $PATH 2458 do 2459 IFS=$as_save_IFS 2460 test -z "$as_dir" && as_dir=. 2461 $as_echo "PATH: $as_dir" 2462 done 2463 IFS=$as_save_IFS 2464 2465 } >&5 2466 2467 cat >&5 <<_ACEOF 2468 2469 2470 ## ----------- ## 2471 ## Core tests. ## 2472 ## ----------- ## 2473 2474 _ACEOF 2475 2476 2477 # Keep a trace of the command line. 2478 # Strip out --no-create and --no-recursion so they do not pile up. 2479 # Strip out --silent because we don't want to record it for future runs. 2480 # Also quote any args containing shell meta-characters. 2481 # Make two passes to allow for proper duplicate-argument suppression. 2482 ac_configure_args= 2483 ac_configure_args0= 2484 ac_configure_args1= 2485 ac_must_keep_next=false 2486 for ac_pass in 1 2 2487 do 2488 for ac_arg 2489 do 2490 case $ac_arg in 2491 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2492 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2493 | -silent | --silent | --silen | --sile | --sil) 2494 continue ;; 2495 *\'*) 2496 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2497 esac 2498 case $ac_pass in 2499 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2500 2) 2501 as_fn_append ac_configure_args1 " '$ac_arg'" 2502 if test $ac_must_keep_next = true; then 2503 ac_must_keep_next=false # Got value, back to normal. 2504 else 2505 case $ac_arg in 2506 *=* | --config-cache | -C | -disable-* | --disable-* \ 2507 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2508 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2509 | -with-* | --with-* | -without-* | --without-* | --x) 2510 case "$ac_configure_args0 " in 2511 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2512 esac 2513 ;; 2514 -* ) ac_must_keep_next=true ;; 2515 esac 2516 fi 2517 as_fn_append ac_configure_args " '$ac_arg'" 2518 ;; 2519 esac 2520 done 2521 done 2522 { ac_configure_args0=; unset ac_configure_args0;} 2523 { ac_configure_args1=; unset ac_configure_args1;} 2524 2525 # When interrupted or exit'd, cleanup temporary files, and complete 2526 # config.log. We remove comments because anyway the quotes in there 2527 # would cause problems or look ugly. 2528 # WARNING: Use '\'' to represent an apostrophe within the trap. 2529 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2530 trap 'exit_status=$? 2531 # Save into config.log some information that might help in debugging. 2532 { 2533 echo 2534 2535 $as_echo "## ---------------- ## 2536 ## Cache variables. ## 2537 ## ---------------- ##" 2538 echo 2539 # The following way of writing the cache mishandles newlines in values, 2540 ( 2541 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2542 eval ac_val=\$$ac_var 2543 case $ac_val in #( 2544 *${as_nl}*) 2545 case $ac_var in #( 2546 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2547 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2548 esac 2549 case $ac_var in #( 2550 _ | IFS | as_nl) ;; #( 2551 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2552 *) { eval $ac_var=; unset $ac_var;} ;; 2553 esac ;; 2554 esac 2555 done 2556 (set) 2>&1 | 2557 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2558 *${as_nl}ac_space=\ *) 2559 sed -n \ 2560 "s/'\''/'\''\\\\'\'''\''/g; 2561 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2562 ;; #( 2563 *) 2564 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2565 ;; 2566 esac | 2567 sort 2568 ) 2569 echo 2570 2571 $as_echo "## ----------------- ## 2572 ## Output variables. ## 2573 ## ----------------- ##" 2574 echo 2575 for ac_var in $ac_subst_vars 2576 do 2577 eval ac_val=\$$ac_var 2578 case $ac_val in 2579 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2580 esac 2581 $as_echo "$ac_var='\''$ac_val'\''" 2582 done | sort 2583 echo 2584 2585 if test -n "$ac_subst_files"; then 2586 $as_echo "## ------------------- ## 2587 ## File substitutions. ## 2588 ## ------------------- ##" 2589 echo 2590 for ac_var in $ac_subst_files 2591 do 2592 eval ac_val=\$$ac_var 2593 case $ac_val in 2594 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2595 esac 2596 $as_echo "$ac_var='\''$ac_val'\''" 2597 done | sort 2598 echo 2599 fi 2600 2601 if test -s confdefs.h; then 2602 $as_echo "## ----------- ## 2603 ## confdefs.h. ## 2604 ## ----------- ##" 2605 echo 2606 cat confdefs.h 2607 echo 2608 fi 2609 test "$ac_signal" != 0 && 2610 $as_echo "$as_me: caught signal $ac_signal" 2611 $as_echo "$as_me: exit $exit_status" 2612 } >&5 2613 rm -f core *.core core.conftest.* && 2614 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2615 exit $exit_status 2616 ' 0 2617 for ac_signal in 1 2 13 15; do 2618 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2619 done 2620 ac_signal=0 2621 2622 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2623 rm -f -r conftest* confdefs.h 2624 2625 $as_echo "/* confdefs.h */" > confdefs.h 2626 2627 # Predefined preprocessor variables. 2628 2629 cat >>confdefs.h <<_ACEOF 2630 #define PACKAGE_NAME "$PACKAGE_NAME" 2631 _ACEOF 2632 2633 cat >>confdefs.h <<_ACEOF 2634 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2635 _ACEOF 2636 2637 cat >>confdefs.h <<_ACEOF 2638 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2639 _ACEOF 2640 2641 cat >>confdefs.h <<_ACEOF 2642 #define PACKAGE_STRING "$PACKAGE_STRING" 2643 _ACEOF 2644 2645 cat >>confdefs.h <<_ACEOF 2646 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2647 _ACEOF 2648 2649 cat >>confdefs.h <<_ACEOF 2650 #define PACKAGE_URL "$PACKAGE_URL" 2651 _ACEOF 2652 2653 2654 # Let the site file select an alternate cache file if it wants to. 2655 # Prefer an explicitly selected file to automatically selected ones. 2656 ac_site_file1=NONE 2657 ac_site_file2=NONE 2658 if test -n "$CONFIG_SITE"; then 2659 # We do not want a PATH search for config.site. 2660 case $CONFIG_SITE in #(( 2661 -*) ac_site_file1=./$CONFIG_SITE;; 2662 */*) ac_site_file1=$CONFIG_SITE;; 2663 *) ac_site_file1=./$CONFIG_SITE;; 2664 esac 2665 elif test "x$prefix" != xNONE; then 2666 ac_site_file1=$prefix/share/config.site 2667 ac_site_file2=$prefix/etc/config.site 2668 else 2669 ac_site_file1=$ac_default_prefix/share/config.site 2670 ac_site_file2=$ac_default_prefix/etc/config.site 2671 fi 2672 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2673 do 2674 test "x$ac_site_file" = xNONE && continue 2675 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2676 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2677 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2678 sed 's/^/| /' "$ac_site_file" >&5 2679 . "$ac_site_file" \ 2680 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2682 as_fn_error $? "failed to load site script $ac_site_file 2683 See \`config.log' for more details" "$LINENO" 5; } 2684 fi 2685 done 2686 2687 if test -r "$cache_file"; then 2688 # Some versions of bash will fail to source /dev/null (special files 2689 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2690 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2691 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2692 $as_echo "$as_me: loading cache $cache_file" >&6;} 2693 case $cache_file in 2694 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2695 *) . "./$cache_file";; 2696 esac 2697 fi 2698 else 2699 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2700 $as_echo "$as_me: creating cache $cache_file" >&6;} 2701 >$cache_file 2702 fi 2703 2704 # Check that the precious variables saved in the cache have kept the same 2705 # value. 2706 ac_cache_corrupted=false 2707 for ac_var in $ac_precious_vars; do 2708 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2709 eval ac_new_set=\$ac_env_${ac_var}_set 2710 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2711 eval ac_new_val=\$ac_env_${ac_var}_value 2712 case $ac_old_set,$ac_new_set in 2713 set,) 2714 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2715 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2716 ac_cache_corrupted=: ;; 2717 ,set) 2718 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2719 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2720 ac_cache_corrupted=: ;; 2721 ,);; 2722 *) 2723 if test "x$ac_old_val" != "x$ac_new_val"; then 2724 # differences in whitespace do not lead to failure. 2725 ac_old_val_w=`echo x $ac_old_val` 2726 ac_new_val_w=`echo x $ac_new_val` 2727 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2728 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2729 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2730 ac_cache_corrupted=: 2731 else 2732 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2733 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2734 eval $ac_var=\$ac_old_val 2735 fi 2736 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2737 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2738 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2739 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2740 fi;; 2741 esac 2742 # Pass precious variables to config.status. 2743 if test "$ac_new_set" = set; then 2744 case $ac_new_val in 2745 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2746 *) ac_arg=$ac_var=$ac_new_val ;; 2747 esac 2748 case " $ac_configure_args " in 2749 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2750 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2751 esac 2752 fi 2753 done 2754 if $ac_cache_corrupted; then 2755 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2756 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2757 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2758 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2759 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2760 fi 2761 ## -------------------- ## 2762 ## Main body of script. ## 2763 ## -------------------- ## 2764 2765 ac_ext=c 2766 ac_cpp='$CPP $CPPFLAGS' 2767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2769 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2770 2771 2772 2773 ac_config_headers="$ac_config_headers include/SDL_config.h" 2774 2775 ac_aux_dir= 2776 for ac_dir in build-scripts "$srcdir"/build-scripts; do 2777 if test -f "$ac_dir/install-sh"; then 2778 ac_aux_dir=$ac_dir 2779 ac_install_sh="$ac_aux_dir/install-sh -c" 2780 break 2781 elif test -f "$ac_dir/install.sh"; then 2782 ac_aux_dir=$ac_dir 2783 ac_install_sh="$ac_aux_dir/install.sh -c" 2784 break 2785 elif test -f "$ac_dir/shtool"; then 2786 ac_aux_dir=$ac_dir 2787 ac_install_sh="$ac_aux_dir/shtool install -c" 2788 break 2789 fi 2790 done 2791 if test -z "$ac_aux_dir"; then 2792 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5 2793 fi 2794 2795 # These three variables are undocumented and unsupported, 2796 # and are intended to be withdrawn in a future Autoconf release. 2797 # They can cause serious problems if a builder's source tree is in a directory 2798 # whose full name contains unusual characters. 2799 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2800 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2801 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2802 2803 2804 2805 2806 orig_CFLAGS="$CFLAGS" 2807 2808 # 2809 # Making releases: 2810 # Edit include/SDL_version.h and change the version, then: 2811 # SDL_MICRO_VERSION += 1; 2812 # SDL_INTERFACE_AGE += 1; 2813 # SDL_BINARY_AGE += 1; 2814 # if any functions have been added, set SDL_INTERFACE_AGE to 0. 2815 # if backwards compatibility has been broken, 2816 # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0. 2817 # 2818 SDL_MAJOR_VERSION=2 2819 SDL_MINOR_VERSION=0 2820 SDL_MICRO_VERSION=14 2821 SDL_INTERFACE_AGE=0 2822 SDL_BINARY_AGE=14 2823 SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION 2824 2825 2826 2827 2828 2829 2830 2831 2832 # libtool versioning 2833 case `pwd` in 2834 *\ * | *\ *) 2835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2836 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2837 esac 2838 2839 2840 2841 macro_version='2.4.2' 2842 macro_revision='1.3337' 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 ltmain="$ac_aux_dir/ltmain.sh" 2857 2858 # Make sure we can run config.sub. 2859 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2860 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2861 2862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2863 $as_echo_n "checking build system type... " >&6; } 2864 if ${ac_cv_build+:} false; then : 2865 $as_echo_n "(cached) " >&6 2866 else 2867 ac_build_alias=$build_alias 2868 test "x$ac_build_alias" = x && 2869 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2870 test "x$ac_build_alias" = x && 2871 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2872 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2873 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2874 2875 fi 2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2877 $as_echo "$ac_cv_build" >&6; } 2878 case $ac_cv_build in 2879 *-*-*) ;; 2880 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2881 esac 2882 build=$ac_cv_build 2883 ac_save_IFS=$IFS; IFS='-' 2884 set x $ac_cv_build 2885 shift 2886 build_cpu=$1 2887 build_vendor=$2 2888 shift; shift 2889 # Remember, the first character of IFS is used to create $*, 2890 # except with old shells: 2891 build_os=$* 2892 IFS=$ac_save_IFS 2893 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2894 2895 2896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2897 $as_echo_n "checking host system type... " >&6; } 2898 if ${ac_cv_host+:} false; then : 2899 $as_echo_n "(cached) " >&6 2900 else 2901 if test "x$host_alias" = x; then 2902 ac_cv_host=$ac_cv_build 2903 else 2904 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2905 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2906 fi 2907 2908 fi 2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2910 $as_echo "$ac_cv_host" >&6; } 2911 case $ac_cv_host in 2912 *-*-*) ;; 2913 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2914 esac 2915 host=$ac_cv_host 2916 ac_save_IFS=$IFS; IFS='-' 2917 set x $ac_cv_host 2918 shift 2919 host_cpu=$1 2920 host_vendor=$2 2921 shift; shift 2922 # Remember, the first character of IFS is used to create $*, 2923 # except with old shells: 2924 host_os=$* 2925 IFS=$ac_save_IFS 2926 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2927 2928 2929 # Backslashify metacharacters that are still active within 2930 # double-quoted strings. 2931 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 2932 2933 # Same as above, but do not quote variable references. 2934 double_quote_subst='s/\(["`\\]\)/\\\1/g' 2935 2936 # Sed substitution to delay expansion of an escaped shell variable in a 2937 # double_quote_subst'ed string. 2938 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2939 2940 # Sed substitution to delay expansion of an escaped single quote. 2941 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 2942 2943 # Sed substitution to avoid accidental globbing in evaled expressions 2944 no_glob_subst='s/\*/\\\*/g' 2945 2946 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 2947 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 2948 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 2949 2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 2951 $as_echo_n "checking how to print strings... " >&6; } 2952 # Test print first, because it will be a builtin if present. 2953 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 2954 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 2955 ECHO='print -r --' 2956 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 2957 ECHO='printf %s\n' 2958 else 2959 # Use this function as a fallback that always works. 2960 func_fallback_echo () 2961 { 2962 eval 'cat <<_LTECHO_EOF 2963 $1 2964 _LTECHO_EOF' 2965 } 2966 ECHO='func_fallback_echo' 2967 fi 2968 2969 # func_echo_all arg... 2970 # Invoke $ECHO with all args, space-separated. 2971 func_echo_all () 2972 { 2973 $ECHO "" 2974 } 2975 2976 case "$ECHO" in 2977 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 2978 $as_echo "printf" >&6; } ;; 2979 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 2980 $as_echo "print -r" >&6; } ;; 2981 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 2982 $as_echo "cat" >&6; } ;; 2983 esac 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 ac_ext=c 2999 ac_cpp='$CPP $CPPFLAGS' 3000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3002 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3003 if test -n "$ac_tool_prefix"; then 3004 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3005 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3007 $as_echo_n "checking for $ac_word... " >&6; } 3008 if ${ac_cv_prog_CC+:} false; then : 3009 $as_echo_n "(cached) " >&6 3010 else 3011 if test -n "$CC"; then 3012 ac_cv_prog_CC="$CC" # Let the user override the test. 3013 else 3014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3015 for as_dir in $PATH 3016 do 3017 IFS=$as_save_IFS 3018 test -z "$as_dir" && as_dir=. 3019 for ac_exec_ext in '' $ac_executable_extensions; do 3020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3021 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3023 break 2 3024 fi 3025 done 3026 done 3027 IFS=$as_save_IFS 3028 3029 fi 3030 fi 3031 CC=$ac_cv_prog_CC 3032 if test -n "$CC"; then 3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3034 $as_echo "$CC" >&6; } 3035 else 3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3037 $as_echo "no" >&6; } 3038 fi 3039 3040 3041 fi 3042 if test -z "$ac_cv_prog_CC"; then 3043 ac_ct_CC=$CC 3044 # Extract the first word of "gcc", so it can be a program name with args. 3045 set dummy gcc; ac_word=$2 3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3047 $as_echo_n "checking for $ac_word... " >&6; } 3048 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3049 $as_echo_n "(cached) " >&6 3050 else 3051 if test -n "$ac_ct_CC"; then 3052 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3053 else 3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3055 for as_dir in $PATH 3056 do 3057 IFS=$as_save_IFS 3058 test -z "$as_dir" && as_dir=. 3059 for ac_exec_ext in '' $ac_executable_extensions; do 3060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3061 ac_cv_prog_ac_ct_CC="gcc" 3062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3063 break 2 3064 fi 3065 done 3066 done 3067 IFS=$as_save_IFS 3068 3069 fi 3070 fi 3071 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3072 if test -n "$ac_ct_CC"; then 3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3074 $as_echo "$ac_ct_CC" >&6; } 3075 else 3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3077 $as_echo "no" >&6; } 3078 fi 3079 3080 if test "x$ac_ct_CC" = x; then 3081 CC="" 3082 else 3083 case $cross_compiling:$ac_tool_warned in 3084 yes:) 3085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3086 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3087 ac_tool_warned=yes ;; 3088 esac 3089 CC=$ac_ct_CC 3090 fi 3091 else 3092 CC="$ac_cv_prog_CC" 3093 fi 3094 3095 if test -z "$CC"; then 3096 if test -n "$ac_tool_prefix"; then 3097 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3098 set dummy ${ac_tool_prefix}cc; ac_word=$2 3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3100 $as_echo_n "checking for $ac_word... " >&6; } 3101 if ${ac_cv_prog_CC+:} false; then : 3102 $as_echo_n "(cached) " >&6 3103 else 3104 if test -n "$CC"; then 3105 ac_cv_prog_CC="$CC" # Let the user override the test. 3106 else 3107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3108 for as_dir in $PATH 3109 do 3110 IFS=$as_save_IFS 3111 test -z "$as_dir" && as_dir=. 3112 for ac_exec_ext in '' $ac_executable_extensions; do 3113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3114 ac_cv_prog_CC="${ac_tool_prefix}cc" 3115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3116 break 2 3117 fi 3118 done 3119 done 3120 IFS=$as_save_IFS 3121 3122 fi 3123 fi 3124 CC=$ac_cv_prog_CC 3125 if test -n "$CC"; then 3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3127 $as_echo "$CC" >&6; } 3128 else 3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3130 $as_echo "no" >&6; } 3131 fi 3132 3133 3134 fi 3135 fi 3136 if test -z "$CC"; then 3137 # Extract the first word of "cc", so it can be a program name with args. 3138 set dummy cc; ac_word=$2 3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3140 $as_echo_n "checking for $ac_word... " >&6; } 3141 if ${ac_cv_prog_CC+:} false; then : 3142 $as_echo_n "(cached) " >&6 3143 else 3144 if test -n "$CC"; then 3145 ac_cv_prog_CC="$CC" # Let the user override the test. 3146 else 3147 ac_prog_rejected=no 3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3149 for as_dir in $PATH 3150 do 3151 IFS=$as_save_IFS 3152 test -z "$as_dir" && as_dir=. 3153 for ac_exec_ext in '' $ac_executable_extensions; do 3154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3155 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3156 ac_prog_rejected=yes 3157 continue 3158 fi 3159 ac_cv_prog_CC="cc" 3160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3161 break 2 3162 fi 3163 done 3164 done 3165 IFS=$as_save_IFS 3166 3167 if test $ac_prog_rejected = yes; then 3168 # We found a bogon in the path, so make sure we never use it. 3169 set dummy $ac_cv_prog_CC 3170 shift 3171 if test $# != 0; then 3172 # We chose a different compiler from the bogus one. 3173 # However, it has the same basename, so the bogon will be chosen 3174 # first if we set CC to just the basename; use the full file name. 3175 shift 3176 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3177 fi 3178 fi 3179 fi 3180 fi 3181 CC=$ac_cv_prog_CC 3182 if test -n "$CC"; then 3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3184 $as_echo "$CC" >&6; } 3185 else 3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3187 $as_echo "no" >&6; } 3188 fi 3189 3190 3191 fi 3192 if test -z "$CC"; then 3193 if test -n "$ac_tool_prefix"; then 3194 for ac_prog in cl.exe 3195 do 3196 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3197 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3199 $as_echo_n "checking for $ac_word... " >&6; } 3200 if ${ac_cv_prog_CC+:} false; then : 3201 $as_echo_n "(cached) " >&6 3202 else 3203 if test -n "$CC"; then 3204 ac_cv_prog_CC="$CC" # Let the user override the test. 3205 else 3206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3207 for as_dir in $PATH 3208 do 3209 IFS=$as_save_IFS 3210 test -z "$as_dir" && as_dir=. 3211 for ac_exec_ext in '' $ac_executable_extensions; do 3212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3213 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3215 break 2 3216 fi 3217 done 3218 done 3219 IFS=$as_save_IFS 3220 3221 fi 3222 fi 3223 CC=$ac_cv_prog_CC 3224 if test -n "$CC"; then 3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3226 $as_echo "$CC" >&6; } 3227 else 3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3229 $as_echo "no" >&6; } 3230 fi 3231 3232 3233 test -n "$CC" && break 3234 done 3235 fi 3236 if test -z "$CC"; then 3237 ac_ct_CC=$CC 3238 for ac_prog in cl.exe 3239 do 3240 # Extract the first word of "$ac_prog", so it can be a program name with args. 3241 set dummy $ac_prog; ac_word=$2 3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3243 $as_echo_n "checking for $ac_word... " >&6; } 3244 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3245 $as_echo_n "(cached) " >&6 3246 else 3247 if test -n "$ac_ct_CC"; then 3248 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3249 else 3250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3251 for as_dir in $PATH 3252 do 3253 IFS=$as_save_IFS 3254 test -z "$as_dir" && as_dir=. 3255 for ac_exec_ext in '' $ac_executable_extensions; do 3256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3257 ac_cv_prog_ac_ct_CC="$ac_prog" 3258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3259 break 2 3260 fi 3261 done 3262 done 3263 IFS=$as_save_IFS 3264 3265 fi 3266 fi 3267 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3268 if test -n "$ac_ct_CC"; then 3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3270 $as_echo "$ac_ct_CC" >&6; } 3271 else 3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3273 $as_echo "no" >&6; } 3274 fi 3275 3276 3277 test -n "$ac_ct_CC" && break 3278 done 3279 3280 if test "x$ac_ct_CC" = x; then 3281 CC="" 3282 else 3283 case $cross_compiling:$ac_tool_warned in 3284 yes:) 3285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3287 ac_tool_warned=yes ;; 3288 esac 3289 CC=$ac_ct_CC 3290 fi 3291 fi 3292 3293 fi 3294 3295 3296 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3298 as_fn_error $? "no acceptable C compiler found in \$PATH 3299 See \`config.log' for more details" "$LINENO" 5; } 3300 3301 # Provide some information about the compiler. 3302 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3303 set X $ac_compile 3304 ac_compiler=$2 3305 for ac_option in --version -v -V -qversion; do 3306 { { ac_try="$ac_compiler $ac_option >&5" 3307 case "(($ac_try" in 3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3309 *) ac_try_echo=$ac_try;; 3310 esac 3311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3312 $as_echo "$ac_try_echo"; } >&5 3313 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3314 ac_status=$? 3315 if test -s conftest.err; then 3316 sed '10a\ 3317 ... rest of stderr output deleted ... 3318 10q' conftest.err >conftest.er1 3319 cat conftest.er1 >&5 3320 fi 3321 rm -f conftest.er1 conftest.err 3322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3323 test $ac_status = 0; } 3324 done 3325 3326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3327 /* end confdefs.h. */ 3328 3329 int 3330 main () 3331 { 3332 3333 ; 3334 return 0; 3335 } 3336 _ACEOF 3337 ac_clean_files_save=$ac_clean_files 3338 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3339 # Try to create an executable without -o first, disregard a.out. 3340 # It will help us diagnose broken compilers, and finding out an intuition 3341 # of exeext. 3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3343 $as_echo_n "checking whether the C compiler works... " >&6; } 3344 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3345 3346 # The possible output files: 3347 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3348 3349 ac_rmfiles= 3350 for ac_file in $ac_files 3351 do 3352 case $ac_file in 3353 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3354 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3355 esac 3356 done 3357 rm -f $ac_rmfiles 3358 3359 if { { ac_try="$ac_link_default" 3360 case "(($ac_try" in 3361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3362 *) ac_try_echo=$ac_try;; 3363 esac 3364 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3365 $as_echo "$ac_try_echo"; } >&5 3366 (eval "$ac_link_default") 2>&5 3367 ac_status=$? 3368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3369 test $ac_status = 0; }; then : 3370 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3371 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3372 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3373 # so that the user can short-circuit this test for compilers unknown to 3374 # Autoconf. 3375 for ac_file in $ac_files '' 3376 do 3377 test -f "$ac_file" || continue 3378 case $ac_file in 3379 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3380 ;; 3381 [ab].out ) 3382 # We found the default executable, but exeext='' is most 3383 # certainly right. 3384 break;; 3385 *.* ) 3386 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3387 then :; else 3388 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3389 fi 3390 # We set ac_cv_exeext here because the later test for it is not 3391 # safe: cross compilers may not add the suffix if given an `-o' 3392 # argument, so we may need to know it at that point already. 3393 # Even if this section looks crufty: it has the advantage of 3394 # actually working. 3395 break;; 3396 * ) 3397 break;; 3398 esac 3399 done 3400 test "$ac_cv_exeext" = no && ac_cv_exeext= 3401 3402 else 3403 ac_file='' 3404 fi 3405 if test -z "$ac_file"; then : 3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3407 $as_echo "no" >&6; } 3408 $as_echo "$as_me: failed program was:" >&5 3409 sed 's/^/| /' conftest.$ac_ext >&5 3410 3411 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3413 as_fn_error 77 "C compiler cannot create executables 3414 See \`config.log' for more details" "$LINENO" 5; } 3415 else 3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3417 $as_echo "yes" >&6; } 3418 fi 3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3420 $as_echo_n "checking for C compiler default output file name... " >&6; } 3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3422 $as_echo "$ac_file" >&6; } 3423 ac_exeext=$ac_cv_exeext 3424 3425 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3426 ac_clean_files=$ac_clean_files_save 3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3428 $as_echo_n "checking for suffix of executables... " >&6; } 3429 if { { ac_try="$ac_link" 3430 case "(($ac_try" in 3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3432 *) ac_try_echo=$ac_try;; 3433 esac 3434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3435 $as_echo "$ac_try_echo"; } >&5 3436 (eval "$ac_link") 2>&5 3437 ac_status=$? 3438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3439 test $ac_status = 0; }; then : 3440 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3441 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3442 # work properly (i.e., refer to `conftest.exe'), while it won't with 3443 # `rm'. 3444 for ac_file in conftest.exe conftest conftest.*; do 3445 test -f "$ac_file" || continue 3446 case $ac_file in 3447 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3448 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3449 break;; 3450 * ) break;; 3451 esac 3452 done 3453 else 3454 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3456 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3457 See \`config.log' for more details" "$LINENO" 5; } 3458 fi 3459 rm -f conftest conftest$ac_cv_exeext 3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3461 $as_echo "$ac_cv_exeext" >&6; } 3462 3463 rm -f conftest.$ac_ext 3464 EXEEXT=$ac_cv_exeext 3465 ac_exeext=$EXEEXT 3466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3467 /* end confdefs.h. */ 3468 #include <stdio.h> 3469 int 3470 main () 3471 { 3472 FILE *f = fopen ("conftest.out", "w"); 3473 return ferror (f) || fclose (f) != 0; 3474 3475 ; 3476 return 0; 3477 } 3478 _ACEOF 3479 ac_clean_files="$ac_clean_files conftest.out" 3480 # Check that the compiler produces executables we can run. If not, either 3481 # the compiler is broken, or we cross compile. 3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3483 $as_echo_n "checking whether we are cross compiling... " >&6; } 3484 if test "$cross_compiling" != yes; then 3485 { { ac_try="$ac_link" 3486 case "(($ac_try" in 3487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3488 *) ac_try_echo=$ac_try;; 3489 esac 3490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3491 $as_echo "$ac_try_echo"; } >&5 3492 (eval "$ac_link") 2>&5 3493 ac_status=$? 3494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3495 test $ac_status = 0; } 3496 if { ac_try='./conftest$ac_cv_exeext' 3497 { { case "(($ac_try" in 3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3499 *) ac_try_echo=$ac_try;; 3500 esac 3501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3502 $as_echo "$ac_try_echo"; } >&5 3503 (eval "$ac_try") 2>&5 3504 ac_status=$? 3505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3506 test $ac_status = 0; }; }; then 3507 cross_compiling=no 3508 else 3509 if test "$cross_compiling" = maybe; then 3510 cross_compiling=yes 3511 else 3512 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3514 as_fn_error $? "cannot run C compiled programs. 3515 If you meant to cross compile, use \`--host'. 3516 See \`config.log' for more details" "$LINENO" 5; } 3517 fi 3518 fi 3519 fi 3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3521 $as_echo "$cross_compiling" >&6; } 3522 3523 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3524 ac_clean_files=$ac_clean_files_save 3525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3526 $as_echo_n "checking for suffix of object files... " >&6; } 3527 if ${ac_cv_objext+:} false; then : 3528 $as_echo_n "(cached) " >&6 3529 else 3530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3531 /* end confdefs.h. */ 3532 3533 int 3534 main () 3535 { 3536 3537 ; 3538 return 0; 3539 } 3540 _ACEOF 3541 rm -f conftest.o conftest.obj 3542 if { { ac_try="$ac_compile" 3543 case "(($ac_try" in 3544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3545 *) ac_try_echo=$ac_try;; 3546 esac 3547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3548 $as_echo "$ac_try_echo"; } >&5 3549 (eval "$ac_compile") 2>&5 3550 ac_status=$? 3551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3552 test $ac_status = 0; }; then : 3553 for ac_file in conftest.o conftest.obj conftest.*; do 3554 test -f "$ac_file" || continue; 3555 case $ac_file in 3556 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3557 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3558 break;; 3559 esac 3560 done 3561 else 3562 $as_echo "$as_me: failed program was:" >&5 3563 sed 's/^/| /' conftest.$ac_ext >&5 3564 3565 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3567 as_fn_error $? "cannot compute suffix of object files: cannot compile 3568 See \`config.log' for more details" "$LINENO" 5; } 3569 fi 3570 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3571 fi 3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3573 $as_echo "$ac_cv_objext" >&6; } 3574 OBJEXT=$ac_cv_objext 3575 ac_objext=$OBJEXT 3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3577 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3578 if ${ac_cv_c_compiler_gnu+:} false; then : 3579 $as_echo_n "(cached) " >&6 3580 else 3581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3582 /* end confdefs.h. */ 3583 3584 int 3585 main () 3586 { 3587 #ifndef __GNUC__ 3588 choke me 3589 #endif 3590 3591 ; 3592 return 0; 3593 } 3594 _ACEOF 3595 if ac_fn_c_try_compile "$LINENO"; then : 3596 ac_compiler_gnu=yes 3597 else 3598 ac_compiler_gnu=no 3599 fi 3600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3601 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3602 3603 fi 3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3605 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3606 if test $ac_compiler_gnu = yes; then 3607 GCC=yes 3608 else 3609 GCC= 3610 fi 3611 ac_test_CFLAGS=${CFLAGS+set} 3612 ac_save_CFLAGS=$CFLAGS 3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3614 $as_echo_n "checking whether $CC accepts -g... " >&6; } 3615 if ${ac_cv_prog_cc_g+:} false; then : 3616 $as_echo_n "(cached) " >&6 3617 else 3618 ac_save_c_werror_flag=$ac_c_werror_flag 3619 ac_c_werror_flag=yes 3620 ac_cv_prog_cc_g=no 3621 CFLAGS="-g" 3622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3623 /* end confdefs.h. */ 3624 3625 int 3626 main () 3627 { 3628 3629 ; 3630 return 0; 3631 } 3632 _ACEOF 3633 if ac_fn_c_try_compile "$LINENO"; then : 3634 ac_cv_prog_cc_g=yes 3635 else 3636 CFLAGS="" 3637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3638 /* end confdefs.h. */ 3639 3640 int 3641 main () 3642 { 3643 3644 ; 3645 return 0; 3646 } 3647 _ACEOF 3648 if ac_fn_c_try_compile "$LINENO"; then : 3649 3650 else 3651 ac_c_werror_flag=$ac_save_c_werror_flag 3652 CFLAGS="-g" 3653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3654 /* end confdefs.h. */ 3655 3656 int 3657 main () 3658 { 3659 3660 ; 3661 return 0; 3662 } 3663 _ACEOF 3664 if ac_fn_c_try_compile "$LINENO"; then : 3665 ac_cv_prog_cc_g=yes 3666 fi 3667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3668 fi 3669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3670 fi 3671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3672 ac_c_werror_flag=$ac_save_c_werror_flag 3673 fi 3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3675 $as_echo "$ac_cv_prog_cc_g" >&6; } 3676 if test "$ac_test_CFLAGS" = set; then 3677 CFLAGS=$ac_save_CFLAGS 3678 elif test $ac_cv_prog_cc_g = yes; then 3679 if test "$GCC" = yes; then 3680 CFLAGS="-g -O2" 3681 else 3682 CFLAGS="-g" 3683 fi 3684 else 3685 if test "$GCC" = yes; then 3686 CFLAGS="-O2" 3687 else 3688 CFLAGS= 3689 fi 3690 fi 3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3692 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3693 if ${ac_cv_prog_cc_c89+:} false; then : 3694 $as_echo_n "(cached) " >&6 3695 else 3696 ac_cv_prog_cc_c89=no 3697 ac_save_CC=$CC 3698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3699 /* end confdefs.h. */ 3700 #include <stdarg.h> 3701 #include <stdio.h> 3702 struct stat; 3703 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3704 struct buf { int x; }; 3705 FILE * (*rcsopen) (struct buf *, struct stat *, int); 3706 static char *e (p, i) 3707 char **p; 3708 int i; 3709 { 3710 return p[i]; 3711 } 3712 static char *f (char * (*g) (char **, int), char **p, ...) 3713 { 3714 char *s; 3715 va_list v; 3716 va_start (v,p); 3717 s = g (p, va_arg (v,int)); 3718 va_end (v); 3719 return s; 3720 } 3721 3722 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3723 function prototypes and stuff, but not '\xHH' hex character constants. 3724 These don't provoke an error unfortunately, instead are silently treated 3725 as 'x'. The following induces an error, until -std is added to get 3726 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3727 array size at least. It's necessary to write '\x00'==0 to get something 3728 that's true only with -std. */ 3729 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3730 3731 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3732 inside strings and character constants. */ 3733 #define FOO(x) 'x' 3734 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3735 3736 int test (int i, double x); 3737 struct s1 {int (*f) (int a);}; 3738 struct s2 {int (*f) (double a);}; 3739 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3740 int argc; 3741 char **argv; 3742 int 3743 main () 3744 { 3745 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3746 ; 3747 return 0; 3748 } 3749 _ACEOF 3750 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3751 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3752 do 3753 CC="$ac_save_CC $ac_arg" 3754 if ac_fn_c_try_compile "$LINENO"; then : 3755 ac_cv_prog_cc_c89=$ac_arg 3756 fi 3757 rm -f core conftest.err conftest.$ac_objext 3758 test "x$ac_cv_prog_cc_c89" != "xno" && break 3759 done 3760 rm -f conftest.$ac_ext 3761 CC=$ac_save_CC 3762 3763 fi 3764 # AC_CACHE_VAL 3765 case "x$ac_cv_prog_cc_c89" in 3766 x) 3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3768 $as_echo "none needed" >&6; } ;; 3769 xno) 3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3771 $as_echo "unsupported" >&6; } ;; 3772 *) 3773 CC="$CC $ac_cv_prog_cc_c89" 3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3775 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3776 esac 3777 if test "x$ac_cv_prog_cc_c89" != xno; then : 3778 3779 fi 3780 3781 ac_ext=c 3782 ac_cpp='$CPP $CPPFLAGS' 3783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3785 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3786 3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 3788 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 3789 if ${ac_cv_path_SED+:} false; then : 3790 $as_echo_n "(cached) " >&6 3791 else 3792 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3793 for ac_i in 1 2 3 4 5 6 7; do 3794 ac_script="$ac_script$as_nl$ac_script" 3795 done 3796 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3797 { ac_script=; unset ac_script;} 3798 if test -z "$SED"; then 3799 ac_path_SED_found=false 3800 # Loop through the user's path and test for each of PROGNAME-LIST 3801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3802 for as_dir in $PATH 3803 do 3804 IFS=$as_save_IFS 3805 test -z "$as_dir" && as_dir=. 3806 for ac_prog in sed gsed; do 3807 for ac_exec_ext in '' $ac_executable_extensions; do 3808 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3809 as_fn_executable_p "$ac_path_SED" || continue 3810 # Check for GNU ac_path_SED and select it if it is found. 3811 # Check for GNU $ac_path_SED 3812 case `"$ac_path_SED" --version 2>&1` in 3813 *GNU*) 3814 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3815 *) 3816 ac_count=0 3817 $as_echo_n 0123456789 >"conftest.in" 3818 while : 3819 do 3820 cat "conftest.in" "conftest.in" >"conftest.tmp" 3821 mv "conftest.tmp" "conftest.in" 3822 cp "conftest.in" "conftest.nl" 3823 $as_echo '' >> "conftest.nl" 3824 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3825 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3826 as_fn_arith $ac_count + 1 && ac_count=$as_val 3827 if test $ac_count -gt ${ac_path_SED_max-0}; then 3828 # Best one so far, save it but keep looking for a better one 3829 ac_cv_path_SED="$ac_path_SED" 3830 ac_path_SED_max=$ac_count 3831 fi 3832 # 10*(2^10) chars as input seems more than enough 3833 test $ac_count -gt 10 && break 3834 done 3835 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3836 esac 3837 3838 $ac_path_SED_found && break 3 3839 done 3840 done 3841 done 3842 IFS=$as_save_IFS 3843 if test -z "$ac_cv_path_SED"; then 3844 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 3845 fi 3846 else 3847 ac_cv_path_SED=$SED 3848 fi 3849 3850 fi 3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 3852 $as_echo "$ac_cv_path_SED" >&6; } 3853 SED="$ac_cv_path_SED" 3854 rm -f conftest.sed 3855 3856 test -z "$SED" && SED=sed 3857 Xsed="$SED -e 1s/^X//" 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3870 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3871 if ${ac_cv_path_GREP+:} false; then : 3872 $as_echo_n "(cached) " >&6 3873 else 3874 if test -z "$GREP"; then 3875 ac_path_GREP_found=false 3876 # Loop through the user's path and test for each of PROGNAME-LIST 3877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3878 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3879 do 3880 IFS=$as_save_IFS 3881 test -z "$as_dir" && as_dir=. 3882 for ac_prog in grep ggrep; do 3883 for ac_exec_ext in '' $ac_executable_extensions; do 3884 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3885 as_fn_executable_p "$ac_path_GREP" || continue 3886 # Check for GNU ac_path_GREP and select it if it is found. 3887 # Check for GNU $ac_path_GREP 3888 case `"$ac_path_GREP" --version 2>&1` in 3889 *GNU*) 3890 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3891 *) 3892 ac_count=0 3893 $as_echo_n 0123456789 >"conftest.in" 3894 while : 3895 do 3896 cat "conftest.in" "conftest.in" >"conftest.tmp" 3897 mv "conftest.tmp" "conftest.in" 3898 cp "conftest.in" "conftest.nl" 3899 $as_echo 'GREP' >> "conftest.nl" 3900 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3901 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3902 as_fn_arith $ac_count + 1 && ac_count=$as_val 3903 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3904 # Best one so far, save it but keep looking for a better one 3905 ac_cv_path_GREP="$ac_path_GREP" 3906 ac_path_GREP_max=$ac_count 3907 fi 3908 # 10*(2^10) chars as input seems more than enough 3909 test $ac_count -gt 10 && break 3910 done 3911 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3912 esac 3913 3914 $ac_path_GREP_found && break 3 3915 done 3916 done 3917 done 3918 IFS=$as_save_IFS 3919 if test -z "$ac_cv_path_GREP"; then 3920 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3921 fi 3922 else 3923 ac_cv_path_GREP=$GREP 3924 fi 3925 3926 fi 3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3928 $as_echo "$ac_cv_path_GREP" >&6; } 3929 GREP="$ac_cv_path_GREP" 3930 3931 3932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3933 $as_echo_n "checking for egrep... " >&6; } 3934 if ${ac_cv_path_EGREP+:} false; then : 3935 $as_echo_n "(cached) " >&6 3936 else 3937 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3938 then ac_cv_path_EGREP="$GREP -E" 3939 else 3940 if test -z "$EGREP"; then 3941 ac_path_EGREP_found=false 3942 # Loop through the user's path and test for each of PROGNAME-LIST 3943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3944 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3945 do 3946 IFS=$as_save_IFS 3947 test -z "$as_dir" && as_dir=. 3948 for ac_prog in egrep; do 3949 for ac_exec_ext in '' $ac_executable_extensions; do 3950 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3951 as_fn_executable_p "$ac_path_EGREP" || continue 3952 # Check for GNU ac_path_EGREP and select it if it is found. 3953 # Check for GNU $ac_path_EGREP 3954 case `"$ac_path_EGREP" --version 2>&1` in 3955 *GNU*) 3956 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3957 *) 3958 ac_count=0 3959 $as_echo_n 0123456789 >"conftest.in" 3960 while : 3961 do 3962 cat "conftest.in" "conftest.in" >"conftest.tmp" 3963 mv "conftest.tmp" "conftest.in" 3964 cp "conftest.in" "conftest.nl" 3965 $as_echo 'EGREP' >> "conftest.nl" 3966 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3967 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3968 as_fn_arith $ac_count + 1 && ac_count=$as_val 3969 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3970 # Best one so far, save it but keep looking for a better one 3971 ac_cv_path_EGREP="$ac_path_EGREP" 3972 ac_path_EGREP_max=$ac_count 3973 fi 3974 # 10*(2^10) chars as input seems more than enough 3975 test $ac_count -gt 10 && break 3976 done 3977 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3978 esac 3979 3980 $ac_path_EGREP_found && break 3 3981 done 3982 done 3983 done 3984 IFS=$as_save_IFS 3985 if test -z "$ac_cv_path_EGREP"; then 3986 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3987 fi 3988 else 3989 ac_cv_path_EGREP=$EGREP 3990 fi 3991 3992 fi 3993 fi 3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3995 $as_echo "$ac_cv_path_EGREP" >&6; } 3996 EGREP="$ac_cv_path_EGREP" 3997 3998 3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4000 $as_echo_n "checking for fgrep... " >&6; } 4001 if ${ac_cv_path_FGREP+:} false; then : 4002 $as_echo_n "(cached) " >&6 4003 else 4004 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4005 then ac_cv_path_FGREP="$GREP -F" 4006 else 4007 if test -z "$FGREP"; then 4008 ac_path_FGREP_found=false 4009 # Loop through the user's path and test for each of PROGNAME-LIST 4010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4011 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4012 do 4013 IFS=$as_save_IFS 4014 test -z "$as_dir" && as_dir=. 4015 for ac_prog in fgrep; do 4016 for ac_exec_ext in '' $ac_executable_extensions; do 4017 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4018 as_fn_executable_p "$ac_path_FGREP" || continue 4019 # Check for GNU ac_path_FGREP and select it if it is found. 4020 # Check for GNU $ac_path_FGREP 4021 case `"$ac_path_FGREP" --version 2>&1` in 4022 *GNU*) 4023 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4024 *) 4025 ac_count=0 4026 $as_echo_n 0123456789 >"conftest.in" 4027 while : 4028 do 4029 cat "conftest.in" "conftest.in" >"conftest.tmp" 4030 mv "conftest.tmp" "conftest.in" 4031 cp "conftest.in" "conftest.nl" 4032 $as_echo 'FGREP' >> "conftest.nl" 4033 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4034 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4035 as_fn_arith $ac_count + 1 && ac_count=$as_val 4036 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4037 # Best one so far, save it but keep looking for a better one 4038 ac_cv_path_FGREP="$ac_path_FGREP" 4039 ac_path_FGREP_max=$ac_count 4040 fi 4041 # 10*(2^10) chars as input seems more than enough 4042 test $ac_count -gt 10 && break 4043 done 4044 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4045 esac 4046 4047 $ac_path_FGREP_found && break 3 4048 done 4049 done 4050 done 4051 IFS=$as_save_IFS 4052 if test -z "$ac_cv_path_FGREP"; then 4053 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4054 fi 4055 else 4056 ac_cv_path_FGREP=$FGREP 4057 fi 4058 4059 fi 4060 fi 4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4062 $as_echo "$ac_cv_path_FGREP" >&6; } 4063 FGREP="$ac_cv_path_FGREP" 4064 4065 4066 test -z "$GREP" && GREP=grep 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 # Check whether --with-gnu-ld was given. 4087 if test "${with_gnu_ld+set}" = set; then : 4088 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4089 else 4090 with_gnu_ld=no 4091 fi 4092 4093 ac_prog=ld 4094 if test "$GCC" = yes; then 4095 # Check if gcc -print-prog-name=ld gives a path. 4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4097 $as_echo_n "checking for ld used by $CC... " >&6; } 4098 case $host in 4099 *-*-mingw*) 4100 # gcc leaves a trailing carriage return which upsets mingw 4101 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4102 *) 4103 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4104 esac 4105 case $ac_prog in 4106 # Accept absolute paths. 4107 [\\/]* | ?:[\\/]*) 4108 re_direlt='/[^/][^/]*/\.\./' 4109 # Canonicalize the pathname of ld 4110 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4111 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4112 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4113 done 4114 test -z "$LD" && LD="$ac_prog" 4115 ;; 4116 "") 4117 # If it fails, then pretend we aren't using GCC. 4118 ac_prog=ld 4119 ;; 4120 *) 4121 # If it is relative, then search for the first ld in PATH. 4122 with_gnu_ld=unknown 4123 ;; 4124 esac 4125 elif test "$with_gnu_ld" = yes; then 4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4127 $as_echo_n "checking for GNU ld... " >&6; } 4128 else 4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4130 $as_echo_n "checking for non-GNU ld... " >&6; } 4131 fi 4132 if ${lt_cv_path_LD+:} false; then : 4133 $as_echo_n "(cached) " >&6 4134 else 4135 if test -z "$LD"; then 4136 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4137 for ac_dir in $PATH; do 4138 IFS="$lt_save_ifs" 4139 test -z "$ac_dir" && ac_dir=. 4140 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4141 lt_cv_path_LD="$ac_dir/$ac_prog" 4142 # Check to see if the program is GNU ld. I'd rather use --version, 4143 # but apparently some variants of GNU ld only accept -v. 4144 # Break only if it was the GNU/non-GNU ld that we prefer. 4145 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4146 *GNU* | *'with BFD'*) 4147 test "$with_gnu_ld" != no && break 4148 ;; 4149 *) 4150 test "$with_gnu_ld" != yes && break 4151 ;; 4152 esac 4153 fi 4154 done 4155 IFS="$lt_save_ifs" 4156 else 4157 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4158 fi 4159 fi 4160 4161 LD="$lt_cv_path_LD" 4162 if test -n "$LD"; then 4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4164 $as_echo "$LD" >&6; } 4165 else 4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4167 $as_echo "no" >&6; } 4168 fi 4169 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4171 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4172 if ${lt_cv_prog_gnu_ld+:} false; then : 4173 $as_echo_n "(cached) " >&6 4174 else 4175 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4176 case `$LD -v 2>&1 </dev/null` in 4177 *GNU* | *'with BFD'*) 4178 lt_cv_prog_gnu_ld=yes 4179 ;; 4180 *) 4181 lt_cv_prog_gnu_ld=no 4182 ;; 4183 esac 4184 fi 4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4186 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 4187 with_gnu_ld=$lt_cv_prog_gnu_ld 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4198 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4199 if ${lt_cv_path_NM+:} false; then : 4200 $as_echo_n "(cached) " >&6 4201 else 4202 if test -n "$NM"; then 4203 # Let the user override the test. 4204 lt_cv_path_NM="$NM" 4205 else 4206 lt_nm_to_check="${ac_tool_prefix}nm" 4207 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4208 lt_nm_to_check="$lt_nm_to_check nm" 4209 fi 4210 for lt_tmp_nm in $lt_nm_to_check; do 4211 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4212 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4213 IFS="$lt_save_ifs" 4214 test -z "$ac_dir" && ac_dir=. 4215 tmp_nm="$ac_dir/$lt_tmp_nm" 4216 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4217 # Check to see if the nm accepts a BSD-compat flag. 4218 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4219 # nm: unknown option "B" ignored 4220 # Tru64's nm complains that /dev/null is an invalid object file 4221 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4222 */dev/null* | *'Invalid file or object type'*) 4223 lt_cv_path_NM="$tmp_nm -B" 4224 break 4225 ;; 4226 *) 4227 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4228 */dev/null*) 4229 lt_cv_path_NM="$tmp_nm -p" 4230 break 4231 ;; 4232 *) 4233 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4234 continue # so that we can try to find one that supports BSD flags 4235 ;; 4236 esac 4237 ;; 4238 esac 4239 fi 4240 done 4241 IFS="$lt_save_ifs" 4242 done 4243 : ${lt_cv_path_NM=no} 4244 fi 4245 fi 4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4247 $as_echo "$lt_cv_path_NM" >&6; } 4248 if test "$lt_cv_path_NM" != "no"; then 4249 NM="$lt_cv_path_NM" 4250 else 4251 # Didn't find any BSD compatible name lister, look for dumpbin. 4252 if test -n "$DUMPBIN"; then : 4253 # Let the user override the test. 4254 else 4255 if test -n "$ac_tool_prefix"; then 4256 for ac_prog in dumpbin "link -dump" 4257 do 4258 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4259 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4261 $as_echo_n "checking for $ac_word... " >&6; } 4262 if ${ac_cv_prog_DUMPBIN+:} false; then : 4263 $as_echo_n "(cached) " >&6 4264 else 4265 if test -n "$DUMPBIN"; then 4266 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4267 else 4268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4269 for as_dir in $PATH 4270 do 4271 IFS=$as_save_IFS 4272 test -z "$as_dir" && as_dir=. 4273 for ac_exec_ext in '' $ac_executable_extensions; do 4274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4275 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4277 break 2 4278 fi 4279 done 4280 done 4281 IFS=$as_save_IFS 4282 4283 fi 4284 fi 4285 DUMPBIN=$ac_cv_prog_DUMPBIN 4286 if test -n "$DUMPBIN"; then 4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4288 $as_echo "$DUMPBIN" >&6; } 4289 else 4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4291 $as_echo "no" >&6; } 4292 fi 4293 4294 4295 test -n "$DUMPBIN" && break 4296 done 4297 fi 4298 if test -z "$DUMPBIN"; then 4299 ac_ct_DUMPBIN=$DUMPBIN 4300 for ac_prog in dumpbin "link -dump" 4301 do 4302 # Extract the first word of "$ac_prog", so it can be a program name with args. 4303 set dummy $ac_prog; ac_word=$2 4304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4305 $as_echo_n "checking for $ac_word... " >&6; } 4306 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4307 $as_echo_n "(cached) " >&6 4308 else 4309 if test -n "$ac_ct_DUMPBIN"; then 4310 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4311 else 4312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4313 for as_dir in $PATH 4314 do 4315 IFS=$as_save_IFS 4316 test -z "$as_dir" && as_dir=. 4317 for ac_exec_ext in '' $ac_executable_extensions; do 4318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4319 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4321 break 2 4322 fi 4323 done 4324 done 4325 IFS=$as_save_IFS 4326 4327 fi 4328 fi 4329 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4330 if test -n "$ac_ct_DUMPBIN"; then 4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4332 $as_echo "$ac_ct_DUMPBIN" >&6; } 4333 else 4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4335 $as_echo "no" >&6; } 4336 fi 4337 4338 4339 test -n "$ac_ct_DUMPBIN" && break 4340 done 4341 4342 if test "x$ac_ct_DUMPBIN" = x; then 4343 DUMPBIN=":" 4344 else 4345 case $cross_compiling:$ac_tool_warned in 4346 yes:) 4347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4348 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4349 ac_tool_warned=yes ;; 4350 esac 4351 DUMPBIN=$ac_ct_DUMPBIN 4352 fi 4353 fi 4354 4355 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4356 *COFF*) 4357 DUMPBIN="$DUMPBIN -symbols" 4358 ;; 4359 *) 4360 DUMPBIN=: 4361 ;; 4362 esac 4363 fi 4364 4365 if test "$DUMPBIN" != ":"; then 4366 NM="$DUMPBIN" 4367 fi 4368 fi 4369 test -z "$NM" && NM=nm 4370 4371 4372 4373 4374 4375 4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4377 $as_echo_n "checking the name lister ($NM) interface... " >&6; } 4378 if ${lt_cv_nm_interface+:} false; then : 4379 $as_echo_n "(cached) " >&6 4380 else 4381 lt_cv_nm_interface="BSD nm" 4382 echo "int some_variable = 0;" > conftest.$ac_ext 4383 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4384 (eval "$ac_compile" 2>conftest.err) 4385 cat conftest.err >&5 4386 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4387 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4388 cat conftest.err >&5 4389 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4390 cat conftest.out >&5 4391 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4392 lt_cv_nm_interface="MS dumpbin" 4393 fi 4394 rm -f conftest* 4395 fi 4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4397 $as_echo "$lt_cv_nm_interface" >&6; } 4398 4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4400 $as_echo_n "checking whether ln -s works... " >&6; } 4401 LN_S=$as_ln_s 4402 if test "$LN_S" = "ln -s"; then 4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4404 $as_echo "yes" >&6; } 4405 else 4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4407 $as_echo "no, using $LN_S" >&6; } 4408 fi 4409 4410 # find the maximum length of command line arguments 4411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4412 $as_echo_n "checking the maximum length of command line arguments... " >&6; } 4413 if ${lt_cv_sys_max_cmd_len+:} false; then : 4414 $as_echo_n "(cached) " >&6 4415 else 4416 i=0 4417 teststring="ABCD" 4418 4419 case $build_os in 4420 msdosdjgpp*) 4421 # On DJGPP, this test can blow up pretty badly due to problems in libc 4422 # (any single argument exceeding 2000 bytes causes a buffer overrun 4423 # during glob expansion). Even if it were fixed, the result of this 4424 # check would be larger than it should be. 4425 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4426 ;; 4427 4428 gnu*) 4429 # Under GNU Hurd, this test is not required because there is 4430 # no limit to the length of command line arguments. 4431 # Libtool will interpret -1 as no limit whatsoever 4432 lt_cv_sys_max_cmd_len=-1; 4433 ;; 4434 4435 cygwin* | mingw* | cegcc*) 4436 # On Win9x/ME, this test blows up -- it succeeds, but takes 4437 # about 5 minutes as the teststring grows exponentially. 4438 # Worse, since 9x/ME are not pre-emptively multitasking, 4439 # you end up with a "frozen" computer, even though with patience 4440 # the test eventually succeeds (with a max line length of 256k). 4441 # Instead, let's just punt: use the minimum linelength reported by 4442 # all of the supported platforms: 8192 (on NT/2K/XP). 4443 lt_cv_sys_max_cmd_len=8192; 4444 ;; 4445 4446 mint*) 4447 # On MiNT this can take a long time and run out of memory. 4448 lt_cv_sys_max_cmd_len=8192; 4449 ;; 4450 4451 amigaos*) 4452 # On AmigaOS with pdksh, this test takes hours, literally. 4453 # So we just punt and use a minimum line length of 8192. 4454 lt_cv_sys_max_cmd_len=8192; 4455 ;; 4456 4457 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4458 # This has been around since 386BSD, at least. Likely further. 4459 if test -x /sbin/sysctl; then 4460 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4461 elif test -x /usr/sbin/sysctl; then 4462 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4463 else 4464 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4465 fi 4466 # And add a safety zone 4467 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4468 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4469 ;; 4470 4471 interix*) 4472 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4473 lt_cv_sys_max_cmd_len=196608 4474 ;; 4475 4476 os2*) 4477 # The test takes a long time on OS/2. 4478 lt_cv_sys_max_cmd_len=8192 4479 ;; 4480 4481 osf*) 4482 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4483 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4484 # nice to cause kernel panics so lets avoid the loop below. 4485 # First set a reasonable default. 4486 lt_cv_sys_max_cmd_len=16384 4487 # 4488 if test -x /sbin/sysconfig; then 4489 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4490 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4491 esac 4492 fi 4493 ;; 4494 sco3.2v5*) 4495 lt_cv_sys_max_cmd_len=102400 4496 ;; 4497 sysv5* | sco5v6* | sysv4.2uw2*) 4498 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4499 if test -n "$kargmax"; then 4500 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4501 else 4502 lt_cv_sys_max_cmd_len=32768 4503 fi 4504 ;; 4505 *) 4506 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4507 if test -n "$lt_cv_sys_max_cmd_len"; then 4508 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4509 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4510 else 4511 # Make teststring a little bigger before we do anything with it. 4512 # a 1K string should be a reasonable start. 4513 for i in 1 2 3 4 5 6 7 8 ; do 4514 teststring=$teststring$teststring 4515 done 4516 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4517 # If test is not a shell built-in, we'll probably end up computing a 4518 # maximum length that is only half of the actual maximum length, but 4519 # we can't tell. 4520 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 4521 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4522 test $i != 17 # 1/2 MB should be enough 4523 do 4524 i=`expr $i + 1` 4525 teststring=$teststring$teststring 4526 done 4527 # Only check the string length outside the loop. 4528 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4529 teststring= 4530 # Add a significant safety factor because C++ compilers can tack on 4531 # massive amounts of additional arguments before passing them to the 4532 # linker. It appears as though 1/2 is a usable value. 4533 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4534 fi 4535 ;; 4536 esac 4537 4538 fi 4539 4540 if test -n $lt_cv_sys_max_cmd_len ; then 4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4542 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4543 else 4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4545 $as_echo "none" >&6; } 4546 fi 4547 max_cmd_len=$lt_cv_sys_max_cmd_len 4548 4549 4550 4551 4552 4553 4554 : ${CP="cp -f"} 4555 : ${MV="mv -f"} 4556 : ${RM="rm -f"} 4557 4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4559 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4560 # Try some XSI features 4561 xsi_shell=no 4562 ( _lt_dummy="a/b/c" 4563 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 4564 = c,a/b,b/c, \ 4565 && eval 'test $(( 1 + 1 )) -eq 2 \ 4566 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4567 && xsi_shell=yes 4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4569 $as_echo "$xsi_shell" >&6; } 4570 4571 4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4573 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4574 lt_shell_append=no 4575 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4576 >/dev/null 2>&1 \ 4577 && lt_shell_append=yes 4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4579 $as_echo "$lt_shell_append" >&6; } 4580 4581 4582 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4583 lt_unset=unset 4584 else 4585 lt_unset=false 4586 fi 4587 4588 4589 4590 4591 4592 # test EBCDIC or ASCII 4593 case `echo X|tr X '\101'` in 4594 A) # ASCII based system 4595 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4596 lt_SP2NL='tr \040 \012' 4597 lt_NL2SP='tr \015\012 \040\040' 4598 ;; 4599 *) # EBCDIC based system 4600 lt_SP2NL='tr \100 \n' 4601 lt_NL2SP='tr \r\n \100\100' 4602 ;; 4603 esac 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4614 $as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4615 if ${lt_cv_to_host_file_cmd+:} false; then : 4616 $as_echo_n "(cached) " >&6 4617 else 4618 case $host in 4619 *-*-mingw* ) 4620 case $build in 4621 *-*-mingw* ) # actually msys 4622 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4623 ;; 4624 *-*-cygwin* ) 4625 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4626 ;; 4627 * ) # otherwise, assume *nix 4628 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4629 ;; 4630 esac 4631 ;; 4632 *-*-cygwin* ) 4633 case $build in 4634 *-*-mingw* ) # actually msys 4635 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4636 ;; 4637 *-*-cygwin* ) 4638 lt_cv_to_host_file_cmd=func_convert_file_noop 4639 ;; 4640 * ) # otherwise, assume *nix 4641 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4642 ;; 4643 esac 4644 ;; 4645 * ) # unhandled hosts (and "normal" native builds) 4646 lt_cv_to_host_file_cmd=func_convert_file_noop 4647 ;; 4648 esac 4649 4650 fi 4651 4652 to_host_file_cmd=$lt_cv_to_host_file_cmd 4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4654 $as_echo "$lt_cv_to_host_file_cmd" >&6; } 4655 4656 4657 4658 4659 4660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4661 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4662 if ${lt_cv_to_tool_file_cmd+:} false; then : 4663 $as_echo_n "(cached) " >&6 4664 else 4665 #assume ordinary cross tools, or native build. 4666 lt_cv_to_tool_file_cmd=func_convert_file_noop 4667 case $host in 4668 *-*-mingw* ) 4669 case $build in 4670 *-*-mingw* ) # actually msys 4671 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4672 ;; 4673 esac 4674 ;; 4675 esac 4676 4677 fi 4678 4679 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4681 $as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4682 4683 4684 4685 4686 4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4688 $as_echo_n "checking for $LD option to reload object files... " >&6; } 4689 if ${lt_cv_ld_reload_flag+:} false; then : 4690 $as_echo_n "(cached) " >&6 4691 else 4692 lt_cv_ld_reload_flag='-r' 4693 fi 4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4695 $as_echo "$lt_cv_ld_reload_flag" >&6; } 4696 reload_flag=$lt_cv_ld_reload_flag 4697 case $reload_flag in 4698 "" | " "*) ;; 4699 *) reload_flag=" $reload_flag" ;; 4700 esac 4701 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4702 case $host_os in 4703 cygwin* | mingw* | pw32* | cegcc*) 4704 if test "$GCC" != yes; then 4705 reload_cmds=false 4706 fi 4707 ;; 4708 darwin*) 4709 if test "$GCC" = yes; then 4710 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4711 else 4712 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4713 fi 4714 ;; 4715 esac 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 if test -n "$ac_tool_prefix"; then 4726 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4727 set dummy ${ac_tool_prefix}objdump; ac_word=$2 4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4729 $as_echo_n "checking for $ac_word... " >&6; } 4730 if ${ac_cv_prog_OBJDUMP+:} false; then : 4731 $as_echo_n "(cached) " >&6 4732 else 4733 if test -n "$OBJDUMP"; then 4734 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4735 else 4736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4737 for as_dir in $PATH 4738 do 4739 IFS=$as_save_IFS 4740 test -z "$as_dir" && as_dir=. 4741 for ac_exec_ext in '' $ac_executable_extensions; do 4742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4743 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4745 break 2 4746 fi 4747 done 4748 done 4749 IFS=$as_save_IFS 4750 4751 fi 4752 fi 4753 OBJDUMP=$ac_cv_prog_OBJDUMP 4754 if test -n "$OBJDUMP"; then 4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4756 $as_echo "$OBJDUMP" >&6; } 4757 else 4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4759 $as_echo "no" >&6; } 4760 fi 4761 4762 4763 fi 4764 if test -z "$ac_cv_prog_OBJDUMP"; then 4765 ac_ct_OBJDUMP=$OBJDUMP 4766 # Extract the first word of "objdump", so it can be a program name with args. 4767 set dummy objdump; ac_word=$2 4768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4769 $as_echo_n "checking for $ac_word... " >&6; } 4770 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 4771 $as_echo_n "(cached) " >&6 4772 else 4773 if test -n "$ac_ct_OBJDUMP"; then 4774 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4775 else 4776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4777 for as_dir in $PATH 4778 do 4779 IFS=$as_save_IFS 4780 test -z "$as_dir" && as_dir=. 4781 for ac_exec_ext in '' $ac_executable_extensions; do 4782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4783 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4785 break 2 4786 fi 4787 done 4788 done 4789 IFS=$as_save_IFS 4790 4791 fi 4792 fi 4793 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4794 if test -n "$ac_ct_OBJDUMP"; then 4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4796 $as_echo "$ac_ct_OBJDUMP" >&6; } 4797 else 4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4799 $as_echo "no" >&6; } 4800 fi 4801 4802 if test "x$ac_ct_OBJDUMP" = x; then 4803 OBJDUMP="false" 4804 else 4805 case $cross_compiling:$ac_tool_warned in 4806 yes:) 4807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4809 ac_tool_warned=yes ;; 4810 esac 4811 OBJDUMP=$ac_ct_OBJDUMP 4812 fi 4813 else 4814 OBJDUMP="$ac_cv_prog_OBJDUMP" 4815 fi 4816 4817 test -z "$OBJDUMP" && OBJDUMP=objdump 4818 4819 4820 4821 4822 4823 4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 4825 $as_echo_n "checking how to recognize dependent libraries... " >&6; } 4826 if ${lt_cv_deplibs_check_method+:} false; then : 4827 $as_echo_n "(cached) " >&6 4828 else 4829 lt_cv_file_magic_cmd='$MAGIC_CMD' 4830 lt_cv_file_magic_test_file= 4831 lt_cv_deplibs_check_method='unknown' 4832 # Need to set the preceding variable on all platforms that support 4833 # interlibrary dependencies. 4834 # 'none' -- dependencies not supported. 4835 # `unknown' -- same as none, but documents that we really don't know. 4836 # 'pass_all' -- all dependencies passed with no checks. 4837 # 'test_compile' -- check by making test program. 4838 # 'file_magic [[regex]]' -- check by looking for files in library path 4839 # which responds to the $file_magic_cmd with a given extended regex. 4840 # If you have `file' or equivalent on your system and you're not sure 4841 # whether `pass_all' will *always* work, you probably want this one. 4842 4843 case $host_os in 4844 aix[4-9]*) 4845 lt_cv_deplibs_check_method=pass_all 4846 ;; 4847 4848 beos*) 4849 lt_cv_deplibs_check_method=pass_all 4850 ;; 4851 4852 bsdi[45]*) 4853 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4854 lt_cv_file_magic_cmd='/usr/bin/file -L' 4855 lt_cv_file_magic_test_file=/shlib/libc.so 4856 ;; 4857 4858 cygwin*) 4859 # func_win32_libid is a shell function defined in ltmain.sh 4860 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4861 lt_cv_file_magic_cmd='func_win32_libid' 4862 lt_cv_deplibs_check_method=pass_all 4863 ;; 4864 4865 mingw* | pw32*) 4866 # Base MSYS/MinGW do not provide the 'file' command needed by 4867 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4868 # unless we find 'file', for example because we are cross-compiling. 4869 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 4870 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 4871 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4872 lt_cv_file_magic_cmd='func_win32_libid' 4873 else 4874 # Keep this pattern in sync with the one in func_win32_libid. 4875 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 4876 lt_cv_file_magic_cmd='$OBJDUMP -f' 4877 fi 4878 lt_cv_deplibs_check_method=pass_all 4879 ;; 4880 4881 cegcc*) 4882 # use the weaker test based on 'objdump'. See mingw*. 4883 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 4884 lt_cv_file_magic_cmd='$OBJDUMP -f' 4885 ;; 4886 4887 darwin* | rhapsody*) 4888 lt_cv_deplibs_check_method=pass_all 4889 ;; 4890 4891 freebsd* | dragonfly*) 4892 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4893 case $host_cpu in 4894 i*86 ) 4895 # Not sure whether the presence of OpenBSD here was a mistake. 4896 # Let's accept both of them until this is cleared up. 4897 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4898 lt_cv_file_magic_cmd=/usr/bin/file 4899 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4900 ;; 4901 esac 4902 else 4903 lt_cv_deplibs_check_method=pass_all 4904 fi 4905 ;; 4906 4907 gnu*) 4908 lt_cv_deplibs_check_method=pass_all 4909 ;; 4910 4911 haiku*) 4912 lt_cv_deplibs_check_method=pass_all 4913 ;; 4914 4915 hpux10.20* | hpux11*) 4916 lt_cv_file_magic_cmd=/usr/bin/file 4917 case $host_cpu in 4918 ia64*) 4919 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4920 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4921 ;; 4922 hppa*64*) 4923 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]' 4924 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4925 ;; 4926 *) 4927 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 4928 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4929 ;; 4930 esac 4931 ;; 4932 4933 interix[3-9]*) 4934 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4935 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4936 ;; 4937 4938 irix5* | irix6* | nonstopux*) 4939 case $LD in 4940 *-32|*"-32 ") libmagic=32-bit;; 4941 *-n32|*"-n32 ") libmagic=N32;; 4942 *-64|*"-64 ") libmagic=64-bit;; 4943 *) libmagic=never-match;; 4944 esac 4945 lt_cv_deplibs_check_method=pass_all 4946 ;; 4947 4948 # This must be glibc/ELF. 4949 linux* | k*bsd*-gnu | kopensolaris*-gnu) 4950 lt_cv_deplibs_check_method=pass_all 4951 ;; 4952 4953 netbsd*) 4954 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4955 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4956 else 4957 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4958 fi 4959 ;; 4960 4961 newos6*) 4962 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4963 lt_cv_file_magic_cmd=/usr/bin/file 4964 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4965 ;; 4966 4967 *nto* | *qnx*) 4968 lt_cv_deplibs_check_method=pass_all 4969 ;; 4970 4971 openbsd*) 4972 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4973 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4974 else 4975 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4976 fi 4977 ;; 4978 4979 osf3* | osf4* | osf5*) 4980 lt_cv_deplibs_check_method=pass_all 4981 ;; 4982 4983 rdos*) 4984 lt_cv_deplibs_check_method=pass_all 4985 ;; 4986 4987 solaris*) 4988 lt_cv_deplibs_check_method=pass_all 4989 ;; 4990 4991 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4992 lt_cv_deplibs_check_method=pass_all 4993 ;; 4994 4995 sysv4 | sysv4.3*) 4996 case $host_vendor in 4997 motorola) 4998 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]' 4999 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5000 ;; 5001 ncr) 5002 lt_cv_deplibs_check_method=pass_all 5003 ;; 5004 sequent) 5005 lt_cv_file_magic_cmd='/bin/file' 5006 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5007 ;; 5008 sni) 5009 lt_cv_file_magic_cmd='/bin/file' 5010 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5011 lt_cv_file_magic_test_file=/lib/libc.so 5012 ;; 5013 siemens) 5014 lt_cv_deplibs_check_method=pass_all 5015 ;; 5016 pc) 5017 lt_cv_deplibs_check_method=pass_all 5018 ;; 5019 esac 5020 ;; 5021 5022 tpf*) 5023 lt_cv_deplibs_check_method=pass_all 5024 ;; 5025 esac 5026 5027 fi 5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5029 $as_echo "$lt_cv_deplibs_check_method" >&6; } 5030 5031 file_magic_glob= 5032 want_nocaseglob=no 5033 if test "$build" = "$host"; then 5034 case $host_os in 5035 mingw* | pw32*) 5036 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5037 want_nocaseglob=yes 5038 else 5039 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5040 fi 5041 ;; 5042 esac 5043 fi 5044 5045 file_magic_cmd=$lt_cv_file_magic_cmd 5046 deplibs_check_method=$lt_cv_deplibs_check_method 5047 test -z "$deplibs_check_method" && deplibs_check_method=unknown 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 if test -n "$ac_tool_prefix"; then 5071 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5072 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5074 $as_echo_n "checking for $ac_word... " >&6; } 5075 if ${ac_cv_prog_DLLTOOL+:} false; then : 5076 $as_echo_n "(cached) " >&6 5077 else 5078 if test -n "$DLLTOOL"; then 5079 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5080 else 5081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5082 for as_dir in $PATH 5083 do 5084 IFS=$as_save_IFS 5085 test -z "$as_dir" && as_dir=. 5086 for ac_exec_ext in '' $ac_executable_extensions; do 5087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5088 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5090 break 2 5091 fi 5092 done 5093 done 5094 IFS=$as_save_IFS 5095 5096 fi 5097 fi 5098 DLLTOOL=$ac_cv_prog_DLLTOOL 5099 if test -n "$DLLTOOL"; then 5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5101 $as_echo "$DLLTOOL" >&6; } 5102 else 5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5104 $as_echo "no" >&6; } 5105 fi 5106 5107 5108 fi 5109 if test -z "$ac_cv_prog_DLLTOOL"; then 5110 ac_ct_DLLTOOL=$DLLTOOL 5111 # Extract the first word of "dlltool", so it can be a program name with args. 5112 set dummy dlltool; ac_word=$2 5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5114 $as_echo_n "checking for $ac_word... " >&6; } 5115 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5116 $as_echo_n "(cached) " >&6 5117 else 5118 if test -n "$ac_ct_DLLTOOL"; then 5119 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5120 else 5121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5122 for as_dir in $PATH 5123 do 5124 IFS=$as_save_IFS 5125 test -z "$as_dir" && as_dir=. 5126 for ac_exec_ext in '' $ac_executable_extensions; do 5127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5128 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5130 break 2 5131 fi 5132 done 5133 done 5134 IFS=$as_save_IFS 5135 5136 fi 5137 fi 5138 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5139 if test -n "$ac_ct_DLLTOOL"; then 5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5141 $as_echo "$ac_ct_DLLTOOL" >&6; } 5142 else 5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5144 $as_echo "no" >&6; } 5145 fi 5146 5147 if test "x$ac_ct_DLLTOOL" = x; then 5148 DLLTOOL="false" 5149 else 5150 case $cross_compiling:$ac_tool_warned in 5151 yes:) 5152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5154 ac_tool_warned=yes ;; 5155 esac 5156 DLLTOOL=$ac_ct_DLLTOOL 5157 fi 5158 else 5159 DLLTOOL="$ac_cv_prog_DLLTOOL" 5160 fi 5161 5162 test -z "$DLLTOOL" && DLLTOOL=dlltool 5163 5164 5165 5166 5167 5168 5169 5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5171 $as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5172 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5173 $as_echo_n "(cached) " >&6 5174 else 5175 lt_cv_sharedlib_from_linklib_cmd='unknown' 5176 5177 case $host_os in 5178 cygwin* | mingw* | pw32* | cegcc*) 5179 # two different shell functions defined in ltmain.sh 5180 # decide which to use based on capabilities of $DLLTOOL 5181 case `$DLLTOOL --help 2>&1` in 5182 *--identify-strict*) 5183 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5184 ;; 5185 *) 5186 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5187 ;; 5188 esac 5189 ;; 5190 *) 5191 # fallback: assume linklib IS sharedlib 5192 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5193 ;; 5194 esac 5195 5196 fi 5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5198 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5199 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5200 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5201 5202 5203 5204 5205 5206 5207 5208 5209 if test -n "$ac_tool_prefix"; then 5210 for ac_prog in ar 5211 do 5212 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5213 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5215 $as_echo_n "checking for $ac_word... " >&6; } 5216 if ${ac_cv_prog_AR+:} false; then : 5217 $as_echo_n "(cached) " >&6 5218 else 5219 if test -n "$AR"; then 5220 ac_cv_prog_AR="$AR" # Let the user override the test. 5221 else 5222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5223 for as_dir in $PATH 5224 do 5225 IFS=$as_save_IFS 5226 test -z "$as_dir" && as_dir=. 5227 for ac_exec_ext in '' $ac_executable_extensions; do 5228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5229 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5231 break 2 5232 fi 5233 done 5234 done 5235 IFS=$as_save_IFS 5236 5237 fi 5238 fi 5239 AR=$ac_cv_prog_AR 5240 if test -n "$AR"; then 5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5242 $as_echo "$AR" >&6; } 5243 else 5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5245 $as_echo "no" >&6; } 5246 fi 5247 5248 5249 test -n "$AR" && break 5250 done 5251 fi 5252 if test -z "$AR"; then 5253 ac_ct_AR=$AR 5254 for ac_prog in ar 5255 do 5256 # Extract the first word of "$ac_prog", so it can be a program name with args. 5257 set dummy $ac_prog; ac_word=$2 5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5259 $as_echo_n "checking for $ac_word... " >&6; } 5260 if ${ac_cv_prog_ac_ct_AR+:} false; then : 5261 $as_echo_n "(cached) " >&6 5262 else 5263 if test -n "$ac_ct_AR"; then 5264 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5265 else 5266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5267 for as_dir in $PATH 5268 do 5269 IFS=$as_save_IFS 5270 test -z "$as_dir" && as_dir=. 5271 for ac_exec_ext in '' $ac_executable_extensions; do 5272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5273 ac_cv_prog_ac_ct_AR="$ac_prog" 5274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5275 break 2 5276 fi 5277 done 5278 done 5279 IFS=$as_save_IFS 5280 5281 fi 5282 fi 5283 ac_ct_AR=$ac_cv_prog_ac_ct_AR 5284 if test -n "$ac_ct_AR"; then 5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5286 $as_echo "$ac_ct_AR" >&6; } 5287 else 5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5289 $as_echo "no" >&6; } 5290 fi 5291 5292 5293 test -n "$ac_ct_AR" && break 5294 done 5295 5296 if test "x$ac_ct_AR" = x; then 5297 AR="false" 5298 else 5299 case $cross_compiling:$ac_tool_warned in 5300 yes:) 5301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5302 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5303 ac_tool_warned=yes ;; 5304 esac 5305 AR=$ac_ct_AR 5306 fi 5307 fi 5308 5309 : ${AR=ar} 5310 : ${AR_FLAGS=cru} 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5323 $as_echo_n "checking for archiver @FILE support... " >&6; } 5324 if ${lt_cv_ar_at_file+:} false; then : 5325 $as_echo_n "(cached) " >&6 5326 else 5327 lt_cv_ar_at_file=no 5328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5329 /* end confdefs.h. */ 5330 5331 int 5332 main () 5333 { 5334 5335 ; 5336 return 0; 5337 } 5338 _ACEOF 5339 if ac_fn_c_try_compile "$LINENO"; then : 5340 echo conftest.$ac_objext > conftest.lst 5341 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5342 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5343 (eval $lt_ar_try) 2>&5 5344 ac_status=$? 5345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5346 test $ac_status = 0; } 5347 if test "$ac_status" -eq 0; then 5348 # Ensure the archiver fails upon bogus file names. 5349 rm -f conftest.$ac_objext libconftest.a 5350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5351 (eval $lt_ar_try) 2>&5 5352 ac_status=$? 5353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5354 test $ac_status = 0; } 5355 if test "$ac_status" -ne 0; then 5356 lt_cv_ar_at_file=@ 5357 fi 5358 fi 5359 rm -f conftest.* libconftest.a 5360 5361 fi 5362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5363 5364 fi 5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5366 $as_echo "$lt_cv_ar_at_file" >&6; } 5367 5368 if test "x$lt_cv_ar_at_file" = xno; then 5369 archiver_list_spec= 5370 else 5371 archiver_list_spec=$lt_cv_ar_at_file 5372 fi 5373 5374 5375 5376 5377 5378 5379 5380 if test -n "$ac_tool_prefix"; then 5381 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5382 set dummy ${ac_tool_prefix}strip; ac_word=$2 5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5384 $as_echo_n "checking for $ac_word... " >&6; } 5385 if ${ac_cv_prog_STRIP+:} false; then : 5386 $as_echo_n "(cached) " >&6 5387 else 5388 if test -n "$STRIP"; then 5389 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5390 else 5391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5392 for as_dir in $PATH 5393 do 5394 IFS=$as_save_IFS 5395 test -z "$as_dir" && as_dir=. 5396 for ac_exec_ext in '' $ac_executable_extensions; do 5397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5398 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5400 break 2 5401 fi 5402 done 5403 done 5404 IFS=$as_save_IFS 5405 5406 fi 5407 fi 5408 STRIP=$ac_cv_prog_STRIP 5409 if test -n "$STRIP"; then 5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5411 $as_echo "$STRIP" >&6; } 5412 else 5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5414 $as_echo "no" >&6; } 5415 fi 5416 5417 5418 fi 5419 if test -z "$ac_cv_prog_STRIP"; then 5420 ac_ct_STRIP=$STRIP 5421 # Extract the first word of "strip", so it can be a program name with args. 5422 set dummy strip; ac_word=$2 5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5424 $as_echo_n "checking for $ac_word... " >&6; } 5425 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5426 $as_echo_n "(cached) " >&6 5427 else 5428 if test -n "$ac_ct_STRIP"; then 5429 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5430 else 5431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5432 for as_dir in $PATH 5433 do 5434 IFS=$as_save_IFS 5435 test -z "$as_dir" && as_dir=. 5436 for ac_exec_ext in '' $ac_executable_extensions; do 5437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5438 ac_cv_prog_ac_ct_STRIP="strip" 5439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5440 break 2 5441 fi 5442 done 5443 done 5444 IFS=$as_save_IFS 5445 5446 fi 5447 fi 5448 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5449 if test -n "$ac_ct_STRIP"; then 5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5451 $as_echo "$ac_ct_STRIP" >&6; } 5452 else 5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5454 $as_echo "no" >&6; } 5455 fi 5456 5457 if test "x$ac_ct_STRIP" = x; then 5458 STRIP=":" 5459 else 5460 case $cross_compiling:$ac_tool_warned in 5461 yes:) 5462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5464 ac_tool_warned=yes ;; 5465 esac 5466 STRIP=$ac_ct_STRIP 5467 fi 5468 else 5469 STRIP="$ac_cv_prog_STRIP" 5470 fi 5471 5472 test -z "$STRIP" && STRIP=: 5473 5474 5475 5476 5477 5478 5479 if test -n "$ac_tool_prefix"; then 5480 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5481 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5483 $as_echo_n "checking for $ac_word... " >&6; } 5484 if ${ac_cv_prog_RANLIB+:} false; then : 5485 $as_echo_n "(cached) " >&6 5486 else 5487 if test -n "$RANLIB"; then 5488 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5489 else 5490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5491 for as_dir in $PATH 5492 do 5493 IFS=$as_save_IFS 5494 test -z "$as_dir" && as_dir=. 5495 for ac_exec_ext in '' $ac_executable_extensions; do 5496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5497 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5499 break 2 5500 fi 5501 done 5502 done 5503 IFS=$as_save_IFS 5504 5505 fi 5506 fi 5507 RANLIB=$ac_cv_prog_RANLIB 5508 if test -n "$RANLIB"; then 5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5510 $as_echo "$RANLIB" >&6; } 5511 else 5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5513 $as_echo "no" >&6; } 5514 fi 5515 5516 5517 fi 5518 if test -z "$ac_cv_prog_RANLIB"; then 5519 ac_ct_RANLIB=$RANLIB 5520 # Extract the first word of "ranlib", so it can be a program name with args. 5521 set dummy ranlib; ac_word=$2 5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5523 $as_echo_n "checking for $ac_word... " >&6; } 5524 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5525 $as_echo_n "(cached) " >&6 5526 else 5527 if test -n "$ac_ct_RANLIB"; then 5528 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5529 else 5530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5531 for as_dir in $PATH 5532 do 5533 IFS=$as_save_IFS 5534 test -z "$as_dir" && as_dir=. 5535 for ac_exec_ext in '' $ac_executable_extensions; do 5536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5537 ac_cv_prog_ac_ct_RANLIB="ranlib" 5538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5539 break 2 5540 fi 5541 done 5542 done 5543 IFS=$as_save_IFS 5544 5545 fi 5546 fi 5547 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5548 if test -n "$ac_ct_RANLIB"; then 5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5550 $as_echo "$ac_ct_RANLIB" >&6; } 5551 else 5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5553 $as_echo "no" >&6; } 5554 fi 5555 5556 if test "x$ac_ct_RANLIB" = x; then 5557 RANLIB=":" 5558 else 5559 case $cross_compiling:$ac_tool_warned in 5560 yes:) 5561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5562 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5563 ac_tool_warned=yes ;; 5564 esac 5565 RANLIB=$ac_ct_RANLIB 5566 fi 5567 else 5568 RANLIB="$ac_cv_prog_RANLIB" 5569 fi 5570 5571 test -z "$RANLIB" && RANLIB=: 5572 5573 5574 5575 5576 5577 5578 # Determine commands to create old-style static archives. 5579 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5580 old_postinstall_cmds='chmod 644 $oldlib' 5581 old_postuninstall_cmds= 5582 5583 if test -n "$RANLIB"; then 5584 case $host_os in 5585 openbsd*) 5586 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5587 ;; 5588 *) 5589 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5590 ;; 5591 esac 5592 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5593 fi 5594 5595 case $host_os in 5596 darwin*) 5597 lock_old_archive_extraction=yes ;; 5598 *) 5599 lock_old_archive_extraction=no ;; 5600 esac 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 for ac_prog in gawk mawk nawk awk 5623 do 5624 # Extract the first word of "$ac_prog", so it can be a program name with args. 5625 set dummy $ac_prog; ac_word=$2 5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5627 $as_echo_n "checking for $ac_word... " >&6; } 5628 if ${ac_cv_prog_AWK+:} false; then : 5629 $as_echo_n "(cached) " >&6 5630 else 5631 if test -n "$AWK"; then 5632 ac_cv_prog_AWK="$AWK" # Let the user override the test. 5633 else 5634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5635 for as_dir in $PATH 5636 do 5637 IFS=$as_save_IFS 5638 test -z "$as_dir" && as_dir=. 5639 for ac_exec_ext in '' $ac_executable_extensions; do 5640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5641 ac_cv_prog_AWK="$ac_prog" 5642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5643 break 2 5644 fi 5645 done 5646 done 5647 IFS=$as_save_IFS 5648 5649 fi 5650 fi 5651 AWK=$ac_cv_prog_AWK 5652 if test -n "$AWK"; then 5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 5654 $as_echo "$AWK" >&6; } 5655 else 5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5657 $as_echo "no" >&6; } 5658 fi 5659 5660 5661 test -n "$AWK" && break 5662 done 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 # If no C compiler was specified, use CC. 5683 LTCC=${LTCC-"$CC"} 5684 5685 # If no C compiler flags were specified, use CFLAGS. 5686 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5687 5688 # Allow CC to be a program name with arguments. 5689 compiler=$CC 5690 5691 5692 # Check for command to grab the raw symbol name followed by C symbol from nm. 5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5694 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5695 if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5696 $as_echo_n "(cached) " >&6 5697 else 5698 5699 # These are sane defaults that work on at least a few old systems. 5700 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 5701 5702 # Character class describing NM global symbol codes. 5703 symcode='[BCDEGRST]' 5704 5705 # Regexp to match symbols that can be accessed directly from C. 5706 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5707 5708 # Define system-specific variables. 5709 case $host_os in 5710 aix*) 5711 symcode='[BCDT]' 5712 ;; 5713 cygwin* | mingw* | pw32* | cegcc*) 5714 symcode='[ABCDGISTW]' 5715 ;; 5716 hpux*) 5717 if test "$host_cpu" = ia64; then 5718 symcode='[ABCDEGRST]' 5719 fi 5720 ;; 5721 irix* | nonstopux*) 5722 symcode='[BCDEGRST]' 5723 ;; 5724 osf*) 5725 symcode='[BCDEGQRST]' 5726 ;; 5727 solaris*) 5728 symcode='[BDRT]' 5729 ;; 5730 sco3.2v5*) 5731 symcode='[DT]' 5732 ;; 5733 sysv4.2uw2*) 5734 symcode='[DT]' 5735 ;; 5736 sysv5* | sco5v6* | unixware* | OpenUNIX*) 5737 symcode='[ABDT]' 5738 ;; 5739 sysv4) 5740 symcode='[DFNSTU]' 5741 ;; 5742 esac 5743 5744 # If we're using GNU nm, then use its standard symbol codes. 5745 case `$NM -V 2>&1` in 5746 *GNU* | *'with BFD'*) 5747 symcode='[ABCDGIRSTW]' ;; 5748 esac 5749 5750 # Transform an extracted symbol line into a proper C declaration. 5751 # Some systems (esp. on ia64) link data and code symbols differently, 5752 # so use this general approach. 5753 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5754 5755 # Transform an extracted symbol line into symbol name and symbol address 5756 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5757 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 5758 5759 # Handle CRLF in mingw tool chain 5760 opt_cr= 5761 case $build_os in 5762 mingw*) 5763 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5764 ;; 5765 esac 5766 5767 # Try without a prefix underscore, then with it. 5768 for ac_symprfx in "" "_"; do 5769 5770 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5771 symxfrm="\\1 $ac_symprfx\\2 \\2" 5772 5773 # Write the raw and C identifiers. 5774 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5775 # Fake it for dumpbin and say T for any non-static function 5776 # and D for any global variable. 5777 # Also find C++ and __fastcall symbols from MSVC++, 5778 # which start with @ or ?. 5779 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5780 " {last_section=section; section=\$ 3};"\ 5781 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 5782 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5783 " \$ 0!~/External *\|/{next};"\ 5784 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5785 " {if(hide[section]) next};"\ 5786 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5787 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5788 " s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5789 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5790 " ' prfx=^$ac_symprfx" 5791 else 5792 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5793 fi 5794 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 5795 5796 # Check to see that the pipe works correctly. 5797 pipe_works=no 5798 5799 rm -f conftest* 5800 cat > conftest.$ac_ext <<_LT_EOF 5801 #ifdef __cplusplus 5802 extern "C" { 5803 #endif 5804 char nm_test_var; 5805 void nm_test_func(void); 5806 void nm_test_func(void){} 5807 #ifdef __cplusplus 5808 } 5809 #endif 5810 int main(){nm_test_var='a';nm_test_func();return(0);} 5811 _LT_EOF 5812 5813 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5814 (eval $ac_compile) 2>&5 5815 ac_status=$? 5816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5817 test $ac_status = 0; }; then 5818 # Now try to grab the symbols. 5819 nlist=conftest.nm 5820 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 5821 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 5822 ac_status=$? 5823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5824 test $ac_status = 0; } && test -s "$nlist"; then 5825 # Try sorting and uniquifying the output. 5826 if sort "$nlist" | uniq > "$nlist"T; then 5827 mv -f "$nlist"T "$nlist" 5828 else 5829 rm -f "$nlist"T 5830 fi 5831 5832 # Make sure that we snagged all the symbols we need. 5833 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5834 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5835 cat <<_LT_EOF > conftest.$ac_ext 5836 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 5837 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 5838 /* DATA imports from DLLs on WIN32 con't be const, because runtime 5839 relocations are performed -- see ld's documentation on pseudo-relocs. */ 5840 # define LT_DLSYM_CONST 5841 #elif defined(__osf__) 5842 /* This system does not cope well with relocations in const data. */ 5843 # define LT_DLSYM_CONST 5844 #else 5845 # define LT_DLSYM_CONST const 5846 #endif 5847 5848 #ifdef __cplusplus 5849 extern "C" { 5850 #endif 5851 5852 _LT_EOF 5853 # Now generate the symbol file. 5854 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5855 5856 cat <<_LT_EOF >> conftest.$ac_ext 5857 5858 /* The mapping between symbol names and symbols. */ 5859 LT_DLSYM_CONST struct { 5860 const char *name; 5861 void *address; 5862 } 5863 lt__PROGRAM__LTX_preloaded_symbols[] = 5864 { 5865 { "@PROGRAM@", (void *) 0 }, 5866 _LT_EOF 5867 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5868 cat <<\_LT_EOF >> conftest.$ac_ext 5869 {0, (void *) 0} 5870 }; 5871 5872 /* This works around a problem in FreeBSD linker */ 5873 #ifdef FREEBSD_WORKAROUND 5874 static const void *lt_preloaded_setup() { 5875 return lt__PROGRAM__LTX_preloaded_symbols; 5876 } 5877 #endif 5878 5879 #ifdef __cplusplus 5880 } 5881 #endif 5882 _LT_EOF 5883 # Now try linking the two files. 5884 mv conftest.$ac_objext conftstm.$ac_objext 5885 lt_globsym_save_LIBS=$LIBS 5886 lt_globsym_save_CFLAGS=$CFLAGS 5887 LIBS="conftstm.$ac_objext" 5888 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 5890 (eval $ac_link) 2>&5 5891 ac_status=$? 5892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5893 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 5894 pipe_works=yes 5895 fi 5896 LIBS=$lt_globsym_save_LIBS 5897 CFLAGS=$lt_globsym_save_CFLAGS 5898 else 5899 echo "cannot find nm_test_func in $nlist" >&5 5900 fi 5901 else 5902 echo "cannot find nm_test_var in $nlist" >&5 5903 fi 5904 else 5905 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5906 fi 5907 else 5908 echo "$progname: failed program was:" >&5 5909 cat conftest.$ac_ext >&5 5910 fi 5911 rm -rf conftest* conftst* 5912 5913 # Do not use the global_symbol_pipe unless it works. 5914 if test "$pipe_works" = yes; then 5915 break 5916 else 5917 lt_cv_sys_global_symbol_pipe= 5918 fi 5919 done 5920 5921 fi 5922 5923 if test -z "$lt_cv_sys_global_symbol_pipe"; then 5924 lt_cv_sys_global_symbol_to_cdecl= 5925 fi 5926 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5928 $as_echo "failed" >&6; } 5929 else 5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 5931 $as_echo "ok" >&6; } 5932 fi 5933 5934 # Response file support. 5935 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5936 nm_file_list_spec='@' 5937 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 5938 nm_file_list_spec='@' 5939 fi 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 5968 $as_echo_n "checking for sysroot... " >&6; } 5969 5970 # Check whether --with-sysroot was given. 5971 if test "${with_sysroot+set}" = set; then : 5972 withval=$with_sysroot; 5973 else 5974 with_sysroot=no 5975 fi 5976 5977 5978 lt_sysroot= 5979 case ${with_sysroot} in #( 5980 yes) 5981 if test "$GCC" = yes; then 5982 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 5983 fi 5984 ;; #( 5985 /*) 5986 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 5987 ;; #( 5988 no|'') 5989 ;; #( 5990 *) 5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 5992 $as_echo "${with_sysroot}" >&6; } 5993 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 5994 ;; 5995 esac 5996 5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 5998 $as_echo "${lt_sysroot:-no}" >&6; } 5999 6000 6001 6002 6003 6004 # Check whether --enable-libtool-lock was given. 6005 if test "${enable_libtool_lock+set}" = set; then : 6006 enableval=$enable_libtool_lock; 6007 fi 6008 6009 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6010 6011 # Some flags need to be propagated to the compiler or linker for good 6012 # libtool support. 6013 case $host in 6014 ia64-*-hpux*) 6015 # Find out which ABI we are using. 6016 echo 'int i;' > conftest.$ac_ext 6017 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6018 (eval $ac_compile) 2>&5 6019 ac_status=$? 6020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6021 test $ac_status = 0; }; then 6022 case `/usr/bin/file conftest.$ac_objext` in 6023 *ELF-32*) 6024 HPUX_IA64_MODE="32" 6025 ;; 6026 *ELF-64*) 6027 HPUX_IA64_MODE="64" 6028 ;; 6029 esac 6030 fi 6031 rm -rf conftest* 6032 ;; 6033 *-*-irix6*) 6034 # Find out which ABI we are using. 6035 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6036 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6037 (eval $ac_compile) 2>&5 6038 ac_status=$? 6039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6040 test $ac_status = 0; }; then 6041 if test "$lt_cv_prog_gnu_ld" = yes; then 6042 case `/usr/bin/file conftest.$ac_objext` in 6043 *32-bit*) 6044 LD="${LD-ld} -melf32bsmip" 6045 ;; 6046 *N32*) 6047 LD="${LD-ld} -melf32bmipn32" 6048 ;; 6049 *64-bit*) 6050 LD="${LD-ld} -melf64bmip" 6051 ;; 6052 esac 6053 else 6054 case `/usr/bin/file conftest.$ac_objext` in 6055 *32-bit*) 6056 LD="${LD-ld} -32" 6057 ;; 6058 *N32*) 6059 LD="${LD-ld} -n32" 6060 ;; 6061 *64-bit*) 6062 LD="${LD-ld} -64" 6063 ;; 6064 esac 6065 fi 6066 fi 6067 rm -rf conftest* 6068 ;; 6069 6070 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6071 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6072 # Find out which ABI we are using. 6073 echo 'int i;' > conftest.$ac_ext 6074 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6075 (eval $ac_compile) 2>&5 6076 ac_status=$? 6077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6078 test $ac_status = 0; }; then 6079 case `/usr/bin/file conftest.o` in 6080 *32-bit*) 6081 case $host in 6082 x86_64-*kfreebsd*-gnu) 6083 LD="${LD-ld} -m elf_i386_fbsd" 6084 ;; 6085 x86_64-*linux*) 6086 LD="${LD-ld} -m elf_i386" 6087 ;; 6088 ppc64-*linux*|powerpc64-*linux*) 6089 LD="${LD-ld} -m elf32ppclinux" 6090 ;; 6091 s390x-*linux*) 6092 LD="${LD-ld} -m elf_s390" 6093 ;; 6094 sparc64-*linux*) 6095 LD="${LD-ld} -m elf32_sparc" 6096 ;; 6097 esac 6098 ;; 6099 *64-bit*) 6100 case $host in 6101 x86_64-*kfreebsd*-gnu) 6102 LD="${LD-ld} -m elf_x86_64_fbsd" 6103 ;; 6104 x86_64-*linux*) 6105 LD="${LD-ld} -m elf_x86_64" 6106 ;; 6107 powerpc64le-*linux*) 6108 LD="${LD-ld} -m elf64lppc" 6109 ;; 6110 powerpc64-*linux*) 6111 LD="${LD-ld} -m elf64ppc" 6112 ;; 6113 s390*-*linux*|s390*-*tpf*) 6114 LD="${LD-ld} -m elf64_s390" 6115 ;; 6116 sparc*-*linux*) 6117 LD="${LD-ld} -m elf64_sparc" 6118 ;; 6119 esac 6120 ;; 6121 esac 6122 fi 6123 rm -rf conftest* 6124 ;; 6125 6126 *-*-sco3.2v5*) 6127 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6128 SAVE_CFLAGS="$CFLAGS" 6129 CFLAGS="$CFLAGS -belf" 6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6131 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6132 if ${lt_cv_cc_needs_belf+:} false; then : 6133 $as_echo_n "(cached) " >&6 6134 else 6135 ac_ext=c 6136 ac_cpp='$CPP $CPPFLAGS' 6137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6139 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6140 6141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6142 /* end confdefs.h. */ 6143 6144 int 6145 main () 6146 { 6147 6148 ; 6149 return 0; 6150 } 6151 _ACEOF 6152 if ac_fn_c_try_link "$LINENO"; then : 6153 lt_cv_cc_needs_belf=yes 6154 else 6155 lt_cv_cc_needs_belf=no 6156 fi 6157 rm -f core conftest.err conftest.$ac_objext \ 6158 conftest$ac_exeext conftest.$ac_ext 6159 ac_ext=c 6160 ac_cpp='$CPP $CPPFLAGS' 6161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6163 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6164 6165 fi 6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6167 $as_echo "$lt_cv_cc_needs_belf" >&6; } 6168 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6169 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6170 CFLAGS="$SAVE_CFLAGS" 6171 fi 6172 ;; 6173 *-*solaris*) 6174 # Find out which ABI we are using. 6175 echo 'int i;' > conftest.$ac_ext 6176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6177 (eval $ac_compile) 2>&5 6178 ac_status=$? 6179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6180 test $ac_status = 0; }; then 6181 case `/usr/bin/file conftest.o` in 6182 *64-bit*) 6183 case $lt_cv_prog_gnu_ld in 6184 yes*) 6185 case $host in 6186 i?86-*-solaris*) 6187 LD="${LD-ld} -m elf_x86_64" 6188 ;; 6189 sparc*-*-solaris*) 6190 LD="${LD-ld} -m elf64_sparc" 6191 ;; 6192 esac 6193 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6194 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6195 LD="${LD-ld}_sol2" 6196 fi 6197 ;; 6198 *) 6199 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6200 LD="${LD-ld} -64" 6201 fi 6202 ;; 6203 esac 6204 ;; 6205 esac 6206 fi 6207 rm -rf conftest* 6208 ;; 6209 esac 6210 6211 need_locks="$enable_libtool_lock" 6212 6213 if test -n "$ac_tool_prefix"; then 6214 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6215 set dummy ${ac_tool_prefix}mt; ac_word=$2 6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6217 $as_echo_n "checking for $ac_word... " >&6; } 6218 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6219 $as_echo_n "(cached) " >&6 6220 else 6221 if test -n "$MANIFEST_TOOL"; then 6222 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6223 else 6224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6225 for as_dir in $PATH 6226 do 6227 IFS=$as_save_IFS 6228 test -z "$as_dir" && as_dir=. 6229 for ac_exec_ext in '' $ac_executable_extensions; do 6230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6231 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6233 break 2 6234 fi 6235 done 6236 done 6237 IFS=$as_save_IFS 6238 6239 fi 6240 fi 6241 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6242 if test -n "$MANIFEST_TOOL"; then 6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6244 $as_echo "$MANIFEST_TOOL" >&6; } 6245 else 6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6247 $as_echo "no" >&6; } 6248 fi 6249 6250 6251 fi 6252 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6253 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6254 # Extract the first word of "mt", so it can be a program name with args. 6255 set dummy mt; ac_word=$2 6256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6257 $as_echo_n "checking for $ac_word... " >&6; } 6258 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6259 $as_echo_n "(cached) " >&6 6260 else 6261 if test -n "$ac_ct_MANIFEST_TOOL"; then 6262 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6263 else 6264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6265 for as_dir in $PATH 6266 do 6267 IFS=$as_save_IFS 6268 test -z "$as_dir" && as_dir=. 6269 for ac_exec_ext in '' $ac_executable_extensions; do 6270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6271 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6273 break 2 6274 fi 6275 done 6276 done 6277 IFS=$as_save_IFS 6278 6279 fi 6280 fi 6281 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6282 if test -n "$ac_ct_MANIFEST_TOOL"; then 6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6284 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6285 else 6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6287 $as_echo "no" >&6; } 6288 fi 6289 6290 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6291 MANIFEST_TOOL=":" 6292 else 6293 case $cross_compiling:$ac_tool_warned in 6294 yes:) 6295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6297 ac_tool_warned=yes ;; 6298 esac 6299 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6300 fi 6301 else 6302 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6303 fi 6304 6305 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6307 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6308 if ${lt_cv_path_mainfest_tool+:} false; then : 6309 $as_echo_n "(cached) " >&6 6310 else 6311 lt_cv_path_mainfest_tool=no 6312 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6313 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6314 cat conftest.err >&5 6315 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6316 lt_cv_path_mainfest_tool=yes 6317 fi 6318 rm -f conftest* 6319 fi 6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6321 $as_echo "$lt_cv_path_mainfest_tool" >&6; } 6322 if test "x$lt_cv_path_mainfest_tool" != xyes; then 6323 MANIFEST_TOOL=: 6324 fi 6325 6326 6327 6328 6329 6330 6331 case $host_os in 6332 rhapsody* | darwin*) 6333 if test -n "$ac_tool_prefix"; then 6334 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6335 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6337 $as_echo_n "checking for $ac_word... " >&6; } 6338 if ${ac_cv_prog_DSYMUTIL+:} false; then : 6339 $as_echo_n "(cached) " >&6 6340 else 6341 if test -n "$DSYMUTIL"; then 6342 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6343 else 6344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6345 for as_dir in $PATH 6346 do 6347 IFS=$as_save_IFS 6348 test -z "$as_dir" && as_dir=. 6349 for ac_exec_ext in '' $ac_executable_extensions; do 6350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6351 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6353 break 2 6354 fi 6355 done 6356 done 6357 IFS=$as_save_IFS 6358 6359 fi 6360 fi 6361 DSYMUTIL=$ac_cv_prog_DSYMUTIL 6362 if test -n "$DSYMUTIL"; then 6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6364 $as_echo "$DSYMUTIL" >&6; } 6365 else 6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6367 $as_echo "no" >&6; } 6368 fi 6369 6370 6371 fi 6372 if test -z "$ac_cv_prog_DSYMUTIL"; then 6373 ac_ct_DSYMUTIL=$DSYMUTIL 6374 # Extract the first word of "dsymutil", so it can be a program name with args. 6375 set dummy dsymutil; ac_word=$2 6376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6377 $as_echo_n "checking for $ac_word... " >&6; } 6378 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6379 $as_echo_n "(cached) " >&6 6380 else 6381 if test -n "$ac_ct_DSYMUTIL"; then 6382 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6383 else 6384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6385 for as_dir in $PATH 6386 do 6387 IFS=$as_save_IFS 6388 test -z "$as_dir" && as_dir=. 6389 for ac_exec_ext in '' $ac_executable_extensions; do 6390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6391 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6393 break 2 6394 fi 6395 done 6396 done 6397 IFS=$as_save_IFS 6398 6399 fi 6400 fi 6401 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6402 if test -n "$ac_ct_DSYMUTIL"; then 6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6404 $as_echo "$ac_ct_DSYMUTIL" >&6; } 6405 else 6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6407 $as_echo "no" >&6; } 6408 fi 6409 6410 if test "x$ac_ct_DSYMUTIL" = x; then 6411 DSYMUTIL=":" 6412 else 6413 case $cross_compiling:$ac_tool_warned in 6414 yes:) 6415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6417 ac_tool_warned=yes ;; 6418 esac 6419 DSYMUTIL=$ac_ct_DSYMUTIL 6420 fi 6421 else 6422 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6423 fi 6424 6425 if test -n "$ac_tool_prefix"; then 6426 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6427 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6429 $as_echo_n "checking for $ac_word... " >&6; } 6430 if ${ac_cv_prog_NMEDIT+:} false; then : 6431 $as_echo_n "(cached) " >&6 6432 else 6433 if test -n "$NMEDIT"; then 6434 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6435 else 6436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6437 for as_dir in $PATH 6438 do 6439 IFS=$as_save_IFS 6440 test -z "$as_dir" && as_dir=. 6441 for ac_exec_ext in '' $ac_executable_extensions; do 6442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6443 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6445 break 2 6446 fi 6447 done 6448 done 6449 IFS=$as_save_IFS 6450 6451 fi 6452 fi 6453 NMEDIT=$ac_cv_prog_NMEDIT 6454 if test -n "$NMEDIT"; then 6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6456 $as_echo "$NMEDIT" >&6; } 6457 else 6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6459 $as_echo "no" >&6; } 6460 fi 6461 6462 6463 fi 6464 if test -z "$ac_cv_prog_NMEDIT"; then 6465 ac_ct_NMEDIT=$NMEDIT 6466 # Extract the first word of "nmedit", so it can be a program name with args. 6467 set dummy nmedit; ac_word=$2 6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6469 $as_echo_n "checking for $ac_word... " >&6; } 6470 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6471 $as_echo_n "(cached) " >&6 6472 else 6473 if test -n "$ac_ct_NMEDIT"; then 6474 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6475 else 6476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6477 for as_dir in $PATH 6478 do 6479 IFS=$as_save_IFS 6480 test -z "$as_dir" && as_dir=. 6481 for ac_exec_ext in '' $ac_executable_extensions; do 6482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6483 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6485 break 2 6486 fi 6487 done 6488 done 6489 IFS=$as_save_IFS 6490 6491 fi 6492 fi 6493 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6494 if test -n "$ac_ct_NMEDIT"; then 6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6496 $as_echo "$ac_ct_NMEDIT" >&6; } 6497 else 6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6499 $as_echo "no" >&6; } 6500 fi 6501 6502 if test "x$ac_ct_NMEDIT" = x; then 6503 NMEDIT=":" 6504 else 6505 case $cross_compiling:$ac_tool_warned in 6506 yes:) 6507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6509 ac_tool_warned=yes ;; 6510 esac 6511 NMEDIT=$ac_ct_NMEDIT 6512 fi 6513 else 6514 NMEDIT="$ac_cv_prog_NMEDIT" 6515 fi 6516 6517 if test -n "$ac_tool_prefix"; then 6518 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6519 set dummy ${ac_tool_prefix}lipo; ac_word=$2 6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6521 $as_echo_n "checking for $ac_word... " >&6; } 6522 if ${ac_cv_prog_LIPO+:} false; then : 6523 $as_echo_n "(cached) " >&6 6524 else 6525 if test -n "$LIPO"; then 6526 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6527 else 6528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6529 for as_dir in $PATH 6530 do 6531 IFS=$as_save_IFS 6532 test -z "$as_dir" && as_dir=. 6533 for ac_exec_ext in '' $ac_executable_extensions; do 6534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6535 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6537 break 2 6538 fi 6539 done 6540 done 6541 IFS=$as_save_IFS 6542 6543 fi 6544 fi 6545 LIPO=$ac_cv_prog_LIPO 6546 if test -n "$LIPO"; then 6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6548 $as_echo "$LIPO" >&6; } 6549 else 6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6551 $as_echo "no" >&6; } 6552 fi 6553 6554 6555 fi 6556 if test -z "$ac_cv_prog_LIPO"; then 6557 ac_ct_LIPO=$LIPO 6558 # Extract the first word of "lipo", so it can be a program name with args. 6559 set dummy lipo; ac_word=$2 6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6561 $as_echo_n "checking for $ac_word... " >&6; } 6562 if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6563 $as_echo_n "(cached) " >&6 6564 else 6565 if test -n "$ac_ct_LIPO"; then 6566 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6567 else 6568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6569 for as_dir in $PATH 6570 do 6571 IFS=$as_save_IFS 6572 test -z "$as_dir" && as_dir=. 6573 for ac_exec_ext in '' $ac_executable_extensions; do 6574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6575 ac_cv_prog_ac_ct_LIPO="lipo" 6576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6577 break 2 6578 fi 6579 done 6580 done 6581 IFS=$as_save_IFS 6582 6583 fi 6584 fi 6585 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6586 if test -n "$ac_ct_LIPO"; then 6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6588 $as_echo "$ac_ct_LIPO" >&6; } 6589 else 6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6591 $as_echo "no" >&6; } 6592 fi 6593 6594 if test "x$ac_ct_LIPO" = x; then 6595 LIPO=":" 6596 else 6597 case $cross_compiling:$ac_tool_warned in 6598 yes:) 6599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6601 ac_tool_warned=yes ;; 6602 esac 6603 LIPO=$ac_ct_LIPO 6604 fi 6605 else 6606 LIPO="$ac_cv_prog_LIPO" 6607 fi 6608 6609 if test -n "$ac_tool_prefix"; then 6610 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6611 set dummy ${ac_tool_prefix}otool; ac_word=$2 6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6613 $as_echo_n "checking for $ac_word... " >&6; } 6614 if ${ac_cv_prog_OTOOL+:} false; then : 6615 $as_echo_n "(cached) " >&6 6616 else 6617 if test -n "$OTOOL"; then 6618 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6619 else 6620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6621 for as_dir in $PATH 6622 do 6623 IFS=$as_save_IFS 6624 test -z "$as_dir" && as_dir=. 6625 for ac_exec_ext in '' $ac_executable_extensions; do 6626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6627 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6629 break 2 6630 fi 6631 done 6632 done 6633 IFS=$as_save_IFS 6634 6635 fi 6636 fi 6637 OTOOL=$ac_cv_prog_OTOOL 6638 if test -n "$OTOOL"; then 6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6640 $as_echo "$OTOOL" >&6; } 6641 else 6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6643 $as_echo "no" >&6; } 6644 fi 6645 6646 6647 fi 6648 if test -z "$ac_cv_prog_OTOOL"; then 6649 ac_ct_OTOOL=$OTOOL 6650 # Extract the first word of "otool", so it can be a program name with args. 6651 set dummy otool; ac_word=$2 6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6653 $as_echo_n "checking for $ac_word... " >&6; } 6654 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6655 $as_echo_n "(cached) " >&6 6656 else 6657 if test -n "$ac_ct_OTOOL"; then 6658 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6659 else 6660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6661 for as_dir in $PATH 6662 do 6663 IFS=$as_save_IFS 6664 test -z "$as_dir" && as_dir=. 6665 for ac_exec_ext in '' $ac_executable_extensions; do 6666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6667 ac_cv_prog_ac_ct_OTOOL="otool" 6668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6669 break 2 6670 fi 6671 done 6672 done 6673 IFS=$as_save_IFS 6674 6675 fi 6676 fi 6677 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6678 if test -n "$ac_ct_OTOOL"; then 6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6680 $as_echo "$ac_ct_OTOOL" >&6; } 6681 else 6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6683 $as_echo "no" >&6; } 6684 fi 6685 6686 if test "x$ac_ct_OTOOL" = x; then 6687 OTOOL=":" 6688 else 6689 case $cross_compiling:$ac_tool_warned in 6690 yes:) 6691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6693 ac_tool_warned=yes ;; 6694 esac 6695 OTOOL=$ac_ct_OTOOL 6696 fi 6697 else 6698 OTOOL="$ac_cv_prog_OTOOL" 6699 fi 6700 6701 if test -n "$ac_tool_prefix"; then 6702 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6703 set dummy ${ac_tool_prefix}otool64; ac_word=$2 6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6705 $as_echo_n "checking for $ac_word... " >&6; } 6706 if ${ac_cv_prog_OTOOL64+:} false; then : 6707 $as_echo_n "(cached) " >&6 6708 else 6709 if test -n "$OTOOL64"; then 6710 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6711 else 6712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6713 for as_dir in $PATH 6714 do 6715 IFS=$as_save_IFS 6716 test -z "$as_dir" && as_dir=. 6717 for ac_exec_ext in '' $ac_executable_extensions; do 6718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6719 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6721 break 2 6722 fi 6723 done 6724 done 6725 IFS=$as_save_IFS 6726 6727 fi 6728 fi 6729 OTOOL64=$ac_cv_prog_OTOOL64 6730 if test -n "$OTOOL64"; then 6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6732 $as_echo "$OTOOL64" >&6; } 6733 else 6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6735 $as_echo "no" >&6; } 6736 fi 6737 6738 6739 fi 6740 if test -z "$ac_cv_prog_OTOOL64"; then 6741 ac_ct_OTOOL64=$OTOOL64 6742 # Extract the first word of "otool64", so it can be a program name with args. 6743 set dummy otool64; ac_word=$2 6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6745 $as_echo_n "checking for $ac_word... " >&6; } 6746 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 6747 $as_echo_n "(cached) " >&6 6748 else 6749 if test -n "$ac_ct_OTOOL64"; then 6750 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6751 else 6752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6753 for as_dir in $PATH 6754 do 6755 IFS=$as_save_IFS 6756 test -z "$as_dir" && as_dir=. 6757 for ac_exec_ext in '' $ac_executable_extensions; do 6758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6759 ac_cv_prog_ac_ct_OTOOL64="otool64" 6760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6761 break 2 6762 fi 6763 done 6764 done 6765 IFS=$as_save_IFS 6766 6767 fi 6768 fi 6769 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6770 if test -n "$ac_ct_OTOOL64"; then 6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6772 $as_echo "$ac_ct_OTOOL64" >&6; } 6773 else 6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6775 $as_echo "no" >&6; } 6776 fi 6777 6778 if test "x$ac_ct_OTOOL64" = x; then 6779 OTOOL64=":" 6780 else 6781 case $cross_compiling:$ac_tool_warned in 6782 yes:) 6783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6784 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6785 ac_tool_warned=yes ;; 6786 esac 6787 OTOOL64=$ac_ct_OTOOL64 6788 fi 6789 else 6790 OTOOL64="$ac_cv_prog_OTOOL64" 6791 fi 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 6820 $as_echo_n "checking for -single_module linker flag... " >&6; } 6821 if ${lt_cv_apple_cc_single_mod+:} false; then : 6822 $as_echo_n "(cached) " >&6 6823 else 6824 lt_cv_apple_cc_single_mod=no 6825 if test -z "${LT_MULTI_MODULE}"; then 6826 # By default we will add the -single_module flag. You can override 6827 # by either setting the environment variable LT_MULTI_MODULE 6828 # non-empty at configure time, or by adding -multi_module to the 6829 # link flags. 6830 rm -rf libconftest.dylib* 6831 echo "int foo(void){return 1;}" > conftest.c 6832 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6833 -dynamiclib -Wl,-single_module conftest.c" >&5 6834 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6835 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6836 _lt_result=$? 6837 # If there is a non-empty error log, and "single_module" 6838 # appears in it, assume the flag caused a linker warning 6839 if test -s conftest.err && $GREP single_module conftest.err; then 6840 cat conftest.err >&5 6841 # Otherwise, if the output was created with a 0 exit code from 6842 # the compiler, it worked. 6843 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 6844 lt_cv_apple_cc_single_mod=yes 6845 else 6846 cat conftest.err >&5 6847 fi 6848 rm -rf libconftest.dylib* 6849 rm -f conftest.* 6850 fi 6851 fi 6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 6853 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6854 6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 6856 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6857 if ${lt_cv_ld_exported_symbols_list+:} false; then : 6858 $as_echo_n "(cached) " >&6 6859 else 6860 lt_cv_ld_exported_symbols_list=no 6861 save_LDFLAGS=$LDFLAGS 6862 echo "_main" > conftest.sym 6863 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6865 /* end confdefs.h. */ 6866 6867 int 6868 main () 6869 { 6870 6871 ; 6872 return 0; 6873 } 6874 _ACEOF 6875 if ac_fn_c_try_link "$LINENO"; then : 6876 lt_cv_ld_exported_symbols_list=yes 6877 else 6878 lt_cv_ld_exported_symbols_list=no 6879 fi 6880 rm -f core conftest.err conftest.$ac_objext \ 6881 conftest$ac_exeext conftest.$ac_ext 6882 LDFLAGS="$save_LDFLAGS" 6883 6884 fi 6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 6886 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6887 6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 6889 $as_echo_n "checking for -force_load linker flag... " >&6; } 6890 if ${lt_cv_ld_force_load+:} false; then : 6891 $as_echo_n "(cached) " >&6 6892 else 6893 lt_cv_ld_force_load=no 6894 cat > conftest.c << _LT_EOF 6895 int forced_loaded() { return 2;} 6896 _LT_EOF 6897 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 6898 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 6899 echo "$AR cru libconftest.a conftest.o" >&5 6900 $AR cru libconftest.a conftest.o 2>&5 6901 echo "$RANLIB libconftest.a" >&5 6902 $RANLIB libconftest.a 2>&5 6903 cat > conftest.c << _LT_EOF 6904 int main() { return 0;} 6905 _LT_EOF 6906 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 6907 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 6908 _lt_result=$? 6909 if test -s conftest.err && $GREP force_load conftest.err; then 6910 cat conftest.err >&5 6911 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 6912 lt_cv_ld_force_load=yes 6913 else 6914 cat conftest.err >&5 6915 fi 6916 rm -f conftest.err libconftest.a conftest conftest.c 6917 rm -rf conftest.dSYM 6918 6919 fi 6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 6921 $as_echo "$lt_cv_ld_force_load" >&6; } 6922 case $host_os in 6923 rhapsody* | darwin1.[012]) 6924 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6925 darwin1.*) 6926 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6927 darwin*) # darwin 5.x on 6928 # if running on 10.5 or later, the deployment target defaults 6929 # to the OS version, if on x86, and 10.4, the deployment 6930 # target defaults to 10.4. Don't you love it? 6931 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6932 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6933 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6934 10.[012]*) 6935 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6936 10.*) 6937 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6938 esac 6939 ;; 6940 esac 6941 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6942 _lt_dar_single_mod='$single_module' 6943 fi 6944 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6945 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6946 else 6947 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6948 fi 6949 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 6950 _lt_dsymutil='~$DSYMUTIL $lib || :' 6951 else 6952 _lt_dsymutil= 6953 fi 6954 ;; 6955 esac 6956 6957 ac_ext=c 6958 ac_cpp='$CPP $CPPFLAGS' 6959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6961 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 6963 $as_echo_n "checking how to run the C preprocessor... " >&6; } 6964 # On Suns, sometimes $CPP names a directory. 6965 if test -n "$CPP" && test -d "$CPP"; then 6966 CPP= 6967 fi 6968 if test -z "$CPP"; then 6969 if ${ac_cv_prog_CPP+:} false; then : 6970 $as_echo_n "(cached) " >&6 6971 else 6972 # Double quotes because CPP needs to be expanded 6973 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6974 do 6975 ac_preproc_ok=false 6976 for ac_c_preproc_warn_flag in '' yes 6977 do 6978 # Use a header file that comes with gcc, so configuring glibc 6979 # with a fresh cross-compiler works. 6980 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6981 # <limits.h> exists even on freestanding compilers. 6982 # On the NeXT, cc -E runs the code through the compiler's parser, 6983 # not just through cpp. "Syntax error" is here to catch this case. 6984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6985 /* end confdefs.h. */ 6986 #ifdef __STDC__ 6987 # include <limits.h> 6988 #else 6989 # include <assert.h> 6990 #endif 6991 Syntax error 6992 _ACEOF 6993 if ac_fn_c_try_cpp "$LINENO"; then : 6994 6995 else 6996 # Broken: fails on valid input. 6997 continue 6998 fi 6999 rm -f conftest.err conftest.i conftest.$ac_ext 7000 7001 # OK, works on sane cases. Now check whether nonexistent headers 7002 # can be detected and how. 7003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7004 /* end confdefs.h. */ 7005 #include <ac_nonexistent.h> 7006 _ACEOF 7007 if ac_fn_c_try_cpp "$LINENO"; then : 7008 # Broken: success on invalid input. 7009 continue 7010 else 7011 # Passes both tests. 7012 ac_preproc_ok=: 7013 break 7014 fi 7015 rm -f conftest.err conftest.i conftest.$ac_ext 7016 7017 done 7018 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7019 rm -f conftest.i conftest.err conftest.$ac_ext 7020 if $ac_preproc_ok; then : 7021 break 7022 fi 7023 7024 done 7025 ac_cv_prog_CPP=$CPP 7026 7027 fi 7028 CPP=$ac_cv_prog_CPP 7029 else 7030 ac_cv_prog_CPP=$CPP 7031 fi 7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7033 $as_echo "$CPP" >&6; } 7034 ac_preproc_ok=false 7035 for ac_c_preproc_warn_flag in '' yes 7036 do 7037 # Use a header file that comes with gcc, so configuring glibc 7038 # with a fresh cross-compiler works. 7039 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7040 # <limits.h> exists even on freestanding compilers. 7041 # On the NeXT, cc -E runs the code through the compiler's parser, 7042 # not just through cpp. "Syntax error" is here to catch this case. 7043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7044 /* end confdefs.h. */ 7045 #ifdef __STDC__ 7046 # include <limits.h> 7047 #else 7048 # include <assert.h> 7049 #endif 7050 Syntax error 7051 _ACEOF 7052 if ac_fn_c_try_cpp "$LINENO"; then : 7053 7054 else 7055 # Broken: fails on valid input. 7056 continue 7057 fi 7058 rm -f conftest.err conftest.i conftest.$ac_ext 7059 7060 # OK, works on sane cases. Now check whether nonexistent headers 7061 # can be detected and how. 7062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7063 /* end confdefs.h. */ 7064 #include <ac_nonexistent.h> 7065 _ACEOF 7066 if ac_fn_c_try_cpp "$LINENO"; then : 7067 # Broken: success on invalid input. 7068 continue 7069 else 7070 # Passes both tests. 7071 ac_preproc_ok=: 7072 break 7073 fi 7074 rm -f conftest.err conftest.i conftest.$ac_ext 7075 7076 done 7077 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7078 rm -f conftest.i conftest.err conftest.$ac_ext 7079 if $ac_preproc_ok; then : 7080 7081 else 7082 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7084 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7085 See \`config.log' for more details" "$LINENO" 5; } 7086 fi 7087 7088 ac_ext=c 7089 ac_cpp='$CPP $CPPFLAGS' 7090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7092 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7093 7094 7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7096 $as_echo_n "checking for ANSI C header files... " >&6; } 7097 if ${ac_cv_header_stdc+:} false; then : 7098 $as_echo_n "(cached) " >&6 7099 else 7100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7101 /* end confdefs.h. */ 7102 #include <stdlib.h> 7103 #include <stdarg.h> 7104 #include <string.h> 7105 #include <float.h> 7106 7107 int 7108 main () 7109 { 7110 7111 ; 7112 return 0; 7113 } 7114 _ACEOF 7115 if ac_fn_c_try_compile "$LINENO"; then : 7116 ac_cv_header_stdc=yes 7117 else 7118 ac_cv_header_stdc=no 7119 fi 7120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7121 7122 if test $ac_cv_header_stdc = yes; then 7123 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7125 /* end confdefs.h. */ 7126 #include <string.h> 7127 7128 _ACEOF 7129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7130 $EGREP "memchr" >/dev/null 2>&1; then : 7131 7132 else 7133 ac_cv_header_stdc=no 7134 fi 7135 rm -f conftest* 7136 7137 fi 7138 7139 if test $ac_cv_header_stdc = yes; then 7140 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7142 /* end confdefs.h. */ 7143 #include <stdlib.h> 7144 7145 _ACEOF 7146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7147 $EGREP "free" >/dev/null 2>&1; then : 7148 7149 else 7150 ac_cv_header_stdc=no 7151 fi 7152 rm -f conftest* 7153 7154 fi 7155 7156 if test $ac_cv_header_stdc = yes; then 7157 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7158 if test "$cross_compiling" = yes; then : 7159 : 7160 else 7161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7162 /* end confdefs.h. */ 7163 #include <ctype.h> 7164 #include <stdlib.h> 7165 #if ((' ' & 0x0FF) == 0x020) 7166 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7167 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7168 #else 7169 # define ISLOWER(c) \ 7170 (('a' <= (c) && (c) <= 'i') \ 7171 || ('j' <= (c) && (c) <= 'r') \ 7172 || ('s' <= (c) && (c) <= 'z')) 7173 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7174 #endif 7175 7176 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7177 int 7178 main () 7179 { 7180 int i; 7181 for (i = 0; i < 256; i++) 7182 if (XOR (islower (i), ISLOWER (i)) 7183 || toupper (i) != TOUPPER (i)) 7184 return 2; 7185 return 0; 7186 } 7187 _ACEOF 7188 if ac_fn_c_try_run "$LINENO"; then : 7189 7190 else 7191 ac_cv_header_stdc=no 7192 fi 7193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7194 conftest.$ac_objext conftest.beam conftest.$ac_ext 7195 fi 7196 7197 fi 7198 fi 7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7200 $as_echo "$ac_cv_header_stdc" >&6; } 7201 if test $ac_cv_header_stdc = yes; then 7202 7203 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 7204 7205 fi 7206 7207 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 7208 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7209 inttypes.h stdint.h unistd.h 7210 do : 7211 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7212 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7213 " 7214 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7215 cat >>confdefs.h <<_ACEOF 7216 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7217 _ACEOF 7218 7219 fi 7220 7221 done 7222 7223 7224 for ac_header in dlfcn.h 7225 do : 7226 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7227 " 7228 if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7229 cat >>confdefs.h <<_ACEOF 7230 #define HAVE_DLFCN_H 1 7231 _ACEOF 7232 7233 fi 7234 7235 done 7236 7237 7238 7239 7240 7241 # Set options 7242 enable_win32_dll=yes 7243 7244 case $host in 7245 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 7246 if test -n "$ac_tool_prefix"; then 7247 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 7248 set dummy ${ac_tool_prefix}as; ac_word=$2 7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7250 $as_echo_n "checking for $ac_word... " >&6; } 7251 if ${ac_cv_prog_AS+:} false; then : 7252 $as_echo_n "(cached) " >&6 7253 else 7254 if test -n "$AS"; then 7255 ac_cv_prog_AS="$AS" # Let the user override the test. 7256 else 7257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7258 for as_dir in $PATH 7259 do 7260 IFS=$as_save_IFS 7261 test -z "$as_dir" && as_dir=. 7262 for ac_exec_ext in '' $ac_executable_extensions; do 7263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7264 ac_cv_prog_AS="${ac_tool_prefix}as" 7265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7266 break 2 7267 fi 7268 done 7269 done 7270 IFS=$as_save_IFS 7271 7272 fi 7273 fi 7274 AS=$ac_cv_prog_AS 7275 if test -n "$AS"; then 7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 7277 $as_echo "$AS" >&6; } 7278 else 7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7280 $as_echo "no" >&6; } 7281 fi 7282 7283 7284 fi 7285 if test -z "$ac_cv_prog_AS"; then 7286 ac_ct_AS=$AS 7287 # Extract the first word of "as", so it can be a program name with args. 7288 set dummy as; ac_word=$2 7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7290 $as_echo_n "checking for $ac_word... " >&6; } 7291 if ${ac_cv_prog_ac_ct_AS+:} false; then : 7292 $as_echo_n "(cached) " >&6 7293 else 7294 if test -n "$ac_ct_AS"; then 7295 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 7296 else 7297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7298 for as_dir in $PATH 7299 do 7300 IFS=$as_save_IFS 7301 test -z "$as_dir" && as_dir=. 7302 for ac_exec_ext in '' $ac_executable_extensions; do 7303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7304 ac_cv_prog_ac_ct_AS="as" 7305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7306 break 2 7307 fi 7308 done 7309 done 7310 IFS=$as_save_IFS 7311 7312 fi 7313 fi 7314 ac_ct_AS=$ac_cv_prog_ac_ct_AS 7315 if test -n "$ac_ct_AS"; then 7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 7317 $as_echo "$ac_ct_AS" >&6; } 7318 else 7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7320 $as_echo "no" >&6; } 7321 fi 7322 7323 if test "x$ac_ct_AS" = x; then 7324 AS="false" 7325 else 7326 case $cross_compiling:$ac_tool_warned in 7327 yes:) 7328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7329 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7330 ac_tool_warned=yes ;; 7331 esac 7332 AS=$ac_ct_AS 7333 fi 7334 else 7335 AS="$ac_cv_prog_AS" 7336 fi 7337 7338 if test -n "$ac_tool_prefix"; then 7339 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7340 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7342 $as_echo_n "checking for $ac_word... " >&6; } 7343 if ${ac_cv_prog_DLLTOOL+:} false; then : 7344 $as_echo_n "(cached) " >&6 7345 else 7346 if test -n "$DLLTOOL"; then 7347 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7348 else 7349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7350 for as_dir in $PATH 7351 do 7352 IFS=$as_save_IFS 7353 test -z "$as_dir" && as_dir=. 7354 for ac_exec_ext in '' $ac_executable_extensions; do 7355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7356 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7358 break 2 7359 fi 7360 done 7361 done 7362 IFS=$as_save_IFS 7363 7364 fi 7365 fi 7366 DLLTOOL=$ac_cv_prog_DLLTOOL 7367 if test -n "$DLLTOOL"; then 7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7369 $as_echo "$DLLTOOL" >&6; } 7370 else 7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7372 $as_echo "no" >&6; } 7373 fi 7374 7375 7376 fi 7377 if test -z "$ac_cv_prog_DLLTOOL"; then 7378 ac_ct_DLLTOOL=$DLLTOOL 7379 # Extract the first word of "dlltool", so it can be a program name with args. 7380 set dummy dlltool; ac_word=$2 7381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7382 $as_echo_n "checking for $ac_word... " >&6; } 7383 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 7384 $as_echo_n "(cached) " >&6 7385 else 7386 if test -n "$ac_ct_DLLTOOL"; then 7387 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7388 else 7389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7390 for as_dir in $PATH 7391 do 7392 IFS=$as_save_IFS 7393 test -z "$as_dir" && as_dir=. 7394 for ac_exec_ext in '' $ac_executable_extensions; do 7395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7396 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7398 break 2 7399 fi 7400 done 7401 done 7402 IFS=$as_save_IFS 7403 7404 fi 7405 fi 7406 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7407 if test -n "$ac_ct_DLLTOOL"; then 7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 7409 $as_echo "$ac_ct_DLLTOOL" >&6; } 7410 else 7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7412 $as_echo "no" >&6; } 7413 fi 7414 7415 if test "x$ac_ct_DLLTOOL" = x; then 7416 DLLTOOL="false" 7417 else 7418 case $cross_compiling:$ac_tool_warned in 7419 yes:) 7420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7422 ac_tool_warned=yes ;; 7423 esac 7424 DLLTOOL=$ac_ct_DLLTOOL 7425 fi 7426 else 7427 DLLTOOL="$ac_cv_prog_DLLTOOL" 7428 fi 7429 7430 if test -n "$ac_tool_prefix"; then 7431 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7432 set dummy ${ac_tool_prefix}objdump; ac_word=$2 7433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7434 $as_echo_n "checking for $ac_word... " >&6; } 7435 if ${ac_cv_prog_OBJDUMP+:} false; then : 7436 $as_echo_n "(cached) " >&6 7437 else 7438 if test -n "$OBJDUMP"; then 7439 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7440 else 7441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7442 for as_dir in $PATH 7443 do 7444 IFS=$as_save_IFS 7445 test -z "$as_dir" && as_dir=. 7446 for ac_exec_ext in '' $ac_executable_extensions; do 7447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7448 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7450 break 2 7451 fi 7452 done 7453 done 7454 IFS=$as_save_IFS 7455 7456 fi 7457 fi 7458 OBJDUMP=$ac_cv_prog_OBJDUMP 7459 if test -n "$OBJDUMP"; then 7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 7461 $as_echo "$OBJDUMP" >&6; } 7462 else 7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7464 $as_echo "no" >&6; } 7465 fi 7466 7467 7468 fi 7469 if test -z "$ac_cv_prog_OBJDUMP"; then 7470 ac_ct_OBJDUMP=$OBJDUMP 7471 # Extract the first word of "objdump", so it can be a program name with args. 7472 set dummy objdump; ac_word=$2 7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7474 $as_echo_n "checking for $ac_word... " >&6; } 7475 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 7476 $as_echo_n "(cached) " >&6 7477 else 7478 if test -n "$ac_ct_OBJDUMP"; then 7479 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7480 else 7481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7482 for as_dir in $PATH 7483 do 7484 IFS=$as_save_IFS 7485 test -z "$as_dir" && as_dir=. 7486 for ac_exec_ext in '' $ac_executable_extensions; do 7487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7488 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7490 break 2 7491 fi 7492 done 7493 done 7494 IFS=$as_save_IFS 7495 7496 fi 7497 fi 7498 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7499 if test -n "$ac_ct_OBJDUMP"; then 7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 7501 $as_echo "$ac_ct_OBJDUMP" >&6; } 7502 else 7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7504 $as_echo "no" >&6; } 7505 fi 7506 7507 if test "x$ac_ct_OBJDUMP" = x; then 7508 OBJDUMP="false" 7509 else 7510 case $cross_compiling:$ac_tool_warned in 7511 yes:) 7512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7513 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7514 ac_tool_warned=yes ;; 7515 esac 7516 OBJDUMP=$ac_ct_OBJDUMP 7517 fi 7518 else 7519 OBJDUMP="$ac_cv_prog_OBJDUMP" 7520 fi 7521 7522 ;; 7523 esac 7524 7525 test -z "$AS" && AS=as 7526 7527 7528 7529 7530 7531 test -z "$DLLTOOL" && DLLTOOL=dlltool 7532 7533 7534 7535 7536 7537 test -z "$OBJDUMP" && OBJDUMP=objdump 7538 7539 7540 7541 7542 7543 7544 7545 enable_dlopen=no 7546 7547 7548 7549 # Check whether --enable-shared was given. 7550 if test "${enable_shared+set}" = set; then : 7551 enableval=$enable_shared; p=${PACKAGE-default} 7552 case $enableval in 7553 yes) enable_shared=yes ;; 7554 no) enable_shared=no ;; 7555 *) 7556 enable_shared=no 7557 # Look at the argument we got. We use all the common list separators. 7558 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7559 for pkg in $enableval; do 7560 IFS="$lt_save_ifs" 7561 if test "X$pkg" = "X$p"; then 7562 enable_shared=yes 7563 fi 7564 done 7565 IFS="$lt_save_ifs" 7566 ;; 7567 esac 7568 else 7569 enable_shared=yes 7570 fi 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 # Check whether --enable-static was given. 7581 if test "${enable_static+set}" = set; then : 7582 enableval=$enable_static; p=${PACKAGE-default} 7583 case $enableval in 7584 yes) enable_static=yes ;; 7585 no) enable_static=no ;; 7586 *) 7587 enable_static=no 7588 # Look at the argument we got. We use all the common list separators. 7589 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7590 for pkg in $enableval; do 7591 IFS="$lt_save_ifs" 7592 if test "X$pkg" = "X$p"; then 7593 enable_static=yes 7594 fi 7595 done 7596 IFS="$lt_save_ifs" 7597 ;; 7598 esac 7599 else 7600 enable_static=yes 7601 fi 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 # Check whether --with-pic was given. 7613 if test "${with_pic+set}" = set; then : 7614 withval=$with_pic; lt_p=${PACKAGE-default} 7615 case $withval in 7616 yes|no) pic_mode=$withval ;; 7617 *) 7618 pic_mode=default 7619 # Look at the argument we got. We use all the common list separators. 7620 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7621 for lt_pkg in $withval; do 7622 IFS="$lt_save_ifs" 7623 if test "X$lt_pkg" = "X$lt_p"; then 7624 pic_mode=yes 7625 fi 7626 done 7627 IFS="$lt_save_ifs" 7628 ;; 7629 esac 7630 else 7631 pic_mode=default 7632 fi 7633 7634 7635 test -z "$pic_mode" && pic_mode=default 7636 7637 7638 7639 7640 7641 7642 7643 # Check whether --enable-fast-install was given. 7644 if test "${enable_fast_install+set}" = set; then : 7645 enableval=$enable_fast_install; p=${PACKAGE-default} 7646 case $enableval in 7647 yes) enable_fast_install=yes ;; 7648 no) enable_fast_install=no ;; 7649 *) 7650 enable_fast_install=no 7651 # Look at the argument we got. We use all the common list separators. 7652 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7653 for pkg in $enableval; do 7654 IFS="$lt_save_ifs" 7655 if test "X$pkg" = "X$p"; then 7656 enable_fast_install=yes 7657 fi 7658 done 7659 IFS="$lt_save_ifs" 7660 ;; 7661 esac 7662 else 7663 enable_fast_install=yes 7664 fi 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 # This can be used to rebuild libtool when needed 7677 LIBTOOL_DEPS="$ltmain" 7678 7679 # Always use our own libtool. 7680 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 test -z "$LN_S" && LN_S="ln -s" 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 if test -n "${ZSH_VERSION+set}" ; then 7727 setopt NO_GLOB_SUBST 7728 fi 7729 7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7731 $as_echo_n "checking for objdir... " >&6; } 7732 if ${lt_cv_objdir+:} false; then : 7733 $as_echo_n "(cached) " >&6 7734 else 7735 rm -f .libs 2>/dev/null 7736 mkdir .libs 2>/dev/null 7737 if test -d .libs; then 7738 lt_cv_objdir=.libs 7739 else 7740 # MS-DOS does not allow filenames that begin with a dot. 7741 lt_cv_objdir=_libs 7742 fi 7743 rmdir .libs 2>/dev/null 7744 fi 7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7746 $as_echo "$lt_cv_objdir" >&6; } 7747 objdir=$lt_cv_objdir 7748 7749 7750 7751 7752 7753 cat >>confdefs.h <<_ACEOF 7754 #define LT_OBJDIR "$lt_cv_objdir/" 7755 _ACEOF 7756 7757 7758 7759 7760 case $host_os in 7761 aix3*) 7762 # AIX sometimes has problems with the GCC collect2 program. For some 7763 # reason, if we set the COLLECT_NAMES environment variable, the problems 7764 # vanish in a puff of smoke. 7765 if test "X${COLLECT_NAMES+set}" != Xset; then 7766 COLLECT_NAMES= 7767 export COLLECT_NAMES 7768 fi 7769 ;; 7770 esac 7771 7772 # Global variables: 7773 ofile=libtool 7774 can_build_shared=yes 7775 7776 # All known linkers require a `.a' archive for static linking (except MSVC, 7777 # which needs '.lib'). 7778 libext=a 7779 7780 with_gnu_ld="$lt_cv_prog_gnu_ld" 7781 7782 old_CC="$CC" 7783 old_CFLAGS="$CFLAGS" 7784 7785 # Set sane defaults for various variables 7786 test -z "$CC" && CC=cc 7787 test -z "$LTCC" && LTCC=$CC 7788 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7789 test -z "$LD" && LD=ld 7790 test -z "$ac_objext" && ac_objext=o 7791 7792 for cc_temp in $compiler""; do 7793 case $cc_temp in 7794 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7795 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7796 \-*) ;; 7797 *) break;; 7798 esac 7799 done 7800 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7801 7802 7803 # Only perform the check for file, if the check method requires it 7804 test -z "$MAGIC_CMD" && MAGIC_CMD=file 7805 case $deplibs_check_method in 7806 file_magic*) 7807 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7809 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7810 if ${lt_cv_path_MAGIC_CMD+:} false; then : 7811 $as_echo_n "(cached) " >&6 7812 else 7813 case $MAGIC_CMD in 7814 [\\/*] | ?:[\\/]*) 7815 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7816 ;; 7817 *) 7818 lt_save_MAGIC_CMD="$MAGIC_CMD" 7819 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7820 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7821 for ac_dir in $ac_dummy; do 7822 IFS="$lt_save_ifs" 7823 test -z "$ac_dir" && ac_dir=. 7824 if test -f $ac_dir/${ac_tool_prefix}file; then 7825 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7826 if test -n "$file_magic_test_file"; then 7827 case $deplibs_check_method in 7828 "file_magic "*) 7829 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7830 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7831 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7832 $EGREP "$file_magic_regex" > /dev/null; then 7833 : 7834 else 7835 cat <<_LT_EOF 1>&2 7836 7837 *** Warning: the command libtool uses to detect shared libraries, 7838 *** $file_magic_cmd, produces output that libtool cannot recognize. 7839 *** The result is that libtool may fail to recognize shared libraries 7840 *** as such. This will affect the creation of libtool libraries that 7841 *** depend on shared libraries, but programs linked with such libtool 7842 *** libraries will work regardless of this problem. Nevertheless, you 7843 *** may want to report the problem to your system manager and/or to 7844 *** bug-libtool@gnu.org 7845 7846 _LT_EOF 7847 fi ;; 7848 esac 7849 fi 7850 break 7851 fi 7852 done 7853 IFS="$lt_save_ifs" 7854 MAGIC_CMD="$lt_save_MAGIC_CMD" 7855 ;; 7856 esac 7857 fi 7858 7859 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7860 if test -n "$MAGIC_CMD"; then 7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7862 $as_echo "$MAGIC_CMD" >&6; } 7863 else 7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7865 $as_echo "no" >&6; } 7866 fi 7867 7868 7869 7870 7871 7872 if test -z "$lt_cv_path_MAGIC_CMD"; then 7873 if test -n "$ac_tool_prefix"; then 7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7875 $as_echo_n "checking for file... " >&6; } 7876 if ${lt_cv_path_MAGIC_CMD+:} false; then : 7877 $as_echo_n "(cached) " >&6 7878 else 7879 case $MAGIC_CMD in 7880 [\\/*] | ?:[\\/]*) 7881 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7882 ;; 7883 *) 7884 lt_save_MAGIC_CMD="$MAGIC_CMD" 7885 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7886 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7887 for ac_dir in $ac_dummy; do 7888 IFS="$lt_save_ifs" 7889 test -z "$ac_dir" && ac_dir=. 7890 if test -f $ac_dir/file; then 7891 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7892 if test -n "$file_magic_test_file"; then 7893 case $deplibs_check_method in 7894 "file_magic "*) 7895 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7896 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7897 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7898 $EGREP "$file_magic_regex" > /dev/null; then 7899 : 7900 else 7901 cat <<_LT_EOF 1>&2 7902 7903 *** Warning: the command libtool uses to detect shared libraries, 7904 *** $file_magic_cmd, produces output that libtool cannot recognize. 7905 *** The result is that libtool may fail to recognize shared libraries 7906 *** as such. This will affect the creation of libtool libraries that 7907 *** depend on shared libraries, but programs linked with such libtool 7908 *** libraries will work regardless of this problem. Nevertheless, you 7909 *** may want to report the problem to your system manager and/or to 7910 *** bug-libtool@gnu.org 7911 7912 _LT_EOF 7913 fi ;; 7914 esac 7915 fi 7916 break 7917 fi 7918 done 7919 IFS="$lt_save_ifs" 7920 MAGIC_CMD="$lt_save_MAGIC_CMD" 7921 ;; 7922 esac 7923 fi 7924 7925 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7926 if test -n "$MAGIC_CMD"; then 7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7928 $as_echo "$MAGIC_CMD" >&6; } 7929 else 7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7931 $as_echo "no" >&6; } 7932 fi 7933 7934 7935 else 7936 MAGIC_CMD=: 7937 fi 7938 fi 7939 7940 fi 7941 ;; 7942 esac 7943 7944 # Use C for the default configuration in the libtool script 7945 7946 lt_save_CC="$CC" 7947 ac_ext=c 7948 ac_cpp='$CPP $CPPFLAGS' 7949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7951 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7952 7953 7954 # Source file extension for C test sources. 7955 ac_ext=c 7956 7957 # Object file extension for compiled C test sources. 7958 objext=o 7959 objext=$objext 7960 7961 # Code to be used in simple compile tests 7962 lt_simple_compile_test_code="int some_variable = 0;" 7963 7964 # Code to be used in simple link tests 7965 lt_simple_link_test_code='int main(){return(0);}' 7966 7967 7968 7969 7970 7971 7972 7973 # If no C compiler was specified, use CC. 7974 LTCC=${LTCC-"$CC"} 7975 7976 # If no C compiler flags were specified, use CFLAGS. 7977 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7978 7979 # Allow CC to be a program name with arguments. 7980 compiler=$CC 7981 7982 # Save the default compiler, since it gets overwritten when the other 7983 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7984 compiler_DEFAULT=$CC 7985 7986 # save warnings/boilerplate of simple test code 7987 ac_outfile=conftest.$ac_objext 7988 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7989 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7990 _lt_compiler_boilerplate=`cat conftest.err` 7991 $RM conftest* 7992 7993 ac_outfile=conftest.$ac_objext 7994 echo "$lt_simple_link_test_code" >conftest.$ac_ext 7995 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7996 _lt_linker_boilerplate=`cat conftest.err` 7997 $RM -r conftest* 7998 7999 8000 ## CAVEAT EMPTOR: 8001 ## There is no encapsulation within the following macros, do not change 8002 ## the running order or otherwise move them around unless you know exactly 8003 ## what you are doing... 8004 if test -n "$compiler"; then 8005 8006 lt_prog_compiler_no_builtin_flag= 8007 8008 if test "$GCC" = yes; then 8009 case $cc_basename in 8010 nvcc*) 8011 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8012 *) 8013 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8014 esac 8015 8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8017 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8018 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8019 $as_echo_n "(cached) " >&6 8020 else 8021 lt_cv_prog_compiler_rtti_exceptions=no 8022 ac_outfile=conftest.$ac_objext 8023 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8024 lt_compiler_flag="-fno-rtti -fno-exceptions" 8025 # Insert the option either (1) after the last *FLAGS variable, or 8026 # (2) before a word containing "conftest.", or (3) at the end. 8027 # Note that $ac_compile itself does not contain backslashes and begins 8028 # with a dollar sign (not a hyphen), so the echo should work correctly. 8029 # The option is referenced via a variable to avoid confusing sed. 8030 lt_compile=`echo "$ac_compile" | $SED \ 8031 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8032 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8033 -e 's:$: $lt_compiler_flag:'` 8034 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8035 (eval "$lt_compile" 2>conftest.err) 8036 ac_status=$? 8037 cat conftest.err >&5 8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8039 if (exit $ac_status) && test -s "$ac_outfile"; then 8040 # The compiler can only warn and ignore the option if not recognized 8041 # So say no if there are warnings other than the usual output. 8042 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8043 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8044 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8045 lt_cv_prog_compiler_rtti_exceptions=yes 8046 fi 8047 fi 8048 $RM conftest* 8049 8050 fi 8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8052 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8053 8054 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8055 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8056 else 8057 : 8058 fi 8059 8060 fi 8061 8062 8063 8064 8065 8066 8067 lt_prog_compiler_wl= 8068 lt_prog_compiler_pic= 8069 lt_prog_compiler_static= 8070 8071 8072 if test "$GCC" = yes; then 8073 lt_prog_compiler_wl='-Wl,' 8074 lt_prog_compiler_static='-static' 8075 8076 case $host_os in 8077 aix*) 8078 # All AIX code is PIC. 8079 if test "$host_cpu" = ia64; then 8080 # AIX 5 now supports IA64 processor 8081 lt_prog_compiler_static='-Bstatic' 8082 fi 8083 ;; 8084 8085 amigaos*) 8086 case $host_cpu in 8087 powerpc) 8088 # see comment about AmigaOS4 .so support 8089 lt_prog_compiler_pic='-fPIC' 8090 ;; 8091 m68k) 8092 # FIXME: we need at least 68020 code to build shared libraries, but 8093 # adding the `-m68020' flag to GCC prevents building anything better, 8094 # like `-m68040'. 8095 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8096 ;; 8097 esac 8098 ;; 8099 8100 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8101 # PIC is the default for these OSes. 8102 ;; 8103 8104 mingw* | cygwin* | pw32* | os2* | cegcc*) 8105 # This hack is so that the source file can tell whether it is being 8106 # built for inclusion in a dll (and should export symbols for example). 8107 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8108 # (--disable-auto-import) libraries 8109 lt_prog_compiler_pic='-DDLL_EXPORT' 8110 ;; 8111 8112 darwin* | rhapsody*) 8113 # PIC is the default on this platform 8114 # Common symbols not allowed in MH_DYLIB files 8115 lt_prog_compiler_pic='-fno-common' 8116 ;; 8117 8118 haiku*) 8119 # PIC is the default for Haiku. 8120 # The "-static" flag exists, but is broken. 8121 lt_prog_compiler_static= 8122 ;; 8123 8124 hpux*) 8125 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8126 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8127 # sets the default TLS model and affects inlining. 8128 case $host_cpu in 8129 hppa*64*) 8130 # +Z the default 8131 ;; 8132 *) 8133 lt_prog_compiler_pic='-fPIC' 8134 ;; 8135 esac 8136 ;; 8137 8138 interix[3-9]*) 8139 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8140 # Instead, we relocate shared libraries at runtime. 8141 ;; 8142 8143 msdosdjgpp*) 8144 # Just because we use GCC doesn't mean we suddenly get shared libraries 8145 # on systems that don't support them. 8146 lt_prog_compiler_can_build_shared=no 8147 enable_shared=no 8148 ;; 8149 8150 *nto* | *qnx*) 8151 # QNX uses GNU C++, but need to define -shared option too, otherwise 8152 # it will coredump. 8153 lt_prog_compiler_pic='-fPIC -shared' 8154 ;; 8155 8156 sysv4*MP*) 8157 if test -d /usr/nec; then 8158 lt_prog_compiler_pic=-Kconform_pic 8159 fi 8160 ;; 8161 8162 *) 8163 lt_prog_compiler_pic='-fPIC' 8164 ;; 8165 esac 8166 8167 case $cc_basename in 8168 nvcc*) # Cuda Compiler Driver 2.2 8169 lt_prog_compiler_wl='-Xlinker ' 8170 if test -n "$lt_prog_compiler_pic"; then 8171 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8172 fi 8173 ;; 8174 esac 8175 else 8176 # PORTME Check for flag to pass linker flags through the system compiler. 8177 case $host_os in 8178 aix*) 8179 lt_prog_compiler_wl='-Wl,' 8180 if test "$host_cpu" = ia64; then 8181 # AIX 5 now supports IA64 processor 8182 lt_prog_compiler_static='-Bstatic' 8183 else 8184 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8185 fi 8186 ;; 8187 8188 mingw* | cygwin* | pw32* | os2* | cegcc*) 8189 # This hack is so that the source file can tell whether it is being 8190 # built for inclusion in a dll (and should export symbols for example). 8191 lt_prog_compiler_pic='-DDLL_EXPORT' 8192 ;; 8193 8194 hpux9* | hpux10* | hpux11*) 8195 lt_prog_compiler_wl='-Wl,' 8196 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8197 # not for PA HP-UX. 8198 case $host_cpu in 8199 hppa*64*|ia64*) 8200 # +Z the default 8201 ;; 8202 *) 8203 lt_prog_compiler_pic='+Z' 8204 ;; 8205 esac 8206 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8207 lt_prog_compiler_static='${wl}-a ${wl}archive' 8208 ;; 8209 8210 irix5* | irix6* | nonstopux*) 8211 lt_prog_compiler_wl='-Wl,' 8212 # PIC (with -KPIC) is the default. 8213 lt_prog_compiler_static='-non_shared' 8214 ;; 8215 8216 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8217 case $cc_basename in 8218 # old Intel for x86_64 which still supported -KPIC. 8219 ecc*) 8220 lt_prog_compiler_wl='-Wl,' 8221 lt_prog_compiler_pic='-KPIC' 8222 lt_prog_compiler_static='-static' 8223 ;; 8224 # icc used to be incompatible with GCC. 8225 # ICC 10 doesn't accept -KPIC any more. 8226 icc* | ifort*) 8227 lt_prog_compiler_wl='-Wl,' 8228 lt_prog_compiler_pic='-fPIC' 8229 lt_prog_compiler_static='-static' 8230 ;; 8231 # Lahey Fortran 8.1. 8232 lf95*) 8233 lt_prog_compiler_wl='-Wl,' 8234 lt_prog_compiler_pic='--shared' 8235 lt_prog_compiler_static='--static' 8236 ;; 8237 nagfor*) 8238 # NAG Fortran compiler 8239 lt_prog_compiler_wl='-Wl,-Wl,,' 8240 lt_prog_compiler_pic='-PIC' 8241 lt_prog_compiler_static='-Bstatic' 8242 ;; 8243 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8244 # Portland Group compilers (*not* the Pentium gcc compiler, 8245 # which looks to be a dead project) 8246 lt_prog_compiler_wl='-Wl,' 8247 lt_prog_compiler_pic='-fpic' 8248 lt_prog_compiler_static='-Bstatic' 8249 ;; 8250 ccc*) 8251 lt_prog_compiler_wl='-Wl,' 8252 # All Alpha code is PIC. 8253 lt_prog_compiler_static='-non_shared' 8254 ;; 8255 xl* | bgxl* | bgf* | mpixl*) 8256 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8257 lt_prog_compiler_wl='-Wl,' 8258 lt_prog_compiler_pic='-qpic' 8259 lt_prog_compiler_static='-qstaticlink' 8260 ;; 8261 *) 8262 case `$CC -V 2>&1 | sed 5q` in 8263 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8264 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8265 lt_prog_compiler_pic='-KPIC' 8266 lt_prog_compiler_static='-Bstatic' 8267 lt_prog_compiler_wl='' 8268 ;; 8269 *Sun\ F* | *Sun*Fortran*) 8270 lt_prog_compiler_pic='-KPIC' 8271 lt_prog_compiler_static='-Bstatic' 8272 lt_prog_compiler_wl='-Qoption ld ' 8273 ;; 8274 *Sun\ C*) 8275 # Sun C 5.9 8276 lt_prog_compiler_pic='-KPIC' 8277 lt_prog_compiler_static='-Bstatic' 8278 lt_prog_compiler_wl='-Wl,' 8279 ;; 8280 *Intel*\ [CF]*Compiler*) 8281 lt_prog_compiler_wl='-Wl,' 8282 lt_prog_compiler_pic='-fPIC' 8283 lt_prog_compiler_static='-static' 8284 ;; 8285 *Portland\ Group*) 8286 lt_prog_compiler_wl='-Wl,' 8287 lt_prog_compiler_pic='-fpic' 8288 lt_prog_compiler_static='-Bstatic' 8289 ;; 8290 esac 8291 ;; 8292 esac 8293 ;; 8294 8295 newsos6) 8296 lt_prog_compiler_pic='-KPIC' 8297 lt_prog_compiler_static='-Bstatic' 8298 ;; 8299 8300 *nto* | *qnx*) 8301 # QNX uses GNU C++, but need to define -shared option too, otherwise 8302 # it will coredump. 8303 lt_prog_compiler_pic='-fPIC -shared' 8304 ;; 8305 8306 osf3* | osf4* | osf5*) 8307 lt_prog_compiler_wl='-Wl,' 8308 # All OSF/1 code is PIC. 8309 lt_prog_compiler_static='-non_shared' 8310 ;; 8311 8312 rdos*) 8313 lt_prog_compiler_static='-non_shared' 8314 ;; 8315 8316 solaris*) 8317 lt_prog_compiler_pic='-KPIC' 8318 lt_prog_compiler_static='-Bstatic' 8319 case $cc_basename in 8320 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8321 lt_prog_compiler_wl='-Qoption ld ';; 8322 *) 8323 lt_prog_compiler_wl='-Wl,';; 8324 esac 8325 ;; 8326 8327 sunos4*) 8328 lt_prog_compiler_wl='-Qoption ld ' 8329 lt_prog_compiler_pic='-PIC' 8330 lt_prog_compiler_static='-Bstatic' 8331 ;; 8332 8333 sysv4 | sysv4.2uw2* | sysv4.3*) 8334 lt_prog_compiler_wl='-Wl,' 8335 lt_prog_compiler_pic='-KPIC' 8336 lt_prog_compiler_static='-Bstatic' 8337 ;; 8338 8339 sysv4*MP*) 8340 if test -d /usr/nec ;then 8341 lt_prog_compiler_pic='-Kconform_pic' 8342 lt_prog_compiler_static='-Bstatic' 8343 fi 8344 ;; 8345 8346 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8347 lt_prog_compiler_wl='-Wl,' 8348 lt_prog_compiler_pic='-KPIC' 8349 lt_prog_compiler_static='-Bstatic' 8350 ;; 8351 8352 unicos*) 8353 lt_prog_compiler_wl='-Wl,' 8354 lt_prog_compiler_can_build_shared=no 8355 ;; 8356 8357 uts4*) 8358 lt_prog_compiler_pic='-pic' 8359 lt_prog_compiler_static='-Bstatic' 8360 ;; 8361 8362 *) 8363 lt_prog_compiler_can_build_shared=no 8364 ;; 8365 esac 8366 fi 8367 8368 case $host_os in 8369 # For platforms which do not support PIC, -DPIC is meaningless: 8370 *djgpp*) 8371 lt_prog_compiler_pic= 8372 ;; 8373 *) 8374 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8375 ;; 8376 esac 8377 8378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8379 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8380 if ${lt_cv_prog_compiler_pic+:} false; then : 8381 $as_echo_n "(cached) " >&6 8382 else 8383 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8384 fi 8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8386 $as_echo "$lt_cv_prog_compiler_pic" >&6; } 8387 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8388 8389 # 8390 # Check to make sure the PIC flag actually works. 8391 # 8392 if test -n "$lt_prog_compiler_pic"; then 8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8394 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8395 if ${lt_cv_prog_compiler_pic_works+:} false; then : 8396 $as_echo_n "(cached) " >&6 8397 else 8398 lt_cv_prog_compiler_pic_works=no 8399 ac_outfile=conftest.$ac_objext 8400 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8401 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8402 # Insert the option either (1) after the last *FLAGS variable, or 8403 # (2) before a word containing "conftest.", or (3) at the end. 8404 # Note that $ac_compile itself does not contain backslashes and begins 8405 # with a dollar sign (not a hyphen), so the echo should work correctly. 8406 # The option is referenced via a variable to avoid confusing sed. 8407 lt_compile=`echo "$ac_compile" | $SED \ 8408 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8409 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8410 -e 's:$: $lt_compiler_flag:'` 8411 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8412 (eval "$lt_compile" 2>conftest.err) 8413 ac_status=$? 8414 cat conftest.err >&5 8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8416 if (exit $ac_status) && test -s "$ac_outfile"; then 8417 # The compiler can only warn and ignore the option if not recognized 8418 # So say no if there are warnings other than the usual output. 8419 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8420 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8421 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8422 lt_cv_prog_compiler_pic_works=yes 8423 fi 8424 fi 8425 $RM conftest* 8426 8427 fi 8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8429 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8430 8431 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8432 case $lt_prog_compiler_pic in 8433 "" | " "*) ;; 8434 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8435 esac 8436 else 8437 lt_prog_compiler_pic= 8438 lt_prog_compiler_can_build_shared=no 8439 fi 8440 8441 fi 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 # 8454 # Check to make sure the static flag actually works. 8455 # 8456 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8458 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8459 if ${lt_cv_prog_compiler_static_works+:} false; then : 8460 $as_echo_n "(cached) " >&6 8461 else 8462 lt_cv_prog_compiler_static_works=no 8463 save_LDFLAGS="$LDFLAGS" 8464 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8465 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8466 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8467 # The linker can only warn and ignore the option if not recognized 8468 # So say no if there are warnings 8469 if test -s conftest.err; then 8470 # Append any errors to the config.log. 8471 cat conftest.err 1>&5 8472 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8473 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8474 if diff conftest.exp conftest.er2 >/dev/null; then 8475 lt_cv_prog_compiler_static_works=yes 8476 fi 8477 else 8478 lt_cv_prog_compiler_static_works=yes 8479 fi 8480 fi 8481 $RM -r conftest* 8482 LDFLAGS="$save_LDFLAGS" 8483 8484 fi 8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8486 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8487 8488 if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8489 : 8490 else 8491 lt_prog_compiler_static= 8492 fi 8493 8494 8495 8496 8497 8498 8499 8500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8501 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8502 if ${lt_cv_prog_compiler_c_o+:} false; then : 8503 $as_echo_n "(cached) " >&6 8504 else 8505 lt_cv_prog_compiler_c_o=no 8506 $RM -r conftest 2>/dev/null 8507 mkdir conftest 8508 cd conftest 8509 mkdir out 8510 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8511 8512 lt_compiler_flag="-o out/conftest2.$ac_objext" 8513 # Insert the option either (1) after the last *FLAGS variable, or 8514 # (2) before a word containing "conftest.", or (3) at the end. 8515 # Note that $ac_compile itself does not contain backslashes and begins 8516 # with a dollar sign (not a hyphen), so the echo should work correctly. 8517 lt_compile=`echo "$ac_compile" | $SED \ 8518 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8519 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8520 -e 's:$: $lt_compiler_flag:'` 8521 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8522 (eval "$lt_compile" 2>out/conftest.err) 8523 ac_status=$? 8524 cat out/conftest.err >&5 8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8526 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8527 then 8528 # The compiler can only warn and ignore the option if not recognized 8529 # So say no if there are warnings 8530 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8531 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8532 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8533 lt_cv_prog_compiler_c_o=yes 8534 fi 8535 fi 8536 chmod u+w . 2>&5 8537 $RM conftest* 8538 # SGI C++ compiler will create directory out/ii_files/ for 8539 # template instantiation 8540 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8541 $RM out/* && rmdir out 8542 cd .. 8543 $RM -r conftest 8544 $RM conftest* 8545 8546 fi 8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8548 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8549 8550 8551 8552 8553 8554 8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8556 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8557 if ${lt_cv_prog_compiler_c_o+:} false; then : 8558 $as_echo_n "(cached) " >&6 8559 else 8560 lt_cv_prog_compiler_c_o=no 8561 $RM -r conftest 2>/dev/null 8562 mkdir conftest 8563 cd conftest 8564 mkdir out 8565 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8566 8567 lt_compiler_flag="-o out/conftest2.$ac_objext" 8568 # Insert the option either (1) after the last *FLAGS variable, or 8569 # (2) before a word containing "conftest.", or (3) at the end. 8570 # Note that $ac_compile itself does not contain backslashes and begins 8571 # with a dollar sign (not a hyphen), so the echo should work correctly. 8572 lt_compile=`echo "$ac_compile" | $SED \ 8573 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8574 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8575 -e 's:$: $lt_compiler_flag:'` 8576 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8577 (eval "$lt_compile" 2>out/conftest.err) 8578 ac_status=$? 8579 cat out/conftest.err >&5 8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8581 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8582 then 8583 # The compiler can only warn and ignore the option if not recognized 8584 # So say no if there are warnings 8585 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8586 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8587 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8588 lt_cv_prog_compiler_c_o=yes 8589 fi 8590 fi 8591 chmod u+w . 2>&5 8592 $RM conftest* 8593 # SGI C++ compiler will create directory out/ii_files/ for 8594 # template instantiation 8595 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8596 $RM out/* && rmdir out 8597 cd .. 8598 $RM -r conftest 8599 $RM conftest* 8600 8601 fi 8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8603 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8604 8605 8606 8607 8608 hard_links="nottested" 8609 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8610 # do not overwrite the value of need_locks provided by the user 8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8612 $as_echo_n "checking if we can lock with hard links... " >&6; } 8613 hard_links=yes 8614 $RM conftest* 8615 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8616 touch conftest.a 8617 ln conftest.a conftest.b 2>&5 || hard_links=no 8618 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8620 $as_echo "$hard_links" >&6; } 8621 if test "$hard_links" = no; then 8622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8623 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8624 need_locks=warn 8625 fi 8626 else 8627 need_locks=no 8628 fi 8629 8630 8631 8632 8633 8634 8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8636 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8637 8638 runpath_var= 8639 allow_undefined_flag= 8640 always_export_symbols=no 8641 archive_cmds= 8642 archive_expsym_cmds= 8643 compiler_needs_object=no 8644 enable_shared_with_static_runtimes=no 8645 export_dynamic_flag_spec= 8646 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8647 hardcode_automatic=no 8648 hardcode_direct=no 8649 hardcode_direct_absolute=no 8650 hardcode_libdir_flag_spec= 8651 hardcode_libdir_separator= 8652 hardcode_minus_L=no 8653 hardcode_shlibpath_var=unsupported 8654 inherit_rpath=no 8655 link_all_deplibs=unknown 8656 module_cmds= 8657 module_expsym_cmds= 8658 old_archive_from_new_cmds= 8659 old_archive_from_expsyms_cmds= 8660 thread_safe_flag_spec= 8661 whole_archive_flag_spec= 8662 # include_expsyms should be a list of space-separated symbols to be *always* 8663 # included in the symbol list 8664 include_expsyms= 8665 # exclude_expsyms can be an extended regexp of symbols to exclude 8666 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8667 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8668 # as well as any symbol that contains `d'. 8669 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8670 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8671 # platforms (ab)use it in PIC code, but their linkers get confused if 8672 # the symbol is explicitly referenced. Since portable code cannot 8673 # rely on this symbol name, it's probably fine to never include it in 8674 # preloaded symbol tables. 8675 # Exclude shared library initialization/finalization symbols. 8676 extract_expsyms_cmds= 8677 8678 case $host_os in 8679 cygwin* | mingw* | pw32* | cegcc*) 8680 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8681 # When not using gcc, we currently assume that we are using 8682 # Microsoft Visual C++. 8683 if test "$GCC" != yes; then 8684 with_gnu_ld=no 8685 fi 8686 ;; 8687 interix*) 8688 # we just hope/assume this is gcc and not c89 (= MSVC++) 8689 with_gnu_ld=yes 8690 ;; 8691 openbsd*) 8692 with_gnu_ld=no 8693 ;; 8694 esac 8695 8696 ld_shlibs=yes 8697 8698 # On some targets, GNU ld is compatible enough with the native linker 8699 # that we're better off using the native interface for both. 8700 lt_use_gnu_ld_interface=no 8701 if test "$with_gnu_ld" = yes; then 8702 case $host_os in 8703 aix*) 8704 # The AIX port of GNU ld has always aspired to compatibility 8705 # with the native linker. However, as the warning in the GNU ld 8706 # block says, versions before 2.19.5* couldn't really create working 8707 # shared libraries, regardless of the interface used. 8708 case `$LD -v 2>&1` in 8709 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8710 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8711 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8712 *) 8713 lt_use_gnu_ld_interface=yes 8714 ;; 8715 esac 8716 ;; 8717 *) 8718 lt_use_gnu_ld_interface=yes 8719 ;; 8720 esac 8721 fi 8722 8723 if test "$lt_use_gnu_ld_interface" = yes; then 8724 # If archive_cmds runs LD, not CC, wlarc should be empty 8725 wlarc='${wl}' 8726 8727 # Set some defaults for GNU ld with shared library support. These 8728 # are reset later if shared libraries are not supported. Putting them 8729 # here allows them to be overridden if necessary. 8730 runpath_var=LD_RUN_PATH 8731 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8732 export_dynamic_flag_spec='${wl}--export-dynamic' 8733 # ancient GNU ld didn't support --whole-archive et. al. 8734 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8735 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8736 else 8737 whole_archive_flag_spec= 8738 fi 8739 supports_anon_versioning=no 8740 case `$LD -v 2>&1` in 8741 *GNU\ gold*) supports_anon_versioning=yes ;; 8742 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8743 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8744 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8745 *\ 2.11.*) ;; # other 2.11 versions 8746 *) supports_anon_versioning=yes ;; 8747 esac 8748 8749 # See if GNU ld supports shared libraries. 8750 case $host_os in 8751 aix[3-9]*) 8752 # On AIX/PPC, the GNU linker is very broken 8753 if test "$host_cpu" != ia64; then 8754 ld_shlibs=no 8755 cat <<_LT_EOF 1>&2 8756 8757 *** Warning: the GNU linker, at least up to release 2.19, is reported 8758 *** to be unable to reliably create shared libraries on AIX. 8759 *** Therefore, libtool is disabling shared libraries support. If you 8760 *** really care for shared libraries, you may want to install binutils 8761 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8762 *** You will then need to restart the configuration process. 8763 8764 _LT_EOF 8765 fi 8766 ;; 8767 8768 amigaos*) 8769 case $host_cpu in 8770 powerpc) 8771 # see comment about AmigaOS4 .so support 8772 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8773 archive_expsym_cmds='' 8774 ;; 8775 m68k) 8776 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)' 8777 hardcode_libdir_flag_spec='-L$libdir' 8778 hardcode_minus_L=yes 8779 ;; 8780 esac 8781 ;; 8782 8783 beos*) 8784 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8785 allow_undefined_flag=unsupported 8786 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8787 # support --undefined. This deserves some investigation. FIXME 8788 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8789 else 8790 ld_shlibs=no 8791 fi 8792 ;; 8793 8794 cygwin* | mingw* | pw32* | cegcc*) 8795 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8796 # as there is no search path for DLLs. 8797 hardcode_libdir_flag_spec='-L$libdir' 8798 export_dynamic_flag_spec='${wl}--export-all-symbols' 8799 allow_undefined_flag=unsupported 8800 always_export_symbols=no 8801 enable_shared_with_static_runtimes=yes 8802 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' 8803 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8804 8805 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8806 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8807 # If the export-symbols file already is a .def file (1st line 8808 # is EXPORTS), use it as is; otherwise, prepend... 8809 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8810 cp $export_symbols $output_objdir/$soname.def; 8811 else 8812 echo EXPORTS > $output_objdir/$soname.def; 8813 cat $export_symbols >> $output_objdir/$soname.def; 8814 fi~ 8815 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8816 else 8817 ld_shlibs=no 8818 fi 8819 ;; 8820 8821 haiku*) 8822 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8823 link_all_deplibs=yes 8824 ;; 8825 8826 interix[3-9]*) 8827 hardcode_direct=no 8828 hardcode_shlibpath_var=no 8829 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8830 export_dynamic_flag_spec='${wl}-E' 8831 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8832 # Instead, shared libraries are loaded at an image base (0x10000000 by 8833 # default) and relocated if they conflict, which is a slow very memory 8834 # consuming and fragmenting process. To avoid this, we pick a random, 8835 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8836 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8837 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8838 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' 8839 ;; 8840 8841 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8842 tmp_diet=no 8843 if test "$host_os" = linux-dietlibc; then 8844 case $cc_basename in 8845 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8846 esac 8847 fi 8848 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8849 && test "$tmp_diet" = no 8850 then 8851 tmp_addflag=' $pic_flag' 8852 tmp_sharedflag='-shared' 8853 case $cc_basename,$host_cpu in 8854 pgcc*) # Portland Group C compiler 8855 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' 8856 tmp_addflag=' $pic_flag' 8857 ;; 8858 pgf77* | pgf90* | pgf95* | pgfortran*) 8859 # Portland Group f77 and f90 compilers 8860 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' 8861 tmp_addflag=' $pic_flag -Mnomain' ;; 8862 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8863 tmp_addflag=' -i_dynamic' ;; 8864 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8865 tmp_addflag=' -i_dynamic -nofor_main' ;; 8866 ifc* | ifort*) # Intel Fortran compiler 8867 tmp_addflag=' -nofor_main' ;; 8868 lf95*) # Lahey Fortran 8.1 8869 whole_archive_flag_spec= 8870 tmp_sharedflag='--shared' ;; 8871 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8872 tmp_sharedflag='-qmkshrobj' 8873 tmp_addflag= ;; 8874 nvcc*) # Cuda Compiler Driver 2.2 8875 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' 8876 compiler_needs_object=yes 8877 ;; 8878 esac 8879 case `$CC -V 2>&1 | sed 5q` in 8880 *Sun\ C*) # Sun C 5.9 8881 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' 8882 compiler_needs_object=yes 8883 tmp_sharedflag='-G' ;; 8884 *Sun\ F*) # Sun Fortran 8.3 8885 tmp_sharedflag='-G' ;; 8886 esac 8887 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8888 8889 if test "x$supports_anon_versioning" = xyes; then 8890 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8891 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8892 echo "local: *; };" >> $output_objdir/$libname.ver~ 8893 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8894 fi 8895 8896 case $cc_basename in 8897 xlf* | bgf* | bgxlf* | mpixlf*) 8898 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8899 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8900 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8901 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8902 if test "x$supports_anon_versioning" = xyes; then 8903 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8904 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8905 echo "local: *; };" >> $output_objdir/$libname.ver~ 8906 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8907 fi 8908 ;; 8909 esac 8910 else 8911 ld_shlibs=no 8912 fi 8913 ;; 8914 8915 netbsd*) 8916 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8917 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8918 wlarc= 8919 else 8920 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8921 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8922 fi 8923 ;; 8924 8925 solaris*) 8926 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8927 ld_shlibs=no 8928 cat <<_LT_EOF 1>&2 8929 8930 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 8931 *** create shared libraries on Solaris systems. Therefore, libtool 8932 *** is disabling shared libraries support. We urge you to upgrade GNU 8933 *** binutils to release 2.9.1 or newer. Another option is to modify 8934 *** your PATH or compiler configuration so that the native linker is 8935 *** used, and then restart. 8936 8937 _LT_EOF 8938 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8939 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8940 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8941 else 8942 ld_shlibs=no 8943 fi 8944 ;; 8945 8946 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8947 case `$LD -v 2>&1` in 8948 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8949 ld_shlibs=no 8950 cat <<_LT_EOF 1>&2 8951 8952 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8953 *** reliably create shared libraries on SCO systems. Therefore, libtool 8954 *** is disabling shared libraries support. We urge you to upgrade GNU 8955 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8956 *** your PATH or compiler configuration so that the native linker is 8957 *** used, and then restart. 8958 8959 _LT_EOF 8960 ;; 8961 *) 8962 # For security reasons, it is highly recommended that you always 8963 # use absolute paths for naming shared libraries, and exclude the 8964 # DT_RUNPATH tag from executables and libraries. But doing so 8965 # requires that you compile everything twice, which is a pain. 8966 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8967 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8968 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8969 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8970 else 8971 ld_shlibs=no 8972 fi 8973 ;; 8974 esac 8975 ;; 8976 8977 sunos4*) 8978 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8979 wlarc= 8980 hardcode_direct=yes 8981 hardcode_shlibpath_var=no 8982 ;; 8983 8984 *) 8985 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8986 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8987 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8988 else 8989 ld_shlibs=no 8990 fi 8991 ;; 8992 esac 8993 8994 if test "$ld_shlibs" = no; then 8995 runpath_var= 8996 hardcode_libdir_flag_spec= 8997 export_dynamic_flag_spec= 8998 whole_archive_flag_spec= 8999 fi 9000 else 9001 # PORTME fill in a description of your system's linker (not GNU ld) 9002 case $host_os in 9003 aix3*) 9004 allow_undefined_flag=unsupported 9005 always_export_symbols=yes 9006 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' 9007 # Note: this linker hardcodes the directories in LIBPATH if there 9008 # are no directories specified by -L. 9009 hardcode_minus_L=yes 9010 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9011 # Neither direct hardcoding nor static linking is supported with a 9012 # broken collect2. 9013 hardcode_direct=unsupported 9014 fi 9015 ;; 9016 9017 aix[4-9]*) 9018 if test "$host_cpu" = ia64; then 9019 # On IA64, the linker does run time linking by default, so we don't 9020 # have to do anything special. 9021 aix_use_runtimelinking=no 9022 exp_sym_flag='-Bexport' 9023 no_entry_flag="" 9024 else 9025 # If we're using GNU nm, then we don't want the "-C" option. 9026 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9027 # Also, AIX nm treats weak defined symbols like other global 9028 # defined symbols, whereas GNU nm marks them as "W". 9029 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9030 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9031 else 9032 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9033 fi 9034 aix_use_runtimelinking=no 9035 9036 # Test if we are trying to use run time linking or normal 9037 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9038 # need to do runtime linking. 9039 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9040 for ld_flag in $LDFLAGS; do 9041 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9042 aix_use_runtimelinking=yes 9043 break 9044 fi 9045 done 9046 ;; 9047 esac 9048 9049 exp_sym_flag='-bexport' 9050 no_entry_flag='-bnoentry' 9051 fi 9052 9053 # When large executables or shared objects are built, AIX ld can 9054 # have problems creating the table of contents. If linking a library 9055 # or program results in "error TOC overflow" add -mminimal-toc to 9056 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9057 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9058 9059 archive_cmds='' 9060 hardcode_direct=yes 9061 hardcode_direct_absolute=yes 9062 hardcode_libdir_separator=':' 9063 link_all_deplibs=yes 9064 file_list_spec='${wl}-f,' 9065 9066 if test "$GCC" = yes; then 9067 case $host_os in aix4.[012]|aix4.[012].*) 9068 # We only want to do this on AIX 4.2 and lower, the check 9069 # below for broken collect2 doesn't work under 4.3+ 9070 collect2name=`${CC} -print-prog-name=collect2` 9071 if test -f "$collect2name" && 9072 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9073 then 9074 # We have reworked collect2 9075 : 9076 else 9077 # We have old collect2 9078 hardcode_direct=unsupported 9079 # It fails to find uninstalled libraries when the uninstalled 9080 # path is not listed in the libpath. Setting hardcode_minus_L 9081 # to unsupported forces relinking 9082 hardcode_minus_L=yes 9083 hardcode_libdir_flag_spec='-L$libdir' 9084 hardcode_libdir_separator= 9085 fi 9086 ;; 9087 esac 9088 shared_flag='-shared' 9089 if test "$aix_use_runtimelinking" = yes; then 9090 shared_flag="$shared_flag "'${wl}-G' 9091 fi 9092 else 9093 # not using gcc 9094 if test "$host_cpu" = ia64; then 9095 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9096 # chokes on -Wl,-G. The following line is correct: 9097 shared_flag='-G' 9098 else 9099 if test "$aix_use_runtimelinking" = yes; then 9100 shared_flag='${wl}-G' 9101 else 9102 shared_flag='${wl}-bM:SRE' 9103 fi 9104 fi 9105 fi 9106 9107 export_dynamic_flag_spec='${wl}-bexpall' 9108 # It seems that -bexpall does not export symbols beginning with 9109 # underscore (_), so it is better to generate a list of symbols to export. 9110 always_export_symbols=yes 9111 if test "$aix_use_runtimelinking" = yes; then 9112 # Warning - without using the other runtime loading flags (-brtl), 9113 # -berok will link without error, but may produce a broken library. 9114 allow_undefined_flag='-berok' 9115 # Determine the default libpath from the value encoded in an 9116 # empty executable. 9117 if test "${lt_cv_aix_libpath+set}" = set; then 9118 aix_libpath=$lt_cv_aix_libpath 9119 else 9120 if ${lt_cv_aix_libpath_+:} false; then : 9121 $as_echo_n "(cached) " >&6 9122 else 9123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9124 /* end confdefs.h. */ 9125 9126 int 9127 main () 9128 { 9129 9130 ; 9131 return 0; 9132 } 9133 _ACEOF 9134 if ac_fn_c_try_link "$LINENO"; then : 9135 9136 lt_aix_libpath_sed=' 9137 /Import File Strings/,/^$/ { 9138 /^0/ { 9139 s/^0 *\([^ ]*\) *$/\1/ 9140 p 9141 } 9142 }' 9143 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9144 # Check for a 64-bit object if we didn't find anything. 9145 if test -z "$lt_cv_aix_libpath_"; then 9146 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9147 fi 9148 fi 9149 rm -f core conftest.err conftest.$ac_objext \ 9150 conftest$ac_exeext conftest.$ac_ext 9151 if test -z "$lt_cv_aix_libpath_"; then 9152 lt_cv_aix_libpath_="/usr/lib:/lib" 9153 fi 9154 9155 fi 9156 9157 aix_libpath=$lt_cv_aix_libpath_ 9158 fi 9159 9160 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9161 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9162 else 9163 if test "$host_cpu" = ia64; then 9164 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9165 allow_undefined_flag="-z nodefs" 9166 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" 9167 else 9168 # Determine the default libpath from the value encoded in an 9169 # empty executable. 9170 if test "${lt_cv_aix_libpath+set}" = set; then 9171 aix_libpath=$lt_cv_aix_libpath 9172 else 9173 if ${lt_cv_aix_libpath_+:} false; then : 9174 $as_echo_n "(cached) " >&6 9175 else 9176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9177 /* end confdefs.h. */ 9178 9179 int 9180 main () 9181 { 9182 9183 ; 9184 return 0; 9185 } 9186 _ACEOF 9187 if ac_fn_c_try_link "$LINENO"; then : 9188 9189 lt_aix_libpath_sed=' 9190 /Import File Strings/,/^$/ { 9191 /^0/ { 9192 s/^0 *\([^ ]*\) *$/\1/ 9193 p 9194 } 9195 }' 9196 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9197 # Check for a 64-bit object if we didn't find anything. 9198 if test -z "$lt_cv_aix_libpath_"; then 9199 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9200 fi 9201 fi 9202 rm -f core conftest.err conftest.$ac_objext \ 9203 conftest$ac_exeext conftest.$ac_ext 9204 if test -z "$lt_cv_aix_libpath_"; then 9205 lt_cv_aix_libpath_="/usr/lib:/lib" 9206 fi 9207 9208 fi 9209 9210 aix_libpath=$lt_cv_aix_libpath_ 9211 fi 9212 9213 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9214 # Warning - without using the other run time loading flags, 9215 # -berok will link without error, but may produce a broken library. 9216 no_undefined_flag=' ${wl}-bernotok' 9217 allow_undefined_flag=' ${wl}-berok' 9218 if test "$with_gnu_ld" = yes; then 9219 # We only use this code for GNU lds that support --whole-archive. 9220 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9221 else 9222 # Exported symbols can be pulled into shared objects from archives 9223 whole_archive_flag_spec='$convenience' 9224 fi 9225 archive_cmds_need_lc=yes 9226 # This is similar to how AIX traditionally builds its shared libraries. 9227 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 9228 fi 9229 fi 9230 ;; 9231 9232 amigaos*) 9233 case $host_cpu in 9234 powerpc) 9235 # see comment about AmigaOS4 .so support 9236 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9237 archive_expsym_cmds='' 9238 ;; 9239 m68k) 9240 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)' 9241 hardcode_libdir_flag_spec='-L$libdir' 9242 hardcode_minus_L=yes 9243 ;; 9244 esac 9245 ;; 9246 9247 bsdi[45]*) 9248 export_dynamic_flag_spec=-rdynamic 9249 ;; 9250 9251 cygwin* | mingw* | pw32* | cegcc*) 9252 # When not using gcc, we currently assume that we are using 9253 # Microsoft Visual C++. 9254 # hardcode_libdir_flag_spec is actually meaningless, as there is 9255 # no search path for DLLs. 9256 case $cc_basename in 9257 cl*) 9258 # Native MSVC 9259 hardcode_libdir_flag_spec=' ' 9260 allow_undefined_flag=unsupported 9261 always_export_symbols=yes 9262 file_list_spec='@' 9263 # Tell ltmain to make .lib files, not .a files. 9264 libext=lib 9265 # Tell ltmain to make .dll files, not .so files. 9266 shrext_cmds=".dll" 9267 # FIXME: Setting linknames here is a bad hack. 9268 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9269 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9270 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9271 else 9272 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9273 fi~ 9274 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9275 linknames=' 9276 # The linker will not automatically build a static lib if we build a DLL. 9277 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9278 enable_shared_with_static_runtimes=yes 9279 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9280 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9281 # Don't use ranlib 9282 old_postinstall_cmds='chmod 644 $oldlib' 9283 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9284 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9285 case $lt_outputfile in 9286 *.exe|*.EXE) ;; 9287 *) 9288 lt_outputfile="$lt_outputfile.exe" 9289 lt_tool_outputfile="$lt_tool_outputfile.exe" 9290 ;; 9291 esac~ 9292 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9293 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9294 $RM "$lt_outputfile.manifest"; 9295 fi' 9296 ;; 9297 *) 9298 # Assume MSVC wrapper 9299 hardcode_libdir_flag_spec=' ' 9300 allow_undefined_flag=unsupported 9301 # Tell ltmain to make .lib files, not .a files. 9302 libext=lib 9303 # Tell ltmain to make .dll files, not .so files. 9304 shrext_cmds=".dll" 9305 # FIXME: Setting linknames here is a bad hack. 9306 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9307 # The linker will automatically build a .lib file if we build a DLL. 9308 old_archive_from_new_cmds='true' 9309 # FIXME: Should let the user specify the lib program. 9310 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9311 enable_shared_with_static_runtimes=yes 9312 ;; 9313 esac 9314 ;; 9315 9316 darwin* | rhapsody*) 9317 9318 9319 archive_cmds_need_lc=no 9320 hardcode_direct=no 9321 hardcode_automatic=yes 9322 hardcode_shlibpath_var=unsupported 9323 if test "$lt_cv_ld_force_load" = "yes"; then 9324 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\"`' 9325 9326 else 9327 whole_archive_flag_spec='' 9328 fi 9329 link_all_deplibs=yes 9330 allow_undefined_flag="$_lt_dar_allow_undefined" 9331 case $cc_basename in 9332 ifort*) _lt_dar_can_shared=yes ;; 9333 *) _lt_dar_can_shared=$GCC ;; 9334 esac 9335 if test "$_lt_dar_can_shared" = "yes"; then 9336 output_verbose_link_cmd=func_echo_all 9337 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9338 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9339 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}" 9340 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}" 9341 9342 else 9343 ld_shlibs=no 9344 fi 9345 9346 ;; 9347 9348 dgux*) 9349 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9350 hardcode_libdir_flag_spec='-L$libdir' 9351 hardcode_shlibpath_var=no 9352 ;; 9353 9354 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9355 # support. Future versions do this automatically, but an explicit c++rt0.o 9356 # does not break anything, and helps significantly (at the cost of a little 9357 # extra space). 9358 freebsd2.2*) 9359 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9360 hardcode_libdir_flag_spec='-R$libdir' 9361 hardcode_direct=yes 9362 hardcode_shlibpath_var=no 9363 ;; 9364 9365 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9366 freebsd2.*) 9367 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9368 hardcode_direct=yes 9369 hardcode_minus_L=yes 9370 hardcode_shlibpath_var=no 9371 ;; 9372 9373 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9374 freebsd* | dragonfly*) 9375 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9376 hardcode_libdir_flag_spec='-R$libdir' 9377 hardcode_direct=yes 9378 hardcode_shlibpath_var=no 9379 ;; 9380 9381 hpux9*) 9382 if test "$GCC" = yes; then 9383 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9384 else 9385 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9386 fi 9387 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9388 hardcode_libdir_separator=: 9389 hardcode_direct=yes 9390 9391 # hardcode_minus_L: Not really in the search PATH, 9392 # but as the default location of the library. 9393 hardcode_minus_L=yes 9394 export_dynamic_flag_spec='${wl}-E' 9395 ;; 9396 9397 hpux10*) 9398 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9399 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9400 else 9401 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9402 fi 9403 if test "$with_gnu_ld" = no; then 9404 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9405 hardcode_libdir_separator=: 9406 hardcode_direct=yes 9407 hardcode_direct_absolute=yes 9408 export_dynamic_flag_spec='${wl}-E' 9409 # hardcode_minus_L: Not really in the search PATH, 9410 # but as the default location of the library. 9411 hardcode_minus_L=yes 9412 fi 9413 ;; 9414 9415 hpux11*) 9416 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9417 case $host_cpu in 9418 hppa*64*) 9419 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9420 ;; 9421 ia64*) 9422 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9423 ;; 9424 *) 9425 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9426 ;; 9427 esac 9428 else 9429 case $host_cpu in 9430 hppa*64*) 9431 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9432 ;; 9433 ia64*) 9434 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9435 ;; 9436 *) 9437 9438 # Older versions of the 11.00 compiler do not understand -b yet 9439 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9441 $as_echo_n "checking if $CC understands -b... " >&6; } 9442 if ${lt_cv_prog_compiler__b+:} false; then : 9443 $as_echo_n "(cached) " >&6 9444 else 9445 lt_cv_prog_compiler__b=no 9446 save_LDFLAGS="$LDFLAGS" 9447 LDFLAGS="$LDFLAGS -b" 9448 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9449 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9450 # The linker can only warn and ignore the option if not recognized 9451 # So say no if there are warnings 9452 if test -s conftest.err; then 9453 # Append any errors to the config.log. 9454 cat conftest.err 1>&5 9455 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9456 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9457 if diff conftest.exp conftest.er2 >/dev/null; then 9458 lt_cv_prog_compiler__b=yes 9459 fi 9460 else 9461 lt_cv_prog_compiler__b=yes 9462 fi 9463 fi 9464 $RM -r conftest* 9465 LDFLAGS="$save_LDFLAGS" 9466 9467 fi 9468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9469 $as_echo "$lt_cv_prog_compiler__b" >&6; } 9470 9471 if test x"$lt_cv_prog_compiler__b" = xyes; then 9472 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9473 else 9474 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9475 fi 9476 9477 ;; 9478 esac 9479 fi 9480 if test "$with_gnu_ld" = no; then 9481 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9482 hardcode_libdir_separator=: 9483 9484 case $host_cpu in 9485 hppa*64*|ia64*) 9486 hardcode_direct=no 9487 hardcode_shlibpath_var=no 9488 ;; 9489 *) 9490 hardcode_direct=yes 9491 hardcode_direct_absolute=yes 9492 export_dynamic_flag_spec='${wl}-E' 9493 9494 # hardcode_minus_L: Not really in the search PATH, 9495 # but as the default location of the library. 9496 hardcode_minus_L=yes 9497 ;; 9498 esac 9499 fi 9500 ;; 9501 9502 irix5* | irix6* | nonstopux*) 9503 if test "$GCC" = yes; then 9504 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' 9505 # Try to use the -exported_symbol ld option, if it does not 9506 # work, assume that -exports_file does not work either and 9507 # implicitly export all symbols. 9508 # This should be the same for all languages, so no per-tag cache variable. 9509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9510 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9511 if ${lt_cv_irix_exported_symbol+:} false; then : 9512 $as_echo_n "(cached) " >&6 9513 else 9514 save_LDFLAGS="$LDFLAGS" 9515 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9517 /* end confdefs.h. */ 9518 int foo (void) { return 0; } 9519 _ACEOF 9520 if ac_fn_c_try_link "$LINENO"; then : 9521 lt_cv_irix_exported_symbol=yes 9522 else 9523 lt_cv_irix_exported_symbol=no 9524 fi 9525 rm -f core conftest.err conftest.$ac_objext \ 9526 conftest$ac_exeext conftest.$ac_ext 9527 LDFLAGS="$save_LDFLAGS" 9528 fi 9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9530 $as_echo "$lt_cv_irix_exported_symbol" >&6; } 9531 if test "$lt_cv_irix_exported_symbol" = yes; then 9532 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' 9533 fi 9534 else 9535 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' 9536 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' 9537 fi 9538 archive_cmds_need_lc='no' 9539 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9540 hardcode_libdir_separator=: 9541 inherit_rpath=yes 9542 link_all_deplibs=yes 9543 ;; 9544 9545 netbsd*) 9546 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9547 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9548 else 9549 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9550 fi 9551 hardcode_libdir_flag_spec='-R$libdir' 9552 hardcode_direct=yes 9553 hardcode_shlibpath_var=no 9554 ;; 9555 9556 newsos6) 9557 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9558 hardcode_direct=yes 9559 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9560 hardcode_libdir_separator=: 9561 hardcode_shlibpath_var=no 9562 ;; 9563 9564 *nto* | *qnx*) 9565 ;; 9566 9567 openbsd*) 9568 if test -f /usr/libexec/ld.so; then 9569 hardcode_direct=yes 9570 hardcode_shlibpath_var=no 9571 hardcode_direct_absolute=yes 9572 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9573 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9574 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9575 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9576 export_dynamic_flag_spec='${wl}-E' 9577 else 9578 case $host_os in 9579 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9580 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9581 hardcode_libdir_flag_spec='-R$libdir' 9582 ;; 9583 *) 9584 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9585 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9586 ;; 9587 esac 9588 fi 9589 else 9590 ld_shlibs=no 9591 fi 9592 ;; 9593 9594 os2*) 9595 hardcode_libdir_flag_spec='-L$libdir' 9596 hardcode_minus_L=yes 9597 allow_undefined_flag=unsupported 9598 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 9599 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9600 ;; 9601 9602 osf3*) 9603 if test "$GCC" = yes; then 9604 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9605 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' 9606 else 9607 allow_undefined_flag=' -expect_unresolved \*' 9608 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' 9609 fi 9610 archive_cmds_need_lc='no' 9611 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9612 hardcode_libdir_separator=: 9613 ;; 9614 9615 osf4* | osf5*) # as osf3* with the addition of -msym flag 9616 if test "$GCC" = yes; then 9617 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9618 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' 9619 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9620 else 9621 allow_undefined_flag=' -expect_unresolved \*' 9622 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' 9623 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~ 9624 $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' 9625 9626 # Both c and cxx compiler support -rpath directly 9627 hardcode_libdir_flag_spec='-rpath $libdir' 9628 fi 9629 archive_cmds_need_lc='no' 9630 hardcode_libdir_separator=: 9631 ;; 9632 9633 solaris*) 9634 no_undefined_flag=' -z defs' 9635 if test "$GCC" = yes; then 9636 wlarc='${wl}' 9637 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9638 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9639 $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' 9640 else 9641 case `$CC -V 2>&1` in 9642 *"Compilers 5.0"*) 9643 wlarc='' 9644 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9645 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9646 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9647 ;; 9648 *) 9649 wlarc='${wl}' 9650 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9651 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9652 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9653 ;; 9654 esac 9655 fi 9656 hardcode_libdir_flag_spec='-R$libdir' 9657 hardcode_shlibpath_var=no 9658 case $host_os in 9659 solaris2.[0-5] | solaris2.[0-5].*) ;; 9660 *) 9661 # The compiler driver will combine and reorder linker options, 9662 # but understands `-z linker_flag'. GCC discards it without `$wl', 9663 # but is careful enough not to reorder. 9664 # Supported since Solaris 2.6 (maybe 2.5.1?) 9665 if test "$GCC" = yes; then 9666 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9667 else 9668 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9669 fi 9670 ;; 9671 esac 9672 link_all_deplibs=yes 9673 ;; 9674 9675 sunos4*) 9676 if test "x$host_vendor" = xsequent; then 9677 # Use $CC to link under sequent, because it throws in some extra .o 9678 # files that make .init and .fini sections work. 9679 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9680 else 9681 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9682 fi 9683 hardcode_libdir_flag_spec='-L$libdir' 9684 hardcode_direct=yes 9685 hardcode_minus_L=yes 9686 hardcode_shlibpath_var=no 9687 ;; 9688 9689 sysv4) 9690 case $host_vendor in 9691 sni) 9692 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9693 hardcode_direct=yes # is this really true??? 9694 ;; 9695 siemens) 9696 ## LD is ld it makes a PLAMLIB 9697 ## CC just makes a GrossModule. 9698 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9699 reload_cmds='$CC -r -o $output$reload_objs' 9700 hardcode_direct=no 9701 ;; 9702 motorola) 9703 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9704 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9705 ;; 9706 esac 9707 runpath_var='LD_RUN_PATH' 9708 hardcode_shlibpath_var=no 9709 ;; 9710 9711 sysv4.3*) 9712 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9713 hardcode_shlibpath_var=no 9714 export_dynamic_flag_spec='-Bexport' 9715 ;; 9716 9717 sysv4*MP*) 9718 if test -d /usr/nec; then 9719 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9720 hardcode_shlibpath_var=no 9721 runpath_var=LD_RUN_PATH 9722 hardcode_runpath_var=yes 9723 ld_shlibs=yes 9724 fi 9725 ;; 9726 9727 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9728 no_undefined_flag='${wl}-z,text' 9729 archive_cmds_need_lc=no 9730 hardcode_shlibpath_var=no 9731 runpath_var='LD_RUN_PATH' 9732 9733 if test "$GCC" = yes; then 9734 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9735 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9736 else 9737 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9738 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9739 fi 9740 ;; 9741 9742 sysv5* | sco3.2v5* | sco5v6*) 9743 # Note: We can NOT use -z defs as we might desire, because we do not 9744 # link with -lc, and that would cause any symbols used from libc to 9745 # always be unresolved, which means just about no library would 9746 # ever link correctly. If we're not using GNU ld we use -z text 9747 # though, which does catch some bad symbols but isn't as heavy-handed 9748 # as -z defs. 9749 no_undefined_flag='${wl}-z,text' 9750 allow_undefined_flag='${wl}-z,nodefs' 9751 archive_cmds_need_lc=no 9752 hardcode_shlibpath_var=no 9753 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9754 hardcode_libdir_separator=':' 9755 link_all_deplibs=yes 9756 export_dynamic_flag_spec='${wl}-Bexport' 9757 runpath_var='LD_RUN_PATH' 9758 9759 if test "$GCC" = yes; then 9760 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9761 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9762 else 9763 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9764 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9765 fi 9766 ;; 9767 9768 uts4*) 9769 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9770 hardcode_libdir_flag_spec='-L$libdir' 9771 hardcode_shlibpath_var=no 9772 ;; 9773 9774 *) 9775 ld_shlibs=no 9776 ;; 9777 esac 9778 9779 if test x$host_vendor = xsni; then 9780 case $host in 9781 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9782 export_dynamic_flag_spec='${wl}-Blargedynsym' 9783 ;; 9784 esac 9785 fi 9786 fi 9787 9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9789 $as_echo "$ld_shlibs" >&6; } 9790 test "$ld_shlibs" = no && can_build_shared=no 9791 9792 with_gnu_ld=$with_gnu_ld 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 # 9809 # Do we need to explicitly link libc? 9810 # 9811 case "x$archive_cmds_need_lc" in 9812 x|xyes) 9813 # Assume -lc should be added 9814 archive_cmds_need_lc=yes 9815 9816 if test "$enable_shared" = yes && test "$GCC" = yes; then 9817 case $archive_cmds in 9818 *'~'*) 9819 # FIXME: we may have to deal with multi-command sequences. 9820 ;; 9821 '$CC '*) 9822 # Test whether the compiler implicitly links with -lc since on some 9823 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9824 # to ld, don't add -lc before -lgcc. 9825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9826 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9827 if ${lt_cv_archive_cmds_need_lc+:} false; then : 9828 $as_echo_n "(cached) " >&6 9829 else 9830 $RM conftest* 9831 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9832 9833 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9834 (eval $ac_compile) 2>&5 9835 ac_status=$? 9836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9837 test $ac_status = 0; } 2>conftest.err; then 9838 soname=conftest 9839 lib=conftest 9840 libobjs=conftest.$ac_objext 9841 deplibs= 9842 wl=$lt_prog_compiler_wl 9843 pic_flag=$lt_prog_compiler_pic 9844 compiler_flags=-v 9845 linker_flags=-v 9846 verstring= 9847 output_objdir=. 9848 libname=conftest 9849 lt_save_allow_undefined_flag=$allow_undefined_flag 9850 allow_undefined_flag= 9851 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9852 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9853 ac_status=$? 9854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9855 test $ac_status = 0; } 9856 then 9857 lt_cv_archive_cmds_need_lc=no 9858 else 9859 lt_cv_archive_cmds_need_lc=yes 9860 fi 9861 allow_undefined_flag=$lt_save_allow_undefined_flag 9862 else 9863 cat conftest.err 1>&5 9864 fi 9865 $RM conftest* 9866 9867 fi 9868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9869 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9870 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9871 ;; 9872 esac 9873 fi 9874 ;; 9875 esac 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10029 $as_echo_n "checking dynamic linker characteristics... " >&6; } 10030 10031 if test "$GCC" = yes; then 10032 case $host_os in 10033 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10034 *) lt_awk_arg="/^libraries:/" ;; 10035 esac 10036 case $host_os in 10037 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10038 *) lt_sed_strip_eq="s,=/,/,g" ;; 10039 esac 10040 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10041 case $lt_search_path_spec in 10042 *\;*) 10043 # if the path contains ";" then we assume it to be the separator 10044 # otherwise default to the standard path separator (i.e. ":") - it is 10045 # assumed that no part of a normal pathname contains ";" but that should 10046 # okay in the real world where ";" in dirpaths is itself problematic. 10047 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10048 ;; 10049 *) 10050 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10051 ;; 10052 esac 10053 # Ok, now we have the path, separated by spaces, we can step through it 10054 # and add multilib dir if necessary... 10055 lt_tmp_lt_search_path_spec= 10056 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10057 # ...but if some path already ends with the multilib dir we assume 10058 # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer). 10059 case "$lt_multi_os_dir; $lt_search_path_spec " in 10060 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10061 lt_multi_os_dir= 10062 ;; 10063 esac 10064 for lt_sys_path in $lt_search_path_spec; do 10065 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10066 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10067 elif test -n "$lt_multi_os_dir"; then 10068 test -d "$lt_sys_path" && \ 10069 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10070 fi 10071 done 10072 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10073 BEGIN {RS=" "; FS="/|\n";} { 10074 lt_foo=""; 10075 lt_count=0; 10076 for (lt_i = NF; lt_i > 0; lt_i--) { 10077 if ($lt_i != "" && $lt_i != ".") { 10078 if ($lt_i == "..") { 10079 lt_count++; 10080 } else { 10081 if (lt_count == 0) { 10082 lt_foo="/" $lt_i lt_foo; 10083 } else { 10084 lt_count--; 10085 } 10086 } 10087 } 10088 } 10089 if (lt_foo != "") { lt_freq[lt_foo]++; } 10090 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10091 }'` 10092 # AWK program above erroneously prepends '/' to C:/dos/paths 10093 # for these hosts. 10094 case $host_os in 10095 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10096 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10097 esac 10098 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10099 else 10100 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10101 fi 10102 library_names_spec= 10103 libname_spec='lib$name' 10104 soname_spec= 10105 shrext_cmds=".so" 10106 postinstall_cmds= 10107 postuninstall_cmds= 10108 finish_cmds= 10109 finish_eval= 10110 shlibpath_var= 10111 shlibpath_overrides_runpath=unknown 10112 version_type=none 10113 dynamic_linker="$host_os ld.so" 10114 sys_lib_dlsearch_path_spec="/lib /usr/lib" 10115 need_lib_prefix=unknown 10116 hardcode_into_libs=no 10117 10118 # when you set need_version to no, make sure it does not cause -set_version 10119 # flags to be left without arguments 10120 need_version=unknown 10121 10122 case $host_os in 10123 aix3*) 10124 version_type=linux # correct to gnu/linux during the next big refactor 10125 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10126 shlibpath_var=LIBPATH 10127 10128 # AIX 3 has no versioning support, so we append a major version to the name. 10129 soname_spec='${libname}${release}${shared_ext}$major' 10130 ;; 10131 10132 aix[4-9]*) 10133 version_type=linux # correct to gnu/linux during the next big refactor 10134 need_lib_prefix=no 10135 need_version=no 10136 hardcode_into_libs=yes 10137 if test "$host_cpu" = ia64; then 10138 # AIX 5 supports IA64 10139 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10140 shlibpath_var=LD_LIBRARY_PATH 10141 else 10142 # With GCC up to 2.95.x, collect2 would create an import file 10143 # for dependence libraries. The import file would start with 10144 # the line `#! .'. This would cause the generated library to 10145 # depend on `.', always an invalid library. This was fixed in 10146 # development snapshots of GCC prior to 3.0. 10147 case $host_os in 10148 aix4 | aix4.[01] | aix4.[01].*) 10149 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10150 echo ' yes ' 10151 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10152 : 10153 else 10154 can_build_shared=no 10155 fi 10156 ;; 10157 esac 10158 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10159 # soname into executable. Probably we can add versioning support to 10160 # collect2, so additional links can be useful in future. 10161 if test "$aix_use_runtimelinking" = yes; then 10162 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10163 # instead of lib<name>.a to let people know that these are not 10164 # typical AIX shared libraries. 10165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10166 else 10167 # We preserve .a as extension for shared libraries through AIX4.2 10168 # and later when we are not doing run time linking. 10169 library_names_spec='${libname}${release}.a $libname.a' 10170 soname_spec='${libname}${release}${shared_ext}$major' 10171 fi 10172 shlibpath_var=LIBPATH 10173 fi 10174 ;; 10175 10176 amigaos*) 10177 case $host_cpu in 10178 powerpc) 10179 # Since July 2007 AmigaOS4 officially supports .so libraries. 10180 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10182 ;; 10183 m68k) 10184 library_names_spec='$libname.ixlibrary $libname.a' 10185 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10186 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10187 ;; 10188 esac 10189 ;; 10190 10191 beos*) 10192 library_names_spec='${libname}${shared_ext}' 10193 dynamic_linker="$host_os ld.so" 10194 shlibpath_var=LIBRARY_PATH 10195 ;; 10196 10197 bsdi[45]*) 10198 version_type=linux # correct to gnu/linux during the next big refactor 10199 need_version=no 10200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10201 soname_spec='${libname}${release}${shared_ext}$major' 10202 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10203 shlibpath_var=LD_LIBRARY_PATH 10204 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10205 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10206 # the default ld.so.conf also contains /usr/contrib/lib and 10207 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10208 # libtool to hard-code these into programs 10209 ;; 10210 10211 cygwin* | mingw* | pw32* | cegcc*) 10212 version_type=windows 10213 shrext_cmds=".dll" 10214 need_version=no 10215 need_lib_prefix=no 10216 10217 case $GCC,$cc_basename in 10218 yes,*) 10219 # gcc 10220 library_names_spec='$libname.dll.a' 10221 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10222 postinstall_cmds='base_file=`basename \${file}`~ 10223 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10224 dldir=$destdir/`dirname \$dlpath`~ 10225 test -d \$dldir || mkdir -p \$dldir~ 10226 $install_prog $dir/$dlname \$dldir/$dlname~ 10227 chmod a+x \$dldir/$dlname~ 10228 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10229 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10230 fi' 10231 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10232 dlpath=$dir/\$dldll~ 10233 $RM \$dlpath' 10234 shlibpath_overrides_runpath=yes 10235 10236 case $host_os in 10237 cygwin*) 10238 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10239 #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 10240 soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}' 10241 10242 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10243 ;; 10244 mingw* | cegcc*) 10245 # MinGW DLLs use traditional 'lib' prefix 10246 #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 10247 soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}' 10248 ;; 10249 pw32*) 10250 # pw32 DLLs use 'pw' prefix rather than 'lib' 10251 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10252 ;; 10253 esac 10254 dynamic_linker='Win32 ld.exe' 10255 ;; 10256 10257 *,cl*) 10258 # Native MSVC 10259 libname_spec='$name' 10260 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10261 library_names_spec='${libname}.dll.lib' 10262 10263 case $build_os in 10264 mingw*) 10265 sys_lib_search_path_spec= 10266 lt_save_ifs=$IFS 10267 IFS=';' 10268 for lt_path in $LIB 10269 do 10270 IFS=$lt_save_ifs 10271 # Let DOS variable expansion print the short 8.3 style file name. 10272 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10273 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10274 done 10275 IFS=$lt_save_ifs 10276 # Convert to MSYS style. 10277 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10278 ;; 10279 cygwin*) 10280 # Convert to unix form, then to dos form, then back to unix form 10281 # but this time dos style (no spaces!) so that the unix form looks 10282 # like /cygdrive/c/PROGRA~1:/cygdr... 10283 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10284 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10285 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10286 ;; 10287 *) 10288 sys_lib_search_path_spec="$LIB" 10289 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10290 # It is most probably a Windows format PATH. 10291 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10292 else 10293 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10294 fi 10295 # FIXME: find the short name or the path components, as spaces are 10296 # common. (e.g. "Program Files" -> "PROGRA~1") 10297 ;; 10298 esac 10299 10300 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10301 postinstall_cmds='base_file=`basename \${file}`~ 10302 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10303 dldir=$destdir/`dirname \$dlpath`~ 10304 test -d \$dldir || mkdir -p \$dldir~ 10305 $install_prog $dir/$dlname \$dldir/$dlname' 10306 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10307 dlpath=$dir/\$dldll~ 10308 $RM \$dlpath' 10309 shlibpath_overrides_runpath=yes 10310 dynamic_linker='Win32 link.exe' 10311 ;; 10312 10313 *) 10314 # Assume MSVC wrapper 10315 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10316 dynamic_linker='Win32 ld.exe' 10317 ;; 10318 esac 10319 # FIXME: first we should search . and the directory the executable is in 10320 shlibpath_var=PATH 10321 ;; 10322 10323 darwin* | rhapsody*) 10324 dynamic_linker="$host_os dyld" 10325 version_type=darwin 10326 need_lib_prefix=no 10327 need_version=no 10328 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10329 soname_spec='${libname}${release}${major}$shared_ext' 10330 shlibpath_overrides_runpath=yes 10331 shlibpath_var=DYLD_LIBRARY_PATH 10332 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10333 10334 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10335 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10336 ;; 10337 10338 dgux*) 10339 version_type=linux # correct to gnu/linux during the next big refactor 10340 need_lib_prefix=no 10341 need_version=no 10342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10343 soname_spec='${libname}${release}${shared_ext}$major' 10344 shlibpath_var=LD_LIBRARY_PATH 10345 ;; 10346 10347 freebsd* | dragonfly*) 10348 # DragonFly does not have aout. When/if they implement a new 10349 # versioning mechanism, adjust this. 10350 if test -x /usr/bin/objformat; then 10351 objformat=`/usr/bin/objformat` 10352 else 10353 case $host_os in 10354 freebsd[23].*) objformat=aout ;; 10355 *) objformat=elf ;; 10356 esac 10357 fi 10358 version_type=freebsd-$objformat 10359 case $version_type in 10360 freebsd-elf*) 10361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10362 need_version=no 10363 need_lib_prefix=no 10364 ;; 10365 freebsd-*) 10366 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10367 need_version=yes 10368 ;; 10369 esac 10370 shlibpath_var=LD_LIBRARY_PATH 10371 case $host_os in 10372 freebsd2.*) 10373 shlibpath_overrides_runpath=yes 10374 ;; 10375 freebsd3.[01]* | freebsdelf3.[01]*) 10376 shlibpath_overrides_runpath=yes 10377 hardcode_into_libs=yes 10378 ;; 10379 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10380 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10381 shlibpath_overrides_runpath=no 10382 hardcode_into_libs=yes 10383 ;; 10384 *) # from 4.6 on, and DragonFly 10385 shlibpath_overrides_runpath=yes 10386 hardcode_into_libs=yes 10387 ;; 10388 esac 10389 ;; 10390 10391 gnu*) 10392 version_type=linux # correct to gnu/linux during the next big refactor 10393 need_lib_prefix=no 10394 need_version=no 10395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10396 soname_spec='${libname}${release}${shared_ext}$major' 10397 shlibpath_var=LD_LIBRARY_PATH 10398 shlibpath_overrides_runpath=no 10399 hardcode_into_libs=yes 10400 ;; 10401 10402 haiku*) 10403 version_type=linux # correct to gnu/linux during the next big refactor 10404 need_lib_prefix=no 10405 need_version=no 10406 dynamic_linker="$host_os runtime_loader" 10407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10408 soname_spec='${libname}${release}${shared_ext}$major' 10409 shlibpath_var=LIBRARY_PATH 10410 shlibpath_overrides_runpath=yes 10411 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10412 hardcode_into_libs=yes 10413 ;; 10414 10415 hpux9* | hpux10* | hpux11*) 10416 # Give a soname corresponding to the major version so that dld.sl refuses to 10417 # link against other versions. 10418 version_type=sunos 10419 need_lib_prefix=no 10420 need_version=no 10421 case $host_cpu in 10422 ia64*) 10423 shrext_cmds='.so' 10424 hardcode_into_libs=yes 10425 dynamic_linker="$host_os dld.so" 10426 shlibpath_var=LD_LIBRARY_PATH 10427 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10429 soname_spec='${libname}${release}${shared_ext}$major' 10430 if test "X$HPUX_IA64_MODE" = X32; then 10431 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10432 else 10433 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10434 fi 10435 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10436 ;; 10437 hppa*64*) 10438 shrext_cmds='.sl' 10439 hardcode_into_libs=yes 10440 dynamic_linker="$host_os dld.sl" 10441 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10442 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10444 soname_spec='${libname}${release}${shared_ext}$major' 10445 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10446 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10447 ;; 10448 *) 10449 shrext_cmds='.sl' 10450 dynamic_linker="$host_os dld.sl" 10451 shlibpath_var=SHLIB_PATH 10452 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10454 soname_spec='${libname}${release}${shared_ext}$major' 10455 ;; 10456 esac 10457 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10458 postinstall_cmds='chmod 555 $lib' 10459 # or fails outright, so override atomically: 10460 install_override_mode=555 10461 ;; 10462 10463 interix[3-9]*) 10464 version_type=linux # correct to gnu/linux during the next big refactor 10465 need_lib_prefix=no 10466 need_version=no 10467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10468 soname_spec='${libname}${release}${shared_ext}$major' 10469 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10470 shlibpath_var=LD_LIBRARY_PATH 10471 shlibpath_overrides_runpath=no 10472 hardcode_into_libs=yes 10473 ;; 10474 10475 irix5* | irix6* | nonstopux*) 10476 case $host_os in 10477 nonstopux*) version_type=nonstopux ;; 10478 *) 10479 if test "$lt_cv_prog_gnu_ld" = yes; then 10480 version_type=linux # correct to gnu/linux during the next big refactor 10481 else 10482 version_type=irix 10483 fi ;; 10484 esac 10485 need_lib_prefix=no 10486 need_version=no 10487 soname_spec='${libname}${release}${shared_ext}$major' 10488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10489 case $host_os in 10490 irix5* | nonstopux*) 10491 libsuff= shlibsuff= 10492 ;; 10493 *) 10494 case $LD in # libtool.m4 will add one of these switches to LD 10495 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10496 libsuff= shlibsuff= libmagic=32-bit;; 10497 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10498 libsuff=32 shlibsuff=N32 libmagic=N32;; 10499 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10500 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10501 *) libsuff= shlibsuff= libmagic=never-match;; 10502 esac 10503 ;; 10504 esac 10505 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10506 shlibpath_overrides_runpath=no 10507 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10508 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10509 hardcode_into_libs=yes 10510 ;; 10511 10512 # No shared lib support for Linux oldld, aout, or coff. 10513 linux*oldld* | linux*aout* | linux*coff*) 10514 dynamic_linker=no 10515 ;; 10516 10517 # This must be glibc/ELF. 10518 linux* | k*bsd*-gnu | kopensolaris*-gnu) 10519 version_type=linux # correct to gnu/linux during the next big refactor 10520 need_lib_prefix=no 10521 need_version=no 10522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10523 soname_spec='${libname}${release}${shared_ext}$major' 10524 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10525 shlibpath_var=LD_LIBRARY_PATH 10526 shlibpath_overrides_runpath=no 10527 10528 # Some binutils ld are patched to set DT_RUNPATH 10529 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10530 $as_echo_n "(cached) " >&6 10531 else 10532 lt_cv_shlibpath_overrides_runpath=no 10533 save_LDFLAGS=$LDFLAGS 10534 save_libdir=$libdir 10535 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10536 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10538 /* end confdefs.h. */ 10539 10540 int 10541 main () 10542 { 10543 10544 ; 10545 return 0; 10546 } 10547 _ACEOF 10548 if ac_fn_c_try_link "$LINENO"; then : 10549 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10550 lt_cv_shlibpath_overrides_runpath=yes 10551 fi 10552 fi 10553 rm -f core conftest.err conftest.$ac_objext \ 10554 conftest$ac_exeext conftest.$ac_ext 10555 LDFLAGS=$save_LDFLAGS 10556 libdir=$save_libdir 10557 10558 fi 10559 10560 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10561 10562 # This implies no fast_install, which is unacceptable. 10563 # Some rework will be needed to allow for fast_install 10564 # before this can be enabled. 10565 hardcode_into_libs=yes 10566 10567 # Append ld.so.conf contents to the search path 10568 if test -f /etc/ld.so.conf; then 10569 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' ' '` 10570 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10571 fi 10572 10573 # We used to test for /lib/ld.so.1 and disable shared libraries on 10574 # powerpc, because MkLinux only supported shared libraries with the 10575 # GNU dynamic linker. Since this was broken with cross compilers, 10576 # most powerpc-linux boxes support dynamic linking these days and 10577 # people can always --disable-shared, the test was removed, and we 10578 # assume the GNU/Linux dynamic linker is in use. 10579 dynamic_linker='GNU/Linux ld.so' 10580 ;; 10581 10582 netbsd*) 10583 version_type=sunos 10584 need_lib_prefix=no 10585 need_version=no 10586 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10588 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10589 dynamic_linker='NetBSD (a.out) ld.so' 10590 else 10591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10592 soname_spec='${libname}${release}${shared_ext}$major' 10593 dynamic_linker='NetBSD ld.elf_so' 10594 fi 10595 shlibpath_var=LD_LIBRARY_PATH 10596 shlibpath_overrides_runpath=yes 10597 hardcode_into_libs=yes 10598 ;; 10599 10600 newsos6) 10601 version_type=linux # correct to gnu/linux during the next big refactor 10602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10603 shlibpath_var=LD_LIBRARY_PATH 10604 shlibpath_overrides_runpath=yes 10605 ;; 10606 10607 *nto* | *qnx*) 10608 version_type=qnx 10609 need_lib_prefix=no 10610 need_version=no 10611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10612 soname_spec='${libname}${release}${shared_ext}$major' 10613 shlibpath_var=LD_LIBRARY_PATH 10614 shlibpath_overrides_runpath=no 10615 hardcode_into_libs=yes 10616 dynamic_linker='ldqnx.so' 10617 ;; 10618 10619 openbsd*) 10620 version_type=sunos 10621 sys_lib_dlsearch_path_spec="/usr/lib" 10622 need_lib_prefix=no 10623 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10624 case $host_os in 10625 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10626 *) need_version=no ;; 10627 esac 10628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10629 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10630 shlibpath_var=LD_LIBRARY_PATH 10631 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10632 case $host_os in 10633 openbsd2.[89] | openbsd2.[89].*) 10634 shlibpath_overrides_runpath=no 10635 ;; 10636 *) 10637 shlibpath_overrides_runpath=yes 10638 ;; 10639 esac 10640 else 10641 shlibpath_overrides_runpath=yes 10642 fi 10643 ;; 10644 10645 os2*) 10646 libname_spec='$name' 10647 shrext_cmds=".dll" 10648 need_lib_prefix=no 10649 library_names_spec='$libname${shared_ext} $libname.a' 10650 dynamic_linker='OS/2 ld.exe' 10651 shlibpath_var=LIBPATH 10652 ;; 10653 10654 osf3* | osf4* | osf5*) 10655 version_type=osf 10656 need_lib_prefix=no 10657 need_version=no 10658 soname_spec='${libname}${release}${shared_ext}$major' 10659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10660 shlibpath_var=LD_LIBRARY_PATH 10661 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10662 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10663 ;; 10664 10665 rdos*) 10666 dynamic_linker=no 10667 ;; 10668 10669 solaris*) 10670 version_type=linux # correct to gnu/linux during the next big refactor 10671 need_lib_prefix=no 10672 need_version=no 10673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10674 soname_spec='${libname}${release}${shared_ext}$major' 10675 shlibpath_var=LD_LIBRARY_PATH 10676 shlibpath_overrides_runpath=yes 10677 hardcode_into_libs=yes 10678 # ldd complains unless libraries are executable 10679 postinstall_cmds='chmod +x $lib' 10680 ;; 10681 10682 sunos4*) 10683 version_type=sunos 10684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10685 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10686 shlibpath_var=LD_LIBRARY_PATH 10687 shlibpath_overrides_runpath=yes 10688 if test "$with_gnu_ld" = yes; then 10689 need_lib_prefix=no 10690 fi 10691 need_version=yes 10692 ;; 10693 10694 sysv4 | sysv4.3*) 10695 version_type=linux # correct to gnu/linux during the next big refactor 10696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10697 soname_spec='${libname}${release}${shared_ext}$major' 10698 shlibpath_var=LD_LIBRARY_PATH 10699 case $host_vendor in 10700 sni) 10701 shlibpath_overrides_runpath=no 10702 need_lib_prefix=no 10703 runpath_var=LD_RUN_PATH 10704 ;; 10705 siemens) 10706 need_lib_prefix=no 10707 ;; 10708 motorola) 10709 need_lib_prefix=no 10710 need_version=no 10711 shlibpath_overrides_runpath=no 10712 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10713 ;; 10714 esac 10715 ;; 10716 10717 sysv4*MP*) 10718 if test -d /usr/nec ;then 10719 version_type=linux # correct to gnu/linux during the next big refactor 10720 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10721 soname_spec='$libname${shared_ext}.$major' 10722 shlibpath_var=LD_LIBRARY_PATH 10723 fi 10724 ;; 10725 10726 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10727 version_type=freebsd-elf 10728 need_lib_prefix=no 10729 need_version=no 10730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10731 soname_spec='${libname}${release}${shared_ext}$major' 10732 shlibpath_var=LD_LIBRARY_PATH 10733 shlibpath_overrides_runpath=yes 10734 hardcode_into_libs=yes 10735 if test "$with_gnu_ld" = yes; then 10736 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10737 else 10738 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10739 case $host_os in 10740 sco3.2v5*) 10741 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10742 ;; 10743 esac 10744 fi 10745 sys_lib_dlsearch_path_spec='/usr/lib' 10746 ;; 10747 10748 tpf*) 10749 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10750 version_type=linux # correct to gnu/linux during the next big refactor 10751 need_lib_prefix=no 10752 need_version=no 10753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10754 shlibpath_var=LD_LIBRARY_PATH 10755 shlibpath_overrides_runpath=no 10756 hardcode_into_libs=yes 10757 ;; 10758 10759 uts4*) 10760 version_type=linux # correct to gnu/linux during the next big refactor 10761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10762 soname_spec='${libname}${release}${shared_ext}$major' 10763 shlibpath_var=LD_LIBRARY_PATH 10764 ;; 10765 10766 *) 10767 dynamic_linker=no 10768 ;; 10769 esac 10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10771 $as_echo "$dynamic_linker" >&6; } 10772 test "$dynamic_linker" = no && can_build_shared=no 10773 10774 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10775 if test "$GCC" = yes; then 10776 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10777 fi 10778 10779 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10780 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10781 fi 10782 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10783 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10784 fi 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10878 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10879 hardcode_action= 10880 if test -n "$hardcode_libdir_flag_spec" || 10881 test -n "$runpath_var" || 10882 test "X$hardcode_automatic" = "Xyes" ; then 10883 10884 # We can hardcode non-existent directories. 10885 if test "$hardcode_direct" != no && 10886 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10887 # have to relink, otherwise we might link with an installed library 10888 # when we should be linking with a yet-to-be-installed one 10889 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10890 test "$hardcode_minus_L" != no; then 10891 # Linking always hardcodes the temporary library directory. 10892 hardcode_action=relink 10893 else 10894 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10895 hardcode_action=immediate 10896 fi 10897 else 10898 # We cannot hardcode anything, or else we can only hardcode existing 10899 # directories. 10900 hardcode_action=unsupported 10901 fi 10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10903 $as_echo "$hardcode_action" >&6; } 10904 10905 if test "$hardcode_action" = relink || 10906 test "$inherit_rpath" = yes; then 10907 # Fast installation is not supported 10908 enable_fast_install=no 10909 elif test "$shlibpath_overrides_runpath" = yes || 10910 test "$enable_shared" = no; then 10911 # Fast installation is not necessary 10912 enable_fast_install=needless 10913 fi 10914 10915 10916 10917 10918 10919 10920 if test "x$enable_dlopen" != xyes; then 10921 enable_dlopen=unknown 10922 enable_dlopen_self=unknown 10923 enable_dlopen_self_static=unknown 10924 else 10925 lt_cv_dlopen=no 10926 lt_cv_dlopen_libs= 10927 10928 case $host_os in 10929 beos*) 10930 lt_cv_dlopen="load_add_on" 10931 lt_cv_dlopen_libs= 10932 lt_cv_dlopen_self=yes 10933 ;; 10934 10935 mingw* | pw32* | cegcc*) 10936 lt_cv_dlopen="LoadLibrary" 10937 lt_cv_dlopen_libs= 10938 ;; 10939 10940 cygwin*) 10941 lt_cv_dlopen="dlopen" 10942 lt_cv_dlopen_libs= 10943 ;; 10944 10945 darwin*) 10946 # if libdl is installed we need to link against it 10947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10948 $as_echo_n "checking for dlopen in -ldl... " >&6; } 10949 if ${ac_cv_lib_dl_dlopen+:} false; then : 10950 $as_echo_n "(cached) " >&6 10951 else 10952 ac_check_lib_save_LIBS=$LIBS 10953 LIBS="-ldl $LIBS" 10954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10955 /* end confdefs.h. */ 10956 10957 /* Override any GCC internal prototype to avoid an error. 10958 Use char because int might match the return type of a GCC 10959 builtin and then its argument prototype would still apply. */ 10960 #ifdef __cplusplus 10961 extern "C" 10962 #endif 10963 char dlopen (); 10964 int 10965 main () 10966 { 10967 return dlopen (); 10968 ; 10969 return 0; 10970 } 10971 _ACEOF 10972 if ac_fn_c_try_link "$LINENO"; then : 10973 ac_cv_lib_dl_dlopen=yes 10974 else 10975 ac_cv_lib_dl_dlopen=no 10976 fi 10977 rm -f core conftest.err conftest.$ac_objext \ 10978 conftest$ac_exeext conftest.$ac_ext 10979 LIBS=$ac_check_lib_save_LIBS 10980 fi 10981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10982 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10983 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10984 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10985 else 10986 10987 lt_cv_dlopen="dyld" 10988 lt_cv_dlopen_libs= 10989 lt_cv_dlopen_self=yes 10990 10991 fi 10992 10993 ;; 10994 10995 *) 10996 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10997 if test "x$ac_cv_func_shl_load" = xyes; then : 10998 lt_cv_dlopen="shl_load" 10999 else 11000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11001 $as_echo_n "checking for shl_load in -ldld... " >&6; } 11002 if ${ac_cv_lib_dld_shl_load+:} false; then : 11003 $as_echo_n "(cached) " >&6 11004 else 11005 ac_check_lib_save_LIBS=$LIBS 11006 LIBS="-ldld $LIBS" 11007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11008 /* end confdefs.h. */ 11009 11010 /* Override any GCC internal prototype to avoid an error. 11011 Use char because int might match the return type of a GCC 11012 builtin and then its argument prototype would still apply. */ 11013 #ifdef __cplusplus 11014 extern "C" 11015 #endif 11016 char shl_load (); 11017 int 11018 main () 11019 { 11020 return shl_load (); 11021 ; 11022 return 0; 11023 } 11024 _ACEOF 11025 if ac_fn_c_try_link "$LINENO"; then : 11026 ac_cv_lib_dld_shl_load=yes 11027 else 11028 ac_cv_lib_dld_shl_load=no 11029 fi 11030 rm -f core conftest.err conftest.$ac_objext \ 11031 conftest$ac_exeext conftest.$ac_ext 11032 LIBS=$ac_check_lib_save_LIBS 11033 fi 11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11035 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11036 if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11037 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11038 else 11039 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11040 if test "x$ac_cv_func_dlopen" = xyes; then : 11041 lt_cv_dlopen="dlopen" 11042 else 11043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11044 $as_echo_n "checking for dlopen in -ldl... " >&6; } 11045 if ${ac_cv_lib_dl_dlopen+:} false; then : 11046 $as_echo_n "(cached) " >&6 11047 else 11048 ac_check_lib_save_LIBS=$LIBS 11049 LIBS="-ldl $LIBS" 11050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11051 /* end confdefs.h. */ 11052 11053 /* Override any GCC internal prototype to avoid an error. 11054 Use char because int might match the return type of a GCC 11055 builtin and then its argument prototype would still apply. */ 11056 #ifdef __cplusplus 11057 extern "C" 11058 #endif 11059 char dlopen (); 11060 int 11061 main () 11062 { 11063 return dlopen (); 11064 ; 11065 return 0; 11066 } 11067 _ACEOF 11068 if ac_fn_c_try_link "$LINENO"; then : 11069 ac_cv_lib_dl_dlopen=yes 11070 else 11071 ac_cv_lib_dl_dlopen=no 11072 fi 11073 rm -f core conftest.err conftest.$ac_objext \ 11074 conftest$ac_exeext conftest.$ac_ext 11075 LIBS=$ac_check_lib_save_LIBS 11076 fi 11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11078 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11079 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11080 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11081 else 11082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11083 $as_echo_n "checking for dlopen in -lsvld... " >&6; } 11084 if ${ac_cv_lib_svld_dlopen+:} false; then : 11085 $as_echo_n "(cached) " >&6 11086 else 11087 ac_check_lib_save_LIBS=$LIBS 11088 LIBS="-lsvld $LIBS" 11089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11090 /* end confdefs.h. */ 11091 11092 /* Override any GCC internal prototype to avoid an error. 11093 Use char because int might match the return type of a GCC 11094 builtin and then its argument prototype would still apply. */ 11095 #ifdef __cplusplus 11096 extern "C" 11097 #endif 11098 char dlopen (); 11099 int 11100 main () 11101 { 11102 return dlopen (); 11103 ; 11104 return 0; 11105 } 11106 _ACEOF 11107 if ac_fn_c_try_link "$LINENO"; then : 11108 ac_cv_lib_svld_dlopen=yes 11109 else 11110 ac_cv_lib_svld_dlopen=no 11111 fi 11112 rm -f core conftest.err conftest.$ac_objext \ 11113 conftest$ac_exeext conftest.$ac_ext 11114 LIBS=$ac_check_lib_save_LIBS 11115 fi 11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11117 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11118 if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11119 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11120 else 11121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11122 $as_echo_n "checking for dld_link in -ldld... " >&6; } 11123 if ${ac_cv_lib_dld_dld_link+:} false; then : 11124 $as_echo_n "(cached) " >&6 11125 else 11126 ac_check_lib_save_LIBS=$LIBS 11127 LIBS="-ldld $LIBS" 11128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11129 /* end confdefs.h. */ 11130 11131 /* Override any GCC internal prototype to avoid an error. 11132 Use char because int might match the return type of a GCC 11133 builtin and then its argument prototype would still apply. */ 11134 #ifdef __cplusplus 11135 extern "C" 11136 #endif 11137 char dld_link (); 11138 int 11139 main () 11140 { 11141 return dld_link (); 11142 ; 11143 return 0; 11144 } 11145 _ACEOF 11146 if ac_fn_c_try_link "$LINENO"; then : 11147 ac_cv_lib_dld_dld_link=yes 11148 else 11149 ac_cv_lib_dld_dld_link=no 11150 fi 11151 rm -f core conftest.err conftest.$ac_objext \ 11152 conftest$ac_exeext conftest.$ac_ext 11153 LIBS=$ac_check_lib_save_LIBS 11154 fi 11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11156 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11157 if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11158 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11159 fi 11160 11161 11162 fi 11163 11164 11165 fi 11166 11167 11168 fi 11169 11170 11171 fi 11172 11173 11174 fi 11175 11176 ;; 11177 esac 11178 11179 if test "x$lt_cv_dlopen" != xno; then 11180 enable_dlopen=yes 11181 else 11182 enable_dlopen=no 11183 fi 11184 11185 case $lt_cv_dlopen in 11186 dlopen) 11187 save_CPPFLAGS="$CPPFLAGS" 11188 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11189 11190 save_LDFLAGS="$LDFLAGS" 11191 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11192 11193 save_LIBS="$LIBS" 11194 LIBS="$lt_cv_dlopen_libs $LIBS" 11195 11196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11197 $as_echo_n "checking whether a program can dlopen itself... " >&6; } 11198 if ${lt_cv_dlopen_self+:} false; then : 11199 $as_echo_n "(cached) " >&6 11200 else 11201 if test "$cross_compiling" = yes; then : 11202 lt_cv_dlopen_self=cross 11203 else 11204 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11205 lt_status=$lt_dlunknown 11206 cat > conftest.$ac_ext <<_LT_EOF 11207 #line $LINENO "configure" 11208 #include "confdefs.h" 11209 11210 #if HAVE_DLFCN_H 11211 #include <dlfcn.h> 11212 #endif 11213 11214 #include <stdio.h> 11215 11216 #ifdef RTLD_GLOBAL 11217 # define LT_DLGLOBAL RTLD_GLOBAL 11218 #else 11219 # ifdef DL_GLOBAL 11220 # define LT_DLGLOBAL DL_GLOBAL 11221 # else 11222 # define LT_DLGLOBAL 0 11223 # endif 11224 #endif 11225 11226 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11227 find out it does not work in some platform. */ 11228 #ifndef LT_DLLAZY_OR_NOW 11229 # ifdef RTLD_LAZY 11230 # define LT_DLLAZY_OR_NOW RTLD_LAZY 11231 # else 11232 # ifdef DL_LAZY 11233 # define LT_DLLAZY_OR_NOW DL_LAZY 11234 # else 11235 # ifdef RTLD_NOW 11236 # define LT_DLLAZY_OR_NOW RTLD_NOW 11237 # else 11238 # ifdef DL_NOW 11239 # define LT_DLLAZY_OR_NOW DL_NOW 11240 # else 11241 # define LT_DLLAZY_OR_NOW 0 11242 # endif 11243 # endif 11244 # endif 11245 # endif 11246 #endif 11247 11248 /* When -fvisbility=hidden is used, assume the code has been annotated 11249 correspondingly for the symbols needed. */ 11250 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11251 int fnord () __attribute__((visibility("default"))); 11252 #endif 11253 11254 int fnord () { return 42; } 11255 int main () 11256 { 11257 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11258 int status = $lt_dlunknown; 11259 11260 if (self) 11261 { 11262 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11263 else 11264 { 11265 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11266 else puts (dlerror ()); 11267 } 11268 /* dlclose (self); */ 11269 } 11270 else 11271 puts (dlerror ()); 11272 11273 return status; 11274 } 11275 _LT_EOF 11276 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11277 (eval $ac_link) 2>&5 11278 ac_status=$? 11279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11280 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11281 (./conftest; exit; ) >&5 2>/dev/null 11282 lt_status=$? 11283 case x$lt_status in 11284 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11285 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11286 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11287 esac 11288 else : 11289 # compilation failed 11290 lt_cv_dlopen_self=no 11291 fi 11292 fi 11293 rm -fr conftest* 11294 11295 11296 fi 11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11298 $as_echo "$lt_cv_dlopen_self" >&6; } 11299 11300 if test "x$lt_cv_dlopen_self" = xyes; then 11301 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11303 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11304 if ${lt_cv_dlopen_self_static+:} false; then : 11305 $as_echo_n "(cached) " >&6 11306 else 11307 if test "$cross_compiling" = yes; then : 11308 lt_cv_dlopen_self_static=cross 11309 else 11310 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11311 lt_status=$lt_dlunknown 11312 cat > conftest.$ac_ext <<_LT_EOF 11313 #line $LINENO "configure" 11314 #include "confdefs.h" 11315 11316 #if HAVE_DLFCN_H 11317 #include <dlfcn.h> 11318 #endif 11319 11320 #include <stdio.h> 11321 11322 #ifdef RTLD_GLOBAL 11323 # define LT_DLGLOBAL RTLD_GLOBAL 11324 #else 11325 # ifdef DL_GLOBAL 11326 # define LT_DLGLOBAL DL_GLOBAL 11327 # else 11328 # define LT_DLGLOBAL 0 11329 # endif 11330 #endif 11331 11332 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11333 find out it does not work in some platform. */ 11334 #ifndef LT_DLLAZY_OR_NOW 11335 # ifdef RTLD_LAZY 11336 # define LT_DLLAZY_OR_NOW RTLD_LAZY 11337 # else 11338 # ifdef DL_LAZY 11339 # define LT_DLLAZY_OR_NOW DL_LAZY 11340 # else 11341 # ifdef RTLD_NOW 11342 # define LT_DLLAZY_OR_NOW RTLD_NOW 11343 # else 11344 # ifdef DL_NOW 11345 # define LT_DLLAZY_OR_NOW DL_NOW 11346 # else 11347 # define LT_DLLAZY_OR_NOW 0 11348 # endif 11349 # endif 11350 # endif 11351 # endif 11352 #endif 11353 11354 /* When -fvisbility=hidden is used, assume the code has been annotated 11355 correspondingly for the symbols needed. */ 11356 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11357 int fnord () __attribute__((visibility("default"))); 11358 #endif 11359 11360 int fnord () { return 42; } 11361 int main () 11362 { 11363 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11364 int status = $lt_dlunknown; 11365 11366 if (self) 11367 { 11368 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11369 else 11370 { 11371 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11372 else puts (dlerror ()); 11373 } 11374 /* dlclose (self); */ 11375 } 11376 else 11377 puts (dlerror ()); 11378 11379 return status; 11380 } 11381 _LT_EOF 11382 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11383 (eval $ac_link) 2>&5 11384 ac_status=$? 11385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11386 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11387 (./conftest; exit; ) >&5 2>/dev/null 11388 lt_status=$? 11389 case x$lt_status in 11390 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11391 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11392 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11393 esac 11394 else : 11395 # compilation failed 11396 lt_cv_dlopen_self_static=no 11397 fi 11398 fi 11399 rm -fr conftest* 11400 11401 11402 fi 11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11404 $as_echo "$lt_cv_dlopen_self_static" >&6; } 11405 fi 11406 11407 CPPFLAGS="$save_CPPFLAGS" 11408 LDFLAGS="$save_LDFLAGS" 11409 LIBS="$save_LIBS" 11410 ;; 11411 esac 11412 11413 case $lt_cv_dlopen_self in 11414 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11415 *) enable_dlopen_self=unknown ;; 11416 esac 11417 11418 case $lt_cv_dlopen_self_static in 11419 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11420 *) enable_dlopen_self_static=unknown ;; 11421 esac 11422 fi 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 striplib= 11441 old_striplib= 11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11443 $as_echo_n "checking whether stripping libraries is possible... " >&6; } 11444 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11445 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11446 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11448 $as_echo "yes" >&6; } 11449 else 11450 # FIXME - insert some real tests, host_os isn't really good enough 11451 case $host_os in 11452 darwin*) 11453 if test -n "$STRIP" ; then 11454 striplib="$STRIP -x" 11455 old_striplib="$STRIP -S" 11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11457 $as_echo "yes" >&6; } 11458 else 11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11460 $as_echo "no" >&6; } 11461 fi 11462 ;; 11463 *) 11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11465 $as_echo "no" >&6; } 11466 ;; 11467 esac 11468 fi 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 # Report which library types will actually be built 11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11483 $as_echo_n "checking if libtool supports shared libraries... " >&6; } 11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11485 $as_echo "$can_build_shared" >&6; } 11486 11487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11488 $as_echo_n "checking whether to build shared libraries... " >&6; } 11489 test "$can_build_shared" = "no" && enable_shared=no 11490 11491 # On AIX, shared libraries and static libraries use the same namespace, and 11492 # are all built from PIC. 11493 case $host_os in 11494 aix3*) 11495 test "$enable_shared" = yes && enable_static=no 11496 if test -n "$RANLIB"; then 11497 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11498 postinstall_cmds='$RANLIB $lib' 11499 fi 11500 ;; 11501 11502 aix[4-9]*) 11503 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11504 test "$enable_shared" = yes && enable_static=no 11505 fi 11506 ;; 11507 esac 11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11509 $as_echo "$enable_shared" >&6; } 11510 11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11512 $as_echo_n "checking whether to build static libraries... " >&6; } 11513 # Make sure either enable_shared or enable_static is yes. 11514 test "$enable_shared" = yes || enable_static=yes 11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11516 $as_echo "$enable_static" >&6; } 11517 11518 11519 11520 11521 fi 11522 ac_ext=c 11523 ac_cpp='$CPP $CPPFLAGS' 11524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11526 ac_compiler_gnu=$ac_cv_c_compiler_gnu 11527 11528 CC="$lt_save_CC" 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 ac_config_commands="$ac_config_commands libtool" 11545 11546 11547 11548 11549 # Only expand once: 11550 11551 11552 if test -n "$ac_tool_prefix"; then 11553 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 11554 set dummy ${ac_tool_prefix}windres; ac_word=$2 11555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11556 $as_echo_n "checking for $ac_word... " >&6; } 11557 if ${ac_cv_prog_RC+:} false; then : 11558 $as_echo_n "(cached) " >&6 11559 else 11560 if test -n "$RC"; then 11561 ac_cv_prog_RC="$RC" # Let the user override the test. 11562 else 11563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11564 for as_dir in $PATH 11565 do 11566 IFS=$as_save_IFS 11567 test -z "$as_dir" && as_dir=. 11568 for ac_exec_ext in '' $ac_executable_extensions; do 11569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11570 ac_cv_prog_RC="${ac_tool_prefix}windres" 11571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11572 break 2 11573 fi 11574 done 11575 done 11576 IFS=$as_save_IFS 11577 11578 fi 11579 fi 11580 RC=$ac_cv_prog_RC 11581 if test -n "$RC"; then 11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 11583 $as_echo "$RC" >&6; } 11584 else 11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11586 $as_echo "no" >&6; } 11587 fi 11588 11589 11590 fi 11591 if test -z "$ac_cv_prog_RC"; then 11592 ac_ct_RC=$RC 11593 # Extract the first word of "windres", so it can be a program name with args. 11594 set dummy windres; ac_word=$2 11595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11596 $as_echo_n "checking for $ac_word... " >&6; } 11597 if ${ac_cv_prog_ac_ct_RC+:} false; then : 11598 $as_echo_n "(cached) " >&6 11599 else 11600 if test -n "$ac_ct_RC"; then 11601 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test. 11602 else 11603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11604 for as_dir in $PATH 11605 do 11606 IFS=$as_save_IFS 11607 test -z "$as_dir" && as_dir=. 11608 for ac_exec_ext in '' $ac_executable_extensions; do 11609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11610 ac_cv_prog_ac_ct_RC="windres" 11611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11612 break 2 11613 fi 11614 done 11615 done 11616 IFS=$as_save_IFS 11617 11618 fi 11619 fi 11620 ac_ct_RC=$ac_cv_prog_ac_ct_RC 11621 if test -n "$ac_ct_RC"; then 11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5 11623 $as_echo "$ac_ct_RC" >&6; } 11624 else 11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11626 $as_echo "no" >&6; } 11627 fi 11628 11629 if test "x$ac_ct_RC" = x; then 11630 RC="" 11631 else 11632 case $cross_compiling:$ac_tool_warned in 11633 yes:) 11634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11636 ac_tool_warned=yes ;; 11637 esac 11638 RC=$ac_ct_RC 11639 fi 11640 else 11641 RC="$ac_cv_prog_RC" 11642 fi 11643 11644 11645 11646 11647 # Source file extension for RC test sources. 11648 ac_ext=rc 11649 11650 # Object file extension for compiled RC test sources. 11651 objext=o 11652 objext_RC=$objext 11653 11654 # Code to be used in simple compile tests 11655 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 11656 11657 # Code to be used in simple link tests 11658 lt_simple_link_test_code="$lt_simple_compile_test_code" 11659 11660 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 11661 11662 11663 11664 11665 11666 11667 # If no C compiler was specified, use CC. 11668 LTCC=${LTCC-"$CC"} 11669 11670 # If no C compiler flags were specified, use CFLAGS. 11671 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11672 11673 # Allow CC to be a program name with arguments. 11674 compiler=$CC 11675 11676 11677 # save warnings/boilerplate of simple test code 11678 ac_outfile=conftest.$ac_objext 11679 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11680 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11681 _lt_compiler_boilerplate=`cat conftest.err` 11682 $RM conftest* 11683 11684 ac_outfile=conftest.$ac_objext 11685 echo "$lt_simple_link_test_code" >conftest.$ac_ext 11686 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11687 _lt_linker_boilerplate=`cat conftest.err` 11688 $RM -r conftest* 11689 11690 11691 # Allow CC to be a program name with arguments. 11692 lt_save_CC="$CC" 11693 lt_save_CFLAGS=$CFLAGS 11694 lt_save_GCC=$GCC 11695 GCC= 11696 CC=${RC-"windres"} 11697 CFLAGS= 11698 compiler=$CC 11699 compiler_RC=$CC 11700 for cc_temp in $compiler""; do 11701 case $cc_temp in 11702 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11703 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11704 \-*) ;; 11705 *) break;; 11706 esac 11707 done 11708 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 11709 11710 lt_cv_prog_compiler_c_o_RC=yes 11711 11712 if test -n "$compiler"; then 11713 : 11714 11715 11716 11717 fi 11718 11719 GCC=$lt_save_GCC 11720 ac_ext=c 11721 ac_cpp='$CPP $CPPFLAGS' 11722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11724 ac_compiler_gnu=$ac_cv_c_compiler_gnu 11725 11726 CC=$lt_save_CC 11727 CFLAGS=$lt_save_CFLAGS 11728 11729 11730 LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION 11731 LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE` 11732 LT_REVISION=$SDL_INTERFACE_AGE 11733 LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE` 11734 11735 11736 11737 11738 11739 11740 11741 11742 ac_ext=c 11743 ac_cpp='$CPP $CPPFLAGS' 11744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11746 ac_compiler_gnu=$ac_cv_c_compiler_gnu 11747 if test -n "$ac_tool_prefix"; then 11748 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 11749 set dummy ${ac_tool_prefix}gcc; ac_word=$2 11750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11751 $as_echo_n "checking for $ac_word... " >&6; } 11752 if ${ac_cv_prog_CC+:} false; then : 11753 $as_echo_n "(cached) " >&6 11754 else 11755 if test -n "$CC"; then 11756 ac_cv_prog_CC="$CC" # Let the user override the test. 11757 else 11758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11759 for as_dir in $PATH 11760 do 11761 IFS=$as_save_IFS 11762 test -z "$as_dir" && as_dir=. 11763 for ac_exec_ext in '' $ac_executable_extensions; do 11764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11765 ac_cv_prog_CC="${ac_tool_prefix}gcc" 11766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11767 break 2 11768 fi 11769 done 11770 done 11771 IFS=$as_save_IFS 11772 11773 fi 11774 fi 11775 CC=$ac_cv_prog_CC 11776 if test -n "$CC"; then 11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11778 $as_echo "$CC" >&6; } 11779 else 11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11781 $as_echo "no" >&6; } 11782 fi 11783 11784 11785 fi 11786 if test -z "$ac_cv_prog_CC"; then 11787 ac_ct_CC=$CC 11788 # Extract the first word of "gcc", so it can be a program name with args. 11789 set dummy gcc; ac_word=$2 11790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11791 $as_echo_n "checking for $ac_word... " >&6; } 11792 if ${ac_cv_prog_ac_ct_CC+:} false; then : 11793 $as_echo_n "(cached) " >&6 11794 else 11795 if test -n "$ac_ct_CC"; then 11796 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11797 else 11798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11799 for as_dir in $PATH 11800 do 11801 IFS=$as_save_IFS 11802 test -z "$as_dir" && as_dir=. 11803 for ac_exec_ext in '' $ac_executable_extensions; do 11804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11805 ac_cv_prog_ac_ct_CC="gcc" 11806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11807 break 2 11808 fi 11809 done 11810 done 11811 IFS=$as_save_IFS 11812 11813 fi 11814 fi 11815 ac_ct_CC=$ac_cv_prog_ac_ct_CC 11816 if test -n "$ac_ct_CC"; then 11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 11818 $as_echo "$ac_ct_CC" >&6; } 11819 else 11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11821 $as_echo "no" >&6; } 11822 fi 11823 11824 if test "x$ac_ct_CC" = x; then 11825 CC="" 11826 else 11827 case $cross_compiling:$ac_tool_warned in 11828 yes:) 11829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11830 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11831 ac_tool_warned=yes ;; 11832 esac 11833 CC=$ac_ct_CC 11834 fi 11835 else 11836 CC="$ac_cv_prog_CC" 11837 fi 11838 11839 if test -z "$CC"; then 11840 if test -n "$ac_tool_prefix"; then 11841 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 11842 set dummy ${ac_tool_prefix}cc; ac_word=$2 11843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11844 $as_echo_n "checking for $ac_word... " >&6; } 11845 if ${ac_cv_prog_CC+:} false; then : 11846 $as_echo_n "(cached) " >&6 11847 else 11848 if test -n "$CC"; then 11849 ac_cv_prog_CC="$CC" # Let the user override the test. 11850 else 11851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11852 for as_dir in $PATH 11853 do 11854 IFS=$as_save_IFS 11855 test -z "$as_dir" && as_dir=. 11856 for ac_exec_ext in '' $ac_executable_extensions; do 11857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11858 ac_cv_prog_CC="${ac_tool_prefix}cc" 11859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11860 break 2 11861 fi 11862 done 11863 done 11864 IFS=$as_save_IFS 11865 11866 fi 11867 fi 11868 CC=$ac_cv_prog_CC 11869 if test -n "$CC"; then 11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11871 $as_echo "$CC" >&6; } 11872 else 11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11874 $as_echo "no" >&6; } 11875 fi 11876 11877 11878 fi 11879 fi 11880 if test -z "$CC"; then 11881 # Extract the first word of "cc", so it can be a program name with args. 11882 set dummy cc; ac_word=$2 11883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11884 $as_echo_n "checking for $ac_word... " >&6; } 11885 if ${ac_cv_prog_CC+:} false; then : 11886 $as_echo_n "(cached) " >&6 11887 else 11888 if test -n "$CC"; then 11889 ac_cv_prog_CC="$CC" # Let the user override the test. 11890 else 11891 ac_prog_rejected=no 11892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11893 for as_dir in $PATH 11894 do 11895 IFS=$as_save_IFS 11896 test -z "$as_dir" && as_dir=. 11897 for ac_exec_ext in '' $ac_executable_extensions; do 11898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11899 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 11900 ac_prog_rejected=yes 11901 continue 11902 fi 11903 ac_cv_prog_CC="cc" 11904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11905 break 2 11906 fi 11907 done 11908 done 11909 IFS=$as_save_IFS 11910 11911 if test $ac_prog_rejected = yes; then 11912 # We found a bogon in the path, so make sure we never use it. 11913 set dummy $ac_cv_prog_CC 11914 shift 11915 if test $# != 0; then 11916 # We chose a different compiler from the bogus one. 11917 # However, it has the same basename, so the bogon will be chosen 11918 # first if we set CC to just the basename; use the full file name. 11919 shift 11920 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 11921 fi 11922 fi 11923 fi 11924 fi 11925 CC=$ac_cv_prog_CC 11926 if test -n "$CC"; then 11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11928 $as_echo "$CC" >&6; } 11929 else 11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11931 $as_echo "no" >&6; } 11932 fi 11933 11934 11935 fi 11936 if test -z "$CC"; then 11937 if test -n "$ac_tool_prefix"; then 11938 for ac_prog in cl.exe 11939 do 11940 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11941 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11943 $as_echo_n "checking for $ac_word... " >&6; } 11944 if ${ac_cv_prog_CC+:} false; then : 11945 $as_echo_n "(cached) " >&6 11946 else 11947 if test -n "$CC"; then 11948 ac_cv_prog_CC="$CC" # Let the user override the test. 11949 else 11950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11951 for as_dir in $PATH 11952 do 11953 IFS=$as_save_IFS 11954 test -z "$as_dir" && as_dir=. 11955 for ac_exec_ext in '' $ac_executable_extensions; do 11956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11957 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 11958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11959 break 2 11960 fi 11961 done 11962 done 11963 IFS=$as_save_IFS 11964 11965 fi 11966 fi 11967 CC=$ac_cv_prog_CC 11968 if test -n "$CC"; then 11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11970 $as_echo "$CC" >&6; } 11971 else 11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11973 $as_echo "no" >&6; } 11974 fi 11975 11976 11977 test -n "$CC" && break 11978 done 11979 fi 11980 if test -z "$CC"; then 11981 ac_ct_CC=$CC 11982 for ac_prog in cl.exe 11983 do 11984 # Extract the first word of "$ac_prog", so it can be a program name with args. 11985 set dummy $ac_prog; ac_word=$2 11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11987 $as_echo_n "checking for $ac_word... " >&6; } 11988 if ${ac_cv_prog_ac_ct_CC+:} false; then : 11989 $as_echo_n "(cached) " >&6 11990 else 11991 if test -n "$ac_ct_CC"; then 11992 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11993 else 11994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11995 for as_dir in $PATH 11996 do 11997 IFS=$as_save_IFS 11998 test -z "$as_dir" && as_dir=. 11999 for ac_exec_ext in '' $ac_executable_extensions; do 12000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12001 ac_cv_prog_ac_ct_CC="$ac_prog" 12002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12003 break 2 12004 fi 12005 done 12006 done 12007 IFS=$as_save_IFS 12008 12009 fi 12010 fi 12011 ac_ct_CC=$ac_cv_prog_ac_ct_CC 12012 if test -n "$ac_ct_CC"; then 12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12014 $as_echo "$ac_ct_CC" >&6; } 12015 else 12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12017 $as_echo "no" >&6; } 12018 fi 12019 12020 12021 test -n "$ac_ct_CC" && break 12022 done 12023 12024 if test "x$ac_ct_CC" = x; then 12025 CC="" 12026 else 12027 case $cross_compiling:$ac_tool_warned in 12028 yes:) 12029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12030 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12031 ac_tool_warned=yes ;; 12032 esac 12033 CC=$ac_ct_CC 12034 fi 12035 fi 12036 12037 fi 12038 12039 12040 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12042 as_fn_error $? "no acceptable C compiler found in \$PATH 12043 See \`config.log' for more details" "$LINENO" 5; } 12044 12045 # Provide some information about the compiler. 12046 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 12047 set X $ac_compile 12048 ac_compiler=$2 12049 for ac_option in --version -v -V -qversion; do 12050 { { ac_try="$ac_compiler $ac_option >&5" 12051 case "(($ac_try" in 12052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12053 *) ac_try_echo=$ac_try;; 12054 esac 12055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12056 $as_echo "$ac_try_echo"; } >&5 12057 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12058 ac_status=$? 12059 if test -s conftest.err; then 12060 sed '10a\ 12061 ... rest of stderr output deleted ... 12062 10q' conftest.err >conftest.er1 12063 cat conftest.er1 >&5 12064 fi 12065 rm -f conftest.er1 conftest.err 12066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12067 test $ac_status = 0; } 12068 done 12069 12070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 12071 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 12072 if ${ac_cv_c_compiler_gnu+:} false; then : 12073 $as_echo_n "(cached) " >&6 12074 else 12075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12076 /* end confdefs.h. */ 12077 12078 int 12079 main () 12080 { 12081 #ifndef __GNUC__ 12082 choke me 12083 #endif 12084 12085 ; 12086 return 0; 12087 } 12088 _ACEOF 12089 if ac_fn_c_try_compile "$LINENO"; then : 12090 ac_compiler_gnu=yes 12091 else 12092 ac_compiler_gnu=no 12093 fi 12094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12095 ac_cv_c_compiler_gnu=$ac_compiler_gnu 12096 12097 fi 12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 12099 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 12100 if test $ac_compiler_gnu = yes; then 12101 GCC=yes 12102 else 12103 GCC= 12104 fi 12105 ac_test_CFLAGS=${CFLAGS+set} 12106 ac_save_CFLAGS=$CFLAGS 12107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 12108 $as_echo_n "checking whether $CC accepts -g... " >&6; } 12109 if ${ac_cv_prog_cc_g+:} false; then : 12110 $as_echo_n "(cached) " >&6 12111 else 12112 ac_save_c_werror_flag=$ac_c_werror_flag 12113 ac_c_werror_flag=yes 12114 ac_cv_prog_cc_g=no 12115 CFLAGS="-g" 12116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12117 /* end confdefs.h. */ 12118 12119 int 12120 main () 12121 { 12122 12123 ; 12124 return 0; 12125 } 12126 _ACEOF 12127 if ac_fn_c_try_compile "$LINENO"; then : 12128 ac_cv_prog_cc_g=yes 12129 else 12130 CFLAGS="" 12131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12132 /* end confdefs.h. */ 12133 12134 int 12135 main () 12136 { 12137 12138 ; 12139 return 0; 12140 } 12141 _ACEOF 12142 if ac_fn_c_try_compile "$LINENO"; then : 12143 12144 else 12145 ac_c_werror_flag=$ac_save_c_werror_flag 12146 CFLAGS="-g" 12147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12148 /* end confdefs.h. */ 12149 12150 int 12151 main () 12152 { 12153 12154 ; 12155 return 0; 12156 } 12157 _ACEOF 12158 if ac_fn_c_try_compile "$LINENO"; then : 12159 ac_cv_prog_cc_g=yes 12160 fi 12161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12162 fi 12163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12164 fi 12165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12166 ac_c_werror_flag=$ac_save_c_werror_flag 12167 fi 12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 12169 $as_echo "$ac_cv_prog_cc_g" >&6; } 12170 if test "$ac_test_CFLAGS" = set; then 12171 CFLAGS=$ac_save_CFLAGS 12172 elif test $ac_cv_prog_cc_g = yes; then 12173 if test "$GCC" = yes; then 12174 CFLAGS="-g -O2" 12175 else 12176 CFLAGS="-g" 12177 fi 12178 else 12179 if test "$GCC" = yes; then 12180 CFLAGS="-O2" 12181 else 12182 CFLAGS= 12183 fi 12184 fi 12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 12186 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 12187 if ${ac_cv_prog_cc_c89+:} false; then : 12188 $as_echo_n "(cached) " >&6 12189 else 12190 ac_cv_prog_cc_c89=no 12191 ac_save_CC=$CC 12192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12193 /* end confdefs.h. */ 12194 #include <stdarg.h> 12195 #include <stdio.h> 12196 struct stat; 12197 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 12198 struct buf { int x; }; 12199 FILE * (*rcsopen) (struct buf *, struct stat *, int); 12200 static char *e (p, i) 12201 char **p; 12202 int i; 12203 { 12204 return p[i]; 12205 } 12206 static char *f (char * (*g) (char **, int), char **p, ...) 12207 { 12208 char *s; 12209 va_list v; 12210 va_start (v,p); 12211 s = g (p, va_arg (v,int)); 12212 va_end (v); 12213 return s; 12214 } 12215 12216 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 12217 function prototypes and stuff, but not '\xHH' hex character constants. 12218 These don't provoke an error unfortunately, instead are silently treated 12219 as 'x'. The following induces an error, until -std is added to get 12220 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 12221 array size at least. It's necessary to write '\x00'==0 to get something 12222 that's true only with -std. */ 12223 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 12224 12225 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 12226 inside strings and character constants. */ 12227 #define FOO(x) 'x' 12228 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 12229 12230 int test (int i, double x); 12231 struct s1 {int (*f) (int a);}; 12232 struct s2 {int (*f) (double a);}; 12233 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 12234 int argc; 12235 char **argv; 12236 int 12237 main () 12238 { 12239 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 12240 ; 12241 return 0; 12242 } 12243 _ACEOF 12244 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 12245 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 12246 do 12247 CC="$ac_save_CC $ac_arg" 12248 if ac_fn_c_try_compile "$LINENO"; then : 12249 ac_cv_prog_cc_c89=$ac_arg 12250 fi 12251 rm -f core conftest.err conftest.$ac_objext 12252 test "x$ac_cv_prog_cc_c89" != "xno" && break 12253 done 12254 rm -f conftest.$ac_ext 12255 CC=$ac_save_CC 12256 12257 fi 12258 # AC_CACHE_VAL 12259 case "x$ac_cv_prog_cc_c89" in 12260 x) 12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12262 $as_echo "none needed" >&6; } ;; 12263 xno) 12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12265 $as_echo "unsupported" >&6; } ;; 12266 *) 12267 CC="$CC $ac_cv_prog_cc_c89" 12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 12269 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 12270 esac 12271 if test "x$ac_cv_prog_cc_c89" != xno; then : 12272 12273 fi 12274 12275 ac_ext=c 12276 ac_cpp='$CPP $CPPFLAGS' 12277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12279 ac_compiler_gnu=$ac_cv_c_compiler_gnu 12280 12281 ac_ext=cpp 12282 ac_cpp='$CXXCPP $CPPFLAGS' 12283 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12284 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12285 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12286 if test -z "$CXX"; then 12287 if test -n "$CCC"; then 12288 CXX=$CCC 12289 else 12290 if test -n "$ac_tool_prefix"; then 12291 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 12292 do 12293 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12294 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12296 $as_echo_n "checking for $ac_word... " >&6; } 12297 if ${ac_cv_prog_CXX+:} false; then : 12298 $as_echo_n "(cached) " >&6 12299 else 12300 if test -n "$CXX"; then 12301 ac_cv_prog_CXX="$CXX" # Let the user override the test. 12302 else 12303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12304 for as_dir in $PATH 12305 do 12306 IFS=$as_save_IFS 12307 test -z "$as_dir" && as_dir=. 12308 for ac_exec_ext in '' $ac_executable_extensions; do 12309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12310 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 12311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12312 break 2 12313 fi 12314 done 12315 done 12316 IFS=$as_save_IFS 12317 12318 fi 12319 fi 12320 CXX=$ac_cv_prog_CXX 12321 if test -n "$CXX"; then 12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 12323 $as_echo "$CXX" >&6; } 12324 else 12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12326 $as_echo "no" >&6; } 12327 fi 12328 12329 12330 test -n "$CXX" && break 12331 done 12332 fi 12333 if test -z "$CXX"; then 12334 ac_ct_CXX=$CXX 12335 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 12336 do 12337 # Extract the first word of "$ac_prog", so it can be a program name with args. 12338 set dummy $ac_prog; ac_word=$2 12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12340 $as_echo_n "checking for $ac_word... " >&6; } 12341 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 12342 $as_echo_n "(cached) " >&6 12343 else 12344 if test -n "$ac_ct_CXX"; then 12345 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 12346 else 12347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12348 for as_dir in $PATH 12349 do 12350 IFS=$as_save_IFS 12351 test -z "$as_dir" && as_dir=. 12352 for ac_exec_ext in '' $ac_executable_extensions; do 12353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12354 ac_cv_prog_ac_ct_CXX="$ac_prog" 12355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12356 break 2 12357 fi 12358 done 12359 done 12360 IFS=$as_save_IFS 12361 12362 fi 12363 fi 12364 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 12365 if test -n "$ac_ct_CXX"; then 12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 12367 $as_echo "$ac_ct_CXX" >&6; } 12368 else 12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12370 $as_echo "no" >&6; } 12371 fi 12372 12373 12374 test -n "$ac_ct_CXX" && break 12375 done 12376 12377 if test "x$ac_ct_CXX" = x; then 12378 CXX="g++" 12379 else 12380 case $cross_compiling:$ac_tool_warned in 12381 yes:) 12382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12384 ac_tool_warned=yes ;; 12385 esac 12386 CXX=$ac_ct_CXX 12387 fi 12388 fi 12389 12390 fi 12391 fi 12392 # Provide some information about the compiler. 12393 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 12394 set X $ac_compile 12395 ac_compiler=$2 12396 for ac_option in --version -v -V -qversion; do 12397 { { ac_try="$ac_compiler $ac_option >&5" 12398 case "(($ac_try" in 12399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12400 *) ac_try_echo=$ac_try;; 12401 esac 12402 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12403 $as_echo "$ac_try_echo"; } >&5 12404 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12405 ac_status=$? 12406 if test -s conftest.err; then 12407 sed '10a\ 12408 ... rest of stderr output deleted ... 12409 10q' conftest.err >conftest.er1 12410 cat conftest.er1 >&5 12411 fi 12412 rm -f conftest.er1 conftest.err 12413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12414 test $ac_status = 0; } 12415 done 12416 12417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 12418 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 12419 if ${ac_cv_cxx_compiler_gnu+:} false; then : 12420 $as_echo_n "(cached) " >&6 12421 else 12422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12423 /* end confdefs.h. */ 12424 12425 int 12426 main () 12427 { 12428 #ifndef __GNUC__ 12429 choke me 12430 #endif 12431 12432 ; 12433 return 0; 12434 } 12435 _ACEOF 12436 if ac_fn_cxx_try_compile "$LINENO"; then : 12437 ac_compiler_gnu=yes 12438 else 12439 ac_compiler_gnu=no 12440 fi 12441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12442 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 12443 12444 fi 12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 12446 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 12447 if test $ac_compiler_gnu = yes; then 12448 GXX=yes 12449 else 12450 GXX= 12451 fi 12452 ac_test_CXXFLAGS=${CXXFLAGS+set} 12453 ac_save_CXXFLAGS=$CXXFLAGS 12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 12455 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 12456 if ${ac_cv_prog_cxx_g+:} false; then : 12457 $as_echo_n "(cached) " >&6 12458 else 12459 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 12460 ac_cxx_werror_flag=yes 12461 ac_cv_prog_cxx_g=no 12462 CXXFLAGS="-g" 12463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12464 /* end confdefs.h. */ 12465 12466 int 12467 main () 12468 { 12469 12470 ; 12471 return 0; 12472 } 12473 _ACEOF 12474 if ac_fn_cxx_try_compile "$LINENO"; then : 12475 ac_cv_prog_cxx_g=yes 12476 else 12477 CXXFLAGS="" 12478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12479 /* end confdefs.h. */ 12480 12481 int 12482 main () 12483 { 12484 12485 ; 12486 return 0; 12487 } 12488 _ACEOF 12489 if ac_fn_cxx_try_compile "$LINENO"; then : 12490 12491 else 12492 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 12493 CXXFLAGS="-g" 12494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12495 /* end confdefs.h. */ 12496 12497 int 12498 main () 12499 { 12500 12501 ; 12502 return 0; 12503 } 12504 _ACEOF 12505 if ac_fn_cxx_try_compile "$LINENO"; then : 12506 ac_cv_prog_cxx_g=yes 12507 fi 12508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12509 fi 12510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12511 fi 12512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12513 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 12514 fi 12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 12516 $as_echo "$ac_cv_prog_cxx_g" >&6; } 12517 if test "$ac_test_CXXFLAGS" = set; then 12518 CXXFLAGS=$ac_save_CXXFLAGS 12519 elif test $ac_cv_prog_cxx_g = yes; then 12520 if test "$GXX" = yes; then 12521 CXXFLAGS="-g -O2" 12522 else 12523 CXXFLAGS="-g" 12524 fi 12525 else 12526 if test "$GXX" = yes; then 12527 CXXFLAGS="-O2" 12528 else 12529 CXXFLAGS= 12530 fi 12531 fi 12532 ac_ext=c 12533 ac_cpp='$CPP $CPPFLAGS' 12534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12536 ac_compiler_gnu=$ac_cv_c_compiler_gnu 12537 12538 12539 12540 func_stripname_cnf () 12541 { 12542 case ${2} in 12543 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 12544 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 12545 esac 12546 } # func_stripname_cnf 12547 12548 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 12549 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 12550 (test "X$CXX" != "Xg++"))) ; then 12551 ac_ext=cpp 12552 ac_cpp='$CXXCPP $CPPFLAGS' 12553 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12554 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12555 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 12557 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 12558 if test -z "$CXXCPP"; then 12559 if ${ac_cv_prog_CXXCPP+:} false; then : 12560 $as_echo_n "(cached) " >&6 12561 else 12562 # Double quotes because CXXCPP needs to be expanded 12563 for CXXCPP in "$CXX -E" "/lib/cpp" 12564 do 12565 ac_preproc_ok=false 12566 for ac_cxx_preproc_warn_flag in '' yes 12567 do 12568 # Use a header file that comes with gcc, so configuring glibc 12569 # with a fresh cross-compiler works. 12570 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12571 # <limits.h> exists even on freestanding compilers. 12572 # On the NeXT, cc -E runs the code through the compiler's parser, 12573 # not just through cpp. "Syntax error" is here to catch this case. 12574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12575 /* end confdefs.h. */ 12576 #ifdef __STDC__ 12577 # include <limits.h> 12578 #else 12579 # include <assert.h> 12580 #endif 12581 Syntax error 12582 _ACEOF 12583 if ac_fn_cxx_try_cpp "$LINENO"; then : 12584 12585 else 12586 # Broken: fails on valid input. 12587 continue 12588 fi 12589 rm -f conftest.err conftest.i conftest.$ac_ext 12590 12591 # OK, works on sane cases. Now check whether nonexistent headers 12592 # can be detected and how. 12593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12594 /* end confdefs.h. */ 12595 #include <ac_nonexistent.h> 12596 _ACEOF 12597 if ac_fn_cxx_try_cpp "$LINENO"; then : 12598 # Broken: success on invalid input. 12599 continue 12600 else 12601 # Passes both tests. 12602 ac_preproc_ok=: 12603 break 12604 fi 12605 rm -f conftest.err conftest.i conftest.$ac_ext 12606 12607 done 12608 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12609 rm -f conftest.i conftest.err conftest.$ac_ext 12610 if $ac_preproc_ok; then : 12611 break 12612 fi 12613 12614 done 12615 ac_cv_prog_CXXCPP=$CXXCPP 12616 12617 fi 12618 CXXCPP=$ac_cv_prog_CXXCPP 12619 else 12620 ac_cv_prog_CXXCPP=$CXXCPP 12621 fi 12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 12623 $as_echo "$CXXCPP" >&6; } 12624 ac_preproc_ok=false 12625 for ac_cxx_preproc_warn_flag in '' yes 12626 do 12627 # Use a header file that comes with gcc, so configuring glibc 12628 # with a fresh cross-compiler works. 12629 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12630 # <limits.h> exists even on freestanding compilers. 12631 # On the NeXT, cc -E runs the code through the compiler's parser, 12632 # not just through cpp. "Syntax error" is here to catch this case. 12633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12634 /* end confdefs.h. */ 12635 #ifdef __STDC__ 12636 # include <limits.h> 12637 #else 12638 # include <assert.h> 12639 #endif 12640 Syntax error 12641 _ACEOF 12642 if ac_fn_cxx_try_cpp "$LINENO"; then : 12643 12644 else 12645 # Broken: fails on valid input. 12646 continue 12647 fi 12648 rm -f conftest.err conftest.i conftest.$ac_ext 12649 12650 # OK, works on sane cases. Now check whether nonexistent headers 12651 # can be detected and how. 12652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12653 /* end confdefs.h. */ 12654 #include <ac_nonexistent.h> 12655 _ACEOF 12656 if ac_fn_cxx_try_cpp "$LINENO"; then : 12657 # Broken: success on invalid input. 12658 continue 12659 else 12660 # Passes both tests. 12661 ac_preproc_ok=: 12662 break 12663 fi 12664 rm -f conftest.err conftest.i conftest.$ac_ext 12665 12666 done 12667 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12668 rm -f conftest.i conftest.err conftest.$ac_ext 12669 if $ac_preproc_ok; then : 12670 12671 else 12672 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12674 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 12675 See \`config.log' for more details" "$LINENO" 5; } 12676 fi 12677 12678 ac_ext=c 12679 ac_cpp='$CPP $CPPFLAGS' 12680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12682 ac_compiler_gnu=$ac_cv_c_compiler_gnu 12683 12684 else 12685 _lt_caught_CXX_error=yes 12686 fi 12687 12688 ac_ext=cpp 12689 ac_cpp='$CXXCPP $CPPFLAGS' 12690 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12691 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12692 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12693 12694 archive_cmds_need_lc_CXX=no 12695 allow_undefined_flag_CXX= 12696 always_export_symbols_CXX=no 12697 archive_expsym_cmds_CXX= 12698 compiler_needs_object_CXX=no 12699 export_dynamic_flag_spec_CXX= 12700 hardcode_direct_CXX=no 12701 hardcode_direct_absolute_CXX=no 12702 hardcode_libdir_flag_spec_CXX= 12703 hardcode_libdir_separator_CXX= 12704 hardcode_minus_L_CXX=no 12705 hardcode_shlibpath_var_CXX=unsupported 12706 hardcode_automatic_CXX=no 12707 inherit_rpath_CXX=no 12708 module_cmds_CXX= 12709 module_expsym_cmds_CXX= 12710 link_all_deplibs_CXX=unknown 12711 old_archive_cmds_CXX=$old_archive_cmds 12712 reload_flag_CXX=$reload_flag 12713 reload_cmds_CXX=$reload_cmds 12714 no_undefined_flag_CXX= 12715 whole_archive_flag_spec_CXX= 12716 enable_shared_with_static_runtimes_CXX=no 12717 12718 # Source file extension for C++ test sources. 12719 ac_ext=cpp 12720 12721 # Object file extension for compiled C++ test sources. 12722 objext=o 12723 objext_CXX=$objext 12724 12725 # No sense in running all these tests if we already determined that 12726 # the CXX compiler isn't working. Some variables (like enable_shared) 12727 # are currently assumed to apply to all compilers on this platform, 12728 # and will be corrupted by setting them based on a non-working compiler. 12729 if test "$_lt_caught_CXX_error" != yes; then 12730 # Code to be used in simple compile tests 12731 lt_simple_compile_test_code="int some_variable = 0;" 12732 12733 # Code to be used in simple link tests 12734 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 12735 12736 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12737 12738 12739 12740 12741 12742 12743 # If no C compiler was specified, use CC. 12744 LTCC=${LTCC-"$CC"} 12745 12746 # If no C compiler flags were specified, use CFLAGS. 12747 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12748 12749 # Allow CC to be a program name with arguments. 12750 compiler=$CC 12751 12752 12753 # save warnings/boilerplate of simple test code 12754 ac_outfile=conftest.$ac_objext 12755 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12756 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12757 _lt_compiler_boilerplate=`cat conftest.err` 12758 $RM conftest* 12759 12760 ac_outfile=conftest.$ac_objext 12761 echo "$lt_simple_link_test_code" >conftest.$ac_ext 12762 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12763 _lt_linker_boilerplate=`cat conftest.err` 12764 $RM -r conftest* 12765 12766 12767 # Allow CC to be a program name with arguments. 12768 lt_save_CC=$CC 12769 lt_save_CFLAGS=$CFLAGS 12770 lt_save_LD=$LD 12771 lt_save_GCC=$GCC 12772 GCC=$GXX 12773 lt_save_with_gnu_ld=$with_gnu_ld 12774 lt_save_path_LD=$lt_cv_path_LD 12775 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 12776 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 12777 else 12778 $as_unset lt_cv_prog_gnu_ld 12779 fi 12780 if test -n "${lt_cv_path_LDCXX+set}"; then 12781 lt_cv_path_LD=$lt_cv_path_LDCXX 12782 else 12783 $as_unset lt_cv_path_LD 12784 fi 12785 test -z "${LDCXX+set}" || LD=$LDCXX 12786 CC=${CXX-"c++"} 12787 CFLAGS=$CXXFLAGS 12788 compiler=$CC 12789 compiler_CXX=$CC 12790 for cc_temp in $compiler""; do 12791 case $cc_temp in 12792 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12793 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12794 \-*) ;; 12795 *) break;; 12796 esac 12797 done 12798 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 12799 12800 12801 if test -n "$compiler"; then 12802 # We don't want -fno-exception when compiling C++ code, so set the 12803 # no_builtin_flag separately 12804 if test "$GXX" = yes; then 12805 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 12806 else 12807 lt_prog_compiler_no_builtin_flag_CXX= 12808 fi 12809 12810 if test "$GXX" = yes; then 12811 # Set up default GNU C++ configuration 12812 12813 12814 12815 # Check whether --with-gnu-ld was given. 12816 if test "${with_gnu_ld+set}" = set; then : 12817 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 12818 else 12819 with_gnu_ld=no 12820 fi 12821 12822 ac_prog=ld 12823 if test "$GCC" = yes; then 12824 # Check if gcc -print-prog-name=ld gives a path. 12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12826 $as_echo_n "checking for ld used by $CC... " >&6; } 12827 case $host in 12828 *-*-mingw*) 12829 # gcc leaves a trailing carriage return which upsets mingw 12830 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12831 *) 12832 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12833 esac 12834 case $ac_prog in 12835 # Accept absolute paths. 12836 [\\/]* | ?:[\\/]*) 12837 re_direlt='/[^/][^/]*/\.\./' 12838 # Canonicalize the pathname of ld 12839 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12840 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12841 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12842 done 12843 test -z "$LD" && LD="$ac_prog" 12844 ;; 12845 "") 12846 # If it fails, then pretend we aren't using GCC. 12847 ac_prog=ld 12848 ;; 12849 *) 12850 # If it is relative, then search for the first ld in PATH. 12851 with_gnu_ld=unknown 12852 ;; 12853 esac 12854 elif test "$with_gnu_ld" = yes; then 12855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12856 $as_echo_n "checking for GNU ld... " >&6; } 12857 else 12858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12859 $as_echo_n "checking for non-GNU ld... " >&6; } 12860 fi 12861 if ${lt_cv_path_LD+:} false; then : 12862 $as_echo_n "(cached) " >&6 12863 else 12864 if test -z "$LD"; then 12865 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12866 for ac_dir in $PATH; do 12867 IFS="$lt_save_ifs" 12868 test -z "$ac_dir" && ac_dir=. 12869 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12870 lt_cv_path_LD="$ac_dir/$ac_prog" 12871 # Check to see if the program is GNU ld. I'd rather use --version, 12872 # but apparently some variants of GNU ld only accept -v. 12873 # Break only if it was the GNU/non-GNU ld that we prefer. 12874 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12875 *GNU* | *'with BFD'*) 12876 test "$with_gnu_ld" != no && break 12877 ;; 12878 *) 12879 test "$with_gnu_ld" != yes && break 12880 ;; 12881 esac 12882 fi 12883 done 12884 IFS="$lt_save_ifs" 12885 else 12886 lt_cv_path_LD="$LD" # Let the user override the test with a path. 12887 fi 12888 fi 12889 12890 LD="$lt_cv_path_LD" 12891 if test -n "$LD"; then 12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12893 $as_echo "$LD" >&6; } 12894 else 12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12896 $as_echo "no" >&6; } 12897 fi 12898 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 12899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12900 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 12901 if ${lt_cv_prog_gnu_ld+:} false; then : 12902 $as_echo_n "(cached) " >&6 12903 else 12904 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12905 case `$LD -v 2>&1 </dev/null` in 12906 *GNU* | *'with BFD'*) 12907 lt_cv_prog_gnu_ld=yes 12908 ;; 12909 *) 12910 lt_cv_prog_gnu_ld=no 12911 ;; 12912 esac 12913 fi 12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 12915 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 12916 with_gnu_ld=$lt_cv_prog_gnu_ld 12917 12918 12919 12920 12921 12922 12923 12924 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12925 # archiving commands below assume that GNU ld is being used. 12926 if test "$with_gnu_ld" = yes; then 12927 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12928 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12929 12930 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12931 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12932 12933 # If archive_cmds runs LD, not CC, wlarc should be empty 12934 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 12935 # investigate it a little bit more. (MM) 12936 wlarc='${wl}' 12937 12938 # ancient GNU ld didn't support --whole-archive et. al. 12939 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 12940 $GREP 'no-whole-archive' > /dev/null; then 12941 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12942 else 12943 whole_archive_flag_spec_CXX= 12944 fi 12945 else 12946 with_gnu_ld=no 12947 wlarc= 12948 12949 # A generic and very simple default shared library creation 12950 # command for GNU C++ for the case where it uses the native 12951 # linker, instead of GNU ld. If possible, this setting should 12952 # overridden to take advantage of the native linker features on 12953 # the platform it is being used on. 12954 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12955 fi 12956 12957 # Commands to make compiler produce verbose output that lists 12958 # what "hidden" libraries, object files and flags are used when 12959 # linking a shared library. 12960 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12961 12962 else 12963 GXX=no 12964 with_gnu_ld=no 12965 wlarc= 12966 fi 12967 12968 # PORTME: fill in a description of your system's C++ link characteristics 12969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12970 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12971 ld_shlibs_CXX=yes 12972 case $host_os in 12973 aix3*) 12974 # FIXME: insert proper C++ library support 12975 ld_shlibs_CXX=no 12976 ;; 12977 aix[4-9]*) 12978 if test "$host_cpu" = ia64; then 12979 # On IA64, the linker does run time linking by default, so we don't 12980 # have to do anything special. 12981 aix_use_runtimelinking=no 12982 exp_sym_flag='-Bexport' 12983 no_entry_flag="" 12984 else 12985 aix_use_runtimelinking=no 12986 12987 # Test if we are trying to use run time linking or normal 12988 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12989 # need to do runtime linking. 12990 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12991 for ld_flag in $LDFLAGS; do 12992 case $ld_flag in 12993 *-brtl*) 12994 aix_use_runtimelinking=yes 12995 break 12996 ;; 12997 esac 12998 done 12999 ;; 13000 esac 13001 13002 exp_sym_flag='-bexport' 13003 no_entry_flag='-bnoentry' 13004 fi 13005 13006 # When large executables or shared objects are built, AIX ld can 13007 # have problems creating the table of contents. If linking a library 13008 # or program results in "error TOC overflow" add -mminimal-toc to 13009 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13010 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13011 13012 archive_cmds_CXX='' 13013 hardcode_direct_CXX=yes 13014 hardcode_direct_absolute_CXX=yes 13015 hardcode_libdir_separator_CXX=':' 13016 link_all_deplibs_CXX=yes 13017 file_list_spec_CXX='${wl}-f,' 13018 13019 if test "$GXX" = yes; then 13020 case $host_os in aix4.[012]|aix4.[012].*) 13021 # We only want to do this on AIX 4.2 and lower, the check 13022 # below for broken collect2 doesn't work under 4.3+ 13023 collect2name=`${CC} -print-prog-name=collect2` 13024 if test -f "$collect2name" && 13025 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13026 then 13027 # We have reworked collect2 13028 : 13029 else 13030 # We have old collect2 13031 hardcode_direct_CXX=unsupported 13032 # It fails to find uninstalled libraries when the uninstalled 13033 # path is not listed in the libpath. Setting hardcode_minus_L 13034 # to unsupported forces relinking 13035 hardcode_minus_L_CXX=yes 13036 hardcode_libdir_flag_spec_CXX='-L$libdir' 13037 hardcode_libdir_separator_CXX= 13038 fi 13039 esac 13040 shared_flag='-shared' 13041 if test "$aix_use_runtimelinking" = yes; then 13042 shared_flag="$shared_flag "'${wl}-G' 13043 fi 13044 else 13045 # not using gcc 13046 if test "$host_cpu" = ia64; then 13047 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13048 # chokes on -Wl,-G. The following line is correct: 13049 shared_flag='-G' 13050 else 13051 if test "$aix_use_runtimelinking" = yes; then 13052 shared_flag='${wl}-G' 13053 else 13054 shared_flag='${wl}-bM:SRE' 13055 fi 13056 fi 13057 fi 13058 13059 export_dynamic_flag_spec_CXX='${wl}-bexpall' 13060 # It seems that -bexpall does not export symbols beginning with 13061 # underscore (_), so it is better to generate a list of symbols to 13062 # export. 13063 always_export_symbols_CXX=yes 13064 if test "$aix_use_runtimelinking" = yes; then 13065 # Warning - without using the other runtime loading flags (-brtl), 13066 # -berok will link without error, but may produce a broken library. 13067 allow_undefined_flag_CXX='-berok' 13068 # Determine the default libpath from the value encoded in an empty 13069 # executable. 13070 if test "${lt_cv_aix_libpath+set}" = set; then 13071 aix_libpath=$lt_cv_aix_libpath 13072 else 13073 if ${lt_cv_aix_libpath__CXX+:} false; then : 13074 $as_echo_n "(cached) " >&6 13075 else 13076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13077 /* end confdefs.h. */ 13078 13079 int 13080 main () 13081 { 13082 13083 ; 13084 return 0; 13085 } 13086 _ACEOF 13087 if ac_fn_cxx_try_link "$LINENO"; then : 13088 13089 lt_aix_libpath_sed=' 13090 /Import File Strings/,/^$/ { 13091 /^0/ { 13092 s/^0 *\([^ ]*\) *$/\1/ 13093 p 13094 } 13095 }' 13096 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13097 # Check for a 64-bit object if we didn't find anything. 13098 if test -z "$lt_cv_aix_libpath__CXX"; then 13099 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13100 fi 13101 fi 13102 rm -f core conftest.err conftest.$ac_objext \ 13103 conftest$ac_exeext conftest.$ac_ext 13104 if test -z "$lt_cv_aix_libpath__CXX"; then 13105 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 13106 fi 13107 13108 fi 13109 13110 aix_libpath=$lt_cv_aix_libpath__CXX 13111 fi 13112 13113 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 13114 13115 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 13116 else 13117 if test "$host_cpu" = ia64; then 13118 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 13119 allow_undefined_flag_CXX="-z nodefs" 13120 archive_expsym_cmds_CXX="\$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" 13121 else 13122 # Determine the default libpath from the value encoded in an 13123 # empty executable. 13124 if test "${lt_cv_aix_libpath+set}" = set; then 13125 aix_libpath=$lt_cv_aix_libpath 13126 else 13127 if ${lt_cv_aix_libpath__CXX+:} false; then : 13128 $as_echo_n "(cached) " >&6 13129 else 13130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13131 /* end confdefs.h. */ 13132 13133 int 13134 main () 13135 { 13136 13137 ; 13138 return 0; 13139 } 13140 _ACEOF 13141 if ac_fn_cxx_try_link "$LINENO"; then : 13142 13143 lt_aix_libpath_sed=' 13144 /Import File Strings/,/^$/ { 13145 /^0/ { 13146 s/^0 *\([^ ]*\) *$/\1/ 13147 p 13148 } 13149 }' 13150 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13151 # Check for a 64-bit object if we didn't find anything. 13152 if test -z "$lt_cv_aix_libpath__CXX"; then 13153 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13154 fi 13155 fi 13156 rm -f core conftest.err conftest.$ac_objext \ 13157 conftest$ac_exeext conftest.$ac_ext 13158 if test -z "$lt_cv_aix_libpath__CXX"; then 13159 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 13160 fi 13161 13162 fi 13163 13164 aix_libpath=$lt_cv_aix_libpath__CXX 13165 fi 13166 13167 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 13168 # Warning - without using the other run time loading flags, 13169 # -berok will link without error, but may produce a broken library. 13170 no_undefined_flag_CXX=' ${wl}-bernotok' 13171 allow_undefined_flag_CXX=' ${wl}-berok' 13172 if test "$with_gnu_ld" = yes; then 13173 # We only use this code for GNU lds that support --whole-archive. 13174 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13175 else 13176 # Exported symbols can be pulled into shared objects from archives 13177 whole_archive_flag_spec_CXX='$convenience' 13178 fi 13179 archive_cmds_need_lc_CXX=yes 13180 # This is similar to how AIX traditionally builds its shared 13181 # libraries. 13182 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 13183 fi 13184 fi 13185 ;; 13186 13187 beos*) 13188 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13189 allow_undefined_flag_CXX=unsupported 13190 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13191 # support --undefined. This deserves some investigation. FIXME 13192 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13193 else 13194 ld_shlibs_CXX=no 13195 fi 13196 ;; 13197 13198 chorus*) 13199 case $cc_basename in 13200 *) 13201 # FIXME: insert proper C++ library support 13202 ld_shlibs_CXX=no 13203 ;; 13204 esac 13205 ;; 13206 13207 cygwin* | mingw* | pw32* | cegcc*) 13208 case $GXX,$cc_basename in 13209 ,cl* | no,cl*) 13210 # Native MSVC 13211 # hardcode_libdir_flag_spec is actually meaningless, as there is 13212 # no search path for DLLs. 13213 hardcode_libdir_flag_spec_CXX=' ' 13214 allow_undefined_flag_CXX=unsupported 13215 always_export_symbols_CXX=yes 13216 file_list_spec_CXX='@' 13217 # Tell ltmain to make .lib files, not .a files. 13218 libext=lib 13219 # Tell ltmain to make .dll files, not .so files. 13220 shrext_cmds=".dll" 13221 # FIXME: Setting linknames here is a bad hack. 13222 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 13223 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13224 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 13225 else 13226 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 13227 fi~ 13228 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 13229 linknames=' 13230 # The linker will not automatically build a static lib if we build a DLL. 13231 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 13232 enable_shared_with_static_runtimes_CXX=yes 13233 # Don't use ranlib 13234 old_postinstall_cmds_CXX='chmod 644 $oldlib' 13235 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 13236 lt_tool_outputfile="@TOOL_OUTPUT@"~ 13237 case $lt_outputfile in 13238 *.exe|*.EXE) ;; 13239 *) 13240 lt_outputfile="$lt_outputfile.exe" 13241 lt_tool_outputfile="$lt_tool_outputfile.exe" 13242 ;; 13243 esac~ 13244 func_to_tool_file "$lt_outputfile"~ 13245 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 13246 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 13247 $RM "$lt_outputfile.manifest"; 13248 fi' 13249 ;; 13250 *) 13251 # g++ 13252 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 13253 # as there is no search path for DLLs. 13254 hardcode_libdir_flag_spec_CXX='-L$libdir' 13255 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 13256 allow_undefined_flag_CXX=unsupported 13257 always_export_symbols_CXX=no 13258 enable_shared_with_static_runtimes_CXX=yes 13259 13260 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13261 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13262 # If the export-symbols file already is a .def file (1st line 13263 # is EXPORTS), use it as is; otherwise, prepend... 13264 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13265 cp $export_symbols $output_objdir/$soname.def; 13266 else 13267 echo EXPORTS > $output_objdir/$soname.def; 13268 cat $export_symbols >> $output_objdir/$soname.def; 13269 fi~ 13270 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13271 else 13272 ld_shlibs_CXX=no 13273 fi 13274 ;; 13275 esac 13276 ;; 13277 darwin* | rhapsody*) 13278 13279 13280 archive_cmds_need_lc_CXX=no 13281 hardcode_direct_CXX=no 13282 hardcode_automatic_CXX=yes 13283 hardcode_shlibpath_var_CXX=unsupported 13284 if test "$lt_cv_ld_force_load" = "yes"; then 13285 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 13286 13287 else 13288 whole_archive_flag_spec_CXX='' 13289 fi 13290 link_all_deplibs_CXX=yes 13291 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 13292 case $cc_basename in 13293 ifort*) _lt_dar_can_shared=yes ;; 13294 *) _lt_dar_can_shared=$GCC ;; 13295 esac 13296 if test "$_lt_dar_can_shared" = "yes"; then 13297 output_verbose_link_cmd=func_echo_all 13298 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 13299 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 13300 archive_expsym_cmds_CXX="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}" 13301 module_expsym_cmds_CXX="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}" 13302 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 13303 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" 13304 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" 13305 fi 13306 13307 else 13308 ld_shlibs_CXX=no 13309 fi 13310 13311 ;; 13312 13313 dgux*) 13314 case $cc_basename in 13315 ec++*) 13316 # FIXME: insert proper C++ library support 13317 ld_shlibs_CXX=no 13318 ;; 13319 ghcx*) 13320 # Green Hills C++ Compiler 13321 # FIXME: insert proper C++ library support 13322 ld_shlibs_CXX=no 13323 ;; 13324 *) 13325 # FIXME: insert proper C++ library support 13326 ld_shlibs_CXX=no 13327 ;; 13328 esac 13329 ;; 13330 13331 freebsd2.*) 13332 # C++ shared libraries reported to be fairly broken before 13333 # switch to ELF 13334 ld_shlibs_CXX=no 13335 ;; 13336 13337 freebsd-elf*) 13338 archive_cmds_need_lc_CXX=no 13339 ;; 13340 13341 freebsd* | dragonfly*) 13342 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 13343 # conventions 13344 ld_shlibs_CXX=yes 13345 ;; 13346 13347 gnu*) 13348 ;; 13349 13350 haiku*) 13351 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13352 link_all_deplibs_CXX=yes 13353 ;; 13354 13355 hpux9*) 13356 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13357 hardcode_libdir_separator_CXX=: 13358 export_dynamic_flag_spec_CXX='${wl}-E' 13359 hardcode_direct_CXX=yes 13360 hardcode_minus_L_CXX=yes # Not in the search PATH, 13361 # but as the default 13362 # location of the library. 13363 13364 case $cc_basename in 13365 CC*) 13366 # FIXME: insert proper C++ library support 13367 ld_shlibs_CXX=no 13368 ;; 13369 aCC*) 13370 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 13371 # Commands to make compiler produce verbose output that lists 13372 # what "hidden" libraries, object files and flags are used when 13373 # linking a shared library. 13374 # 13375 # There doesn't appear to be a way to prevent this compiler from 13376 # explicitly linking system object files so we need to strip them 13377 # from the output so that they don't get included in the library 13378 # dependencies. 13379 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 13380 ;; 13381 *) 13382 if test "$GXX" = yes; then 13383 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 13384 else 13385 # FIXME: insert proper C++ library support 13386 ld_shlibs_CXX=no 13387 fi 13388 ;; 13389 esac 13390 ;; 13391 13392 hpux10*|hpux11*) 13393 if test $with_gnu_ld = no; then 13394 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13395 hardcode_libdir_separator_CXX=: 13396 13397 case $host_cpu in 13398 hppa*64*|ia64*) 13399 ;; 13400 *) 13401 export_dynamic_flag_spec_CXX='${wl}-E' 13402 ;; 13403 esac 13404 fi 13405 case $host_cpu in 13406 hppa*64*|ia64*) 13407 hardcode_direct_CXX=no 13408 hardcode_shlibpath_var_CXX=no 13409 ;; 13410 *) 13411 hardcode_direct_CXX=yes 13412 hardcode_direct_absolute_CXX=yes 13413 hardcode_minus_L_CXX=yes # Not in the search PATH, 13414 # but as the default 13415 # location of the library. 13416 ;; 13417 esac 13418 13419 case $cc_basename in 13420 CC*) 13421 # FIXME: insert proper C++ library support 13422 ld_shlibs_CXX=no 13423 ;; 13424 aCC*) 13425 case $host_cpu in 13426 hppa*64*) 13427 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13428 ;; 13429 ia64*) 13430 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13431 ;; 13432 *) 13433 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13434 ;; 13435 esac 13436 # Commands to make compiler produce verbose output that lists 13437 # what "hidden" libraries, object files and flags are used when 13438 # linking a shared library. 13439 # 13440 # There doesn't appear to be a way to prevent this compiler from 13441 # explicitly linking system object files so we need to strip them 13442 # from the output so that they don't get included in the library 13443 # dependencies. 13444 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 13445 ;; 13446 *) 13447 if test "$GXX" = yes; then 13448 if test $with_gnu_ld = no; then 13449 case $host_cpu in 13450 hppa*64*) 13451 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13452 ;; 13453 ia64*) 13454 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13455 ;; 13456 *) 13457 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13458 ;; 13459 esac 13460 fi 13461 else 13462 # FIXME: insert proper C++ library support 13463 ld_shlibs_CXX=no 13464 fi 13465 ;; 13466 esac 13467 ;; 13468 13469 interix[3-9]*) 13470 hardcode_direct_CXX=no 13471 hardcode_shlibpath_var_CXX=no 13472 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13473 export_dynamic_flag_spec_CXX='${wl}-E' 13474 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13475 # Instead, shared libraries are loaded at an image base (0x10000000 by 13476 # default) and relocated if they conflict, which is a slow very memory 13477 # consuming and fragmenting process. To avoid this, we pick a random, 13478 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13479 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13480 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 13481 archive_expsym_cmds_CXX='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' 13482 ;; 13483 irix5* | irix6*) 13484 case $cc_basename in 13485 CC*) 13486 # SGI C++ 13487 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 13488 13489 # Archives containing C++ object files must be created using 13490 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 13491 # necessary to make sure instantiated templates are included 13492 # in the archive. 13493 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 13494 ;; 13495 *) 13496 if test "$GXX" = yes; then 13497 if test "$with_gnu_ld" = no; then 13498 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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' 13499 else 13500 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' 13501 fi 13502 fi 13503 link_all_deplibs_CXX=yes 13504 ;; 13505 esac 13506 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13507 hardcode_libdir_separator_CXX=: 13508 inherit_rpath_CXX=yes 13509 ;; 13510 13511 linux* | k*bsd*-gnu | kopensolaris*-gnu) 13512 case $cc_basename in 13513 KCC*) 13514 # Kuck and Associates, Inc. (KAI) C++ Compiler 13515 13516 # KCC will only create a shared library if the output file 13517 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13518 # to its proper name (with version) after linking. 13519 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 13520 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 13521 # Commands to make compiler produce verbose output that lists 13522 # what "hidden" libraries, object files and flags are used when 13523 # linking a shared library. 13524 # 13525 # There doesn't appear to be a way to prevent this compiler from 13526 # explicitly linking system object files so we need to strip them 13527 # from the output so that they don't get included in the library 13528 # dependencies. 13529 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 13530 13531 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13532 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13533 13534 # Archives containing C++ object files must be created using 13535 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13536 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13537 ;; 13538 icpc* | ecpc* ) 13539 # Intel C++ 13540 with_gnu_ld=yes 13541 # version 8.0 and above of icpc choke on multiply defined symbols 13542 # if we add $predep_objects and $postdep_objects, however 7.1 and 13543 # earlier do not add the objects themselves. 13544 case `$CC -V 2>&1` in 13545 *"Version 7."*) 13546 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13547 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13548 ;; 13549 *) # Version 8.0 or newer 13550 tmp_idyn= 13551 case $host_cpu in 13552 ia64*) tmp_idyn=' -i_dynamic';; 13553 esac 13554 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13555 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13556 ;; 13557 esac 13558 archive_cmds_need_lc_CXX=no 13559 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13560 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13561 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13562 ;; 13563 pgCC* | pgcpp*) 13564 # Portland Group C++ compiler 13565 case `$CC -V` in 13566 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 13567 prelink_cmds_CXX='tpldir=Template.dir~ 13568 rm -rf $tpldir~ 13569 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 13570 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 13571 old_archive_cmds_CXX='tpldir=Template.dir~ 13572 rm -rf $tpldir~ 13573 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 13574 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 13575 $RANLIB $oldlib' 13576 archive_cmds_CXX='tpldir=Template.dir~ 13577 rm -rf $tpldir~ 13578 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13579 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13580 archive_expsym_cmds_CXX='tpldir=Template.dir~ 13581 rm -rf $tpldir~ 13582 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13583 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 13584 ;; 13585 *) # Version 6 and above use weak symbols 13586 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13587 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 13588 ;; 13589 esac 13590 13591 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 13592 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13593 whole_archive_flag_spec_CXX='${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' 13594 ;; 13595 cxx*) 13596 # Compaq C++ 13597 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13598 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 13599 13600 runpath_var=LD_RUN_PATH 13601 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13602 hardcode_libdir_separator_CXX=: 13603 13604 # Commands to make compiler produce verbose output that lists 13605 # what "hidden" libraries, object files and flags are used when 13606 # linking a shared library. 13607 # 13608 # There doesn't appear to be a way to prevent this compiler from 13609 # explicitly linking system object files so we need to strip them 13610 # from the output so that they don't get included in the library 13611 # dependencies. 13612 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' 13613 ;; 13614 xl* | mpixl* | bgxl*) 13615 # IBM XL 8.0 on PPC, with GNU ld 13616 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13617 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13618 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13619 if test "x$supports_anon_versioning" = xyes; then 13620 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 13621 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13622 echo "local: *; };" >> $output_objdir/$libname.ver~ 13623 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13624 fi 13625 ;; 13626 *) 13627 case `$CC -V 2>&1 | sed 5q` in 13628 *Sun\ C*) 13629 # Sun C++ 5.9 13630 no_undefined_flag_CXX=' -zdefs' 13631 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13632 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 13633 hardcode_libdir_flag_spec_CXX='-R$libdir' 13634 whole_archive_flag_spec_CXX='${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' 13635 compiler_needs_object_CXX=yes 13636 13637 # Not sure whether something based on 13638 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 13639 # would be better. 13640 output_verbose_link_cmd='func_echo_all' 13641 13642 # Archives containing C++ object files must be created using 13643 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13644 # necessary to make sure instantiated templates are included 13645 # in the archive. 13646 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13647 ;; 13648 esac 13649 ;; 13650 esac 13651 ;; 13652 13653 lynxos*) 13654 # FIXME: insert proper C++ library support 13655 ld_shlibs_CXX=no 13656 ;; 13657 13658 m88k*) 13659 # FIXME: insert proper C++ library support 13660 ld_shlibs_CXX=no 13661 ;; 13662 13663 mvs*) 13664 case $cc_basename in 13665 cxx*) 13666 # FIXME: insert proper C++ library support 13667 ld_shlibs_CXX=no 13668 ;; 13669 *) 13670 # FIXME: insert proper C++ library support 13671 ld_shlibs_CXX=no 13672 ;; 13673 esac 13674 ;; 13675 13676 netbsd*) 13677 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13678 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 13679 wlarc= 13680 hardcode_libdir_flag_spec_CXX='-R$libdir' 13681 hardcode_direct_CXX=yes 13682 hardcode_shlibpath_var_CXX=no 13683 fi 13684 # Workaround some broken pre-1.5 toolchains 13685 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 13686 ;; 13687 13688 *nto* | *qnx*) 13689 ld_shlibs_CXX=yes 13690 ;; 13691 13692 openbsd2*) 13693 # C++ shared libraries are fairly broken 13694 ld_shlibs_CXX=no 13695 ;; 13696 13697 openbsd*) 13698 if test -f /usr/libexec/ld.so; then 13699 hardcode_direct_CXX=yes 13700 hardcode_shlibpath_var_CXX=no 13701 hardcode_direct_absolute_CXX=yes 13702 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13703 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13704 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13705 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 13706 export_dynamic_flag_spec_CXX='${wl}-E' 13707 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13708 fi 13709 output_verbose_link_cmd=func_echo_all 13710 else 13711 ld_shlibs_CXX=no 13712 fi 13713 ;; 13714 13715 osf3* | osf4* | osf5*) 13716 case $cc_basename in 13717 KCC*) 13718 # Kuck and Associates, Inc. (KAI) C++ Compiler 13719 13720 # KCC will only create a shared library if the output file 13721 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13722 # to its proper name (with version) after linking. 13723 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 13724 13725 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13726 hardcode_libdir_separator_CXX=: 13727 13728 # Archives containing C++ object files must be created using 13729 # the KAI C++ compiler. 13730 case $host in 13731 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 13732 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 13733 esac 13734 ;; 13735 RCC*) 13736 # Rational C++ 2.4.1 13737 # FIXME: insert proper C++ library support 13738 ld_shlibs_CXX=no 13739 ;; 13740 cxx*) 13741 case $host in 13742 osf3*) 13743 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13744 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 13745 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13746 ;; 13747 *) 13748 allow_undefined_flag_CXX=' -expect_unresolved \*' 13749 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 13750 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 13751 echo "-hidden">> $lib.exp~ 13752 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ 13753 $RM $lib.exp' 13754 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13755 ;; 13756 esac 13757 13758 hardcode_libdir_separator_CXX=: 13759 13760 # Commands to make compiler produce verbose output that lists 13761 # what "hidden" libraries, object files and flags are used when 13762 # linking a shared library. 13763 # 13764 # There doesn't appear to be a way to prevent this compiler from 13765 # explicitly linking system object files so we need to strip them 13766 # from the output so that they don't get included in the library 13767 # dependencies. 13768 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 13769 ;; 13770 *) 13771 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13772 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13773 case $host in 13774 osf3*) 13775 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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' 13776 ;; 13777 *) 13778 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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' 13779 ;; 13780 esac 13781 13782 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13783 hardcode_libdir_separator_CXX=: 13784 13785 # Commands to make compiler produce verbose output that lists 13786 # what "hidden" libraries, object files and flags are used when 13787 # linking a shared library. 13788 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13789 13790 else 13791 # FIXME: insert proper C++ library support 13792 ld_shlibs_CXX=no 13793 fi 13794 ;; 13795 esac 13796 ;; 13797 13798 psos*) 13799 # FIXME: insert proper C++ library support 13800 ld_shlibs_CXX=no 13801 ;; 13802 13803 sunos4*) 13804 case $cc_basename in 13805 CC*) 13806 # Sun C++ 4.x 13807 # FIXME: insert proper C++ library support 13808 ld_shlibs_CXX=no 13809 ;; 13810 lcc*) 13811 # Lucid 13812 # FIXME: insert proper C++ library support 13813 ld_shlibs_CXX=no 13814 ;; 13815 *) 13816 # FIXME: insert proper C++ library support 13817 ld_shlibs_CXX=no 13818 ;; 13819 esac 13820 ;; 13821 13822 solaris*) 13823 case $cc_basename in 13824 CC* | sunCC*) 13825 # Sun C++ 4.2, 5.x and Centerline C++ 13826 archive_cmds_need_lc_CXX=yes 13827 no_undefined_flag_CXX=' -zdefs' 13828 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13829 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13830 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13831 13832 hardcode_libdir_flag_spec_CXX='-R$libdir' 13833 hardcode_shlibpath_var_CXX=no 13834 case $host_os in 13835 solaris2.[0-5] | solaris2.[0-5].*) ;; 13836 *) 13837 # The compiler driver will combine and reorder linker options, 13838 # but understands `-z linker_flag'. 13839 # Supported since Solaris 2.6 (maybe 2.5.1?) 13840 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 13841 ;; 13842 esac 13843 link_all_deplibs_CXX=yes 13844 13845 output_verbose_link_cmd='func_echo_all' 13846 13847 # Archives containing C++ object files must be created using 13848 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13849 # necessary to make sure instantiated templates are included 13850 # in the archive. 13851 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13852 ;; 13853 gcx*) 13854 # Green Hills C++ Compiler 13855 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13856 13857 # The C++ compiler must be used to create the archive. 13858 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 13859 ;; 13860 *) 13861 # GNU C++ compiler with Solaris linker 13862 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13863 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 13864 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 13865 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13866 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13867 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13868 13869 # Commands to make compiler produce verbose output that lists 13870 # what "hidden" libraries, object files and flags are used when 13871 # linking a shared library. 13872 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13873 else 13874 # g++ 2.7 appears to require `-G' NOT `-shared' on this 13875 # platform. 13876 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13877 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13878 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13879 13880 # Commands to make compiler produce verbose output that lists 13881 # what "hidden" libraries, object files and flags are used when 13882 # linking a shared library. 13883 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13884 fi 13885 13886 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 13887 case $host_os in 13888 solaris2.[0-5] | solaris2.[0-5].*) ;; 13889 *) 13890 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 13891 ;; 13892 esac 13893 fi 13894 ;; 13895 esac 13896 ;; 13897 13898 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13899 no_undefined_flag_CXX='${wl}-z,text' 13900 archive_cmds_need_lc_CXX=no 13901 hardcode_shlibpath_var_CXX=no 13902 runpath_var='LD_RUN_PATH' 13903 13904 case $cc_basename in 13905 CC*) 13906 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13907 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13908 ;; 13909 *) 13910 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13911 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13912 ;; 13913 esac 13914 ;; 13915 13916 sysv5* | sco3.2v5* | sco5v6*) 13917 # Note: We can NOT use -z defs as we might desire, because we do not 13918 # link with -lc, and that would cause any symbols used from libc to 13919 # always be unresolved, which means just about no library would 13920 # ever link correctly. If we're not using GNU ld we use -z text 13921 # though, which does catch some bad symbols but isn't as heavy-handed 13922 # as -z defs. 13923 no_undefined_flag_CXX='${wl}-z,text' 13924 allow_undefined_flag_CXX='${wl}-z,nodefs' 13925 archive_cmds_need_lc_CXX=no 13926 hardcode_shlibpath_var_CXX=no 13927 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 13928 hardcode_libdir_separator_CXX=':' 13929 link_all_deplibs_CXX=yes 13930 export_dynamic_flag_spec_CXX='${wl}-Bexport' 13931 runpath_var='LD_RUN_PATH' 13932 13933 case $cc_basename in 13934 CC*) 13935 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13936 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13937 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 13938 '"$old_archive_cmds_CXX" 13939 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 13940 '"$reload_cmds_CXX" 13941 ;; 13942 *) 13943 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13944 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13945 ;; 13946 esac 13947 ;; 13948 13949 tandem*) 13950 case $cc_basename in 13951 NCC*) 13952 # NonStop-UX NCC 3.20 13953 # FIXME: insert proper C++ library support 13954 ld_shlibs_CXX=no 13955 ;; 13956 *) 13957 # FIXME: insert proper C++ library support 13958 ld_shlibs_CXX=no 13959 ;; 13960 esac 13961 ;; 13962 13963 vxworks*) 13964 # FIXME: insert proper C++ library support 13965 ld_shlibs_CXX=no 13966 ;; 13967 13968 *) 13969 # FIXME: insert proper C++ library support 13970 ld_shlibs_CXX=no 13971 ;; 13972 esac 13973 13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 13975 $as_echo "$ld_shlibs_CXX" >&6; } 13976 test "$ld_shlibs_CXX" = no && can_build_shared=no 13977 13978 GCC_CXX="$GXX" 13979 LD_CXX="$LD" 13980 13981 ## CAVEAT EMPTOR: 13982 ## There is no encapsulation within the following macros, do not change 13983 ## the running order or otherwise move them around unless you know exactly 13984 ## what you are doing... 13985 # Dependencies to place before and after the object being linked: 13986 predep_objects_CXX= 13987 postdep_objects_CXX= 13988 predeps_CXX= 13989 postdeps_CXX= 13990 compiler_lib_search_path_CXX= 13991 13992 cat > conftest.$ac_ext <<_LT_EOF 13993 class Foo 13994 { 13995 public: 13996 Foo (void) { a = 0; } 13997 private: 13998 int a; 13999 }; 14000 _LT_EOF 14001 14002 14003 _lt_libdeps_save_CFLAGS=$CFLAGS 14004 case "$CC $CFLAGS " in #( 14005 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 14006 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 14007 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 14008 esac 14009 14010 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14011 (eval $ac_compile) 2>&5 14012 ac_status=$? 14013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14014 test $ac_status = 0; }; then 14015 # Parse the compiler output and extract the necessary 14016 # objects, libraries and library flags. 14017 14018 # Sentinel used to keep track of whether or not we are before 14019 # the conftest object file. 14020 pre_test_object_deps_done=no 14021 14022 for p in `eval "$output_verbose_link_cmd"`; do 14023 case ${prev}${p} in 14024 14025 -L* | -R* | -l*) 14026 # Some compilers place space between "-{L,R}" and the path. 14027 # Remove the space. 14028 if test $p = "-L" || 14029 test $p = "-R"; then 14030 prev=$p 14031 continue 14032 fi 14033 14034 # Expand the sysroot to ease extracting the directories later. 14035 if test -z "$prev"; then 14036 case $p in 14037 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 14038 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 14039 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 14040 esac 14041 fi 14042 case $p in 14043 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 14044 esac 14045 if test "$pre_test_object_deps_done" = no; then 14046 case ${prev} in 14047 -L | -R) 14048 # Internal compiler library paths should come after those 14049 # provided the user. The postdeps already come after the 14050 # user supplied libs so there is no need to process them. 14051 if test -z "$compiler_lib_search_path_CXX"; then 14052 compiler_lib_search_path_CXX="${prev}${p}" 14053 else 14054 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 14055 fi 14056 ;; 14057 # The "-l" case would never come before the object being 14058 # linked, so don't bother handling this case. 14059 esac 14060 else 14061 if test -z "$postdeps_CXX"; then 14062 postdeps_CXX="${prev}${p}" 14063 else 14064 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 14065 fi 14066 fi 14067 prev= 14068 ;; 14069 14070 *.lto.$objext) ;; # Ignore GCC LTO objects 14071 *.$objext) 14072 # This assumes that the test object file only shows up 14073 # once in the compiler output. 14074 if test "$p" = "conftest.$objext"; then 14075 pre_test_object_deps_done=yes 14076 continue 14077 fi 14078 14079 if test "$pre_test_object_deps_done" = no; then 14080 if test -z "$predep_objects_CXX"; then 14081 predep_objects_CXX="$p" 14082 else 14083 predep_objects_CXX="$predep_objects_CXX $p" 14084 fi 14085 else 14086 if test -z "$postdep_objects_CXX"; then 14087 postdep_objects_CXX="$p" 14088 else 14089 postdep_objects_CXX="$postdep_objects_CXX $p" 14090 fi 14091 fi 14092 ;; 14093 14094 *) ;; # Ignore the rest. 14095 14096 esac 14097 done 14098 14099 # Clean up. 14100 rm -f a.out a.exe 14101 else 14102 echo "libtool.m4: error: problem compiling CXX test program" 14103 fi 14104 14105 $RM -f confest.$objext 14106 CFLAGS=$_lt_libdeps_save_CFLAGS 14107 14108 # PORTME: override above test on systems where it is broken 14109 case $host_os in 14110 interix[3-9]*) 14111 # Interix 3.5 installs completely hosed .la files for C++, so rather than 14112 # hack all around it, let's just trust "g++" to DTRT. 14113 predep_objects_CXX= 14114 postdep_objects_CXX= 14115 postdeps_CXX= 14116 ;; 14117 14118 linux*) 14119 case `$CC -V 2>&1 | sed 5q` in 14120 *Sun\ C*) 14121 # Sun C++ 5.9 14122 14123 # The more standards-conforming stlport4 library is 14124 # incompatible with the Cstd library. Avoid specifying 14125 # it if it's in CXXFLAGS. Ignore libCrun as 14126 # -library=stlport4 depends on it. 14127 case " $CXX $CXXFLAGS " in 14128 *" -library=stlport4 "*) 14129 solaris_use_stlport4=yes 14130 ;; 14131 esac 14132 14133 if test "$solaris_use_stlport4" != yes; then 14134 postdeps_CXX='-library=Cstd -library=Crun' 14135 fi 14136 ;; 14137 esac 14138 ;; 14139 14140 solaris*) 14141 case $cc_basename in 14142 CC* | sunCC*) 14143 # The more standards-conforming stlport4 library is 14144 # incompatible with the Cstd library. Avoid specifying 14145 # it if it's in CXXFLAGS. Ignore libCrun as 14146 # -library=stlport4 depends on it. 14147 case " $CXX $CXXFLAGS " in 14148 *" -library=stlport4 "*) 14149 solaris_use_stlport4=yes 14150 ;; 14151 esac 14152 14153 # Adding this requires a known-good setup of shared libraries for 14154 # Sun compiler versions before 5.6, else PIC objects from an old 14155 # archive will be linked into the output, leading to subtle bugs. 14156 if test "$solaris_use_stlport4" != yes; then 14157 postdeps_CXX='-library=Cstd -library=Crun' 14158 fi 14159 ;; 14160 esac 14161 ;; 14162 esac 14163 14164 14165 case " $postdeps_CXX " in 14166 *" -lc "*) archive_cmds_need_lc_CXX=no ;; 14167 esac 14168 compiler_lib_search_dirs_CXX= 14169 if test -n "${compiler_lib_search_path_CXX}"; then 14170 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 14171 fi 14172 14173 14174 14175 14176 14177 14178 14179 14180 14181 14182 14183 14184 14185 14186 14187 14188 14189 14190 14191 14192 14193 14194 14195 14196 14197 14198 14199 14200 14201 14202 14203 lt_prog_compiler_wl_CXX= 14204 lt_prog_compiler_pic_CXX= 14205 lt_prog_compiler_static_CXX= 14206 14207 14208 # C++ specific cases for pic, static, wl, etc. 14209 if test "$GXX" = yes; then 14210 lt_prog_compiler_wl_CXX='-Wl,' 14211 lt_prog_compiler_static_CXX='-static' 14212 14213 case $host_os in 14214 aix*) 14215 # All AIX code is PIC. 14216 if test "$host_cpu" = ia64; then 14217 # AIX 5 now supports IA64 processor 14218 lt_prog_compiler_static_CXX='-Bstatic' 14219 fi 14220 ;; 14221 14222 amigaos*) 14223 case $host_cpu in 14224 powerpc) 14225 # see comment about AmigaOS4 .so support 14226 lt_prog_compiler_pic_CXX='-fPIC' 14227 ;; 14228 m68k) 14229 # FIXME: we need at least 68020 code to build shared libraries, but 14230 # adding the `-m68020' flag to GCC prevents building anything better, 14231 # like `-m68040'. 14232 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 14233 ;; 14234 esac 14235 ;; 14236 14237 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14238 # PIC is the default for these OSes. 14239 ;; 14240 mingw* | cygwin* | os2* | pw32* | cegcc*) 14241 # This hack is so that the source file can tell whether it is being 14242 # built for inclusion in a dll (and should export symbols for example). 14243 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14244 # (--disable-auto-import) libraries 14245 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14246 ;; 14247 darwin* | rhapsody*) 14248 # PIC is the default on this platform 14249 # Common symbols not allowed in MH_DYLIB files 14250 lt_prog_compiler_pic_CXX='-fno-common' 14251 ;; 14252 *djgpp*) 14253 # DJGPP does not support shared libraries at all 14254 lt_prog_compiler_pic_CXX= 14255 ;; 14256 haiku*) 14257 # PIC is the default for Haiku. 14258 # The "-static" flag exists, but is broken. 14259 lt_prog_compiler_static_CXX= 14260 ;; 14261 interix[3-9]*) 14262 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14263 # Instead, we relocate shared libraries at runtime. 14264 ;; 14265 sysv4*MP*) 14266 if test -d /usr/nec; then 14267 lt_prog_compiler_pic_CXX=-Kconform_pic 14268 fi 14269 ;; 14270 hpux*) 14271 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14272 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14273 # sets the default TLS model and affects inlining. 14274 case $host_cpu in 14275 hppa*64*) 14276 ;; 14277 *) 14278 lt_prog_compiler_pic_CXX='-fPIC' 14279 ;; 14280 esac 14281 ;; 14282 *qnx* | *nto*) 14283 # QNX uses GNU C++, but need to define -shared option too, otherwise 14284 # it will coredump. 14285 lt_prog_compiler_pic_CXX='-fPIC -shared' 14286 ;; 14287 *) 14288 lt_prog_compiler_pic_CXX='-fPIC' 14289 ;; 14290 esac 14291 else 14292 case $host_os in 14293 aix[4-9]*) 14294 # All AIX code is PIC. 14295 if test "$host_cpu" = ia64; then 14296 # AIX 5 now supports IA64 processor 14297 lt_prog_compiler_static_CXX='-Bstatic' 14298 else 14299 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 14300 fi 14301 ;; 14302 chorus*) 14303 case $cc_basename in 14304 cxch68*) 14305 # Green Hills C++ Compiler 14306 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 14307 ;; 14308 esac 14309 ;; 14310 mingw* | cygwin* | os2* | pw32* | cegcc*) 14311 # This hack is so that the source file can tell whether it is being 14312 # built for inclusion in a dll (and should export symbols for example). 14313 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14314 ;; 14315 dgux*) 14316 case $cc_basename in 14317 ec++*) 14318 lt_prog_compiler_pic_CXX='-KPIC' 14319 ;; 14320 ghcx*) 14321 # Green Hills C++ Compiler 14322 lt_prog_compiler_pic_CXX='-pic' 14323 ;; 14324 *) 14325 ;; 14326 esac 14327 ;; 14328 freebsd* | dragonfly*) 14329 # FreeBSD uses GNU C++ 14330 ;; 14331 hpux9* | hpux10* | hpux11*) 14332 case $cc_basename in 14333 CC*) 14334 lt_prog_compiler_wl_CXX='-Wl,' 14335 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14336 if test "$host_cpu" != ia64; then 14337 lt_prog_compiler_pic_CXX='+Z' 14338 fi 14339 ;; 14340 aCC*) 14341 lt_prog_compiler_wl_CXX='-Wl,' 14342 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14343 case $host_cpu in 14344 hppa*64*|ia64*) 14345 # +Z the default 14346 ;; 14347 *) 14348 lt_prog_compiler_pic_CXX='+Z' 14349 ;; 14350 esac 14351 ;; 14352 *) 14353 ;; 14354 esac 14355 ;; 14356 interix*) 14357 # This is c89, which is MS Visual C++ (no shared libs) 14358 # Anyone wants to do a port? 14359 ;; 14360 irix5* | irix6* | nonstopux*) 14361 case $cc_basename in 14362 CC*) 14363 lt_prog_compiler_wl_CXX='-Wl,' 14364 lt_prog_compiler_static_CXX='-non_shared' 14365 # CC pic flag -KPIC is the default. 14366 ;; 14367 *) 14368 ;; 14369 esac 14370 ;; 14371 linux* | k*bsd*-gnu | kopensolaris*-gnu) 14372 case $cc_basename in 14373 KCC*) 14374 # KAI C++ Compiler 14375 lt_prog_compiler_wl_CXX='--backend -Wl,' 14376 lt_prog_compiler_pic_CXX='-fPIC' 14377 ;; 14378 ecpc* ) 14379 # old Intel C++ for x86_64 which still supported -KPIC. 14380 lt_prog_compiler_wl_CXX='-Wl,' 14381 lt_prog_compiler_pic_CXX='-KPIC' 14382 lt_prog_compiler_static_CXX='-static' 14383 ;; 14384 icpc* ) 14385 # Intel C++, used to be incompatible with GCC. 14386 # ICC 10 doesn't accept -KPIC any more. 14387 lt_prog_compiler_wl_CXX='-Wl,' 14388 lt_prog_compiler_pic_CXX='-fPIC' 14389 lt_prog_compiler_static_CXX='-static' 14390 ;; 14391 pgCC* | pgcpp*) 14392 # Portland Group C++ compiler 14393 lt_prog_compiler_wl_CXX='-Wl,' 14394 lt_prog_compiler_pic_CXX='-fpic' 14395 lt_prog_compiler_static_CXX='-Bstatic' 14396 ;; 14397 cxx*) 14398 # Compaq C++ 14399 # Make sure the PIC flag is empty. It appears that all Alpha 14400 # Linux and Compaq Tru64 Unix objects are PIC. 14401 lt_prog_compiler_pic_CXX= 14402 lt_prog_compiler_static_CXX='-non_shared' 14403 ;; 14404 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 14405 # IBM XL 8.0, 9.0 on PPC and BlueGene 14406 lt_prog_compiler_wl_CXX='-Wl,' 14407 lt_prog_compiler_pic_CXX='-qpic' 14408 lt_prog_compiler_static_CXX='-qstaticlink' 14409 ;; 14410 *) 14411 case `$CC -V 2>&1 | sed 5q` in 14412 *Sun\ C*) 14413 # Sun C++ 5.9 14414 lt_prog_compiler_pic_CXX='-KPIC' 14415 lt_prog_compiler_static_CXX='-Bstatic' 14416 lt_prog_compiler_wl_CXX='-Qoption ld ' 14417 ;; 14418 esac 14419 ;; 14420 esac 14421 ;; 14422 lynxos*) 14423 ;; 14424 m88k*) 14425 ;; 14426 mvs*) 14427 case $cc_basename in 14428 cxx*) 14429 lt_prog_compiler_pic_CXX='-W c,exportall' 14430 ;; 14431 *) 14432 ;; 14433 esac 14434 ;; 14435 netbsd*) 14436 ;; 14437 *qnx* | *nto*) 14438 # QNX uses GNU C++, but need to define -shared option too, otherwise 14439 # it will coredump. 14440 lt_prog_compiler_pic_CXX='-fPIC -shared' 14441 ;; 14442 osf3* | osf4* | osf5*) 14443 case $cc_basename in 14444 KCC*) 14445 lt_prog_compiler_wl_CXX='--backend -Wl,' 14446 ;; 14447 RCC*) 14448 # Rational C++ 2.4.1 14449 lt_prog_compiler_pic_CXX='-pic' 14450 ;; 14451 cxx*) 14452 # Digital/Compaq C++ 14453 lt_prog_compiler_wl_CXX='-Wl,' 14454 # Make sure the PIC flag is empty. It appears that all Alpha 14455 # Linux and Compaq Tru64 Unix objects are PIC. 14456 lt_prog_compiler_pic_CXX= 14457 lt_prog_compiler_static_CXX='-non_shared' 14458 ;; 14459 *) 14460 ;; 14461 esac 14462 ;; 14463 psos*) 14464 ;; 14465 solaris*) 14466 case $cc_basename in 14467 CC* | sunCC*) 14468 # Sun C++ 4.2, 5.x and Centerline C++ 14469 lt_prog_compiler_pic_CXX='-KPIC' 14470 lt_prog_compiler_static_CXX='-Bstatic' 14471 lt_prog_compiler_wl_CXX='-Qoption ld ' 14472 ;; 14473 gcx*) 14474 # Green Hills C++ Compiler 14475 lt_prog_compiler_pic_CXX='-PIC' 14476 ;; 14477 *) 14478 ;; 14479 esac 14480 ;; 14481 sunos4*) 14482 case $cc_basename in 14483 CC*) 14484 # Sun C++ 4.x 14485 lt_prog_compiler_pic_CXX='-pic' 14486 lt_prog_compiler_static_CXX='-Bstatic' 14487 ;; 14488 lcc*) 14489 # Lucid 14490 lt_prog_compiler_pic_CXX='-pic' 14491 ;; 14492 *) 14493 ;; 14494 esac 14495 ;; 14496 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14497 case $cc_basename in 14498 CC*) 14499 lt_prog_compiler_wl_CXX='-Wl,' 14500 lt_prog_compiler_pic_CXX='-KPIC' 14501 lt_prog_compiler_static_CXX='-Bstatic' 14502 ;; 14503 esac 14504 ;; 14505 tandem*) 14506 case $cc_basename in 14507 NCC*) 14508 # NonStop-UX NCC 3.20 14509 lt_prog_compiler_pic_CXX='-KPIC' 14510 ;; 14511 *) 14512 ;; 14513 esac 14514 ;; 14515 vxworks*) 14516 ;; 14517 *) 14518 lt_prog_compiler_can_build_shared_CXX=no 14519 ;; 14520 esac 14521 fi 14522 14523 case $host_os in 14524 # For platforms which do not support PIC, -DPIC is meaningless: 14525 *djgpp*) 14526 lt_prog_compiler_pic_CXX= 14527 ;; 14528 *) 14529 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 14530 ;; 14531 esac 14532 14533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14534 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14535 if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 14536 $as_echo_n "(cached) " >&6 14537 else 14538 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 14539 fi 14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 14541 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 14542 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 14543 14544 # 14545 # Check to make sure the PIC flag actually works. 14546 # 14547 if test -n "$lt_prog_compiler_pic_CXX"; then 14548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 14549 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 14550 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 14551 $as_echo_n "(cached) " >&6 14552 else 14553 lt_cv_prog_compiler_pic_works_CXX=no 14554 ac_outfile=conftest.$ac_objext 14555 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14556 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 14557 # Insert the option either (1) after the last *FLAGS variable, or 14558 # (2) before a word containing "conftest.", or (3) at the end. 14559 # Note that $ac_compile itself does not contain backslashes and begins 14560 # with a dollar sign (not a hyphen), so the echo should work correctly. 14561 # The option is referenced via a variable to avoid confusing sed. 14562 lt_compile=`echo "$ac_compile" | $SED \ 14563 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14564 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14565 -e 's:$: $lt_compiler_flag:'` 14566 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14567 (eval "$lt_compile" 2>conftest.err) 14568 ac_status=$? 14569 cat conftest.err >&5 14570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14571 if (exit $ac_status) && test -s "$ac_outfile"; then 14572 # The compiler can only warn and ignore the option if not recognized 14573 # So say no if there are warnings other than the usual output. 14574 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14575 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14576 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14577 lt_cv_prog_compiler_pic_works_CXX=yes 14578 fi 14579 fi 14580 $RM conftest* 14581 14582 fi 14583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 14584 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 14585 14586 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 14587 case $lt_prog_compiler_pic_CXX in 14588 "" | " "*) ;; 14589 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 14590 esac 14591 else 14592 lt_prog_compiler_pic_CXX= 14593 lt_prog_compiler_can_build_shared_CXX=no 14594 fi 14595 14596 fi 14597 14598 14599 14600 14601 14602 # 14603 # Check to make sure the static flag actually works. 14604 # 14605 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 14606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14607 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14608 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 14609 $as_echo_n "(cached) " >&6 14610 else 14611 lt_cv_prog_compiler_static_works_CXX=no 14612 save_LDFLAGS="$LDFLAGS" 14613 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14614 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14615 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14616 # The linker can only warn and ignore the option if not recognized 14617 # So say no if there are warnings 14618 if test -s conftest.err; then 14619 # Append any errors to the config.log. 14620 cat conftest.err 1>&5 14621 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14622 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14623 if diff conftest.exp conftest.er2 >/dev/null; then 14624 lt_cv_prog_compiler_static_works_CXX=yes 14625 fi 14626 else 14627 lt_cv_prog_compiler_static_works_CXX=yes 14628 fi 14629 fi 14630 $RM -r conftest* 14631 LDFLAGS="$save_LDFLAGS" 14632 14633 fi 14634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 14635 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 14636 14637 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 14638 : 14639 else 14640 lt_prog_compiler_static_CXX= 14641 fi 14642 14643 14644 14645 14646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14647 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14648 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14649 $as_echo_n "(cached) " >&6 14650 else 14651 lt_cv_prog_compiler_c_o_CXX=no 14652 $RM -r conftest 2>/dev/null 14653 mkdir conftest 14654 cd conftest 14655 mkdir out 14656 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14657 14658 lt_compiler_flag="-o out/conftest2.$ac_objext" 14659 # Insert the option either (1) after the last *FLAGS variable, or 14660 # (2) before a word containing "conftest.", or (3) at the end. 14661 # Note that $ac_compile itself does not contain backslashes and begins 14662 # with a dollar sign (not a hyphen), so the echo should work correctly. 14663 lt_compile=`echo "$ac_compile" | $SED \ 14664 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14665 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14666 -e 's:$: $lt_compiler_flag:'` 14667 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14668 (eval "$lt_compile" 2>out/conftest.err) 14669 ac_status=$? 14670 cat out/conftest.err >&5 14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14672 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14673 then 14674 # The compiler can only warn and ignore the option if not recognized 14675 # So say no if there are warnings 14676 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14677 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14678 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14679 lt_cv_prog_compiler_c_o_CXX=yes 14680 fi 14681 fi 14682 chmod u+w . 2>&5 14683 $RM conftest* 14684 # SGI C++ compiler will create directory out/ii_files/ for 14685 # template instantiation 14686 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14687 $RM out/* && rmdir out 14688 cd .. 14689 $RM -r conftest 14690 $RM conftest* 14691 14692 fi 14693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14694 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14695 14696 14697 14698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14699 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14700 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14701 $as_echo_n "(cached) " >&6 14702 else 14703 lt_cv_prog_compiler_c_o_CXX=no 14704 $RM -r conftest 2>/dev/null 14705 mkdir conftest 14706 cd conftest 14707 mkdir out 14708 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14709 14710 lt_compiler_flag="-o out/conftest2.$ac_objext" 14711 # Insert the option either (1) after the last *FLAGS variable, or 14712 # (2) before a word containing "conftest.", or (3) at the end. 14713 # Note that $ac_compile itself does not contain backslashes and begins 14714 # with a dollar sign (not a hyphen), so the echo should work correctly. 14715 lt_compile=`echo "$ac_compile" | $SED \ 14716 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14717 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14718 -e 's:$: $lt_compiler_flag:'` 14719 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14720 (eval "$lt_compile" 2>out/conftest.err) 14721 ac_status=$? 14722 cat out/conftest.err >&5 14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14724 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14725 then 14726 # The compiler can only warn and ignore the option if not recognized 14727 # So say no if there are warnings 14728 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14729 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14730 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14731 lt_cv_prog_compiler_c_o_CXX=yes 14732 fi 14733 fi 14734 chmod u+w . 2>&5 14735 $RM conftest* 14736 # SGI C++ compiler will create directory out/ii_files/ for 14737 # template instantiation 14738 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14739 $RM out/* && rmdir out 14740 cd .. 14741 $RM -r conftest 14742 $RM conftest* 14743 14744 fi 14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14746 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14747 14748 14749 14750 14751 hard_links="nottested" 14752 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 14753 # do not overwrite the value of need_locks provided by the user 14754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14755 $as_echo_n "checking if we can lock with hard links... " >&6; } 14756 hard_links=yes 14757 $RM conftest* 14758 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14759 touch conftest.a 14760 ln conftest.a conftest.b 2>&5 || hard_links=no 14761 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14763 $as_echo "$hard_links" >&6; } 14764 if test "$hard_links" = no; then 14765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14766 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14767 need_locks=warn 14768 fi 14769 else 14770 need_locks=no 14771 fi 14772 14773 14774 14775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14776 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14777 14778 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14779 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14780 case $host_os in 14781 aix[4-9]*) 14782 # If we're using GNU nm, then we don't want the "-C" option. 14783 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14784 # Also, AIX nm treats weak defined symbols like other global defined 14785 # symbols, whereas GNU nm marks them as "W". 14786 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14787 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 14788 else 14789 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 14790 fi 14791 ;; 14792 pw32*) 14793 export_symbols_cmds_CXX="$ltdll_cmds" 14794 ;; 14795 cygwin* | mingw* | cegcc*) 14796 case $cc_basename in 14797 cl*) 14798 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 14799 ;; 14800 *) 14801 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 14802 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 14803 ;; 14804 esac 14805 ;; 14806 *) 14807 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14808 ;; 14809 esac 14810 14811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14812 $as_echo "$ld_shlibs_CXX" >&6; } 14813 test "$ld_shlibs_CXX" = no && can_build_shared=no 14814 14815 with_gnu_ld_CXX=$with_gnu_ld 14816 14817 14818 14819 14820 14821 14822 # 14823 # Do we need to explicitly link libc? 14824 # 14825 case "x$archive_cmds_need_lc_CXX" in 14826 x|xyes) 14827 # Assume -lc should be added 14828 archive_cmds_need_lc_CXX=yes 14829 14830 if test "$enable_shared" = yes && test "$GCC" = yes; then 14831 case $archive_cmds_CXX in 14832 *'~'*) 14833 # FIXME: we may have to deal with multi-command sequences. 14834 ;; 14835 '$CC '*) 14836 # Test whether the compiler implicitly links with -lc since on some 14837 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14838 # to ld, don't add -lc before -lgcc. 14839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 14840 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 14841 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 14842 $as_echo_n "(cached) " >&6 14843 else 14844 $RM conftest* 14845 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14846 14847 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14848 (eval $ac_compile) 2>&5 14849 ac_status=$? 14850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14851 test $ac_status = 0; } 2>conftest.err; then 14852 soname=conftest 14853 lib=conftest 14854 libobjs=conftest.$ac_objext 14855 deplibs= 14856 wl=$lt_prog_compiler_wl_CXX 14857 pic_flag=$lt_prog_compiler_pic_CXX 14858 compiler_flags=-v 14859 linker_flags=-v 14860 verstring= 14861 output_objdir=. 14862 libname=conftest 14863 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 14864 allow_undefined_flag_CXX= 14865 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 14866 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 14867 ac_status=$? 14868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14869 test $ac_status = 0; } 14870 then 14871 lt_cv_archive_cmds_need_lc_CXX=no 14872 else 14873 lt_cv_archive_cmds_need_lc_CXX=yes 14874 fi 14875 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 14876 else 14877 cat conftest.err 1>&5 14878 fi 14879 $RM conftest* 14880 14881 fi 14882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 14883 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 14884 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 14885 ;; 14886 esac 14887 fi 14888 ;; 14889 esac 14890 14891 14892 14893 14894 14895 14896 14897 14898 14899 14900 14901 14902 14903 14904 14905 14906 14907 14908 14909 14910 14911 14912 14913 14914 14915 14916 14917 14918 14919 14920 14921 14922 14923 14924 14925 14926 14927 14928 14929 14930 14931 14932 14933 14934 14935 14936 14937 14938 14939 14940 14941 14942 14943 14944 14945 14946 14947 14948 14949 14950 14951 14952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 14953 $as_echo_n "checking dynamic linker characteristics... " >&6; } 14954 14955 library_names_spec= 14956 libname_spec='lib$name' 14957 soname_spec= 14958 shrext_cmds=".so" 14959 postinstall_cmds= 14960 postuninstall_cmds= 14961 finish_cmds= 14962 finish_eval= 14963 shlibpath_var= 14964 shlibpath_overrides_runpath=unknown 14965 version_type=none 14966 dynamic_linker="$host_os ld.so" 14967 sys_lib_dlsearch_path_spec="/lib /usr/lib" 14968 need_lib_prefix=unknown 14969 hardcode_into_libs=no 14970 14971 # when you set need_version to no, make sure it does not cause -set_version 14972 # flags to be left without arguments 14973 need_version=unknown 14974 14975 case $host_os in 14976 aix3*) 14977 version_type=linux # correct to gnu/linux during the next big refactor 14978 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14979 shlibpath_var=LIBPATH 14980 14981 # AIX 3 has no versioning support, so we append a major version to the name. 14982 soname_spec='${libname}${release}${shared_ext}$major' 14983 ;; 14984 14985 aix[4-9]*) 14986 version_type=linux # correct to gnu/linux during the next big refactor 14987 need_lib_prefix=no 14988 need_version=no 14989 hardcode_into_libs=yes 14990 if test "$host_cpu" = ia64; then 14991 # AIX 5 supports IA64 14992 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14993 shlibpath_var=LD_LIBRARY_PATH 14994 else 14995 # With GCC up to 2.95.x, collect2 would create an import file 14996 # for dependence libraries. The import file would start with 14997 # the line `#! .'. This would cause the generated library to 14998 # depend on `.', always an invalid library. This was fixed in 14999 # development snapshots of GCC prior to 3.0. 15000 case $host_os in 15001 aix4 | aix4.[01] | aix4.[01].*) 15002 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15003 echo ' yes ' 15004 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 15005 : 15006 else 15007 can_build_shared=no 15008 fi 15009 ;; 15010 esac 15011 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15012 # soname into executable. Probably we can add versioning support to 15013 # collect2, so additional links can be useful in future. 15014 if test "$aix_use_runtimelinking" = yes; then 15015 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15016 # instead of lib<name>.a to let people know that these are not 15017 # typical AIX shared libraries. 15018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15019 else 15020 # We preserve .a as extension for shared libraries through AIX4.2 15021 # and later when we are not doing run time linking. 15022 library_names_spec='${libname}${release}.a $libname.a' 15023 soname_spec='${libname}${release}${shared_ext}$major' 15024 fi 15025 shlibpath_var=LIBPATH 15026 fi 15027 ;; 15028 15029 amigaos*) 15030 case $host_cpu in 15031 powerpc) 15032 # Since July 2007 AmigaOS4 officially supports .so libraries. 15033 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15035 ;; 15036 m68k) 15037 library_names_spec='$libname.ixlibrary $libname.a' 15038 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15039 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 15040 ;; 15041 esac 15042 ;; 15043 15044 beos*) 15045 library_names_spec='${libname}${shared_ext}' 15046 dynamic_linker="$host_os ld.so" 15047 shlibpath_var=LIBRARY_PATH 15048 ;; 15049 15050 bsdi[45]*) 15051 version_type=linux # correct to gnu/linux during the next big refactor 15052 need_version=no 15053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15054 soname_spec='${libname}${release}${shared_ext}$major' 15055 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15056 shlibpath_var=LD_LIBRARY_PATH 15057 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15058 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15059 # the default ld.so.conf also contains /usr/contrib/lib and 15060 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15061 # libtool to hard-code these into programs 15062 ;; 15063 15064 cygwin* | mingw* | pw32* | cegcc*) 15065 version_type=windows 15066 shrext_cmds=".dll" 15067 need_version=no 15068 need_lib_prefix=no 15069 15070 case $GCC,$cc_basename in 15071 yes,*) 15072 # gcc 15073 library_names_spec='$libname.dll.a' 15074 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15075 postinstall_cmds='base_file=`basename \${file}`~ 15076 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 15077 dldir=$destdir/`dirname \$dlpath`~ 15078 test -d \$dldir || mkdir -p \$dldir~ 15079 $install_prog $dir/$dlname \$dldir/$dlname~ 15080 chmod a+x \$dldir/$dlname~ 15081 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15082 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15083 fi' 15084 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15085 dlpath=$dir/\$dldll~ 15086 $RM \$dlpath' 15087 shlibpath_overrides_runpath=yes 15088 15089 case $host_os in 15090 cygwin*) 15091 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15092 #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 15093 soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}' 15094 15095 ;; 15096 mingw* | cegcc*) 15097 # MinGW DLLs use traditional 'lib' prefix 15098 #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 15099 soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}' 15100 ;; 15101 pw32*) 15102 # pw32 DLLs use 'pw' prefix rather than 'lib' 15103 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15104 ;; 15105 esac 15106 dynamic_linker='Win32 ld.exe' 15107 ;; 15108 15109 *,cl*) 15110 # Native MSVC 15111 libname_spec='$name' 15112 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15113 library_names_spec='${libname}.dll.lib' 15114 15115 case $build_os in 15116 mingw*) 15117 sys_lib_search_path_spec= 15118 lt_save_ifs=$IFS 15119 IFS=';' 15120 for lt_path in $LIB 15121 do 15122 IFS=$lt_save_ifs 15123 # Let DOS variable expansion print the short 8.3 style file name. 15124 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 15125 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 15126 done 15127 IFS=$lt_save_ifs 15128 # Convert to MSYS style. 15129 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 15130 ;; 15131 cygwin*) 15132 # Convert to unix form, then to dos form, then back to unix form 15133 # but this time dos style (no spaces!) so that the unix form looks 15134 # like /cygdrive/c/PROGRA~1:/cygdr... 15135 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 15136 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 15137 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15138 ;; 15139 *) 15140 sys_lib_search_path_spec="$LIB" 15141 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 15142 # It is most probably a Windows format PATH. 15143 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15144 else 15145 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15146 fi 15147 # FIXME: find the short name or the path components, as spaces are 15148 # common. (e.g. "Program Files" -> "PROGRA~1") 15149 ;; 15150 esac 15151 15152 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15153 postinstall_cmds='base_file=`basename \${file}`~ 15154 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 15155 dldir=$destdir/`dirname \$dlpath`~ 15156 test -d \$dldir || mkdir -p \$dldir~ 15157 $install_prog $dir/$dlname \$dldir/$dlname' 15158 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15159 dlpath=$dir/\$dldll~ 15160 $RM \$dlpath' 15161 shlibpath_overrides_runpath=yes 15162 dynamic_linker='Win32 link.exe' 15163 ;; 15164 15165 *) 15166 # Assume MSVC wrapper 15167 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15168 dynamic_linker='Win32 ld.exe' 15169 ;; 15170 esac 15171 # FIXME: first we should search . and the directory the executable is in 15172 shlibpath_var=PATH 15173 ;; 15174 15175 darwin* | rhapsody*) 15176 dynamic_linker="$host_os dyld" 15177 version_type=darwin 15178 need_lib_prefix=no 15179 need_version=no 15180 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15181 soname_spec='${libname}${release}${major}$shared_ext' 15182 shlibpath_overrides_runpath=yes 15183 shlibpath_var=DYLD_LIBRARY_PATH 15184 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15185 15186 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15187 ;; 15188 15189 dgux*) 15190 version_type=linux # correct to gnu/linux during the next big refactor 15191 need_lib_prefix=no 15192 need_version=no 15193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15194 soname_spec='${libname}${release}${shared_ext}$major' 15195 shlibpath_var=LD_LIBRARY_PATH 15196 ;; 15197 15198 freebsd* | dragonfly*) 15199 # DragonFly does not have aout. When/if they implement a new 15200 # versioning mechanism, adjust this. 15201 if test -x /usr/bin/objformat; then 15202 objformat=`/usr/bin/objformat` 15203 else 15204 case $host_os in 15205 freebsd[23].*) objformat=aout ;; 15206 *) objformat=elf ;; 15207 esac 15208 fi 15209 version_type=freebsd-$objformat 15210 case $version_type in 15211 freebsd-elf*) 15212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15213 need_version=no 15214 need_lib_prefix=no 15215 ;; 15216 freebsd-*) 15217 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15218 need_version=yes 15219 ;; 15220 esac 15221 shlibpath_var=LD_LIBRARY_PATH 15222 case $host_os in 15223 freebsd2.*) 15224 shlibpath_overrides_runpath=yes 15225 ;; 15226 freebsd3.[01]* | freebsdelf3.[01]*) 15227 shlibpath_overrides_runpath=yes 15228 hardcode_into_libs=yes 15229 ;; 15230 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15231 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15232 shlibpath_overrides_runpath=no 15233 hardcode_into_libs=yes 15234 ;; 15235 *) # from 4.6 on, and DragonFly 15236 shlibpath_overrides_runpath=yes 15237 hardcode_into_libs=yes 15238 ;; 15239 esac 15240 ;; 15241 15242 gnu*) 15243 version_type=linux # correct to gnu/linux during the next big refactor 15244 need_lib_prefix=no 15245 need_version=no 15246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15247 soname_spec='${libname}${release}${shared_ext}$major' 15248 shlibpath_var=LD_LIBRARY_PATH 15249 shlibpath_overrides_runpath=no 15250 hardcode_into_libs=yes 15251 ;; 15252 15253 haiku*) 15254 version_type=linux # correct to gnu/linux during the next big refactor 15255 need_lib_prefix=no 15256 need_version=no 15257 dynamic_linker="$host_os runtime_loader" 15258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15259 soname_spec='${libname}${release}${shared_ext}$major' 15260 shlibpath_var=LIBRARY_PATH 15261 shlibpath_overrides_runpath=yes 15262 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 15263 hardcode_into_libs=yes 15264 ;; 15265 15266 hpux9* | hpux10* | hpux11*) 15267 # Give a soname corresponding to the major version so that dld.sl refuses to 15268 # link against other versions. 15269 version_type=sunos 15270 need_lib_prefix=no 15271 need_version=no 15272 case $host_cpu in 15273 ia64*) 15274 shrext_cmds='.so' 15275 hardcode_into_libs=yes 15276 dynamic_linker="$host_os dld.so" 15277 shlibpath_var=LD_LIBRARY_PATH 15278 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15280 soname_spec='${libname}${release}${shared_ext}$major' 15281 if test "X$HPUX_IA64_MODE" = X32; then 15282 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15283 else 15284 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15285 fi 15286 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15287 ;; 15288 hppa*64*) 15289 shrext_cmds='.sl' 15290 hardcode_into_libs=yes 15291 dynamic_linker="$host_os dld.sl" 15292 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15293 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15295 soname_spec='${libname}${release}${shared_ext}$major' 15296 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15297 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15298 ;; 15299 *) 15300 shrext_cmds='.sl' 15301 dynamic_linker="$host_os dld.sl" 15302 shlibpath_var=SHLIB_PATH 15303 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15305 soname_spec='${libname}${release}${shared_ext}$major' 15306 ;; 15307 esac 15308 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15309 postinstall_cmds='chmod 555 $lib' 15310 # or fails outright, so override atomically: 15311 install_override_mode=555 15312 ;; 15313 15314 interix[3-9]*) 15315 version_type=linux # correct to gnu/linux during the next big refactor 15316 need_lib_prefix=no 15317 need_version=no 15318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15319 soname_spec='${libname}${release}${shared_ext}$major' 15320 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15321 shlibpath_var=LD_LIBRARY_PATH 15322 shlibpath_overrides_runpath=no 15323 hardcode_into_libs=yes 15324 ;; 15325 15326 irix5* | irix6* | nonstopux*) 15327 case $host_os in 15328 nonstopux*) version_type=nonstopux ;; 15329 *) 15330 if test "$lt_cv_prog_gnu_ld" = yes; then 15331 version_type=linux # correct to gnu/linux during the next big refactor 15332 else 15333 version_type=irix 15334 fi ;; 15335 esac 15336 need_lib_prefix=no 15337 need_version=no 15338 soname_spec='${libname}${release}${shared_ext}$major' 15339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15340 case $host_os in 15341 irix5* | nonstopux*) 15342 libsuff= shlibsuff= 15343 ;; 15344 *) 15345 case $LD in # libtool.m4 will add one of these switches to LD 15346 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15347 libsuff= shlibsuff= libmagic=32-bit;; 15348 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15349 libsuff=32 shlibsuff=N32 libmagic=N32;; 15350 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15351 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15352 *) libsuff= shlibsuff= libmagic=never-match;; 15353 esac 15354 ;; 15355 esac 15356 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15357 shlibpath_overrides_runpath=no 15358 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15359 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15360 hardcode_into_libs=yes 15361 ;; 15362 15363 # No shared lib support for Linux oldld, aout, or coff. 15364 linux*oldld* | linux*aout* | linux*coff*) 15365 dynamic_linker=no 15366 ;; 15367 15368 # This must be glibc/ELF. 15369 linux* | k*bsd*-gnu | kopensolaris*-gnu) 15370 version_type=linux # correct to gnu/linux during the next big refactor 15371 need_lib_prefix=no 15372 need_version=no 15373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15374 soname_spec='${libname}${release}${shared_ext}$major' 15375 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15376 shlibpath_var=LD_LIBRARY_PATH 15377 shlibpath_overrides_runpath=no 15378 15379 # Some binutils ld are patched to set DT_RUNPATH 15380 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 15381 $as_echo_n "(cached) " >&6 15382 else 15383 lt_cv_shlibpath_overrides_runpath=no 15384 save_LDFLAGS=$LDFLAGS 15385 save_libdir=$libdir 15386 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 15387 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 15388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15389 /* end confdefs.h. */ 15390 15391 int 15392 main () 15393 { 15394 15395 ; 15396 return 0; 15397 } 15398 _ACEOF 15399 if ac_fn_cxx_try_link "$LINENO"; then : 15400 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 15401 lt_cv_shlibpath_overrides_runpath=yes 15402 fi 15403 fi 15404 rm -f core conftest.err conftest.$ac_objext \ 15405 conftest$ac_exeext conftest.$ac_ext 15406 LDFLAGS=$save_LDFLAGS 15407 libdir=$save_libdir 15408 15409 fi 15410 15411 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 15412 15413 # This implies no fast_install, which is unacceptable. 15414 # Some rework will be needed to allow for fast_install 15415 # before this can be enabled. 15416 hardcode_into_libs=yes 15417 15418 # Append ld.so.conf contents to the search path 15419 if test -f /etc/ld.so.conf; then 15420 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' ' '` 15421 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15422 fi 15423 15424 # We used to test for /lib/ld.so.1 and disable shared libraries on 15425 # powerpc, because MkLinux only supported shared libraries with the 15426 # GNU dynamic linker. Since this was broken with cross compilers, 15427 # most powerpc-linux boxes support dynamic linking these days and 15428 # people can always --disable-shared, the test was removed, and we 15429 # assume the GNU/Linux dynamic linker is in use. 15430 dynamic_linker='GNU/Linux ld.so' 15431 ;; 15432 15433 netbsd*) 15434 version_type=sunos 15435 need_lib_prefix=no 15436 need_version=no 15437 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15439 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15440 dynamic_linker='NetBSD (a.out) ld.so' 15441 else 15442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15443 soname_spec='${libname}${release}${shared_ext}$major' 15444 dynamic_linker='NetBSD ld.elf_so' 15445 fi 15446 shlibpath_var=LD_LIBRARY_PATH 15447 shlibpath_overrides_runpath=yes 15448 hardcode_into_libs=yes 15449 ;; 15450 15451 newsos6) 15452 version_type=linux # correct to gnu/linux during the next big refactor 15453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15454 shlibpath_var=LD_LIBRARY_PATH 15455 shlibpath_overrides_runpath=yes 15456 ;; 15457 15458 *nto* | *qnx*) 15459 version_type=qnx 15460 need_lib_prefix=no 15461 need_version=no 15462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15463 soname_spec='${libname}${release}${shared_ext}$major' 15464 shlibpath_var=LD_LIBRARY_PATH 15465 shlibpath_overrides_runpath=no 15466 hardcode_into_libs=yes 15467 dynamic_linker='ldqnx.so' 15468 ;; 15469 15470 openbsd*) 15471 version_type=sunos 15472 sys_lib_dlsearch_path_spec="/usr/lib" 15473 need_lib_prefix=no 15474 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15475 case $host_os in 15476 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15477 *) need_version=no ;; 15478 esac 15479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15480 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15481 shlibpath_var=LD_LIBRARY_PATH 15482 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15483 case $host_os in 15484 openbsd2.[89] | openbsd2.[89].*) 15485 shlibpath_overrides_runpath=no 15486 ;; 15487 *) 15488 shlibpath_overrides_runpath=yes 15489 ;; 15490 esac 15491 else 15492 shlibpath_overrides_runpath=yes 15493 fi 15494 ;; 15495 15496 os2*) 15497 libname_spec='$name' 15498 shrext_cmds=".dll" 15499 need_lib_prefix=no 15500 library_names_spec='$libname${shared_ext} $libname.a' 15501 dynamic_linker='OS/2 ld.exe' 15502 shlibpath_var=LIBPATH 15503 ;; 15504 15505 osf3* | osf4* | osf5*) 15506 version_type=osf 15507 need_lib_prefix=no 15508 need_version=no 15509 soname_spec='${libname}${release}${shared_ext}$major' 15510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15511 shlibpath_var=LD_LIBRARY_PATH 15512 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15513 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15514 ;; 15515 15516 rdos*) 15517 dynamic_linker=no 15518 ;; 15519 15520 solaris*) 15521 version_type=linux # correct to gnu/linux during the next big refactor 15522 need_lib_prefix=no 15523 need_version=no 15524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15525 soname_spec='${libname}${release}${shared_ext}$major' 15526 shlibpath_var=LD_LIBRARY_PATH 15527 shlibpath_overrides_runpath=yes 15528 hardcode_into_libs=yes 15529 # ldd complains unless libraries are executable 15530 postinstall_cmds='chmod +x $lib' 15531 ;; 15532 15533 sunos4*) 15534 version_type=sunos 15535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15536 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15537 shlibpath_var=LD_LIBRARY_PATH 15538 shlibpath_overrides_runpath=yes 15539 if test "$with_gnu_ld" = yes; then 15540 need_lib_prefix=no 15541 fi 15542 need_version=yes 15543 ;; 15544 15545 sysv4 | sysv4.3*) 15546 version_type=linux # correct to gnu/linux during the next big refactor 15547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15548 soname_spec='${libname}${release}${shared_ext}$major' 15549 shlibpath_var=LD_LIBRARY_PATH 15550 case $host_vendor in 15551 sni) 15552 shlibpath_overrides_runpath=no 15553 need_lib_prefix=no 15554 runpath_var=LD_RUN_PATH 15555 ;; 15556 siemens) 15557 need_lib_prefix=no 15558 ;; 15559 motorola) 15560 need_lib_prefix=no 15561 need_version=no 15562 shlibpath_overrides_runpath=no 15563 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15564 ;; 15565 esac 15566 ;; 15567 15568 sysv4*MP*) 15569 if test -d /usr/nec ;then 15570 version_type=linux # correct to gnu/linux during the next big refactor 15571 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15572 soname_spec='$libname${shared_ext}.$major' 15573 shlibpath_var=LD_LIBRARY_PATH 15574 fi 15575 ;; 15576 15577 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15578 version_type=freebsd-elf 15579 need_lib_prefix=no 15580 need_version=no 15581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15582 soname_spec='${libname}${release}${shared_ext}$major' 15583 shlibpath_var=LD_LIBRARY_PATH 15584 shlibpath_overrides_runpath=yes 15585 hardcode_into_libs=yes 15586 if test "$with_gnu_ld" = yes; then 15587 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15588 else 15589 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15590 case $host_os in 15591 sco3.2v5*) 15592 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15593 ;; 15594 esac 15595 fi 15596 sys_lib_dlsearch_path_spec='/usr/lib' 15597 ;; 15598 15599 tpf*) 15600 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15601 version_type=linux # correct to gnu/linux during the next big refactor 15602 need_lib_prefix=no 15603 need_version=no 15604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15605 shlibpath_var=LD_LIBRARY_PATH 15606 shlibpath_overrides_runpath=no 15607 hardcode_into_libs=yes 15608 ;; 15609 15610 uts4*) 15611 version_type=linux # correct to gnu/linux during the next big refactor 15612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15613 soname_spec='${libname}${release}${shared_ext}$major' 15614 shlibpath_var=LD_LIBRARY_PATH 15615 ;; 15616 15617 *) 15618 dynamic_linker=no 15619 ;; 15620 esac 15621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15622 $as_echo "$dynamic_linker" >&6; } 15623 test "$dynamic_linker" = no && can_build_shared=no 15624 15625 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15626 if test "$GCC" = yes; then 15627 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15628 fi 15629 15630 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 15631 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 15632 fi 15633 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 15634 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 15635 fi 15636 15637 15638 15639 15640 15641 15642 15643 15644 15645 15646 15647 15648 15649 15650 15651 15652 15653 15654 15655 15656 15657 15658 15659 15660 15661 15662 15663 15664 15665 15666 15667 15668 15669 15670 15671 15672 15673 15674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15675 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15676 hardcode_action_CXX= 15677 if test -n "$hardcode_libdir_flag_spec_CXX" || 15678 test -n "$runpath_var_CXX" || 15679 test "X$hardcode_automatic_CXX" = "Xyes" ; then 15680 15681 # We can hardcode non-existent directories. 15682 if test "$hardcode_direct_CXX" != no && 15683 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15684 # have to relink, otherwise we might link with an installed library 15685 # when we should be linking with a yet-to-be-installed one 15686 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 15687 test "$hardcode_minus_L_CXX" != no; then 15688 # Linking always hardcodes the temporary library directory. 15689 hardcode_action_CXX=relink 15690 else 15691 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15692 hardcode_action_CXX=immediate 15693 fi 15694 else 15695 # We cannot hardcode anything, or else we can only hardcode existing 15696 # directories. 15697 hardcode_action_CXX=unsupported 15698 fi 15699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 15700 $as_echo "$hardcode_action_CXX" >&6; } 15701 15702 if test "$hardcode_action_CXX" = relink || 15703 test "$inherit_rpath_CXX" = yes; then 15704 # Fast installation is not supported 15705 enable_fast_install=no 15706 elif test "$shlibpath_overrides_runpath" = yes || 15707 test "$enable_shared" = no; then 15708 # Fast installation is not necessary 15709 enable_fast_install=needless 15710 fi 15711 15712 15713 15714 15715 15716 15717 15718 fi # test -n "$compiler" 15719 15720 CC=$lt_save_CC 15721 CFLAGS=$lt_save_CFLAGS 15722 LDCXX=$LD 15723 LD=$lt_save_LD 15724 GCC=$lt_save_GCC 15725 with_gnu_ld=$lt_save_with_gnu_ld 15726 lt_cv_path_LDCXX=$lt_cv_path_LD 15727 lt_cv_path_LD=$lt_save_path_LD 15728 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 15729 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 15730 fi # test "$_lt_caught_CXX_error" != yes 15731 15732 ac_ext=c 15733 ac_cpp='$CPP $CPPFLAGS' 15734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15736 ac_compiler_gnu=$ac_cv_c_compiler_gnu 15737 15738 15739 # Find a good install program. We prefer a C program (faster), 15740 # so one script is as good as another. But avoid the broken or 15741 # incompatible versions: 15742 # SysV /etc/install, /usr/sbin/install 15743 # SunOS /usr/etc/install 15744 # IRIX /sbin/install 15745 # AIX /bin/install 15746 # AmigaOS /C/install, which installs bootblocks on floppy discs 15747 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 15748 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 15749 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 15750 # OS/2's system install, which has a completely different semantic 15751 # ./install, which can be erroneously created by make from ./install.sh. 15752 # Reject install programs that cannot install multiple files. 15753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 15754 $as_echo_n "checking for a BSD-compatible install... " >&6; } 15755 if test -z "$INSTALL"; then 15756 if ${ac_cv_path_install+:} false; then : 15757 $as_echo_n "(cached) " >&6 15758 else 15759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15760 for as_dir in $PATH 15761 do 15762 IFS=$as_save_IFS 15763 test -z "$as_dir" && as_dir=. 15764 # Account for people who put trailing slashes in PATH elements. 15765 case $as_dir/ in #(( 15766 ./ | .// | /[cC]/* | \ 15767 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 15768 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 15769 /usr/ucb/* ) ;; 15770 *) 15771 # OSF1 and SCO ODT 3.0 have their own names for install. 15772 # Don't use installbsd from OSF since it installs stuff as root 15773 # by default. 15774 for ac_prog in ginstall scoinst install; do 15775 for ac_exec_ext in '' $ac_executable_extensions; do 15776 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 15777 if test $ac_prog = install && 15778 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 15779 # AIX install. It has an incompatible calling convention. 15780 : 15781 elif test $ac_prog = install && 15782 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 15783 # program-specific install script used by HP pwplus--don't use. 15784 : 15785 else 15786 rm -rf conftest.one conftest.two conftest.dir 15787 echo one > conftest.one 15788 echo two > conftest.two 15789 mkdir conftest.dir 15790 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 15791 test -s conftest.one && test -s conftest.two && 15792 test -s conftest.dir/conftest.one && 15793 test -s conftest.dir/conftest.two 15794 then 15795 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 15796 break 3 15797 fi 15798 fi 15799 fi 15800 done 15801 done 15802 ;; 15803 esac 15804 15805 done 15806 IFS=$as_save_IFS 15807 15808 rm -rf conftest.one conftest.two conftest.dir 15809 15810 fi 15811 if test "${ac_cv_path_install+set}" = set; then 15812 INSTALL=$ac_cv_path_install 15813 else 15814 # As a last resort, use the slow shell script. Don't cache a 15815 # value for INSTALL within a source directory, because that will 15816 # break other packages using the cache if that directory is 15817 # removed, or if the value is a relative name. 15818 INSTALL=$ac_install_sh 15819 fi 15820 fi 15821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 15822 $as_echo "$INSTALL" >&6; } 15823 15824 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 15825 # It thinks the first close brace ends the variable substitution. 15826 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 15827 15828 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 15829 15830 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 15831 15832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 15833 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 15834 set x ${MAKE-make} 15835 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 15836 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 15837 $as_echo_n "(cached) " >&6 15838 else 15839 cat >conftest.make <<\_ACEOF 15840 SHELL = /bin/sh 15841 all: 15842 @echo '@@@%%%=$(MAKE)=@@@%%%' 15843 _ACEOF 15844 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 15845 case `${MAKE-make} -f conftest.make 2>/dev/null` in 15846 *@@@%%%=?*=@@@%%%*) 15847 eval ac_cv_prog_make_${ac_make}_set=yes;; 15848 *) 15849 eval ac_cv_prog_make_${ac_make}_set=no;; 15850 esac 15851 rm -f conftest.make 15852 fi 15853 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 15854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15855 $as_echo "yes" >&6; } 15856 SET_MAKE= 15857 else 15858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15859 $as_echo "no" >&6; } 15860 SET_MAKE="MAKE=${MAKE-make}" 15861 fi 15862 15863 15864 15865 15866 15867 15868 15869 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 15870 if test -n "$ac_tool_prefix"; then 15871 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 15872 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 15873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15874 $as_echo_n "checking for $ac_word... " >&6; } 15875 if ${ac_cv_path_PKG_CONFIG+:} false; then : 15876 $as_echo_n "(cached) " >&6 15877 else 15878 case $PKG_CONFIG in 15879 [\\/]* | ?:[\\/]*) 15880 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 15881 ;; 15882 *) 15883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15884 for as_dir in $PATH 15885 do 15886 IFS=$as_save_IFS 15887 test -z "$as_dir" && as_dir=. 15888 for ac_exec_ext in '' $ac_executable_extensions; do 15889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15890 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 15891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15892 break 2 15893 fi 15894 done 15895 done 15896 IFS=$as_save_IFS 15897 15898 ;; 15899 esac 15900 fi 15901 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 15902 if test -n "$PKG_CONFIG"; then 15903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 15904 $as_echo "$PKG_CONFIG" >&6; } 15905 else 15906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15907 $as_echo "no" >&6; } 15908 fi 15909 15910 15911 fi 15912 if test -z "$ac_cv_path_PKG_CONFIG"; then 15913 ac_pt_PKG_CONFIG=$PKG_CONFIG 15914 # Extract the first word of "pkg-config", so it can be a program name with args. 15915 set dummy pkg-config; ac_word=$2 15916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15917 $as_echo_n "checking for $ac_word... " >&6; } 15918 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 15919 $as_echo_n "(cached) " >&6 15920 else 15921 case $ac_pt_PKG_CONFIG in 15922 [\\/]* | ?:[\\/]*) 15923 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 15924 ;; 15925 *) 15926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15927 for as_dir in $PATH 15928 do 15929 IFS=$as_save_IFS 15930 test -z "$as_dir" && as_dir=. 15931 for ac_exec_ext in '' $ac_executable_extensions; do 15932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15933 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 15934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15935 break 2 15936 fi 15937 done 15938 done 15939 IFS=$as_save_IFS 15940 15941 ;; 15942 esac 15943 fi 15944 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 15945 if test -n "$ac_pt_PKG_CONFIG"; then 15946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 15947 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 15948 else 15949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15950 $as_echo "no" >&6; } 15951 fi 15952 15953 if test "x$ac_pt_PKG_CONFIG" = x; then 15954 PKG_CONFIG="" 15955 else 15956 case $cross_compiling:$ac_tool_warned in 15957 yes:) 15958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15960 ac_tool_warned=yes ;; 15961 esac 15962 PKG_CONFIG=$ac_pt_PKG_CONFIG 15963 fi 15964 else 15965 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 15966 fi 15967 15968 fi 15969 if test -n "$PKG_CONFIG"; then 15970 _pkg_min_version=0.9.0 15971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 15972 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 15973 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 15974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15975 $as_echo "yes" >&6; } 15976 else 15977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15978 $as_echo "no" >&6; } 15979 PKG_CONFIG="" 15980 fi 15981 fi 15982 15983 case "$host" in 15984 *-*-mingw32*) 15985 # Except on msys, where make can't handle full pathnames (bug 1972) 15986 ;; 15987 *) 15988 srcdir=`cd $srcdir && pwd` 15989 ;; 15990 esac 15991 15992 INCLUDE="-I$srcdir/include" 15993 15994 case "$host" in 15995 *-*-nto-qnx*) 15996 ;; 15997 *) 15998 INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos" 15999 ;; 16000 esac 16001 16002 if test x$srcdir != x.; then 16003 INCLUDE="-Iinclude $INCLUDE" 16004 elif test -d .hg; then 16005 as_fn_error $? " 16006 *** When building from Mercurial you should configure and build in a 16007 separate directory so you don't clobber SDL_config.h, SDL_revision.h 16008 " "$LINENO" 5 16009 fi 16010 BASE_CFLAGS="" 16011 BASE_LDFLAGS="" 16012 case "$host" in 16013 *-*-cygwin*) 16014 # We build SDL on cygwin without the UNIX emulation layer 16015 save_CFLAGS="$CFLAGS" 16016 have_no_cygwin=no 16017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5 16018 $as_echo_n "checking for GCC -mno-cygwin option... " >&6; } 16019 CFLAGS="$save_CFLAGS -mno-cygwin" 16020 16021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16022 /* end confdefs.h. */ 16023 16024 16025 int 16026 main () 16027 { 16028 16029 16030 ; 16031 return 0; 16032 } 16033 _ACEOF 16034 if ac_fn_c_try_compile "$LINENO"; then : 16035 16036 have_no_cygwin=yes 16037 16038 fi 16039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5 16041 $as_echo "$have_no_cygwin" >&6; } 16042 CFLAGS="$save_CFLAGS" 16043 16044 if test x$have_no_cygwin = xyes; then 16045 BASE_CFLAGS="-mno-cygwin" 16046 BASE_LDFLAGS="-mno-cygwin" 16047 fi 16048 BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw" 16049 ;; 16050 esac 16051 # Uncomment the following line if you want to force SDL and applications 16052 # built with it to be compiled for a particular architecture. 16053 #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]") 16054 BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H" 16055 # The default optimization for SDL is -O3 (Bug #31) 16056 if test "x$orig_CFLAGS" = x; then 16057 BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'` 16058 fi 16059 EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS" 16060 BUILD_LDFLAGS="$LDFLAGS" 16061 EXTRA_LDFLAGS="$BASE_LDFLAGS" 16062 ## These are common directories to find software packages 16063 #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do 16064 # if test -d $path/include; then 16065 # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include" 16066 # fi 16067 # if test -d $path/lib; then 16068 # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib" 16069 # fi 16070 #done 16071 SDL_CFLAGS="$BASE_CFLAGS" 16072 SDL_LIBS="-lSDL2" 16073 if test "x$BASE_LDFLAGS" != x; then 16074 SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS" 16075 fi 16076 if test "x$EXTRA_CFLAGS" != x; then 16077 CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS" 16078 CFLAGS="$CFLAGS $EXTRA_CFLAGS" 16079 fi 16080 if test "x$EXTRA_LDFLAGS" != x; then 16081 LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS" 16082 fi 16083 16084 base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'` 16085 16086 find_lib() 16087 { 16088 gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'` 16089 gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'` 16090 env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'` 16091 if test "$cross_compiling" = yes; then 16092 host_lib_path="" 16093 else 16094 host_lib_path="/usr/$base_libdir /usr/local/$base_libdir" 16095 fi 16096 for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do 16097 lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1` 16098 if test x$lib != x; then 16099 echo $lib 16100 return 16101 fi 16102 done 16103 # Try again, this time allowing more than one version digit after the .so 16104 for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do 16105 lib=`ls -- $path/$1 2>/dev/null | sed -e 's,.*/,,' | sort | tail -1` 16106 if test x$lib != x; then 16107 echo $lib 16108 return 16109 fi 16110 done 16111 } 16112 16113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 16114 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } 16115 if ${ac_cv_c_const+:} false; then : 16116 $as_echo_n "(cached) " >&6 16117 else 16118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16119 /* end confdefs.h. */ 16120 16121 int 16122 main () 16123 { 16124 16125 #ifndef __cplusplus 16126 /* Ultrix mips cc rejects this sort of thing. */ 16127 typedef int charset[2]; 16128 const charset cs = { 0, 0 }; 16129 /* SunOS 4.1.1 cc rejects this. */ 16130 char const *const *pcpcc; 16131 char **ppc; 16132 /* NEC SVR4.0.2 mips cc rejects this. */ 16133 struct point {int x, y;}; 16134 static struct point const zero = {0,0}; 16135 /* AIX XL C 1.02.0.0 rejects this. 16136 It does not let you subtract one const X* pointer from another in 16137 an arm of an if-expression whose if-part is not a constant 16138 expression */ 16139 const char *g = "string"; 16140 pcpcc = &g + (g ? g-g : 0); 16141 /* HPUX 7.0 cc rejects these. */ 16142 ++pcpcc; 16143 ppc = (char**) pcpcc; 16144 pcpcc = (char const *const *) ppc; 16145 { /* SCO 3.2v4 cc rejects this sort of thing. */ 16146 char tx; 16147 char *t = &tx; 16148 char const *s = 0 ? (char *) 0 : (char const *) 0; 16149 16150 *t++ = 0; 16151 if (s) return 0; 16152 } 16153 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 16154 int x[] = {25, 17}; 16155 const int *foo = &x[0]; 16156 ++foo; 16157 } 16158 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 16159 typedef const int *iptr; 16160 iptr p = 0; 16161 ++p; 16162 } 16163 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 16164 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 16165 struct s { int j; const int *ap[3]; } bx; 16166 struct s *b = &bx; b->j = 5; 16167 } 16168 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 16169 const int foo = 10; 16170 if (!foo) return 0; 16171 } 16172 return !cs[0] && !zero.x; 16173 #endif 16174 16175 ; 16176 return 0; 16177 } 16178 _ACEOF 16179 if ac_fn_c_try_compile "$LINENO"; then : 16180 ac_cv_c_const=yes 16181 else 16182 ac_cv_c_const=no 16183 fi 16184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16185 fi 16186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 16187 $as_echo "$ac_cv_c_const" >&6; } 16188 if test $ac_cv_c_const = no; then 16189 16190 $as_echo "#define const /**/" >>confdefs.h 16191 16192 fi 16193 16194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 16195 $as_echo_n "checking for inline... " >&6; } 16196 if ${ac_cv_c_inline+:} false; then : 16197 $as_echo_n "(cached) " >&6 16198 else 16199 ac_cv_c_inline=no 16200 for ac_kw in inline __inline__ __inline; do 16201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16202 /* end confdefs.h. */ 16203 #ifndef __cplusplus 16204 typedef int foo_t; 16205 static $ac_kw foo_t static_foo () {return 0; } 16206 $ac_kw foo_t foo () {return 0; } 16207 #endif 16208 16209 _ACEOF 16210 if ac_fn_c_try_compile "$LINENO"; then : 16211 ac_cv_c_inline=$ac_kw 16212 fi 16213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16214 test "$ac_cv_c_inline" != no && break 16215 done 16216 16217 fi 16218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 16219 $as_echo "$ac_cv_c_inline" >&6; } 16220 16221 case $ac_cv_c_inline in 16222 inline | yes) ;; 16223 *) 16224 case $ac_cv_c_inline in 16225 no) ac_val=;; 16226 *) ac_val=$ac_cv_c_inline;; 16227 esac 16228 cat >>confdefs.h <<_ACEOF 16229 #ifndef __cplusplus 16230 #define inline $ac_val 16231 #endif 16232 _ACEOF 16233 ;; 16234 esac 16235 16236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 16237 $as_echo_n "checking for working volatile... " >&6; } 16238 if ${ac_cv_c_volatile+:} false; then : 16239 $as_echo_n "(cached) " >&6 16240 else 16241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16242 /* end confdefs.h. */ 16243 16244 int 16245 main () 16246 { 16247 16248 volatile int x; 16249 int * volatile y = (int *) 0; 16250 return !x && !y; 16251 ; 16252 return 0; 16253 } 16254 _ACEOF 16255 if ac_fn_c_try_compile "$LINENO"; then : 16256 ac_cv_c_volatile=yes 16257 else 16258 ac_cv_c_volatile=no 16259 fi 16260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16261 fi 16262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 16263 $as_echo "$ac_cv_c_volatile" >&6; } 16264 if test $ac_cv_c_volatile = no; then 16265 16266 $as_echo "#define volatile /**/" >>confdefs.h 16267 16268 fi 16269 16270 16271 # Check whether --enable-assertions was given. 16272 if test "${enable_assertions+set}" = set; then : 16273 enableval=$enable_assertions; 16274 else 16275 enable_assertions=auto 16276 fi 16277 16278 case "$enable_assertions" in 16279 auto) # Use optimization settings to determine assertion level 16280 ;; 16281 disabled) 16282 16283 $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h 16284 16285 ;; 16286 release) 16287 16288 $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h 16289 16290 ;; 16291 enabled) 16292 16293 $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h 16294 16295 ;; 16296 paranoid) 16297 16298 $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h 16299 16300 ;; 16301 *) 16302 as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5 16303 ;; 16304 esac 16305 16306 # Check whether --enable-dependency-tracking was given. 16307 if test "${enable_dependency_tracking+set}" = set; then : 16308 enableval=$enable_dependency_tracking; 16309 else 16310 enable_dependency_tracking=yes 16311 fi 16312 16313 if test x$enable_dependency_tracking = xyes; then 16314 have_gcc_mmd_mt=no 16315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5 16316 $as_echo_n "checking for GCC -MMD -MT option... " >&6; } 16317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16318 /* end confdefs.h. */ 16319 16320 #if !defined(__GNUC__) || __GNUC__ < 3 16321 #error Dependency tracking requires GCC 3.0 or newer 16322 #endif 16323 16324 int 16325 main () 16326 { 16327 16328 16329 ; 16330 return 0; 16331 } 16332 _ACEOF 16333 if ac_fn_c_try_compile "$LINENO"; then : 16334 16335 have_gcc_mmd_mt=yes 16336 16337 fi 16338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5 16340 $as_echo "$have_gcc_mmd_mt" >&6; } 16341 16342 if test x$have_gcc_mmd_mt = xyes; then 16343 DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@" 16344 fi 16345 fi 16346 16347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5 16348 $as_echo_n "checking for linker option --no-undefined... " >&6; } 16349 have_no_undefined=no 16350 case "$host" in 16351 *-*-openbsd*) 16352 ;; 16353 16354 *) 16355 save_LDFLAGS="$LDFLAGS" 16356 LDFLAGS="$LDFLAGS -Wl,--no-undefined" 16357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16358 /* end confdefs.h. */ 16359 16360 16361 int 16362 main () 16363 { 16364 16365 16366 ; 16367 return 0; 16368 } 16369 _ACEOF 16370 if ac_fn_c_try_link "$LINENO"; then : 16371 16372 have_no_undefined=yes 16373 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined" 16374 16375 fi 16376 rm -f core conftest.err conftest.$ac_objext \ 16377 conftest$ac_exeext conftest.$ac_ext 16378 LDFLAGS="$save_LDFLAGS" 16379 ;; 16380 esac 16381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5 16382 $as_echo "$have_no_undefined" >&6; } 16383 16384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5 16385 $as_echo_n "checking for linker option --dynamicbase... " >&6; } 16386 have_dynamicbase=no 16387 case "$host" in 16388 *) 16389 save_LDFLAGS="$LDFLAGS" 16390 LDFLAGS="$LDFLAGS -Wl,--dynamicbase" 16391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16392 /* end confdefs.h. */ 16393 16394 16395 int 16396 main () 16397 { 16398 16399 16400 ; 16401 return 0; 16402 } 16403 _ACEOF 16404 if ac_fn_c_try_link "$LINENO"; then : 16405 16406 have_dynamicbase=yes 16407 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase" 16408 16409 fi 16410 rm -f core conftest.err conftest.$ac_objext \ 16411 conftest$ac_exeext conftest.$ac_ext 16412 LDFLAGS="$save_LDFLAGS" 16413 ;; 16414 esac 16415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5 16416 $as_echo "$have_dynamicbase" >&6; } 16417 16418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5 16419 $as_echo_n "checking for linker option --nxcompat... " >&6; } 16420 have_nxcompat=no 16421 case "$host" in 16422 *) 16423 save_LDFLAGS="$LDFLAGS" 16424 LDFLAGS="$LDFLAGS -Wl,--nxcompat" 16425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16426 /* end confdefs.h. */ 16427 16428 16429 int 16430 main () 16431 { 16432 16433 16434 ; 16435 return 0; 16436 } 16437 _ACEOF 16438 if ac_fn_c_try_link "$LINENO"; then : 16439 16440 have_nxcompat=yes 16441 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat" 16442 16443 fi 16444 rm -f core conftest.err conftest.$ac_objext \ 16445 conftest$ac_exeext conftest.$ac_ext 16446 LDFLAGS="$save_LDFLAGS" 16447 ;; 16448 esac 16449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5 16450 $as_echo "$have_nxcompat" >&6; } 16451 16452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5 16453 $as_echo_n "checking for linker option --high-entropy-va... " >&6; } 16454 have_high_entropy_va=no 16455 case "$host" in 16456 *) 16457 save_LDFLAGS="$LDFLAGS" 16458 LDFLAGS="$LDFLAGS -Wl,--high-entropy-va" 16459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16460 /* end confdefs.h. */ 16461 16462 16463 int 16464 main () 16465 { 16466 16467 16468 ; 16469 return 0; 16470 } 16471 _ACEOF 16472 if ac_fn_c_try_link "$LINENO"; then : 16473 16474 have_high_entropy_va=yes 16475 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va" 16476 16477 fi 16478 rm -f core conftest.err conftest.$ac_objext \ 16479 conftest$ac_exeext conftest.$ac_ext 16480 LDFLAGS="$save_LDFLAGS" 16481 ;; 16482 esac 16483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5 16484 $as_echo "$have_high_entropy_va" >&6; } 16485 16486 # Check whether --enable-libc was given. 16487 if test "${enable_libc+set}" = set; then : 16488 enableval=$enable_libc; 16489 else 16490 enable_libc=yes 16491 fi 16492 16493 if test x$enable_libc = xyes; then 16494 16495 $as_echo "#define HAVE_LIBC 1" >>confdefs.h 16496 16497 16498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 16499 $as_echo_n "checking for ANSI C header files... " >&6; } 16500 if ${ac_cv_header_stdc+:} false; then : 16501 $as_echo_n "(cached) " >&6 16502 else 16503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16504 /* end confdefs.h. */ 16505 #include <stdlib.h> 16506 #include <stdarg.h> 16507 #include <string.h> 16508 #include <float.h> 16509 16510 int 16511 main () 16512 { 16513 16514 ; 16515 return 0; 16516 } 16517 _ACEOF 16518 if ac_fn_c_try_compile "$LINENO"; then : 16519 ac_cv_header_stdc=yes 16520 else 16521 ac_cv_header_stdc=no 16522 fi 16523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16524 16525 if test $ac_cv_header_stdc = yes; then 16526 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 16527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16528 /* end confdefs.h. */ 16529 #include <string.h> 16530 16531 _ACEOF 16532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16533 $EGREP "memchr" >/dev/null 2>&1; then : 16534 16535 else 16536 ac_cv_header_stdc=no 16537 fi 16538 rm -f conftest* 16539 16540 fi 16541 16542 if test $ac_cv_header_stdc = yes; then 16543 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 16544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16545 /* end confdefs.h. */ 16546 #include <stdlib.h> 16547 16548 _ACEOF 16549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16550 $EGREP "free" >/dev/null 2>&1; then : 16551 16552 else 16553 ac_cv_header_stdc=no 16554 fi 16555 rm -f conftest* 16556 16557 fi 16558 16559 if test $ac_cv_header_stdc = yes; then 16560 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 16561 if test "$cross_compiling" = yes; then : 16562 : 16563 else 16564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16565 /* end confdefs.h. */ 16566 #include <ctype.h> 16567 #include <stdlib.h> 16568 #if ((' ' & 0x0FF) == 0x020) 16569 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 16570 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 16571 #else 16572 # define ISLOWER(c) \ 16573 (('a' <= (c) && (c) <= 'i') \ 16574 || ('j' <= (c) && (c) <= 'r') \ 16575 || ('s' <= (c) && (c) <= 'z')) 16576 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 16577 #endif 16578 16579 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 16580 int 16581 main () 16582 { 16583 int i; 16584 for (i = 0; i < 256; i++) 16585 if (XOR (islower (i), ISLOWER (i)) 16586 || toupper (i) != TOUPPER (i)) 16587 return 2; 16588 return 0; 16589 } 16590 _ACEOF 16591 if ac_fn_c_try_run "$LINENO"; then : 16592 16593 else 16594 ac_cv_header_stdc=no 16595 fi 16596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16597 conftest.$ac_objext conftest.beam conftest.$ac_ext 16598 fi 16599 16600 fi 16601 fi 16602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 16603 $as_echo "$ac_cv_header_stdc" >&6; } 16604 if test $ac_cv_header_stdc = yes; then 16605 16606 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 16607 16608 fi 16609 16610 for ac_header in sys/types.h stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h strings.h wchar.h inttypes.h stdint.h limits.h ctype.h math.h float.h iconv.h signal.h 16611 do : 16612 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16613 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16614 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16615 cat >>confdefs.h <<_ACEOF 16616 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16617 _ACEOF 16618 16619 fi 16620 16621 done 16622 16623 16624 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 16625 if test "x$ac_cv_type_size_t" = xyes; then : 16626 16627 else 16628 16629 cat >>confdefs.h <<_ACEOF 16630 #define size_t unsigned int 16631 _ACEOF 16632 16633 fi 16634 16635 16636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5 16637 $as_echo_n "checking for M_PI in math.h... " >&6; } 16638 if ${ac_cv_define_M_PI+:} false; then : 16639 $as_echo_n "(cached) " >&6 16640 else 16641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16642 /* end confdefs.h. */ 16643 16644 #include <math.h> 16645 #ifdef M_PI 16646 YES_IS_DEFINED 16647 #endif 16648 16649 _ACEOF 16650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16651 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then : 16652 ac_cv_define_M_PI=yes 16653 else 16654 ac_cv_define_M_PI=no 16655 fi 16656 rm -f conftest* 16657 16658 16659 fi 16660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5 16661 $as_echo "$ac_cv_define_M_PI" >&6; } 16662 if test "$ac_cv_define_M_PI" = "yes" ; then 16663 16664 $as_echo "#define HAVE_M_PI /**/" >>confdefs.h 16665 16666 fi 16667 16668 16669 case "$host" in 16670 *-*-cygwin* | *-*-mingw32*) 16671 ;; 16672 *) 16673 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 16674 # for constant arguments. Useless! 16675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 16676 $as_echo_n "checking for working alloca.h... " >&6; } 16677 if ${ac_cv_working_alloca_h+:} false; then : 16678 $as_echo_n "(cached) " >&6 16679 else 16680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16681 /* end confdefs.h. */ 16682 #include <alloca.h> 16683 int 16684 main () 16685 { 16686 char *p = (char *) alloca (2 * sizeof (int)); 16687 if (p) return 0; 16688 ; 16689 return 0; 16690 } 16691 _ACEOF 16692 if ac_fn_c_try_link "$LINENO"; then : 16693 ac_cv_working_alloca_h=yes 16694 else 16695 ac_cv_working_alloca_h=no 16696 fi 16697 rm -f core conftest.err conftest.$ac_objext \ 16698 conftest$ac_exeext conftest.$ac_ext 16699 fi 16700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 16701 $as_echo "$ac_cv_working_alloca_h" >&6; } 16702 if test $ac_cv_working_alloca_h = yes; then 16703 16704 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 16705 16706 fi 16707 16708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 16709 $as_echo_n "checking for alloca... " >&6; } 16710 if ${ac_cv_func_alloca_works+:} false; then : 16711 $as_echo_n "(cached) " >&6 16712 else 16713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16714 /* end confdefs.h. */ 16715 #ifdef __GNUC__ 16716 # define alloca __builtin_alloca 16717 #else 16718 # ifdef _MSC_VER 16719 # include <malloc.h> 16720 # define alloca _alloca 16721 # else 16722 # ifdef HAVE_ALLOCA_H 16723 # include <alloca.h> 16724 # else 16725 # ifdef _AIX 16726 #pragma alloca 16727 # else 16728 # ifndef alloca /* predefined by HP cc +Olibcalls */ 16729 void *alloca (size_t); 16730 # endif 16731 # endif 16732 # endif 16733 # endif 16734 #endif 16735 16736 int 16737 main () 16738 { 16739 char *p = (char *) alloca (1); 16740 if (p) return 0; 16741 ; 16742 return 0; 16743 } 16744 _ACEOF 16745 if ac_fn_c_try_link "$LINENO"; then : 16746 ac_cv_func_alloca_works=yes 16747 else 16748 ac_cv_func_alloca_works=no 16749 fi 16750 rm -f core conftest.err conftest.$ac_objext \ 16751 conftest$ac_exeext conftest.$ac_ext 16752 fi 16753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 16754 $as_echo "$ac_cv_func_alloca_works" >&6; } 16755 16756 if test $ac_cv_func_alloca_works = yes; then 16757 16758 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 16759 16760 else 16761 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 16762 # that cause trouble. Some versions do not even contain alloca or 16763 # contain a buggy version. If you still want to use their alloca, 16764 # use ar to extract alloca.o from them instead of compiling alloca.c. 16765 16766 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 16767 16768 $as_echo "#define C_ALLOCA 1" >>confdefs.h 16769 16770 16771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 16772 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 16773 if ${ac_cv_os_cray+:} false; then : 16774 $as_echo_n "(cached) " >&6 16775 else 16776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16777 /* end confdefs.h. */ 16778 #if defined CRAY && ! defined CRAY2 16779 webecray 16780 #else 16781 wenotbecray 16782 #endif 16783 16784 _ACEOF 16785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16786 $EGREP "webecray" >/dev/null 2>&1; then : 16787 ac_cv_os_cray=yes 16788 else 16789 ac_cv_os_cray=no 16790 fi 16791 rm -f conftest* 16792 16793 fi 16794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 16795 $as_echo "$ac_cv_os_cray" >&6; } 16796 if test $ac_cv_os_cray = yes; then 16797 for ac_func in _getb67 GETB67 getb67; do 16798 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16799 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16800 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16801 16802 cat >>confdefs.h <<_ACEOF 16803 #define CRAY_STACKSEG_END $ac_func 16804 _ACEOF 16805 16806 break 16807 fi 16808 16809 done 16810 fi 16811 16812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 16813 $as_echo_n "checking stack direction for C alloca... " >&6; } 16814 if ${ac_cv_c_stack_direction+:} false; then : 16815 $as_echo_n "(cached) " >&6 16816 else 16817 if test "$cross_compiling" = yes; then : 16818 ac_cv_c_stack_direction=0 16819 else 16820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16821 /* end confdefs.h. */ 16822 $ac_includes_default 16823 int 16824 find_stack_direction (int *addr, int depth) 16825 { 16826 int dir, dummy = 0; 16827 if (! addr) 16828 addr = &dummy; 16829 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 16830 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 16831 return dir + dummy; 16832 } 16833 16834 int 16835 main (int argc, char **argv) 16836 { 16837 return find_stack_direction (0, argc + !argv + 20) < 0; 16838 } 16839 _ACEOF 16840 if ac_fn_c_try_run "$LINENO"; then : 16841 ac_cv_c_stack_direction=1 16842 else 16843 ac_cv_c_stack_direction=-1 16844 fi 16845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16846 conftest.$ac_objext conftest.beam conftest.$ac_ext 16847 fi 16848 16849 fi 16850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 16851 $as_echo "$ac_cv_c_stack_direction" >&6; } 16852 cat >>confdefs.h <<_ACEOF 16853 #define STACK_DIRECTION $ac_cv_c_stack_direction 16854 _ACEOF 16855 16856 16857 fi 16858 16859 ;; 16860 esac 16861 16862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 16863 $as_echo_n "checking for working memcmp... " >&6; } 16864 if ${ac_cv_func_memcmp_working+:} false; then : 16865 $as_echo_n "(cached) " >&6 16866 else 16867 if test "$cross_compiling" = yes; then : 16868 ac_cv_func_memcmp_working=no 16869 else 16870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16871 /* end confdefs.h. */ 16872 $ac_includes_default 16873 int 16874 main () 16875 { 16876 16877 /* Some versions of memcmp are not 8-bit clean. */ 16878 char c0 = '\100', c1 = '\200', c2 = '\201'; 16879 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) 16880 return 1; 16881 16882 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes 16883 or more and with at least one buffer not starting on a 4-byte boundary. 16884 William Lewis provided this test program. */ 16885 { 16886 char foo[21]; 16887 char bar[21]; 16888 int i; 16889 for (i = 0; i < 4; i++) 16890 { 16891 char *a = foo + i; 16892 char *b = bar + i; 16893 strcpy (a, "--------01111111"); 16894 strcpy (b, "--------10000000"); 16895 if (memcmp (a, b, 16) >= 0) 16896 return 1; 16897 } 16898 return 0; 16899 } 16900 16901 ; 16902 return 0; 16903 } 16904 _ACEOF 16905 if ac_fn_c_try_run "$LINENO"; then : 16906 ac_cv_func_memcmp_working=yes 16907 else 16908 ac_cv_func_memcmp_working=no 16909 fi 16910 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16911 conftest.$ac_objext conftest.beam conftest.$ac_ext 16912 fi 16913 16914 fi 16915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 16916 $as_echo "$ac_cv_func_memcmp_working" >&6; } 16917 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in 16918 *" memcmp.$ac_objext "* ) ;; 16919 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 16920 ;; 16921 esac 16922 16923 16924 if test x$ac_cv_func_memcmp_working = xyes; then 16925 16926 $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h 16927 16928 fi 16929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 16930 $as_echo_n "checking for working strtod... " >&6; } 16931 if ${ac_cv_func_strtod+:} false; then : 16932 $as_echo_n "(cached) " >&6 16933 else 16934 if test "$cross_compiling" = yes; then : 16935 ac_cv_func_strtod=no 16936 else 16937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16938 /* end confdefs.h. */ 16939 16940 $ac_includes_default 16941 #ifndef strtod 16942 double strtod (); 16943 #endif 16944 int 16945 main() 16946 { 16947 { 16948 /* Some versions of Linux strtod mis-parse strings with leading '+'. */ 16949 char *string = " +69"; 16950 char *term; 16951 double value; 16952 value = strtod (string, &term); 16953 if (value != 69 || term != (string + 4)) 16954 return 1; 16955 } 16956 16957 { 16958 /* Under Solaris 2.4, strtod returns the wrong value for the 16959 terminating character under some conditions. */ 16960 char *string = "NaN"; 16961 char *term; 16962 strtod (string, &term); 16963 if (term != string && *(term - 1) == 0) 16964 return 1; 16965 } 16966 return 0; 16967 } 16968 16969 _ACEOF 16970 if ac_fn_c_try_run "$LINENO"; then : 16971 ac_cv_func_strtod=yes 16972 else 16973 ac_cv_func_strtod=no 16974 fi 16975 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16976 conftest.$ac_objext conftest.beam conftest.$ac_ext 16977 fi 16978 16979 fi 16980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 16981 $as_echo "$ac_cv_func_strtod" >&6; } 16982 if test $ac_cv_func_strtod = no; then 16983 case " $LIBOBJS " in 16984 *" strtod.$ac_objext "* ) ;; 16985 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" 16986 ;; 16987 esac 16988 16989 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" 16990 if test "x$ac_cv_func_pow" = xyes; then : 16991 16992 fi 16993 16994 if test $ac_cv_func_pow = no; then 16995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 16996 $as_echo_n "checking for pow in -lm... " >&6; } 16997 if ${ac_cv_lib_m_pow+:} false; then : 16998 $as_echo_n "(cached) " >&6 16999 else 17000 ac_check_lib_save_LIBS=$LIBS 17001 LIBS="-lm $LIBS" 17002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17003 /* end confdefs.h. */ 17004 17005 /* Override any GCC internal prototype to avoid an error. 17006 Use char because int might match the return type of a GCC 17007 builtin and then its argument prototype would still apply. */ 17008 #ifdef __cplusplus 17009 extern "C" 17010 #endif 17011 char pow (); 17012 int 17013 main () 17014 { 17015 return pow (); 17016 ; 17017 return 0; 17018 } 17019 _ACEOF 17020 if ac_fn_c_try_link "$LINENO"; then : 17021 ac_cv_lib_m_pow=yes 17022 else 17023 ac_cv_lib_m_pow=no 17024 fi 17025 rm -f core conftest.err conftest.$ac_objext \ 17026 conftest$ac_exeext conftest.$ac_ext 17027 LIBS=$ac_check_lib_save_LIBS 17028 fi 17029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 17030 $as_echo "$ac_cv_lib_m_pow" >&6; } 17031 if test "x$ac_cv_lib_m_pow" = xyes; then : 17032 POW_LIB=-lm 17033 else 17034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5 17035 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} 17036 fi 17037 17038 fi 17039 17040 fi 17041 17042 if test x$ac_cv_func_strtod = xyes; then 17043 17044 $as_echo "#define HAVE_STRTOD 1" >>confdefs.h 17045 17046 fi 17047 ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect" 17048 if test "x$ac_cv_func_mprotect" = xyes; then : 17049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17050 /* end confdefs.h. */ 17051 17052 #include <sys/types.h> 17053 #include <sys/mman.h> 17054 17055 int 17056 main () 17057 { 17058 17059 17060 ; 17061 return 0; 17062 } 17063 _ACEOF 17064 if ac_fn_c_try_compile "$LINENO"; then : 17065 17066 17067 $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h 17068 17069 17070 fi 17071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17072 fi 17073 17074 for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove wcslen wcslcpy wcslcat wcsdup wcsstr wcscmp wcsncmp wcscasecmp _wcsicmp wcsncasecmp _wcsnicmp strlen strlcpy strlcat _strrev _strupr _strlwr strchr strrchr strstr strtok_r itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp vsscanf vsnprintf fopen64 fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname getauxval elf_aux_info poll _Exit 17075 do : 17076 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17077 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17078 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17079 cat >>confdefs.h <<_ACEOF 17080 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17081 _ACEOF 17082 17083 fi 17084 done 17085 17086 17087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 17088 $as_echo_n "checking for pow in -lm... " >&6; } 17089 if ${ac_cv_lib_m_pow+:} false; then : 17090 $as_echo_n "(cached) " >&6 17091 else 17092 ac_check_lib_save_LIBS=$LIBS 17093 LIBS="-lm $LIBS" 17094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17095 /* end confdefs.h. */ 17096 17097 /* Override any GCC internal prototype to avoid an error. 17098 Use char because int might match the return type of a GCC 17099 builtin and then its argument prototype would still apply. */ 17100 #ifdef __cplusplus 17101 extern "C" 17102 #endif 17103 char pow (); 17104 int 17105 main () 17106 { 17107 return pow (); 17108 ; 17109 return 0; 17110 } 17111 _ACEOF 17112 if ac_fn_c_try_link "$LINENO"; then : 17113 ac_cv_lib_m_pow=yes 17114 else 17115 ac_cv_lib_m_pow=no 17116 fi 17117 rm -f core conftest.err conftest.$ac_objext \ 17118 conftest$ac_exeext conftest.$ac_ext 17119 LIBS=$ac_check_lib_save_LIBS 17120 fi 17121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 17122 $as_echo "$ac_cv_lib_m_pow" >&6; } 17123 if test "x$ac_cv_lib_m_pow" = xyes; then : 17124 LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm" 17125 fi 17126 17127 for ac_func in acos acosf asin asinf atan atanf atan2 atan2f ceil ceilf copysign copysignf cos cosf exp expf fabs fabsf floor floorf trunc truncf fmod fmodf log logf log10 log10f pow powf scalbn scalbnf sin sinf sqrt sqrtf tan tanf 17128 do : 17129 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17130 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17131 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17132 cat >>confdefs.h <<_ACEOF 17133 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17134 _ACEOF 17135 17136 fi 17137 done 17138 17139 17140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5 17141 $as_echo_n "checking for iconv_open in -liconv... " >&6; } 17142 if ${ac_cv_lib_iconv_iconv_open+:} false; then : 17143 $as_echo_n "(cached) " >&6 17144 else 17145 ac_check_lib_save_LIBS=$LIBS 17146 LIBS="-liconv $LIBS" 17147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17148 /* end confdefs.h. */ 17149 17150 /* Override any GCC internal prototype to avoid an error. 17151 Use char because int might match the return type of a GCC 17152 builtin and then its argument prototype would still apply. */ 17153 #ifdef __cplusplus 17154 extern "C" 17155 #endif 17156 char iconv_open (); 17157 int 17158 main () 17159 { 17160 return iconv_open (); 17161 ; 17162 return 0; 17163 } 17164 _ACEOF 17165 if ac_fn_c_try_link "$LINENO"; then : 17166 ac_cv_lib_iconv_iconv_open=yes 17167 else 17168 ac_cv_lib_iconv_iconv_open=no 17169 fi 17170 rm -f core conftest.err conftest.$ac_objext \ 17171 conftest$ac_exeext conftest.$ac_ext 17172 LIBS=$ac_check_lib_save_LIBS 17173 fi 17174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5 17175 $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; } 17176 if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then : 17177 LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv" 17178 fi 17179 17180 for ac_func in iconv 17181 do : 17182 ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv" 17183 if test "x$ac_cv_func_iconv" = xyes; then : 17184 cat >>confdefs.h <<_ACEOF 17185 #define HAVE_ICONV 1 17186 _ACEOF 17187 17188 fi 17189 done 17190 17191 17192 ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h> 17193 " 17194 if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then : 17195 17196 $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h 17197 17198 fi 17199 17200 17201 for ac_header in libunwind.h 17202 do : 17203 ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default" 17204 if test "x$ac_cv_header_libunwind_h" = xyes; then : 17205 cat >>confdefs.h <<_ACEOF 17206 #define HAVE_LIBUNWIND_H 1 17207 _ACEOF 17208 17209 fi 17210 17211 done 17212 17213 fi 17214 17215 17216 # Check whether --enable-gcc-atomics was given. 17217 if test "${enable_gcc_atomics+set}" = set; then : 17218 enableval=$enable_gcc_atomics; 17219 else 17220 enable_gcc_atomics=yes 17221 fi 17222 17223 if test x$enable_gcc_atomics = xyes; then 17224 have_gcc_atomics=no 17225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5 17226 $as_echo_n "checking for GCC builtin atomic operations... " >&6; } 17227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17228 /* end confdefs.h. */ 17229 17230 17231 int 17232 main () 17233 { 17234 17235 int a; 17236 void *x, *y, *z; 17237 __sync_lock_test_and_set(&a, 4); 17238 __sync_lock_test_and_set(&x, y); 17239 __sync_fetch_and_add(&a, 1); 17240 __sync_bool_compare_and_swap(&a, 5, 10); 17241 __sync_bool_compare_and_swap(&x, y, z); 17242 17243 ; 17244 return 0; 17245 } 17246 _ACEOF 17247 if ac_fn_c_try_link "$LINENO"; then : 17248 17249 have_gcc_atomics=yes 17250 17251 fi 17252 rm -f core conftest.err conftest.$ac_objext \ 17253 conftest$ac_exeext conftest.$ac_ext 17254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5 17255 $as_echo "$have_gcc_atomics" >&6; } 17256 17257 if test x$have_gcc_atomics = xyes; then 17258 17259 $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h 17260 17261 else 17262 # See if we have the minimum operation needed for GCC atomics 17263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17264 /* end confdefs.h. */ 17265 17266 17267 int 17268 main () 17269 { 17270 17271 int a; 17272 __sync_lock_test_and_set(&a, 1); 17273 __sync_lock_release(&a); 17274 17275 ; 17276 return 0; 17277 } 17278 _ACEOF 17279 if ac_fn_c_try_link "$LINENO"; then : 17280 17281 have_gcc_sync_lock_test_and_set=yes 17282 17283 fi 17284 rm -f core conftest.err conftest.$ac_objext \ 17285 conftest$ac_exeext conftest.$ac_ext 17286 if test x$have_gcc_sync_lock_test_and_set = xyes; then 17287 17288 $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h 17289 17290 fi 17291 fi 17292 fi 17293 17294 # Standard C sources 17295 SOURCES="$SOURCES $srcdir/src/*.c" 17296 SOURCES="$SOURCES $srcdir/src/atomic/*.c" 17297 SOURCES="$SOURCES $srcdir/src/audio/*.c" 17298 SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c" 17299 SOURCES="$SOURCES $srcdir/src/dynapi/*.c" 17300 SOURCES="$SOURCES $srcdir/src/events/*.c" 17301 SOURCES="$SOURCES $srcdir/src/file/*.c" 17302 SOURCES="$SOURCES $srcdir/src/haptic/*.c" 17303 SOURCES="$SOURCES $srcdir/src/joystick/*.c" 17304 SOURCES="$SOURCES $srcdir/src/libm/*.c" 17305 SOURCES="$SOURCES $srcdir/src/misc/*.c" 17306 SOURCES="$SOURCES $srcdir/src/power/*.c" 17307 #SOURCES="$SOURCES $srcdir/src/filesystem/*.c" 17308 SOURCES="$SOURCES $srcdir/src/render/*.c" 17309 SOURCES="$SOURCES $srcdir/src/render/*/*.c" 17310 SOURCES="$SOURCES $srcdir/src/sensor/*.c" 17311 SOURCES="$SOURCES $srcdir/src/stdlib/*.c" 17312 SOURCES="$SOURCES $srcdir/src/thread/*.c" 17313 SOURCES="$SOURCES $srcdir/src/timer/*.c" 17314 SOURCES="$SOURCES $srcdir/src/video/*.c" 17315 SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c" 17316 SOURCES="$SOURCES $srcdir/src/locale/*.c" 17317 17318 17319 # Check whether --enable-atomic was given. 17320 if test "${enable_atomic+set}" = set; then : 17321 enableval=$enable_atomic; 17322 else 17323 enable_atomic=yes 17324 fi 17325 17326 if test x$enable_atomic != xyes; then 17327 17328 $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h 17329 17330 else 17331 SUMMARY_modules="${SUMMARY_modules} atomic" 17332 fi 17333 # Check whether --enable-audio was given. 17334 if test "${enable_audio+set}" = set; then : 17335 enableval=$enable_audio; 17336 else 17337 enable_audio=yes 17338 fi 17339 17340 if test x$enable_audio != xyes; then 17341 17342 $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h 17343 17344 else 17345 SUMMARY_modules="${SUMMARY_modules} audio" 17346 fi 17347 # Check whether --enable-video was given. 17348 if test "${enable_video+set}" = set; then : 17349 enableval=$enable_video; 17350 else 17351 enable_video=yes 17352 fi 17353 17354 if test x$enable_video != xyes; then 17355 17356 $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h 17357 17358 else 17359 SUMMARY_modules="${SUMMARY_modules} video" 17360 fi 17361 # Check whether --enable-render was given. 17362 if test "${enable_render+set}" = set; then : 17363 enableval=$enable_render; 17364 else 17365 enable_render=yes 17366 fi 17367 17368 if test x$enable_render != xyes; then 17369 17370 $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h 17371 17372 else 17373 SUMMARY_modules="${SUMMARY_modules} render" 17374 fi 17375 # Check whether --enable-events was given. 17376 if test "${enable_events+set}" = set; then : 17377 enableval=$enable_events; 17378 else 17379 enable_events=yes 17380 fi 17381 17382 if test x$enable_events != xyes; then 17383 17384 $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h 17385 17386 else 17387 SUMMARY_modules="${SUMMARY_modules} events" 17388 fi 17389 # Check whether --enable-joystick was given. 17390 if test "${enable_joystick+set}" = set; then : 17391 enableval=$enable_joystick; 17392 else 17393 enable_joystick=yes 17394 fi 17395 17396 if test x$enable_joystick != xyes; then 17397 17398 $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h 17399 17400 else 17401 SUMMARY_modules="${SUMMARY_modules} joystick" 17402 fi 17403 # Check whether --enable-haptic was given. 17404 if test "${enable_haptic+set}" = set; then : 17405 enableval=$enable_haptic; 17406 else 17407 enable_haptic=yes 17408 fi 17409 17410 if test x$enable_haptic != xyes; then 17411 17412 $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h 17413 17414 else 17415 SUMMARY_modules="${SUMMARY_modules} haptic" 17416 fi 17417 # Check whether --enable-sensor was given. 17418 if test "${enable_sensor+set}" = set; then : 17419 enableval=$enable_sensor; 17420 else 17421 enable_sensor=yes 17422 fi 17423 17424 if test x$enable_sensor != xyes; then 17425 17426 $as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h 17427 17428 else 17429 SUMMARY_modules="${SUMMARY_modules} sensor" 17430 fi 17431 # Check whether --enable-power was given. 17432 if test "${enable_power+set}" = set; then : 17433 enableval=$enable_power; 17434 else 17435 enable_power=yes 17436 fi 17437 17438 if test x$enable_power != xyes; then 17439 17440 $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h 17441 17442 else 17443 SUMMARY_modules="${SUMMARY_modules} power" 17444 fi 17445 # Check whether --enable-filesystem was given. 17446 if test "${enable_filesystem+set}" = set; then : 17447 enableval=$enable_filesystem; 17448 else 17449 enable_filesystem=yes 17450 fi 17451 17452 if test x$enable_filesystem != xyes; then 17453 17454 $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h 17455 17456 else 17457 SUMMARY_modules="${SUMMARY_modules} filesystem" 17458 fi 17459 # Check whether --enable-threads was given. 17460 if test "${enable_threads+set}" = set; then : 17461 enableval=$enable_threads; 17462 else 17463 enable_threads=yes 17464 fi 17465 17466 if test x$enable_threads != xyes; then 17467 17468 $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h 17469 17470 else 17471 SUMMARY_modules="${SUMMARY_modules} threads" 17472 fi 17473 # Check whether --enable-timers was given. 17474 if test "${enable_timers+set}" = set; then : 17475 enableval=$enable_timers; 17476 else 17477 enable_timers=yes 17478 fi 17479 17480 if test x$enable_timers != xyes; then 17481 17482 $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h 17483 17484 else 17485 SUMMARY_modules="${SUMMARY_modules} timers" 17486 fi 17487 # Check whether --enable-file was given. 17488 if test "${enable_file+set}" = set; then : 17489 enableval=$enable_file; 17490 else 17491 enable_file=yes 17492 fi 17493 17494 if test x$enable_file != xyes; then 17495 17496 $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h 17497 17498 else 17499 SUMMARY_modules="${SUMMARY_modules} file" 17500 fi 17501 # Check whether --enable-loadso was given. 17502 if test "${enable_loadso+set}" = set; then : 17503 enableval=$enable_loadso; 17504 else 17505 enable_loadso=yes 17506 fi 17507 17508 if test x$enable_loadso != xyes; then 17509 17510 $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h 17511 17512 else 17513 SUMMARY_modules="${SUMMARY_modules} loadso" 17514 fi 17515 # Check whether --enable-cpuinfo was given. 17516 if test "${enable_cpuinfo+set}" = set; then : 17517 enableval=$enable_cpuinfo; 17518 else 17519 enable_cpuinfo=yes 17520 fi 17521 17522 if test x$enable_cpuinfo != xyes; then 17523 17524 $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h 17525 17526 else 17527 SUMMARY_modules="${SUMMARY_modules} cpuinfo" 17528 fi 17529 # Check whether --enable-assembly was given. 17530 if test "${enable_assembly+set}" = set; then : 17531 enableval=$enable_assembly; 17532 else 17533 enable_assembly=yes 17534 fi 17535 17536 if test x$enable_assembly = xyes; then 17537 SUMMARY_modules="${SUMMARY_modules} assembly" 17538 17539 17540 $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h 17541 17542 17543 # Make sure that we don't generate floating point code that would 17544 # cause illegal instruction exceptions on older processors 17545 case "$host" in 17546 *-*-darwin*) 17547 # Don't need to worry about Apple hardware, it's all SSE capable 17548 default_ssemath=yes 17549 ;; 17550 *64-*-*) 17551 # x86 64-bit architectures all have SSE instructions 17552 default_ssemath=yes 17553 ;; 17554 *) 17555 default_ssemath=no 17556 ;; 17557 esac 17558 # Check whether --enable-ssemath was given. 17559 if test "${enable_ssemath+set}" = set; then : 17560 enableval=$enable_ssemath; 17561 else 17562 enable_ssemath=$default_ssemath 17563 fi 17564 17565 if test x$enable_ssemath = xno; then 17566 if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then 17567 EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387" 17568 fi 17569 fi 17570 17571 # Check whether --enable-mmx was given. 17572 if test "${enable_mmx+set}" = set; then : 17573 enableval=$enable_mmx; 17574 else 17575 enable_mmx=yes 17576 fi 17577 17578 if test x$enable_mmx = xyes; then 17579 save_CFLAGS="$CFLAGS" 17580 have_gcc_mmx=no 17581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5 17582 $as_echo_n "checking for GCC -mmmx option... " >&6; } 17583 mmx_CFLAGS="-mmmx" 17584 CFLAGS="$save_CFLAGS $mmx_CFLAGS" 17585 17586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17587 /* end confdefs.h. */ 17588 17589 #ifdef __MINGW32__ 17590 #include <_mingw.h> 17591 #ifdef __MINGW64_VERSION_MAJOR 17592 #include <intrin.h> 17593 #else 17594 #include <mmintrin.h> 17595 #endif 17596 #else 17597 #include <mmintrin.h> 17598 #endif 17599 #ifndef __MMX__ 17600 #error Assembler CPP flag not enabled 17601 #endif 17602 17603 int 17604 main () 17605 { 17606 17607 17608 ; 17609 return 0; 17610 } 17611 _ACEOF 17612 if ac_fn_c_try_compile "$LINENO"; then : 17613 17614 have_gcc_mmx=yes 17615 17616 fi 17617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5 17619 $as_echo "$have_gcc_mmx" >&6; } 17620 CFLAGS="$save_CFLAGS" 17621 17622 if test x$have_gcc_mmx = xyes; then 17623 EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS" 17624 SUMMARY_math="${SUMMARY_math} mmx" 17625 fi 17626 fi 17627 17628 # Check whether --enable-3dnow was given. 17629 if test "${enable_3dnow+set}" = set; then : 17630 enableval=$enable_3dnow; 17631 else 17632 enable_3dnow=yes 17633 fi 17634 17635 if test x$enable_3dnow = xyes; then 17636 save_CFLAGS="$CFLAGS" 17637 have_gcc_3dnow=no 17638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5 17639 $as_echo_n "checking for GCC -m3dnow option... " >&6; } 17640 amd3dnow_CFLAGS="-m3dnow" 17641 CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS" 17642 17643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17644 /* end confdefs.h. */ 17645 17646 #include <mm3dnow.h> 17647 #ifndef __3dNOW__ 17648 #error Assembler CPP flag not enabled 17649 #endif 17650 17651 int 17652 main () 17653 { 17654 17655 void *p = 0; 17656 _m_prefetch(p); 17657 17658 ; 17659 return 0; 17660 } 17661 _ACEOF 17662 if ac_fn_c_try_link "$LINENO"; then : 17663 17664 have_gcc_3dnow=yes 17665 17666 fi 17667 rm -f core conftest.err conftest.$ac_objext \ 17668 conftest$ac_exeext conftest.$ac_ext 17669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5 17670 $as_echo "$have_gcc_3dnow" >&6; } 17671 CFLAGS="$save_CFLAGS" 17672 17673 if test x$have_gcc_3dnow = xyes; then 17674 EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS" 17675 SUMMARY_math="${SUMMARY_math} 3dnow" 17676 fi 17677 fi 17678 17679 # Check whether --enable-sse was given. 17680 if test "${enable_sse+set}" = set; then : 17681 enableval=$enable_sse; 17682 else 17683 enable_sse=yes 17684 fi 17685 17686 if test x$enable_sse = xyes; then 17687 save_CFLAGS="$CFLAGS" 17688 have_gcc_sse=no 17689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5 17690 $as_echo_n "checking for GCC -msse option... " >&6; } 17691 sse_CFLAGS="-msse" 17692 CFLAGS="$save_CFLAGS $sse_CFLAGS" 17693 17694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17695 /* end confdefs.h. */ 17696 17697 #ifdef __MINGW32__ 17698 #include <_mingw.h> 17699 #ifdef __MINGW64_VERSION_MAJOR 17700 #include <intrin.h> 17701 #else 17702 #include <xmmintrin.h> 17703 #endif 17704 #else 17705 #include <xmmintrin.h> 17706 #endif 17707 #ifndef __SSE__ 17708 #error Assembler CPP flag not enabled 17709 #endif 17710 17711 int 17712 main () 17713 { 17714 17715 17716 ; 17717 return 0; 17718 } 17719 _ACEOF 17720 if ac_fn_c_try_compile "$LINENO"; then : 17721 17722 have_gcc_sse=yes 17723 17724 fi 17725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5 17727 $as_echo "$have_gcc_sse" >&6; } 17728 CFLAGS="$save_CFLAGS" 17729 17730 if test x$have_gcc_sse = xyes; then 17731 EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS" 17732 SUMMARY_math="${SUMMARY_math} sse" 17733 fi 17734 fi 17735 17736 # Check whether --enable-sse2 was given. 17737 if test "${enable_sse2+set}" = set; then : 17738 enableval=$enable_sse2; 17739 else 17740 enable_sse2=$default_ssemath 17741 fi 17742 17743 if test x$enable_sse2 = xyes; then 17744 save_CFLAGS="$CFLAGS" 17745 have_gcc_sse2=no 17746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5 17747 $as_echo_n "checking for GCC -msse2 option... " >&6; } 17748 sse2_CFLAGS="-msse2" 17749 CFLAGS="$save_CFLAGS $sse2_CFLAGS" 17750 17751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17752 /* end confdefs.h. */ 17753 17754 #ifdef __MINGW32__ 17755 #include <_mingw.h> 17756 #ifdef __MINGW64_VERSION_MAJOR 17757 #include <intrin.h> 17758 #else 17759 #include <emmintrin.h> 17760 #endif 17761 #else 17762 #include <emmintrin.h> 17763 #endif 17764 #ifndef __SSE2__ 17765 #error Assembler CPP flag not enabled 17766 #endif 17767 17768 int 17769 main () 17770 { 17771 17772 17773 ; 17774 return 0; 17775 } 17776 _ACEOF 17777 if ac_fn_c_try_compile "$LINENO"; then : 17778 17779 have_gcc_sse2=yes 17780 17781 fi 17782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5 17784 $as_echo "$have_gcc_sse2" >&6; } 17785 CFLAGS="$save_CFLAGS" 17786 17787 if test x$have_gcc_sse2 = xyes; then 17788 EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS" 17789 SUMMARY_math="${SUMMARY_math} sse2" 17790 fi 17791 fi 17792 17793 # Check whether --enable-sse3 was given. 17794 if test "${enable_sse3+set}" = set; then : 17795 enableval=$enable_sse3; 17796 else 17797 enable_sse3=$default_ssemath 17798 fi 17799 17800 if test x$enable_sse3 = xyes; then 17801 save_CFLAGS="$CFLAGS" 17802 have_gcc_sse3=no 17803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5 17804 $as_echo_n "checking for GCC -msse3 option... " >&6; } 17805 sse3_CFLAGS="-msse3" 17806 CFLAGS="$save_CFLAGS $sse3_CFLAGS" 17807 17808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17809 /* end confdefs.h. */ 17810 17811 #ifdef __MINGW32__ 17812 #include <_mingw.h> 17813 #ifdef __MINGW64_VERSION_MAJOR 17814 #include <intrin.h> 17815 #else 17816 #include <pmmintrin.h> 17817 #endif 17818 #else 17819 #include <pmmintrin.h> 17820 #endif 17821 #ifndef __SSE2__ 17822 #error Assembler CPP flag not enabled 17823 #endif 17824 17825 int 17826 main () 17827 { 17828 17829 17830 ; 17831 return 0; 17832 } 17833 _ACEOF 17834 if ac_fn_c_try_compile "$LINENO"; then : 17835 17836 have_gcc_sse3=yes 17837 17838 fi 17839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5 17841 $as_echo "$have_gcc_sse3" >&6; } 17842 CFLAGS="$save_CFLAGS" 17843 17844 if test x$have_gcc_sse3 = xyes; then 17845 EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS" 17846 SUMMARY_math="${SUMMARY_math} sse3" 17847 fi 17848 fi 17849 17850 ac_fn_c_check_header_mongrel "$LINENO" "immintrin.h" "ac_cv_header_immintrin_h" "$ac_includes_default" 17851 if test "x$ac_cv_header_immintrin_h" = xyes; then : 17852 have_immintrin_h_hdr=yes 17853 else 17854 have_immintrin_h_hdr=no 17855 fi 17856 17857 17858 if test x$have_immintrin_h_hdr = xyes; then 17859 17860 $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h 17861 17862 fi 17863 17864 # Check whether --enable-altivec was given. 17865 if test "${enable_altivec+set}" = set; then : 17866 enableval=$enable_altivec; 17867 else 17868 enable_altivec=yes 17869 fi 17870 17871 if test x$enable_altivec = xyes; then 17872 save_CFLAGS="$CFLAGS" 17873 have_gcc_altivec=no 17874 have_altivec_h_hdr=no 17875 altivec_CFLAGS="-maltivec" 17876 CFLAGS="$save_CFLAGS $altivec_CFLAGS" 17877 17878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5 17879 $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; } 17880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17881 /* end confdefs.h. */ 17882 17883 #include <altivec.h> 17884 vector unsigned int vzero() { 17885 return vec_splat_u32(0); 17886 } 17887 17888 int 17889 main () 17890 { 17891 17892 17893 ; 17894 return 0; 17895 } 17896 _ACEOF 17897 if ac_fn_c_try_compile "$LINENO"; then : 17898 17899 have_gcc_altivec=yes 17900 have_altivec_h_hdr=yes 17901 17902 fi 17903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5 17905 $as_echo "$have_gcc_altivec" >&6; } 17906 17907 if test x$have_gcc_altivec = xno; then 17908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5 17909 $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; } 17910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17911 /* end confdefs.h. */ 17912 17913 vector unsigned int vzero() { 17914 return vec_splat_u32(0); 17915 } 17916 17917 int 17918 main () 17919 { 17920 17921 17922 ; 17923 return 0; 17924 } 17925 _ACEOF 17926 if ac_fn_c_try_compile "$LINENO"; then : 17927 17928 have_gcc_altivec=yes 17929 17930 fi 17931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5 17933 $as_echo "$have_gcc_altivec" >&6; } 17934 fi 17935 17936 if test x$have_gcc_altivec = xno; then 17937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5 17938 $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; } 17939 altivec_CFLAGS="-faltivec" 17940 CFLAGS="$save_CFLAGS $altivec_CFLAGS" 17941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17942 /* end confdefs.h. */ 17943 17944 #include <altivec.h> 17945 vector unsigned int vzero() { 17946 return vec_splat_u32(0); 17947 } 17948 17949 int 17950 main () 17951 { 17952 17953 17954 ; 17955 return 0; 17956 } 17957 _ACEOF 17958 if ac_fn_c_try_compile "$LINENO"; then : 17959 17960 have_gcc_altivec=yes 17961 have_altivec_h_hdr=yes 17962 17963 fi 17964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5 17966 $as_echo "$have_gcc_altivec" >&6; } 17967 fi 17968 17969 if test x$have_gcc_altivec = xno; then 17970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5 17971 $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; } 17972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17973 /* end confdefs.h. */ 17974 17975 vector unsigned int vzero() { 17976 return vec_splat_u32(0); 17977 } 17978 17979 int 17980 main () 17981 { 17982 17983 17984 ; 17985 return 0; 17986 } 17987 _ACEOF 17988 if ac_fn_c_try_compile "$LINENO"; then : 17989 17990 have_gcc_altivec=yes 17991 17992 fi 17993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5 17995 $as_echo "$have_gcc_altivec" >&6; } 17996 fi 17997 CFLAGS="$save_CFLAGS" 17998 17999 if test x$have_gcc_altivec = xyes; then 18000 18001 $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h 18002 18003 if test x$have_altivec_h_hdr = xyes; then 18004 18005 $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h 18006 18007 fi 18008 EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS" 18009 SUMMARY_math="${SUMMARY_math} altivec" 18010 fi 18011 fi 18012 fi 18013 18014 CheckOSS() 18015 { 18016 # Check whether --enable-oss was given. 18017 if test "${enable_oss+set}" = set; then : 18018 enableval=$enable_oss; 18019 else 18020 enable_oss=maybe 18021 fi 18022 18023 18024 # OpenBSD "has" OSS, but it's not really for app use. They want you to 18025 # use sndio instead. So on there, we default to disabled. You can force 18026 # it on if you really want, though. 18027 if test x$enable_oss = xmaybe; then 18028 enable_oss=yes 18029 case "$host" in 18030 *-*-openbsd*) 18031 enable_oss=no;; 18032 esac 18033 fi 18034 18035 if test x$enable_audio = xyes -a x$enable_oss = xyes; then 18036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5 18037 $as_echo_n "checking for OSS audio support... " >&6; } 18038 have_oss=no 18039 if test x$have_oss != xyes; then 18040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18041 /* end confdefs.h. */ 18042 18043 #include <sys/soundcard.h> 18044 18045 int 18046 main () 18047 { 18048 18049 int arg = SNDCTL_DSP_SETFRAGMENT; 18050 18051 ; 18052 return 0; 18053 } 18054 _ACEOF 18055 if ac_fn_c_try_compile "$LINENO"; then : 18056 18057 have_oss=yes 18058 18059 fi 18060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18061 fi 18062 if test x$have_oss != xyes; then 18063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18064 /* end confdefs.h. */ 18065 18066 #include <soundcard.h> 18067 18068 int 18069 main () 18070 { 18071 18072 int arg = SNDCTL_DSP_SETFRAGMENT; 18073 18074 ; 18075 return 0; 18076 } 18077 _ACEOF 18078 if ac_fn_c_try_compile "$LINENO"; then : 18079 18080 have_oss=yes 18081 18082 $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h 18083 18084 18085 fi 18086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18087 fi 18088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5 18089 $as_echo "$have_oss" >&6; } 18090 if test x$have_oss = xyes; then 18091 SUMMARY_audio="${SUMMARY_audio} oss" 18092 18093 $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h 18094 18095 SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c" 18096 have_audio=yes 18097 18098 # We may need to link with ossaudio emulation library 18099 case "$host" in 18100 *-*-openbsd*|*-*-netbsd*) 18101 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";; 18102 esac 18103 fi 18104 fi 18105 } 18106 18107 CheckALSA() 18108 { 18109 # Check whether --enable-alsa was given. 18110 if test "${enable_alsa+set}" = set; then : 18111 enableval=$enable_alsa; 18112 else 18113 enable_alsa=yes 18114 fi 18115 18116 if test x$enable_audio = xyes -a x$enable_alsa = xyes; then 18117 alsa_save_CFLAGS="$CFLAGS" 18118 alsa_save_LDFLAGS="$LDFLAGS" 18119 alsa_save_LIBS="$LIBS" 18120 alsa_found=yes 18121 18122 18123 # Check whether --with-alsa-prefix was given. 18124 if test "${with_alsa_prefix+set}" = set; then : 18125 withval=$with_alsa_prefix; alsa_prefix="$withval" 18126 else 18127 alsa_prefix="" 18128 fi 18129 18130 18131 18132 # Check whether --with-alsa-inc-prefix was given. 18133 if test "${with_alsa_inc_prefix+set}" = set; then : 18134 withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval" 18135 else 18136 alsa_inc_prefix="" 18137 fi 18138 18139 18140 # Check whether --enable-alsatest was given. 18141 if test "${enable_alsatest+set}" = set; then : 18142 enableval=$enable_alsatest; enable_alsatest="$enableval" 18143 else 18144 enable_alsatest=yes 18145 fi 18146 18147 18148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5 18149 $as_echo_n "checking for ALSA CFLAGS... " >&6; } 18150 if test "$alsa_inc_prefix" != "" ; then 18151 ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix" 18152 CFLAGS="$CFLAGS -I$alsa_inc_prefix" 18153 fi 18154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5 18155 $as_echo "$ALSA_CFLAGS" >&6; } 18156 18157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5 18158 $as_echo_n "checking for ALSA LDFLAGS... " >&6; } 18159 if test "$alsa_prefix" != "" ; then 18160 ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix" 18161 LDFLAGS="$LDFLAGS $ALSA_LIBS" 18162 fi 18163 18164 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread" 18165 LIBS=`echo $LIBS | sed 's/-lm//'` 18166 LIBS=`echo $LIBS | sed 's/-ldl//'` 18167 LIBS=`echo $LIBS | sed 's/-lpthread//'` 18168 LIBS=`echo $LIBS | sed 's/ //'` 18169 LIBS="$ALSA_LIBS $LIBS" 18170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5 18171 $as_echo "$ALSA_LIBS" >&6; } 18172 18173 min_alsa_version=1.0.11 18174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5 18175 $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; } 18176 no_alsa="" 18177 alsa_min_major_version=`echo $min_alsa_version | \ 18178 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 18179 alsa_min_minor_version=`echo $min_alsa_version | \ 18180 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 18181 alsa_min_micro_version=`echo $min_alsa_version | \ 18182 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 18183 18184 18185 ac_ext=c 18186 ac_cpp='$CPP $CPPFLAGS' 18187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18189 ac_compiler_gnu=$ac_cv_c_compiler_gnu 18190 18191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18192 /* end confdefs.h. */ 18193 18194 #include <alsa/asoundlib.h> 18195 18196 int 18197 main () 18198 { 18199 18200 /* ensure backward compatibility */ 18201 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR) 18202 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR 18203 #endif 18204 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR) 18205 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR 18206 #endif 18207 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR) 18208 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR 18209 #endif 18210 18211 # if(SND_LIB_MAJOR > $alsa_min_major_version) 18212 exit(0); 18213 # else 18214 # if(SND_LIB_MAJOR < $alsa_min_major_version) 18215 # error not present 18216 # endif 18217 18218 # if(SND_LIB_MINOR > $alsa_min_minor_version) 18219 exit(0); 18220 # else 18221 # if(SND_LIB_MINOR < $alsa_min_minor_version) 18222 # error not present 18223 # endif 18224 18225 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version) 18226 # error not present 18227 # endif 18228 # endif 18229 # endif 18230 exit(0); 18231 18232 ; 18233 return 0; 18234 } 18235 _ACEOF 18236 if ac_fn_c_try_compile "$LINENO"; then : 18237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5 18238 $as_echo "found." >&6; } 18239 else 18240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5 18241 $as_echo "not present." >&6; } 18242 18243 alsa_found=no 18244 18245 fi 18246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18247 ac_ext=c 18248 ac_cpp='$CPP $CPPFLAGS' 18249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18251 ac_compiler_gnu=$ac_cv_c_compiler_gnu 18252 18253 18254 if test "x$enable_alsatest" = "xyes"; then 18255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5 18256 $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; } 18257 if ${ac_cv_lib_asound_snd_ctl_open+:} false; then : 18258 $as_echo_n "(cached) " >&6 18259 else 18260 ac_check_lib_save_LIBS=$LIBS 18261 LIBS="-lasound $LIBS" 18262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18263 /* end confdefs.h. */ 18264 18265 /* Override any GCC internal prototype to avoid an error. 18266 Use char because int might match the return type of a GCC 18267 builtin and then its argument prototype would still apply. */ 18268 #ifdef __cplusplus 18269 extern "C" 18270 #endif 18271 char snd_ctl_open (); 18272 int 18273 main () 18274 { 18275 return snd_ctl_open (); 18276 ; 18277 return 0; 18278 } 18279 _ACEOF 18280 if ac_fn_c_try_link "$LINENO"; then : 18281 ac_cv_lib_asound_snd_ctl_open=yes 18282 else 18283 ac_cv_lib_asound_snd_ctl_open=no 18284 fi 18285 rm -f core conftest.err conftest.$ac_objext \ 18286 conftest$ac_exeext conftest.$ac_ext 18287 LIBS=$ac_check_lib_save_LIBS 18288 fi 18289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5 18290 $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; } 18291 if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then : 18292 cat >>confdefs.h <<_ACEOF 18293 #define HAVE_LIBASOUND 1 18294 _ACEOF 18295 18296 LIBS="-lasound $LIBS" 18297 18298 else 18299 18300 alsa_found=no 18301 18302 fi 18303 18304 fi 18305 18306 if test "x$alsa_found" = "xyes" ; then 18307 have_alsa=yes 18308 LIBS=`echo $LIBS | sed 's/-lasound//g'` 18309 LIBS=`echo $LIBS | sed 's/ //'` 18310 LIBS="-lasound $LIBS" 18311 fi 18312 if test "x$alsa_found" = "xno" ; then 18313 have_alsa=no 18314 CFLAGS="$alsa_save_CFLAGS" 18315 LDFLAGS="$alsa_save_LDFLAGS" 18316 LIBS="$alsa_save_LIBS" 18317 ALSA_CFLAGS="" 18318 ALSA_LIBS="" 18319 fi 18320 18321 18322 18323 18324 # Restore all flags from before the ALSA detection runs 18325 CFLAGS="$alsa_save_CFLAGS" 18326 LDFLAGS="$alsa_save_LDFLAGS" 18327 LIBS="$alsa_save_LIBS" 18328 if test x$have_alsa = xyes; then 18329 # Check whether --enable-alsa-shared was given. 18330 if test "${enable_alsa_shared+set}" = set; then : 18331 enableval=$enable_alsa_shared; 18332 else 18333 enable_alsa_shared=yes 18334 fi 18335 18336 alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'` 18337 18338 18339 $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h 18340 18341 SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c" 18342 EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS" 18343 if test x$have_loadso != xyes && \ 18344 test x$enable_alsa_shared = xyes; then 18345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5 18346 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;} 18347 fi 18348 if test x$have_loadso = xyes && \ 18349 test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then 18350 echo "-- dynamic libasound -> $alsa_lib" 18351 18352 cat >>confdefs.h <<_ACEOF 18353 #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib" 18354 _ACEOF 18355 18356 SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)" 18357 else 18358 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS" 18359 SUMMARY_audio="${SUMMARY_audio} alsa" 18360 fi 18361 have_audio=yes 18362 fi 18363 fi 18364 } 18365 18366 CheckJACK() 18367 { 18368 # Check whether --enable-jack was given. 18369 if test "${enable_jack+set}" = set; then : 18370 enableval=$enable_jack; 18371 else 18372 enable_jack=yes 18373 fi 18374 18375 if test x$enable_audio = xyes -a x$enable_jack = xyes; then 18376 18377 pkg_failed=no 18378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK" >&5 18379 $as_echo_n "checking for JACK... " >&6; } 18380 18381 if test -n "$JACK_CFLAGS"; then 18382 pkg_cv_JACK_CFLAGS="$JACK_CFLAGS" 18383 elif test -n "$PKG_CONFIG"; then 18384 if test -n "$PKG_CONFIG" && \ 18385 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5 18386 ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5 18387 ac_status=$? 18388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18389 test $ac_status = 0; }; then 18390 pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null` 18391 else 18392 pkg_failed=yes 18393 fi 18394 else 18395 pkg_failed=untried 18396 fi 18397 if test -n "$JACK_LIBS"; then 18398 pkg_cv_JACK_LIBS="$JACK_LIBS" 18399 elif test -n "$PKG_CONFIG"; then 18400 if test -n "$PKG_CONFIG" && \ 18401 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5 18402 ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5 18403 ac_status=$? 18404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18405 test $ac_status = 0; }; then 18406 pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null` 18407 else 18408 pkg_failed=yes 18409 fi 18410 else 18411 pkg_failed=untried 18412 fi 18413 18414 18415 18416 if test $pkg_failed = yes; then 18417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18418 $as_echo "no" >&6; } 18419 18420 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18421 _pkg_short_errors_supported=yes 18422 else 18423 _pkg_short_errors_supported=no 18424 fi 18425 if test $_pkg_short_errors_supported = yes; then 18426 JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "jack >= 0.125" 2>&1` 18427 else 18428 JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors "jack >= 0.125" 2>&1` 18429 fi 18430 # Put the nasty error message in config.log where it belongs 18431 echo "$JACK_PKG_ERRORS" >&5 18432 18433 audio_jack=no 18434 elif test $pkg_failed = untried; then 18435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18436 $as_echo "no" >&6; } 18437 audio_jack=no 18438 else 18439 JACK_CFLAGS=$pkg_cv_JACK_CFLAGS 18440 JACK_LIBS=$pkg_cv_JACK_LIBS 18441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18442 $as_echo "yes" >&6; } 18443 audio_jack=yes 18444 fi 18445 18446 if test x$audio_jack = xyes; then 18447 # Check whether --enable-jack-shared was given. 18448 if test "${enable_jack_shared+set}" = set; then : 18449 enableval=$enable_jack_shared; 18450 else 18451 enable_jack_shared=yes 18452 fi 18453 18454 jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'` 18455 18456 18457 $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h 18458 18459 SOURCES="$SOURCES $srcdir/src/audio/jack/*.c" 18460 EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS" 18461 if test x$have_loadso != xyes && \ 18462 test x$enable_jack_shared = xyes; then 18463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5 18464 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;} 18465 fi 18466 if test x$have_loadso = xyes && \ 18467 test x$enable_jack_shared = xyes && test x$jack_lib != x; then 18468 echo "-- dynamic libjack -> $jack_lib" 18469 18470 cat >>confdefs.h <<_ACEOF 18471 #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib" 18472 _ACEOF 18473 18474 SUMMARY_audio="${SUMMARY_audio} jack(dynamic)" 18475 18476 case "$host" in 18477 # On Solaris, jack must be linked deferred explicitly 18478 # to prevent undefined symbol failures. 18479 *-*-solaris*) 18480 JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'` 18481 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred" 18482 esac 18483 else 18484 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS" 18485 SUMMARY_audio="${SUMMARY_audio} jack" 18486 fi 18487 have_audio=yes 18488 fi 18489 fi 18490 } 18491 18492 CheckESD() 18493 { 18494 # Check whether --enable-esd was given. 18495 if test "${enable_esd+set}" = set; then : 18496 enableval=$enable_esd; 18497 else 18498 enable_esd=yes 18499 fi 18500 18501 if test x$enable_audio = xyes -a x$enable_esd = xyes; then 18502 18503 # Check whether --with-esd-prefix was given. 18504 if test "${with_esd_prefix+set}" = set; then : 18505 withval=$with_esd_prefix; esd_prefix="$withval" 18506 else 18507 esd_prefix="" 18508 fi 18509 18510 18511 # Check whether --with-esd-exec-prefix was given. 18512 if test "${with_esd_exec_prefix+set}" = set; then : 18513 withval=$with_esd_exec_prefix; esd_exec_prefix="$withval" 18514 else 18515 esd_exec_prefix="" 18516 fi 18517 18518 # Check whether --enable-esdtest was given. 18519 if test "${enable_esdtest+set}" = set; then : 18520 enableval=$enable_esdtest; 18521 else 18522 enable_esdtest=yes 18523 fi 18524 18525 18526 if test x$esd_exec_prefix != x ; then 18527 esd_args="$esd_args --exec-prefix=$esd_exec_prefix" 18528 if test x${ESD_CONFIG+set} != xset ; then 18529 ESD_CONFIG=$esd_exec_prefix/bin/esd-config 18530 fi 18531 fi 18532 if test x$esd_prefix != x ; then 18533 esd_args="$esd_args --prefix=$esd_prefix" 18534 if test x${ESD_CONFIG+set} != xset ; then 18535 ESD_CONFIG=$esd_prefix/bin/esd-config 18536 fi 18537 fi 18538 18539 # Extract the first word of "esd-config", so it can be a program name with args. 18540 set dummy esd-config; ac_word=$2 18541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18542 $as_echo_n "checking for $ac_word... " >&6; } 18543 if ${ac_cv_path_ESD_CONFIG+:} false; then : 18544 $as_echo_n "(cached) " >&6 18545 else 18546 case $ESD_CONFIG in 18547 [\\/]* | ?:[\\/]*) 18548 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path. 18549 ;; 18550 *) 18551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18552 for as_dir in $PATH 18553 do 18554 IFS=$as_save_IFS 18555 test -z "$as_dir" && as_dir=. 18556 for ac_exec_ext in '' $ac_executable_extensions; do 18557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18558 ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext" 18559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18560 break 2 18561 fi 18562 done 18563 done 18564 IFS=$as_save_IFS 18565 18566 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no" 18567 ;; 18568 esac 18569 fi 18570 ESD_CONFIG=$ac_cv_path_ESD_CONFIG 18571 if test -n "$ESD_CONFIG"; then 18572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5 18573 $as_echo "$ESD_CONFIG" >&6; } 18574 else 18575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18576 $as_echo "no" >&6; } 18577 fi 18578 18579 18580 min_esd_version=0.2.8 18581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5 18582 $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; } 18583 no_esd="" 18584 if test "$ESD_CONFIG" = "no" ; then 18585 no_esd=yes 18586 else 18587 ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags` 18588 ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs` 18589 18590 esd_major_version=`$ESD_CONFIG $esd_args --version | \ 18591 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 18592 esd_minor_version=`$ESD_CONFIG $esd_args --version | \ 18593 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 18594 esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \ 18595 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 18596 if test "x$enable_esdtest" = "xyes" ; then 18597 ac_save_CFLAGS="$CFLAGS" 18598 ac_save_LIBS="$LIBS" 18599 CFLAGS="$CFLAGS $ESD_CFLAGS" 18600 LIBS="$LIBS $ESD_LIBS" 18601 rm -f conf.esdtest 18602 if test "$cross_compiling" = yes; then : 18603 echo $ac_n "cross compiling; assumed OK... $ac_c" 18604 else 18605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18606 /* end confdefs.h. */ 18607 18608 #include <stdio.h> 18609 #include <stdlib.h> 18610 #include <string.h> 18611 #include <esd.h> 18612 18613 char* 18614 my_strdup (char *str) 18615 { 18616 char *new_str; 18617 18618 if (str) 18619 { 18620 new_str = malloc ((strlen (str) + 1) * sizeof(char)); 18621 strcpy (new_str, str); 18622 } 18623 else 18624 new_str = NULL; 18625 18626 return new_str; 18627 } 18628 18629 int main () 18630 { 18631 int major, minor, micro; 18632 char *tmp_version; 18633 18634 system ("touch conf.esdtest"); 18635 18636 /* HP/UX 9 (%@#!) writes to sscanf strings */ 18637 tmp_version = my_strdup("$min_esd_version"); 18638 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 18639 printf("%s, bad version string\n", "$min_esd_version"); 18640 exit(1); 18641 } 18642 18643 if (($esd_major_version > major) || 18644 (($esd_major_version == major) && ($esd_minor_version > minor)) || 18645 (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro))) 18646 { 18647 return 0; 18648 } 18649 else 18650 { 18651 printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version); 18652 printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro); 18653 printf("*** best to upgrade to the required version.\n"); 18654 printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n"); 18655 printf("*** to point to the correct copy of esd-config, and remove the file\n"); 18656 printf("*** config.cache before re-running configure\n"); 18657 return 1; 18658 } 18659 } 18660 18661 18662 _ACEOF 18663 if ac_fn_c_try_run "$LINENO"; then : 18664 18665 else 18666 no_esd=yes 18667 fi 18668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18669 conftest.$ac_objext conftest.beam conftest.$ac_ext 18670 fi 18671 18672 CFLAGS="$ac_save_CFLAGS" 18673 LIBS="$ac_save_LIBS" 18674 fi 18675 fi 18676 if test "x$no_esd" = x ; then 18677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18678 $as_echo "yes" >&6; } 18679 have_esd=yes 18680 else 18681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18682 $as_echo "no" >&6; } 18683 if test "$ESD_CONFIG" = "no" ; then 18684 echo "*** The esd-config script installed by ESD could not be found" 18685 echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in" 18686 echo "*** your path, or set the ESD_CONFIG environment variable to the" 18687 echo "*** full path to esd-config." 18688 else 18689 if test -f conf.esdtest ; then 18690 : 18691 else 18692 echo "*** Could not run ESD test program, checking why..." 18693 CFLAGS="$CFLAGS $ESD_CFLAGS" 18694 LIBS="$LIBS $ESD_LIBS" 18695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18696 /* end confdefs.h. */ 18697 18698 #include <stdio.h> 18699 #include <esd.h> 18700 18701 int 18702 main () 18703 { 18704 return 0; 18705 ; 18706 return 0; 18707 } 18708 _ACEOF 18709 if ac_fn_c_try_link "$LINENO"; then : 18710 echo "*** The test program compiled, but did not run. This usually means" 18711 echo "*** that the run-time linker is not finding ESD or finding the wrong" 18712 echo "*** version of ESD. If it is not finding ESD, you'll need to set your" 18713 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 18714 echo "*** to the installed location Also, make sure you have run ldconfig if that" 18715 echo "*** is required on your system" 18716 echo "***" 18717 echo "*** If you have an old version installed, it is best to remove it, although" 18718 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 18719 else 18720 echo "*** The test program failed to compile or link. See the file config.log for the" 18721 echo "*** exact error that occured. This usually means ESD was incorrectly installed" 18722 echo "*** or that you have moved ESD since it was installed. In the latter case, you" 18723 echo "*** may want to edit the esd-config script: $ESD_CONFIG" 18724 fi 18725 rm -f core conftest.err conftest.$ac_objext \ 18726 conftest$ac_exeext conftest.$ac_ext 18727 CFLAGS="$ac_save_CFLAGS" 18728 LIBS="$ac_save_LIBS" 18729 fi 18730 fi 18731 ESD_CFLAGS="" 18732 ESD_LIBS="" 18733 have_esd=no 18734 fi 18735 18736 18737 rm -f conf.esdtest 18738 18739 if test x$have_esd = xyes; then 18740 # Check whether --enable-esd-shared was given. 18741 if test "${enable_esd_shared+set}" = set; then : 18742 enableval=$enable_esd_shared; 18743 else 18744 enable_esd_shared=yes 18745 fi 18746 18747 esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'` 18748 18749 18750 $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h 18751 18752 SOURCES="$SOURCES $srcdir/src/audio/esd/*.c" 18753 EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS" 18754 if test x$have_loadso != xyes && \ 18755 test x$enable_esd_shared = xyes; then 18756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5 18757 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;} 18758 fi 18759 if test x$have_loadso = xyes && \ 18760 test x$enable_esd_shared = xyes && test x$esd_lib != x; then 18761 echo "-- dynamic libesd -> $esd_lib" 18762 18763 cat >>confdefs.h <<_ACEOF 18764 #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib" 18765 _ACEOF 18766 18767 SUMMARY_audio="${SUMMARY_audio} esd(dynamic)" 18768 else 18769 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS" 18770 SUMMARY_audio="${SUMMARY_audio} esd" 18771 fi 18772 have_audio=yes 18773 fi 18774 fi 18775 } 18776 18777 CheckPulseAudio() 18778 { 18779 # Check whether --enable-pulseaudio was given. 18780 if test "${enable_pulseaudio+set}" = set; then : 18781 enableval=$enable_pulseaudio; 18782 else 18783 enable_pulseaudio=yes 18784 fi 18785 18786 if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then 18787 18788 pkg_failed=no 18789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PULSEAUDIO" >&5 18790 $as_echo_n "checking for PULSEAUDIO... " >&6; } 18791 18792 if test -n "$PULSEAUDIO_CFLAGS"; then 18793 pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS" 18794 elif test -n "$PKG_CONFIG"; then 18795 if test -n "$PKG_CONFIG" && \ 18796 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5 18797 ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5 18798 ac_status=$? 18799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18800 test $ac_status = 0; }; then 18801 pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null` 18802 else 18803 pkg_failed=yes 18804 fi 18805 else 18806 pkg_failed=untried 18807 fi 18808 if test -n "$PULSEAUDIO_LIBS"; then 18809 pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS" 18810 elif test -n "$PKG_CONFIG"; then 18811 if test -n "$PKG_CONFIG" && \ 18812 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5 18813 ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5 18814 ac_status=$? 18815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18816 test $ac_status = 0; }; then 18817 pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null` 18818 else 18819 pkg_failed=yes 18820 fi 18821 else 18822 pkg_failed=untried 18823 fi 18824 18825 18826 18827 if test $pkg_failed = yes; then 18828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18829 $as_echo "no" >&6; } 18830 18831 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18832 _pkg_short_errors_supported=yes 18833 else 18834 _pkg_short_errors_supported=no 18835 fi 18836 if test $_pkg_short_errors_supported = yes; then 18837 PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple >= 0.9" 2>&1` 18838 else 18839 PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple >= 0.9" 2>&1` 18840 fi 18841 # Put the nasty error message in config.log where it belongs 18842 echo "$PULSEAUDIO_PKG_ERRORS" >&5 18843 18844 audio_pulseaudio=no 18845 elif test $pkg_failed = untried; then 18846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18847 $as_echo "no" >&6; } 18848 audio_pulseaudio=no 18849 else 18850 PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS 18851 PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS 18852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18853 $as_echo "yes" >&6; } 18854 audio_pulseaudio=yes 18855 fi 18856 18857 if test x$audio_pulseaudio = xyes; then 18858 # Check whether --enable-pulseaudio-shared was given. 18859 if test "${enable_pulseaudio_shared+set}" = set; then : 18860 enableval=$enable_pulseaudio_shared; 18861 else 18862 enable_pulseaudio_shared=yes 18863 fi 18864 18865 pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'` 18866 18867 18868 $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h 18869 18870 SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c" 18871 EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS" 18872 if test x$have_loadso != xyes && \ 18873 test x$enable_pulseaudio_shared = xyes; then 18874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5 18875 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;} 18876 fi 18877 if test x$have_loadso = xyes && \ 18878 test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then 18879 echo "-- dynamic libpulse-simple -> $pulseaudio_lib" 18880 18881 cat >>confdefs.h <<_ACEOF 18882 #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib" 18883 _ACEOF 18884 18885 SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)" 18886 18887 case "$host" in 18888 # On Solaris, pulseaudio must be linked deferred explicitly 18889 # to prevent undefined symbol failures. 18890 *-*-solaris*) 18891 PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'` 18892 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred" 18893 esac 18894 else 18895 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS" 18896 SUMMARY_audio="${SUMMARY_audio} pulse" 18897 fi 18898 have_audio=yes 18899 fi 18900 fi 18901 } 18902 18903 CheckARTSC() 18904 { 18905 # Check whether --enable-arts was given. 18906 if test "${enable_arts+set}" = set; then : 18907 enableval=$enable_arts; 18908 else 18909 enable_arts=yes 18910 fi 18911 18912 if test x$enable_audio = xyes -a x$enable_arts = xyes; then 18913 # Extract the first word of "artsc-config", so it can be a program name with args. 18914 set dummy artsc-config; ac_word=$2 18915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18916 $as_echo_n "checking for $ac_word... " >&6; } 18917 if ${ac_cv_path_ARTSCONFIG+:} false; then : 18918 $as_echo_n "(cached) " >&6 18919 else 18920 case $ARTSCONFIG in 18921 [\\/]* | ?:[\\/]*) 18922 ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path. 18923 ;; 18924 *) 18925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18926 for as_dir in $PATH 18927 do 18928 IFS=$as_save_IFS 18929 test -z "$as_dir" && as_dir=. 18930 for ac_exec_ext in '' $ac_executable_extensions; do 18931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18932 ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext" 18933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18934 break 2 18935 fi 18936 done 18937 done 18938 IFS=$as_save_IFS 18939 18940 ;; 18941 esac 18942 fi 18943 ARTSCONFIG=$ac_cv_path_ARTSCONFIG 18944 if test -n "$ARTSCONFIG"; then 18945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5 18946 $as_echo "$ARTSCONFIG" >&6; } 18947 else 18948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18949 $as_echo "no" >&6; } 18950 fi 18951 18952 18953 if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then 18954 : # arts isn't installed 18955 else 18956 ARTS_CFLAGS=`$ARTSCONFIG --cflags` 18957 ARTS_LIBS=`$ARTSCONFIG --libs` 18958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5 18959 $as_echo_n "checking for aRts development environment... " >&6; } 18960 audio_arts=no 18961 save_CFLAGS="$CFLAGS" 18962 CFLAGS="$CFLAGS $ARTS_CFLAGS" 18963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18964 /* end confdefs.h. */ 18965 18966 #include <artsc.h> 18967 18968 int 18969 main () 18970 { 18971 18972 arts_stream_t stream; 18973 18974 ; 18975 return 0; 18976 } 18977 _ACEOF 18978 if ac_fn_c_try_compile "$LINENO"; then : 18979 18980 audio_arts=yes 18981 18982 fi 18983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18984 CFLAGS="$save_CFLAGS" 18985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5 18986 $as_echo "$audio_arts" >&6; } 18987 if test x$audio_arts = xyes; then 18988 # Check whether --enable-arts-shared was given. 18989 if test "${enable_arts_shared+set}" = set; then : 18990 enableval=$enable_arts_shared; 18991 else 18992 enable_arts_shared=yes 18993 fi 18994 18995 arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'` 18996 18997 18998 $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h 18999 19000 SOURCES="$SOURCES $srcdir/src/audio/arts/*.c" 19001 EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS" 19002 if test x$have_loadso != xyes && \ 19003 test x$enable_arts_shared = xyes; then 19004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5 19005 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;} 19006 fi 19007 if test x$have_loadso = xyes && \ 19008 test x$enable_arts_shared = xyes && test x$arts_lib != x; then 19009 echo "-- dynamic libartsc -> $arts_lib" 19010 19011 cat >>confdefs.h <<_ACEOF 19012 #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib" 19013 _ACEOF 19014 19015 SUMMARY_audio="${SUMMARY_audio} arts(dynamic)" 19016 else 19017 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS" 19018 SUMMARY_audio="${SUMMARY_audio} arts" 19019 fi 19020 have_audio=yes 19021 fi 19022 fi 19023 fi 19024 } 19025 19026 CheckNAS() 19027 { 19028 # Check whether --enable-nas was given. 19029 if test "${enable_nas+set}" = set; then : 19030 enableval=$enable_nas; 19031 else 19032 enable_nas=yes 19033 fi 19034 19035 if test x$enable_audio = xyes -a x$enable_nas = xyes; then 19036 ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default" 19037 if test "x$ac_cv_header_audio_audiolib_h" = xyes; then : 19038 have_nas_hdr=yes 19039 fi 19040 19041 19042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5 19043 $as_echo_n "checking for AuOpenServer in -laudio... " >&6; } 19044 if ${ac_cv_lib_audio_AuOpenServer+:} false; then : 19045 $as_echo_n "(cached) " >&6 19046 else 19047 ac_check_lib_save_LIBS=$LIBS 19048 LIBS="-laudio $LIBS" 19049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19050 /* end confdefs.h. */ 19051 19052 /* Override any GCC internal prototype to avoid an error. 19053 Use char because int might match the return type of a GCC 19054 builtin and then its argument prototype would still apply. */ 19055 #ifdef __cplusplus 19056 extern "C" 19057 #endif 19058 char AuOpenServer (); 19059 int 19060 main () 19061 { 19062 return AuOpenServer (); 19063 ; 19064 return 0; 19065 } 19066 _ACEOF 19067 if ac_fn_c_try_link "$LINENO"; then : 19068 ac_cv_lib_audio_AuOpenServer=yes 19069 else 19070 ac_cv_lib_audio_AuOpenServer=no 19071 fi 19072 rm -f core conftest.err conftest.$ac_objext \ 19073 conftest$ac_exeext conftest.$ac_ext 19074 LIBS=$ac_check_lib_save_LIBS 19075 fi 19076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5 19077 $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; } 19078 if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then : 19079 have_nas_lib=yes 19080 fi 19081 19082 19083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5 19084 $as_echo_n "checking for NAS audio support... " >&6; } 19085 have_nas=no 19086 19087 if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then 19088 have_nas=yes 19089 NAS_LIBS="-laudio" 19090 19091 elif test -r /usr/X11R6/include/audio/audiolib.h; then 19092 have_nas=yes 19093 NAS_CFLAGS="-I/usr/X11R6/include/" 19094 NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt" 19095 19096 fi 19097 19098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5 19099 $as_echo "$have_nas" >&6; } 19100 19101 if test x$have_nas = xyes; then 19102 # Check whether --enable-nas-shared was given. 19103 if test "${enable_nas_shared+set}" = set; then : 19104 enableval=$enable_nas_shared; 19105 else 19106 enable_nas_shared=yes 19107 fi 19108 19109 nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'` 19110 19111 if test x$have_loadso != xyes && \ 19112 test x$enable_nas_shared = xyes; then 19113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5 19114 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;} 19115 fi 19116 if test x$have_loadso = xyes && \ 19117 test x$enable_nas_shared = xyes && test x$nas_lib != x; then 19118 echo "-- dynamic libaudio -> $nas_lib" 19119 19120 cat >>confdefs.h <<_ACEOF 19121 #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib" 19122 _ACEOF 19123 19124 SUMMARY_audio="${SUMMARY_audio} nas(dynamic)" 19125 else 19126 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS" 19127 SUMMARY_audio="${SUMMARY_audio} nas" 19128 fi 19129 19130 19131 $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h 19132 19133 SOURCES="$SOURCES $srcdir/src/audio/nas/*.c" 19134 EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS" 19135 have_audio=yes 19136 fi 19137 fi 19138 } 19139 19140 CheckSNDIO() 19141 { 19142 # Check whether --enable-sndio was given. 19143 if test "${enable_sndio+set}" = set; then : 19144 enableval=$enable_sndio; 19145 else 19146 enable_sndio=yes 19147 fi 19148 19149 if test x$enable_audio = xyes -a x$enable_sndio = xyes; then 19150 ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default" 19151 if test "x$ac_cv_header_sndio_h" = xyes; then : 19152 have_sndio_hdr=yes 19153 fi 19154 19155 19156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5 19157 $as_echo_n "checking for sio_open in -lsndio... " >&6; } 19158 if ${ac_cv_lib_sndio_sio_open+:} false; then : 19159 $as_echo_n "(cached) " >&6 19160 else 19161 ac_check_lib_save_LIBS=$LIBS 19162 LIBS="-lsndio $LIBS" 19163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19164 /* end confdefs.h. */ 19165 19166 /* Override any GCC internal prototype to avoid an error. 19167 Use char because int might match the return type of a GCC 19168 builtin and then its argument prototype would still apply. */ 19169 #ifdef __cplusplus 19170 extern "C" 19171 #endif 19172 char sio_open (); 19173 int 19174 main () 19175 { 19176 return sio_open (); 19177 ; 19178 return 0; 19179 } 19180 _ACEOF 19181 if ac_fn_c_try_link "$LINENO"; then : 19182 ac_cv_lib_sndio_sio_open=yes 19183 else 19184 ac_cv_lib_sndio_sio_open=no 19185 fi 19186 rm -f core conftest.err conftest.$ac_objext \ 19187 conftest$ac_exeext conftest.$ac_ext 19188 LIBS=$ac_check_lib_save_LIBS 19189 fi 19190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5 19191 $as_echo "$ac_cv_lib_sndio_sio_open" >&6; } 19192 if test "x$ac_cv_lib_sndio_sio_open" = xyes; then : 19193 have_sndio_lib=yes 19194 fi 19195 19196 19197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5 19198 $as_echo_n "checking for sndio audio support... " >&6; } 19199 have_sndio=no 19200 19201 if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then 19202 have_sndio=yes 19203 SNDIO_LIBS="-lsndio" 19204 fi 19205 19206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5 19207 $as_echo "$have_sndio" >&6; } 19208 19209 if test x$have_sndio = xyes; then 19210 # Check whether --enable-sndio-shared was given. 19211 if test "${enable_sndio_shared+set}" = set; then : 19212 enableval=$enable_sndio_shared; 19213 else 19214 enable_sndio_shared=yes 19215 fi 19216 19217 sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'` 19218 19219 if test x$have_loadso != xyes && \ 19220 test x$enable_sndio_shared = xyes; then 19221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5 19222 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;} 19223 fi 19224 if test x$have_loadso = xyes && \ 19225 test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then 19226 echo "-- dynamic libsndio -> $sndio_lib" 19227 19228 cat >>confdefs.h <<_ACEOF 19229 #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib" 19230 _ACEOF 19231 19232 SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)" 19233 else 19234 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS" 19235 SUMMARY_audio="${SUMMARY_audio} sndio" 19236 fi 19237 19238 19239 $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h 19240 19241 SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c" 19242 EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS" 19243 have_audio=yes 19244 fi 19245 fi 19246 } 19247 19248 CheckFusionSound() 19249 { 19250 # Check whether --enable-fusionsound was given. 19251 if test "${enable_fusionsound+set}" = set; then : 19252 enableval=$enable_fusionsound; 19253 else 19254 enable_fusionsound=no 19255 fi 19256 19257 if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then 19258 19259 pkg_failed=no 19260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FUSIONSOUND" >&5 19261 $as_echo_n "checking for FUSIONSOUND... " >&6; } 19262 19263 if test -n "$FUSIONSOUND_CFLAGS"; then 19264 pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS" 19265 elif test -n "$PKG_CONFIG"; then 19266 if test -n "$PKG_CONFIG" && \ 19267 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5 19268 ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5 19269 ac_status=$? 19270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19271 test $ac_status = 0; }; then 19272 pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null` 19273 else 19274 pkg_failed=yes 19275 fi 19276 else 19277 pkg_failed=untried 19278 fi 19279 if test -n "$FUSIONSOUND_LIBS"; then 19280 pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS" 19281 elif test -n "$PKG_CONFIG"; then 19282 if test -n "$PKG_CONFIG" && \ 19283 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5 19284 ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5 19285 ac_status=$? 19286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19287 test $ac_status = 0; }; then 19288 pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null` 19289 else 19290 pkg_failed=yes 19291 fi 19292 else 19293 pkg_failed=untried 19294 fi 19295 19296 19297 19298 if test $pkg_failed = yes; then 19299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19300 $as_echo "no" >&6; } 19301 19302 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19303 _pkg_short_errors_supported=yes 19304 else 19305 _pkg_short_errors_supported=no 19306 fi 19307 if test $_pkg_short_errors_supported = yes; then 19308 FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fusionsound >= 1.1.1" 2>&1` 19309 else 19310 FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "fusionsound >= 1.1.1" 2>&1` 19311 fi 19312 # Put the nasty error message in config.log where it belongs 19313 echo "$FUSIONSOUND_PKG_ERRORS" >&5 19314 19315 fusionsound=no 19316 elif test $pkg_failed = untried; then 19317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19318 $as_echo "no" >&6; } 19319 fusionsound=no 19320 else 19321 FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS 19322 FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS 19323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19324 $as_echo "yes" >&6; } 19325 fusionsound=yes 19326 fi 19327 19328 if test x$fusionsound = xyes; then 19329 19330 $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h 19331 19332 SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c" 19333 EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS" 19334 19335 # Check whether --enable-fusionsound-shared was given. 19336 if test "${enable_fusionsound_shared+set}" = set; then : 19337 enableval=$enable_fusionsound_shared; 19338 else 19339 enable_fusionsound_shared=yes 19340 fi 19341 19342 fusionsound_shared=no 19343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5 19344 $as_echo_n "checking for FusionSound dynamic loading support... " >&6; } 19345 if test x$have_loadso != xyes && \ 19346 test x$enable_fusionsound_shared = xyes; then 19347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5 19348 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;} 19349 fi 19350 if test x$have_loadso = xyes && \ 19351 test x$enable_fusionsound_shared = xyes; then 19352 19353 cat >>confdefs.h <<_ACEOF 19354 #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so" 19355 _ACEOF 19356 19357 fusionsound_shared=yes 19358 SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)" 19359 else 19360 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS" 19361 SUMMARY_audio="${SUMMARY_audio} fusionsound" 19362 fi 19363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5 19364 $as_echo "$fusionsound_shared" >&6; } 19365 19366 have_audio=yes 19367 fi 19368 fi 19369 } 19370 19371 CheckDiskAudio() 19372 { 19373 # Check whether --enable-diskaudio was given. 19374 if test "${enable_diskaudio+set}" = set; then : 19375 enableval=$enable_diskaudio; 19376 else 19377 enable_diskaudio=yes 19378 fi 19379 19380 if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then 19381 19382 $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h 19383 19384 SOURCES="$SOURCES $srcdir/src/audio/disk/*.c" 19385 SUMMARY_audio="${SUMMARY_audio} disk" 19386 fi 19387 } 19388 19389 CheckDummyAudio() 19390 { 19391 # Check whether --enable-dummyaudio was given. 19392 if test "${enable_dummyaudio+set}" = set; then : 19393 enableval=$enable_dummyaudio; 19394 else 19395 enable_dummyaudio=yes 19396 fi 19397 19398 if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then 19399 19400 $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h 19401 19402 SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c" 19403 SUMMARY_audio="${SUMMARY_audio} dummy" 19404 fi 19405 } 19406 19407 CheckLibSampleRate() 19408 { 19409 # Check whether --enable-libsamplerate was given. 19410 if test "${enable_libsamplerate+set}" = set; then : 19411 enableval=$enable_libsamplerate; 19412 else 19413 enable_libsamplerate=yes 19414 fi 19415 19416 if test x$enable_libsamplerate = xyes; then 19417 ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default" 19418 if test "x$ac_cv_header_samplerate_h" = xyes; then : 19419 have_samplerate_h_hdr=yes 19420 else 19421 have_samplerate_h_hdr=no 19422 fi 19423 19424 19425 if test x$have_samplerate_h_hdr = xyes; then 19426 19427 $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h 19428 19429 19430 # Check whether --enable-libsamplerate-shared was given. 19431 if test "${enable_libsamplerate_shared+set}" = set; then : 19432 enableval=$enable_libsamplerate_shared; 19433 else 19434 enable_libsamplerate_shared=yes 19435 fi 19436 19437 19438 samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'` 19439 19440 if test x$have_loadso != xyes && \ 19441 test x$enable_libsamplerate_shared = xyes; then 19442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5 19443 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;} 19444 fi 19445 if test x$have_loadso = xyes && \ 19446 test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then 19447 echo "-- dynamic libsamplerate -> $samplerate_lib" 19448 19449 cat >>confdefs.h <<_ACEOF 19450 #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib" 19451 _ACEOF 19452 19453 else 19454 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate" 19455 fi 19456 fi 19457 fi 19458 } 19459 19460 CheckARM() 19461 { 19462 # Check whether --enable-arm-simd was given. 19463 if test "${enable_arm_simd+set}" = set; then : 19464 enableval=$enable_arm_simd; enable_arm_simd=$enableval 19465 else 19466 enable_arm_simd=no 19467 fi 19468 19469 if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then 19470 save_CFLAGS="$CFLAGS" 19471 have_arm_simd=no 19472 CFLAGS="-x assembler-with-cpp $CFLAGS" 19473 19474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5 19475 $as_echo_n "checking for ARM SIMD... " >&6; } 19476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19477 /* end confdefs.h. */ 19478 19479 .text 19480 .arch armv6 19481 .object_arch armv4 19482 .arm 19483 .altmacro 19484 #ifndef __ARM_EABI__ 19485 #error EABI is required (to be sure that calling conventions are compatible) 19486 #endif 19487 pld [r0] 19488 uqadd8 r0, r0, r0 19489 19490 _ACEOF 19491 if ac_fn_c_try_compile "$LINENO"; then : 19492 have_arm_simd=yes 19493 fi 19494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5 19496 $as_echo "$have_arm_simd" >&6; } 19497 19498 CFLAGS="$save_CFLAGS" 19499 19500 if test x$have_arm_simd = xyes; then 19501 19502 $as_echo "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h 19503 19504 SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S" 19505 WARN_ABOUT_ARM_SIMD_ASM_MIT="yes" 19506 fi 19507 fi 19508 } 19509 19510 CheckNEON() 19511 { 19512 # Check whether --enable-arm-neon was given. 19513 if test "${enable_arm_neon+set}" = set; then : 19514 enableval=$enable_arm_neon; enable_arm_neon=$enableval 19515 else 19516 enable_arm_neon=no 19517 fi 19518 19519 if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then 19520 save_CFLAGS="$CFLAGS" 19521 have_arm_neon=no 19522 CFLAGS="-x assembler-with-cpp $CFLAGS" 19523 19524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5 19525 $as_echo_n "checking for ARM NEON... " >&6; } 19526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19527 /* end confdefs.h. */ 19528 19529 .text 19530 .fpu neon 19531 .arch armv7a 19532 .object_arch armv4 19533 .eabi_attribute 10, 0 19534 .arm 19535 .altmacro 19536 #ifndef __ARM_EABI__ 19537 #error EABI is required (to be sure that calling conventions are compatible) 19538 #endif 19539 pld [r0] 19540 vmovn.u16 d0, q0 19541 19542 _ACEOF 19543 if ac_fn_c_try_compile "$LINENO"; then : 19544 have_arm_neon=yes 19545 fi 19546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5 19548 $as_echo "$have_arm_neon" >&6; } 19549 CFLAGS="$save_CFLAGS" 19550 19551 if test x$have_arm_neon = xyes; then 19552 19553 $as_echo "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h 19554 19555 SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S" 19556 WARN_ABOUT_ARM_NEON_ASM_MIT="yes" 19557 fi 19558 fi 19559 } 19560 19561 CheckVisibilityHidden() 19562 { 19563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5 19564 $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; } 19565 have_gcc_fvisibility=no 19566 19567 visibility_CFLAGS="-fvisibility=hidden" 19568 save_CFLAGS="$CFLAGS" 19569 CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror" 19570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19571 /* end confdefs.h. */ 19572 19573 #if !defined(__GNUC__) || __GNUC__ < 4 19574 #error SDL only uses visibility attributes in GCC 4 or newer 19575 #endif 19576 19577 int 19578 main () 19579 { 19580 19581 19582 ; 19583 return 0; 19584 } 19585 _ACEOF 19586 if ac_fn_c_try_compile "$LINENO"; then : 19587 19588 have_gcc_fvisibility=yes 19589 19590 fi 19591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5 19593 $as_echo "$have_gcc_fvisibility" >&6; } 19594 CFLAGS="$save_CFLAGS" 19595 19596 if test x$have_gcc_fvisibility = xyes; then 19597 EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS" 19598 fi 19599 } 19600 19601 CheckNoStrictAliasing() 19602 { 19603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5 19604 $as_echo_n "checking for GCC -fno-strict-aliasing option... " >&6; } 19605 have_gcc_no_strict_aliasing=no 19606 19607 save_CFLAGS="$CFLAGS" 19608 CFLAGS="$save_CFLAGS -fno-strict-aliasing" 19609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19610 /* end confdefs.h. */ 19611 19612 int x = 0; 19613 19614 int 19615 main () 19616 { 19617 19618 19619 ; 19620 return 0; 19621 } 19622 _ACEOF 19623 if ac_fn_c_try_compile "$LINENO"; then : 19624 19625 have_gcc_no_strict_aliasing=yes 19626 19627 fi 19628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5 19630 $as_echo "$have_gcc_no_strict_aliasing" >&6; } 19631 CFLAGS="$save_CFLAGS" 19632 19633 if test x$have_gcc_no_strict_aliasing = xyes; then 19634 EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing" 19635 fi 19636 } 19637 19638 CheckStackBoundary() 19639 { 19640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5 19641 $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; } 19642 have_gcc_preferred_stack_boundary=no 19643 19644 save_CFLAGS="$CFLAGS" 19645 CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2" 19646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19647 /* end confdefs.h. */ 19648 19649 int x = 0; 19650 19651 int 19652 main () 19653 { 19654 19655 19656 ; 19657 return 0; 19658 } 19659 _ACEOF 19660 if ac_fn_c_try_compile "$LINENO"; then : 19661 19662 have_gcc_preferred_stack_boundary=yes 19663 19664 fi 19665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5 19667 $as_echo "$have_gcc_preferred_stack_boundary" >&6; } 19668 CFLAGS="$save_CFLAGS" 19669 19670 if test x$have_gcc_preferred_stack_boundary = xyes; then 19671 EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2" 19672 fi 19673 } 19674 19675 CheckDeclarationAfterStatement() 19676 { 19677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5 19678 $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; } 19679 have_gcc_declaration_after_statement=no 19680 19681 save_CFLAGS="$CFLAGS" 19682 CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement" 19683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19684 /* end confdefs.h. */ 19685 19686 int x = 0; 19687 19688 int 19689 main () 19690 { 19691 19692 19693 ; 19694 return 0; 19695 } 19696 _ACEOF 19697 if ac_fn_c_try_compile "$LINENO"; then : 19698 19699 have_gcc_declaration_after_statement=yes 19700 19701 fi 19702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5 19704 $as_echo "$have_gcc_declaration_after_statement" >&6; } 19705 CFLAGS="$save_CFLAGS" 19706 19707 if test x$have_gcc_declaration_after_statement = xyes; then 19708 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement" 19709 fi 19710 } 19711 19712 CheckWarnAll() 19713 { 19714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5 19715 $as_echo_n "checking for GCC -Wall option... " >&6; } 19716 have_gcc_Wall=no 19717 19718 save_CFLAGS="$CFLAGS" 19719 CFLAGS="$save_CFLAGS -Wall" 19720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19721 /* end confdefs.h. */ 19722 19723 int x = 0; 19724 19725 int 19726 main () 19727 { 19728 19729 19730 ; 19731 return 0; 19732 } 19733 _ACEOF 19734 if ac_fn_c_try_compile "$LINENO"; then : 19735 19736 have_gcc_Wall=yes 19737 19738 fi 19739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5 19741 $as_echo "$have_gcc_Wall" >&6; } 19742 CFLAGS="$save_CFLAGS" 19743 19744 if test x$have_gcc_Wall = xyes; then 19745 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall" 19746 19747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5 19748 $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; } 19749 need_gcc_Wno_multichar=no 19750 case "$host" in 19751 *-*-haiku*) 19752 need_gcc_Wno_multichar=yes 19753 ;; 19754 esac 19755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5 19756 $as_echo "$need_gcc_Wno_multichar" >&6; } 19757 if test x$need_gcc_Wno_multichar = xyes; then 19758 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar" 19759 fi 19760 fi 19761 } 19762 19763 CheckWayland() 19764 { 19765 # Check whether --enable-video-wayland was given. 19766 if test "${enable_video_wayland+set}" = set; then : 19767 enableval=$enable_video_wayland; 19768 else 19769 enable_video_wayland=yes 19770 fi 19771 19772 19773 # Check whether --enable-video-wayland-qt-touch was given. 19774 if test "${enable_video_wayland_qt_touch+set}" = set; then : 19775 enableval=$enable_video_wayland_qt_touch; 19776 else 19777 enable_video_wayland_qt_touch=yes 19778 fi 19779 19780 19781 if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then 19782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5 19783 $as_echo_n "checking for Wayland support... " >&6; } 19784 video_wayland=no 19785 if test x$video_opengl_egl = xyes && \ 19786 test x$video_opengles_v2 = xyes; then 19787 if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-egl wayland-cursor egl xkbcommon ; then 19788 WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon` 19789 WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon` 19790 WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner` 19791 video_wayland=yes 19792 fi 19793 fi 19794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5 19795 $as_echo "$video_wayland" >&6; } 19796 19797 if test x$video_wayland = xyes; then 19798 19799 $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h 19800 19801 if test x$enable_video_wayland_qt_touch = xyes; then 19802 19803 $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h 19804 19805 fi 19806 19807 WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c" 19808 SOURCES="$SOURCES $WAYLAND_SOURCES" 19809 EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)" 19810 # Check whether --enable-wayland-shared was given. 19811 if test "${enable_wayland_shared+set}" = set; then : 19812 enableval=$enable_wayland_shared; 19813 else 19814 enable_wayland_shared=maybe 19815 fi 19816 19817 19818 case "$host" in 19819 *) 19820 wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'` 19821 wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'` 19822 if test x$wayland_egl_lib = x; then 19823 wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'` 19824 fi 19825 wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'` 19826 xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'` 19827 ;; 19828 esac 19829 19830 if test x$enable_wayland_shared = xmaybe; then 19831 enable_wayland_shared=yes 19832 fi 19833 if test x$have_loadso != xyes && \ 19834 test x$enable_wayland_shared = xyes; then 19835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5 19836 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;} 19837 enable_wayland_shared=no 19838 fi 19839 if test x$have_loadso = xyes && \ 19840 test x$enable_wayland_shared = xyes && \ 19841 test x$wayland_client_lib != x && \ 19842 test x$wayland_egl_lib != x && \ 19843 test x$wayland_cursor_lib != x && \ 19844 test x$xkbcommon_lib != x; then 19845 echo "-- dynamic libwayland-client -> $wayland_client_lib" 19846 echo "-- dynamic libwayland-egl -> $wayland_egl_lib" 19847 echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib" 19848 echo "-- dynamic libxkbcommon -> $xkbcommon_lib" 19849 19850 cat >>confdefs.h <<_ACEOF 19851 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib" 19852 _ACEOF 19853 19854 19855 cat >>confdefs.h <<_ACEOF 19856 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib" 19857 _ACEOF 19858 19859 19860 cat >>confdefs.h <<_ACEOF 19861 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib" 19862 _ACEOF 19863 19864 19865 cat >>confdefs.h <<_ACEOF 19866 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib" 19867 _ACEOF 19868 19869 SUMMARY_video="${SUMMARY_video} wayland(dynamic)" 19870 else 19871 enable_wayland_shared=no 19872 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS" 19873 SUMMARY_video="${SUMMARY_video} wayland" 19874 fi 19875 have_video=yes 19876 fi 19877 fi 19878 } 19879 19880 CheckNativeClient() 19881 { 19882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19883 /* end confdefs.h. */ 19884 19885 #if !defined(__native_client__) 19886 #error "NO NACL" 19887 #endif 19888 19889 int 19890 main () 19891 { 19892 19893 19894 ; 19895 return 0; 19896 } 19897 _ACEOF 19898 if ac_fn_c_try_compile "$LINENO"; then : 19899 19900 19901 $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h 19902 19903 19904 $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h 19905 19906 19907 $as_echo "#define HAVE_POW 1" >>confdefs.h 19908 19909 19910 $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h 19911 19912 19913 $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h 19914 19915 19916 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h 19917 19918 19919 SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS" 19920 19921 SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c" 19922 SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c" 19923 SUMMARY_audio="${SUMMARY_audio} nacl" 19924 SOURCES="$SOURCES $srcdir/src/video/nacl/*.c" 19925 SUMMARY_video="${SUMMARY_video} nacl opengles2" 19926 19927 fi 19928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19929 } 19930 19931 CheckRPI() 19932 { 19933 # Check whether --enable-video-rpi was given. 19934 if test "${enable_video_rpi+set}" = set; then : 19935 enableval=$enable_video_rpi; 19936 else 19937 enable_video_rpi=yes 19938 fi 19939 19940 if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then 19941 19942 pkg_failed=no 19943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RPI" >&5 19944 $as_echo_n "checking for RPI... " >&6; } 19945 19946 if test -n "$RPI_CFLAGS"; then 19947 pkg_cv_RPI_CFLAGS="$RPI_CFLAGS" 19948 elif test -n "$PKG_CONFIG"; then 19949 if test -n "$PKG_CONFIG" && \ 19950 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5 19951 ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5 19952 ac_status=$? 19953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19954 test $ac_status = 0; }; then 19955 pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null` 19956 else 19957 pkg_failed=yes 19958 fi 19959 else 19960 pkg_failed=untried 19961 fi 19962 if test -n "$RPI_LIBS"; then 19963 pkg_cv_RPI_LIBS="$RPI_LIBS" 19964 elif test -n "$PKG_CONFIG"; then 19965 if test -n "$PKG_CONFIG" && \ 19966 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5 19967 ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5 19968 ac_status=$? 19969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19970 test $ac_status = 0; }; then 19971 pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null` 19972 else 19973 pkg_failed=yes 19974 fi 19975 else 19976 pkg_failed=untried 19977 fi 19978 19979 19980 19981 if test $pkg_failed = yes; then 19982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19983 $as_echo "no" >&6; } 19984 19985 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19986 _pkg_short_errors_supported=yes 19987 else 19988 _pkg_short_errors_supported=no 19989 fi 19990 if test $_pkg_short_errors_supported = yes; then 19991 RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "bcm_host brcmegl" 2>&1` 19992 else 19993 RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors "bcm_host brcmegl" 2>&1` 19994 fi 19995 # Put the nasty error message in config.log where it belongs 19996 echo "$RPI_PKG_ERRORS" >&5 19997 19998 video_rpi=no 19999 elif test $pkg_failed = untried; then 20000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20001 $as_echo "no" >&6; } 20002 video_rpi=no 20003 else 20004 RPI_CFLAGS=$pkg_cv_RPI_CFLAGS 20005 RPI_LIBS=$pkg_cv_RPI_LIBS 20006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20007 $as_echo "yes" >&6; } 20008 video_rpi=yes 20009 fi 20010 20011 if test x$video_rpi = xno; then 20012 if test x$ARCH = xnetbsd; then 20013 RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux" 20014 RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host" 20015 else 20016 RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux" 20017 RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host" 20018 fi 20019 fi 20020 20021 # Save the original compiler flags and libraries 20022 ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS" 20023 20024 # Add the Raspberry Pi compiler flags and libraries 20025 CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS" 20026 20027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi" >&5 20028 $as_echo_n "checking for Raspberry Pi... " >&6; } 20029 have_video_rpi=no 20030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20031 /* end confdefs.h. */ 20032 20033 #include <bcm_host.h> 20034 20035 int 20036 main () 20037 { 20038 20039 bcm_host_init(); 20040 20041 ; 20042 return 0; 20043 } 20044 _ACEOF 20045 if ac_fn_c_try_link "$LINENO"; then : 20046 20047 have_video_rpi=yes 20048 20049 fi 20050 rm -f core conftest.err conftest.$ac_objext \ 20051 conftest$ac_exeext conftest.$ac_ext 20052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5 20053 $as_echo "$have_video_rpi" >&6; } 20054 20055 # Restore the compiler flags and libraries 20056 CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs" 20057 20058 if test x$have_video_rpi = xyes; then 20059 CFLAGS="$CFLAGS $RPI_CFLAGS" 20060 SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS" 20061 EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS" 20062 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS" 20063 SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c" 20064 20065 $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h 20066 20067 SUMMARY_video="${SUMMARY_video} rpi" 20068 fi 20069 fi 20070 } 20071 20072 CheckX11() 20073 { 20074 # Check whether --enable-video-x11 was given. 20075 if test "${enable_video_x11+set}" = set; then : 20076 enableval=$enable_video_x11; 20077 else 20078 enable_video_x11=yes 20079 fi 20080 20081 if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then 20082 case "$host" in 20083 *-*-darwin*) 20084 # This isn't necessary for X11, but fixes GLX detection 20085 if test "x$x_includes" = xNONE && \ 20086 test "x$x_libraries" = xNONE && \ 20087 test -d /opt/X11/include && \ 20088 test -d /opt/X11/lib; then 20089 x_includes="/opt/X11/include" 20090 x_libraries="/opt/X11/lib" 20091 fi 20092 ;; 20093 esac 20094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 20095 $as_echo_n "checking for X... " >&6; } 20096 20097 20098 # Check whether --with-x was given. 20099 if test "${with_x+set}" = set; then : 20100 withval=$with_x; 20101 fi 20102 20103 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 20104 if test "x$with_x" = xno; then 20105 # The user explicitly disabled X. 20106 have_x=disabled 20107 else 20108 case $x_includes,$x_libraries in #( 20109 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 20110 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 20111 $as_echo_n "(cached) " >&6 20112 else 20113 # One or both of the vars are not set, and there is no cached value. 20114 ac_x_includes=no ac_x_libraries=no 20115 rm -f -r conftest.dir 20116 if mkdir conftest.dir; then 20117 cd conftest.dir 20118 cat >Imakefile <<'_ACEOF' 20119 incroot: 20120 @echo incroot='${INCROOT}' 20121 usrlibdir: 20122 @echo usrlibdir='${USRLIBDIR}' 20123 libdir: 20124 @echo libdir='${LIBDIR}' 20125 _ACEOF 20126 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 20127 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 20128 for ac_var in incroot usrlibdir libdir; do 20129 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 20130 done 20131 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 20132 for ac_extension in a so sl dylib la dll; do 20133 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 20134 test -f "$ac_im_libdir/libX11.$ac_extension"; then 20135 ac_im_usrlibdir=$ac_im_libdir; break 20136 fi 20137 done 20138 # Screen out bogus values from the imake configuration. They are 20139 # bogus both because they are the default anyway, and because 20140 # using them would break gcc on systems where it needs fixed includes. 20141 case $ac_im_incroot in 20142 /usr/include) ac_x_includes= ;; 20143 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 20144 esac 20145 case $ac_im_usrlibdir in 20146 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 20147 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 20148 esac 20149 fi 20150 cd .. 20151 rm -f -r conftest.dir 20152 fi 20153 20154 # Standard set of common directories for X headers. 20155 # Check X11 before X11Rn because it is often a symlink to the current release. 20156 ac_x_header_dirs=' 20157 /usr/X11/include 20158 /usr/X11R7/include 20159 /usr/X11R6/include 20160 /usr/X11R5/include 20161 /usr/X11R4/include 20162 20163 /usr/include/X11 20164 /usr/include/X11R7 20165 /usr/include/X11R6 20166 /usr/include/X11R5 20167 /usr/include/X11R4 20168 20169 /usr/local/X11/include 20170 /usr/local/X11R7/include 20171 /usr/local/X11R6/include 20172 /usr/local/X11R5/include 20173 /usr/local/X11R4/include 20174 20175 /usr/local/include/X11 20176 /usr/local/include/X11R7 20177 /usr/local/include/X11R6 20178 /usr/local/include/X11R5 20179 /usr/local/include/X11R4 20180 20181 /opt/X11/include 20182 20183 /usr/X386/include 20184 /usr/x386/include 20185 /usr/XFree86/include/X11 20186 20187 /usr/include 20188 /usr/local/include 20189 /usr/unsupported/include 20190 /usr/athena/include 20191 /usr/local/x11r5/include 20192 /usr/lpp/Xamples/include 20193 20194 /usr/openwin/include 20195 /usr/openwin/share/include' 20196 20197 if test "$ac_x_includes" = no; then 20198 # Guess where to find include files, by looking for Xlib.h. 20199 # First, try using that file with no special directory specified. 20200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20201 /* end confdefs.h. */ 20202 #include <X11/Xlib.h> 20203 _ACEOF 20204 if ac_fn_c_try_cpp "$LINENO"; then : 20205 # We can compile using X headers with no special include directory. 20206 ac_x_includes= 20207 else 20208 for ac_dir in $ac_x_header_dirs; do 20209 if test -r "$ac_dir/X11/Xlib.h"; then 20210 ac_x_includes=$ac_dir 20211 break 20212 fi 20213 done 20214 fi 20215 rm -f conftest.err conftest.i conftest.$ac_ext 20216 fi # $ac_x_includes = no 20217 20218 if test "$ac_x_libraries" = no; then 20219 # Check for the libraries. 20220 # See if we find them without any special options. 20221 # Don't add to $LIBS permanently. 20222 ac_save_LIBS=$LIBS 20223 LIBS="-lX11 $LIBS" 20224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20225 /* end confdefs.h. */ 20226 #include <X11/Xlib.h> 20227 int 20228 main () 20229 { 20230 XrmInitialize () 20231 ; 20232 return 0; 20233 } 20234 _ACEOF 20235 if ac_fn_c_try_link "$LINENO"; then : 20236 LIBS=$ac_save_LIBS 20237 # We can link X programs with no special library path. 20238 ac_x_libraries= 20239 else 20240 LIBS=$ac_save_LIBS 20241 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 20242 do 20243 # Don't even attempt the hair of trying to link an X program! 20244 for ac_extension in a so sl dylib la dll; do 20245 if test -r "$ac_dir/libX11.$ac_extension"; then 20246 ac_x_libraries=$ac_dir 20247 break 2 20248 fi 20249 done 20250 done 20251 fi 20252 rm -f core conftest.err conftest.$ac_objext \ 20253 conftest$ac_exeext conftest.$ac_ext 20254 fi # $ac_x_libraries = no 20255 20256 case $ac_x_includes,$ac_x_libraries in #( 20257 no,* | *,no | *\'*) 20258 # Didn't find X, or a directory has "'" in its name. 20259 ac_cv_have_x="have_x=no";; #( 20260 *) 20261 # Record where we found X for the cache. 20262 ac_cv_have_x="have_x=yes\ 20263 ac_x_includes='$ac_x_includes'\ 20264 ac_x_libraries='$ac_x_libraries'" 20265 esac 20266 fi 20267 ;; #( 20268 *) have_x=yes;; 20269 esac 20270 eval "$ac_cv_have_x" 20271 fi # $with_x != no 20272 20273 if test "$have_x" != yes; then 20274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 20275 $as_echo "$have_x" >&6; } 20276 no_x=yes 20277 else 20278 # If each of the values was on the command line, it overrides each guess. 20279 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 20280 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 20281 # Update the cache value to reflect the command line values. 20282 ac_cv_have_x="have_x=yes\ 20283 ac_x_includes='$x_includes'\ 20284 ac_x_libraries='$x_libraries'" 20285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 20286 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 20287 fi 20288 20289 if test "$no_x" = yes; then 20290 # Not all programs may use this symbol, but it does not hurt to define it. 20291 20292 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 20293 20294 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 20295 else 20296 if test -n "$x_includes"; then 20297 X_CFLAGS="$X_CFLAGS -I$x_includes" 20298 fi 20299 20300 # It would also be nice to do this for all -L options, not just this one. 20301 if test -n "$x_libraries"; then 20302 X_LIBS="$X_LIBS -L$x_libraries" 20303 # For Solaris; some versions of Sun CC require a space after -R and 20304 # others require no space. Words are not sufficient . . . . 20305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 20306 $as_echo_n "checking whether -R must be followed by a space... " >&6; } 20307 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 20308 ac_xsave_c_werror_flag=$ac_c_werror_flag 20309 ac_c_werror_flag=yes 20310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20311 /* end confdefs.h. */ 20312 20313 int 20314 main () 20315 { 20316 20317 ; 20318 return 0; 20319 } 20320 _ACEOF 20321 if ac_fn_c_try_link "$LINENO"; then : 20322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20323 $as_echo "no" >&6; } 20324 X_LIBS="$X_LIBS -R$x_libraries" 20325 else 20326 LIBS="$ac_xsave_LIBS -R $x_libraries" 20327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20328 /* end confdefs.h. */ 20329 20330 int 20331 main () 20332 { 20333 20334 ; 20335 return 0; 20336 } 20337 _ACEOF 20338 if ac_fn_c_try_link "$LINENO"; then : 20339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20340 $as_echo "yes" >&6; } 20341 X_LIBS="$X_LIBS -R $x_libraries" 20342 else 20343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 20344 $as_echo "neither works" >&6; } 20345 fi 20346 rm -f core conftest.err conftest.$ac_objext \ 20347 conftest$ac_exeext conftest.$ac_ext 20348 fi 20349 rm -f core conftest.err conftest.$ac_objext \ 20350 conftest$ac_exeext conftest.$ac_ext 20351 ac_c_werror_flag=$ac_xsave_c_werror_flag 20352 LIBS=$ac_xsave_LIBS 20353 fi 20354 20355 # Check for system-dependent libraries X programs must link with. 20356 # Do this before checking for the system-independent R6 libraries 20357 # (-lICE), since we may need -lsocket or whatever for X linking. 20358 20359 if test "$ISC" = yes; then 20360 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 20361 else 20362 # Martyn Johnson says this is needed for Ultrix, if the X 20363 # libraries were built with DECnet support. And Karl Berry says 20364 # the Alpha needs dnet_stub (dnet does not exist). 20365 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 20366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20367 /* end confdefs.h. */ 20368 20369 /* Override any GCC internal prototype to avoid an error. 20370 Use char because int might match the return type of a GCC 20371 builtin and then its argument prototype would still apply. */ 20372 #ifdef __cplusplus 20373 extern "C" 20374 #endif 20375 char XOpenDisplay (); 20376 int 20377 main () 20378 { 20379 return XOpenDisplay (); 20380 ; 20381 return 0; 20382 } 20383 _ACEOF 20384 if ac_fn_c_try_link "$LINENO"; then : 20385 20386 else 20387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 20388 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 20389 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 20390 $as_echo_n "(cached) " >&6 20391 else 20392 ac_check_lib_save_LIBS=$LIBS 20393 LIBS="-ldnet $LIBS" 20394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20395 /* end confdefs.h. */ 20396 20397 /* Override any GCC internal prototype to avoid an error. 20398 Use char because int might match the return type of a GCC 20399 builtin and then its argument prototype would still apply. */ 20400 #ifdef __cplusplus 20401 extern "C" 20402 #endif 20403 char dnet_ntoa (); 20404 int 20405 main () 20406 { 20407 return dnet_ntoa (); 20408 ; 20409 return 0; 20410 } 20411 _ACEOF 20412 if ac_fn_c_try_link "$LINENO"; then : 20413 ac_cv_lib_dnet_dnet_ntoa=yes 20414 else 20415 ac_cv_lib_dnet_dnet_ntoa=no 20416 fi 20417 rm -f core conftest.err conftest.$ac_objext \ 20418 conftest$ac_exeext conftest.$ac_ext 20419 LIBS=$ac_check_lib_save_LIBS 20420 fi 20421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 20422 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 20423 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 20424 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 20425 fi 20426 20427 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 20428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 20429 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 20430 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 20431 $as_echo_n "(cached) " >&6 20432 else 20433 ac_check_lib_save_LIBS=$LIBS 20434 LIBS="-ldnet_stub $LIBS" 20435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20436 /* end confdefs.h. */ 20437 20438 /* Override any GCC internal prototype to avoid an error. 20439 Use char because int might match the return type of a GCC 20440 builtin and then its argument prototype would still apply. */ 20441 #ifdef __cplusplus 20442 extern "C" 20443 #endif 20444 char dnet_ntoa (); 20445 int 20446 main () 20447 { 20448 return dnet_ntoa (); 20449 ; 20450 return 0; 20451 } 20452 _ACEOF 20453 if ac_fn_c_try_link "$LINENO"; then : 20454 ac_cv_lib_dnet_stub_dnet_ntoa=yes 20455 else 20456 ac_cv_lib_dnet_stub_dnet_ntoa=no 20457 fi 20458 rm -f core conftest.err conftest.$ac_objext \ 20459 conftest$ac_exeext conftest.$ac_ext 20460 LIBS=$ac_check_lib_save_LIBS 20461 fi 20462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 20463 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 20464 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 20465 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 20466 fi 20467 20468 fi 20469 fi 20470 rm -f core conftest.err conftest.$ac_objext \ 20471 conftest$ac_exeext conftest.$ac_ext 20472 LIBS="$ac_xsave_LIBS" 20473 20474 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 20475 # to get the SysV transport functions. 20476 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 20477 # needs -lnsl. 20478 # The nsl library prevents programs from opening the X display 20479 # on Irix 5.2, according to T.E. Dickey. 20480 # The functions gethostbyname, getservbyname, and inet_addr are 20481 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 20482 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 20483 if test "x$ac_cv_func_gethostbyname" = xyes; then : 20484 20485 fi 20486 20487 if test $ac_cv_func_gethostbyname = no; then 20488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 20489 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 20490 if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 20491 $as_echo_n "(cached) " >&6 20492 else 20493 ac_check_lib_save_LIBS=$LIBS 20494 LIBS="-lnsl $LIBS" 20495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20496 /* end confdefs.h. */ 20497 20498 /* Override any GCC internal prototype to avoid an error. 20499 Use char because int might match the return type of a GCC 20500 builtin and then its argument prototype would still apply. */ 20501 #ifdef __cplusplus 20502 extern "C" 20503 #endif 20504 char gethostbyname (); 20505 int 20506 main () 20507 { 20508 return gethostbyname (); 20509 ; 20510 return 0; 20511 } 20512 _ACEOF 20513 if ac_fn_c_try_link "$LINENO"; then : 20514 ac_cv_lib_nsl_gethostbyname=yes 20515 else 20516 ac_cv_lib_nsl_gethostbyname=no 20517 fi 20518 rm -f core conftest.err conftest.$ac_objext \ 20519 conftest$ac_exeext conftest.$ac_ext 20520 LIBS=$ac_check_lib_save_LIBS 20521 fi 20522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 20523 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 20524 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 20525 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 20526 fi 20527 20528 if test $ac_cv_lib_nsl_gethostbyname = no; then 20529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 20530 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 20531 if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 20532 $as_echo_n "(cached) " >&6 20533 else 20534 ac_check_lib_save_LIBS=$LIBS 20535 LIBS="-lbsd $LIBS" 20536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20537 /* end confdefs.h. */ 20538 20539 /* Override any GCC internal prototype to avoid an error. 20540 Use char because int might match the return type of a GCC 20541 builtin and then its argument prototype would still apply. */ 20542 #ifdef __cplusplus 20543 extern "C" 20544 #endif 20545 char gethostbyname (); 20546 int 20547 main () 20548 { 20549 return gethostbyname (); 20550 ; 20551 return 0; 20552 } 20553 _ACEOF 20554 if ac_fn_c_try_link "$LINENO"; then : 20555 ac_cv_lib_bsd_gethostbyname=yes 20556 else 20557 ac_cv_lib_bsd_gethostbyname=no 20558 fi 20559 rm -f core conftest.err conftest.$ac_objext \ 20560 conftest$ac_exeext conftest.$ac_ext 20561 LIBS=$ac_check_lib_save_LIBS 20562 fi 20563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 20564 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 20565 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 20566 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 20567 fi 20568 20569 fi 20570 fi 20571 20572 # lieder@skyler.mavd.honeywell.com says without -lsocket, 20573 # socket/setsockopt and other routines are undefined under SCO ODT 20574 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 20575 # on later versions), says Simon Leinen: it contains gethostby* 20576 # variants that don't use the name server (or something). -lsocket 20577 # must be given before -lnsl if both are needed. We assume that 20578 # if connect needs -lnsl, so does gethostbyname. 20579 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 20580 if test "x$ac_cv_func_connect" = xyes; then : 20581 20582 fi 20583 20584 if test $ac_cv_func_connect = no; then 20585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 20586 $as_echo_n "checking for connect in -lsocket... " >&6; } 20587 if ${ac_cv_lib_socket_connect+:} false; then : 20588 $as_echo_n "(cached) " >&6 20589 else 20590 ac_check_lib_save_LIBS=$LIBS 20591 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 20592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20593 /* end confdefs.h. */ 20594 20595 /* Override any GCC internal prototype to avoid an error. 20596 Use char because int might match the return type of a GCC 20597 builtin and then its argument prototype would still apply. */ 20598 #ifdef __cplusplus 20599 extern "C" 20600 #endif 20601 char connect (); 20602 int 20603 main () 20604 { 20605 return connect (); 20606 ; 20607 return 0; 20608 } 20609 _ACEOF 20610 if ac_fn_c_try_link "$LINENO"; then : 20611 ac_cv_lib_socket_connect=yes 20612 else 20613 ac_cv_lib_socket_connect=no 20614 fi 20615 rm -f core conftest.err conftest.$ac_objext \ 20616 conftest$ac_exeext conftest.$ac_ext 20617 LIBS=$ac_check_lib_save_LIBS 20618 fi 20619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 20620 $as_echo "$ac_cv_lib_socket_connect" >&6; } 20621 if test "x$ac_cv_lib_socket_connect" = xyes; then : 20622 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 20623 fi 20624 20625 fi 20626 20627 # Guillermo Gomez says -lposix is necessary on A/UX. 20628 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 20629 if test "x$ac_cv_func_remove" = xyes; then : 20630 20631 fi 20632 20633 if test $ac_cv_func_remove = no; then 20634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 20635 $as_echo_n "checking for remove in -lposix... " >&6; } 20636 if ${ac_cv_lib_posix_remove+:} false; then : 20637 $as_echo_n "(cached) " >&6 20638 else 20639 ac_check_lib_save_LIBS=$LIBS 20640 LIBS="-lposix $LIBS" 20641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20642 /* end confdefs.h. */ 20643 20644 /* Override any GCC internal prototype to avoid an error. 20645 Use char because int might match the return type of a GCC 20646 builtin and then its argument prototype would still apply. */ 20647 #ifdef __cplusplus 20648 extern "C" 20649 #endif 20650 char remove (); 20651 int 20652 main () 20653 { 20654 return remove (); 20655 ; 20656 return 0; 20657 } 20658 _ACEOF 20659 if ac_fn_c_try_link "$LINENO"; then : 20660 ac_cv_lib_posix_remove=yes 20661 else 20662 ac_cv_lib_posix_remove=no 20663 fi 20664 rm -f core conftest.err conftest.$ac_objext \ 20665 conftest$ac_exeext conftest.$ac_ext 20666 LIBS=$ac_check_lib_save_LIBS 20667 fi 20668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 20669 $as_echo "$ac_cv_lib_posix_remove" >&6; } 20670 if test "x$ac_cv_lib_posix_remove" = xyes; then : 20671 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 20672 fi 20673 20674 fi 20675 20676 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 20677 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 20678 if test "x$ac_cv_func_shmat" = xyes; then : 20679 20680 fi 20681 20682 if test $ac_cv_func_shmat = no; then 20683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 20684 $as_echo_n "checking for shmat in -lipc... " >&6; } 20685 if ${ac_cv_lib_ipc_shmat+:} false; then : 20686 $as_echo_n "(cached) " >&6 20687 else 20688 ac_check_lib_save_LIBS=$LIBS 20689 LIBS="-lipc $LIBS" 20690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20691 /* end confdefs.h. */ 20692 20693 /* Override any GCC internal prototype to avoid an error. 20694 Use char because int might match the return type of a GCC 20695 builtin and then its argument prototype would still apply. */ 20696 #ifdef __cplusplus 20697 extern "C" 20698 #endif 20699 char shmat (); 20700 int 20701 main () 20702 { 20703 return shmat (); 20704 ; 20705 return 0; 20706 } 20707 _ACEOF 20708 if ac_fn_c_try_link "$LINENO"; then : 20709 ac_cv_lib_ipc_shmat=yes 20710 else 20711 ac_cv_lib_ipc_shmat=no 20712 fi 20713 rm -f core conftest.err conftest.$ac_objext \ 20714 conftest$ac_exeext conftest.$ac_ext 20715 LIBS=$ac_check_lib_save_LIBS 20716 fi 20717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 20718 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } 20719 if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 20720 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 20721 fi 20722 20723 fi 20724 fi 20725 20726 # Check for libraries that X11R6 Xt/Xaw programs need. 20727 ac_save_LDFLAGS=$LDFLAGS 20728 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 20729 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 20730 # check for ICE first), but we must link in the order -lSM -lICE or 20731 # we get undefined symbols. So assume we have SM if we have ICE. 20732 # These have to be linked with before -lX11, unlike the other 20733 # libraries we check for below, so use a different variable. 20734 # John Interrante, Karl Berry 20735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 20736 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 20737 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 20738 $as_echo_n "(cached) " >&6 20739 else 20740 ac_check_lib_save_LIBS=$LIBS 20741 LIBS="-lICE $X_EXTRA_LIBS $LIBS" 20742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20743 /* end confdefs.h. */ 20744 20745 /* Override any GCC internal prototype to avoid an error. 20746 Use char because int might match the return type of a GCC 20747 builtin and then its argument prototype would still apply. */ 20748 #ifdef __cplusplus 20749 extern "C" 20750 #endif 20751 char IceConnectionNumber (); 20752 int 20753 main () 20754 { 20755 return IceConnectionNumber (); 20756 ; 20757 return 0; 20758 } 20759 _ACEOF 20760 if ac_fn_c_try_link "$LINENO"; then : 20761 ac_cv_lib_ICE_IceConnectionNumber=yes 20762 else 20763 ac_cv_lib_ICE_IceConnectionNumber=no 20764 fi 20765 rm -f core conftest.err conftest.$ac_objext \ 20766 conftest$ac_exeext conftest.$ac_ext 20767 LIBS=$ac_check_lib_save_LIBS 20768 fi 20769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 20770 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 20771 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 20772 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 20773 fi 20774 20775 LDFLAGS=$ac_save_LDFLAGS 20776 20777 fi 20778 20779 if test x$have_x = xyes; then 20780 # Check whether --enable-x11-shared was given. 20781 if test "${enable_x11_shared+set}" = set; then : 20782 enableval=$enable_x11_shared; 20783 else 20784 enable_x11_shared=maybe 20785 fi 20786 20787 20788 case "$host" in 20789 *-*-darwin*) 20790 # Apple now puts this in /opt/X11 20791 x11_lib='/opt/X11/lib/libX11.6.dylib' 20792 x11ext_lib='/opt/X11/lib/libXext.6.dylib' 20793 xcursor_lib='/opt/X11/lib/libXcursor.1.dylib' 20794 xinerama_lib='/opt/X11/lib/libXinerama.1.dylib' 20795 xinput_lib='/opt/X11/lib/libXi.6.dylib' 20796 xrandr_lib='/opt/X11/lib/libXrandr.2.dylib' 20797 xrender_lib='/opt/X11/lib/libXrender.1.dylib' 20798 xss_lib='/opt/X11/lib/libXss.1.dylib' 20799 xvidmode_lib='/opt/X11/lib/libXxf86vm.1.dylib' 20800 ;; 20801 *-*-openbsd*) 20802 x11_lib='libX11.so' 20803 x11ext_lib='libXext.so' 20804 xcursor_lib='libXcursor.so' 20805 xinerama_lib='libXinerama.so' 20806 xinput_lib='libXi.so' 20807 xrandr_lib='libXrandr.so' 20808 xrender_lib='libXrender.so' 20809 xss_lib='libXss.so' 20810 xvidmode_lib='libXxf86vm.so' 20811 ;; 20812 *) 20813 x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'` 20814 x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'` 20815 xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'` 20816 xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'` 20817 xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'` 20818 xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'` 20819 xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'` 20820 xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'` 20821 xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'` 20822 ;; 20823 esac 20824 20825 if test x$ac_cv_func_shmat != xyes; then 20826 X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY" 20827 fi 20828 CFLAGS="$CFLAGS $X_CFLAGS" 20829 LDFLAGS="$LDFLAGS $X_LIBS" 20830 20831 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h> 20832 #include <X11/Xproto.h> 20833 20834 " 20835 if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then : 20836 have_xext_h_hdr=yes 20837 else 20838 have_xext_h_hdr=no 20839 fi 20840 20841 20842 if test x$have_xext_h_hdr != xyes; then 20843 as_fn_error $? " 20844 *** Missing Xext.h, maybe you need to install the libxext-dev package? 20845 " "$LINENO" 5 20846 fi 20847 20848 20849 $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h 20850 20851 SOURCES="$SOURCES $srcdir/src/video/x11/*.c" 20852 EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS" 20853 20854 # Needed so SDL applications can include SDL_syswm.h 20855 SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS" 20856 20857 if test x$enable_x11_shared = xmaybe; then 20858 enable_x11_shared=yes 20859 fi 20860 if test x$have_loadso != xyes && \ 20861 test x$enable_x11_shared = xyes; then 20862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5 20863 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;} 20864 enable_x11_shared=no 20865 fi 20866 if test x$have_loadso = xyes && \ 20867 test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then 20868 echo "-- dynamic libX11 -> $x11_lib" 20869 echo "-- dynamic libX11ext -> $x11ext_lib" 20870 20871 cat >>confdefs.h <<_ACEOF 20872 #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib" 20873 _ACEOF 20874 20875 20876 cat >>confdefs.h <<_ACEOF 20877 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib" 20878 _ACEOF 20879 20880 SUMMARY_video="${SUMMARY_video} x11(dynamic)" 20881 else 20882 enable_x11_shared=no 20883 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext" 20884 SUMMARY_video="${SUMMARY_video} x11" 20885 fi 20886 have_video=yes 20887 20888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5 20889 $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; } 20890 have_const_param_XextAddDisplay=no 20891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20892 /* end confdefs.h. */ 20893 20894 #include <X11/Xlib.h> 20895 #include <X11/Xproto.h> 20896 #include <X11/extensions/Xext.h> 20897 #include <X11/extensions/extutil.h> 20898 extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f); 20899 20900 int 20901 main () 20902 { 20903 20904 20905 ; 20906 return 0; 20907 } 20908 _ACEOF 20909 if ac_fn_c_try_compile "$LINENO"; then : 20910 20911 have_const_param_XextAddDisplay=yes 20912 20913 $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h 20914 20915 20916 fi 20917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5 20919 $as_echo "$have_const_param_XextAddDisplay" >&6; } 20920 20921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5 20922 $as_echo_n "checking for XGenericEvent... " >&6; } 20923 have_XGenericEvent=no 20924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20925 /* end confdefs.h. */ 20926 20927 #include <X11/Xlib.h> 20928 20929 int 20930 main () 20931 { 20932 20933 Display *display; 20934 XEvent event; 20935 XGenericEventCookie *cookie = &event.xcookie; 20936 XNextEvent(display, &event); 20937 XGetEventData(display, cookie); 20938 XFreeEventData(display, cookie); 20939 20940 ; 20941 return 0; 20942 } 20943 _ACEOF 20944 if ac_fn_c_try_compile "$LINENO"; then : 20945 20946 have_XGenericEvent=yes 20947 20948 $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h 20949 20950 20951 fi 20952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5 20954 $as_echo "$have_XGenericEvent" >&6; } 20955 20956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5 20957 $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; } 20958 if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then : 20959 $as_echo_n "(cached) " >&6 20960 else 20961 ac_check_lib_save_LIBS=$LIBS 20962 LIBS="-lX11 $LIBS" 20963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20964 /* end confdefs.h. */ 20965 20966 /* Override any GCC internal prototype to avoid an error. 20967 Use char because int might match the return type of a GCC 20968 builtin and then its argument prototype would still apply. */ 20969 #ifdef __cplusplus 20970 extern "C" 20971 #endif 20972 char XkbKeycodeToKeysym (); 20973 int 20974 main () 20975 { 20976 return XkbKeycodeToKeysym (); 20977 ; 20978 return 0; 20979 } 20980 _ACEOF 20981 if ac_fn_c_try_link "$LINENO"; then : 20982 ac_cv_lib_X11_XkbKeycodeToKeysym=yes 20983 else 20984 ac_cv_lib_X11_XkbKeycodeToKeysym=no 20985 fi 20986 rm -f core conftest.err conftest.$ac_objext \ 20987 conftest$ac_exeext conftest.$ac_ext 20988 LIBS=$ac_check_lib_save_LIBS 20989 fi 20990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5 20991 $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; } 20992 if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then : 20993 20994 $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h 20995 20996 fi 20997 20998 20999 # Check whether --enable-video-x11-xcursor was given. 21000 if test "${enable_video_x11_xcursor+set}" = set; then : 21001 enableval=$enable_video_x11_xcursor; 21002 else 21003 enable_video_x11_xcursor=yes 21004 fi 21005 21006 if test x$enable_video_x11_xcursor = xyes; then 21007 definitely_enable_video_x11_xcursor=no 21008 ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h> 21009 21010 " 21011 if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then : 21012 have_xcursor_h_hdr=yes 21013 else 21014 have_xcursor_h_hdr=no 21015 fi 21016 21017 21018 if test x$have_xcursor_h_hdr = xyes; then 21019 if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then 21020 echo "-- dynamic libXcursor -> $xcursor_lib" 21021 21022 cat >>confdefs.h <<_ACEOF 21023 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib" 21024 _ACEOF 21025 21026 definitely_enable_video_x11_xcursor=yes 21027 else 21028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5 21029 $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; } 21030 if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then : 21031 $as_echo_n "(cached) " >&6 21032 else 21033 ac_check_lib_save_LIBS=$LIBS 21034 LIBS="-lXcursor $LIBS" 21035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21036 /* end confdefs.h. */ 21037 21038 /* Override any GCC internal prototype to avoid an error. 21039 Use char because int might match the return type of a GCC 21040 builtin and then its argument prototype would still apply. */ 21041 #ifdef __cplusplus 21042 extern "C" 21043 #endif 21044 char XcursorImageCreate (); 21045 int 21046 main () 21047 { 21048 return XcursorImageCreate (); 21049 ; 21050 return 0; 21051 } 21052 _ACEOF 21053 if ac_fn_c_try_link "$LINENO"; then : 21054 ac_cv_lib_Xcursor_XcursorImageCreate=yes 21055 else 21056 ac_cv_lib_Xcursor_XcursorImageCreate=no 21057 fi 21058 rm -f core conftest.err conftest.$ac_objext \ 21059 conftest$ac_exeext conftest.$ac_ext 21060 LIBS=$ac_check_lib_save_LIBS 21061 fi 21062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5 21063 $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; } 21064 if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then : 21065 have_xcursor_lib=yes 21066 fi 21067 21068 if test x$have_xcursor_lib = xyes ; then 21069 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor" 21070 definitely_enable_video_x11_xcursor=yes 21071 fi 21072 fi 21073 fi 21074 fi 21075 if test x$definitely_enable_video_x11_xcursor = xyes; then 21076 21077 $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h 21078 21079 SUMMARY_video_x11="${SUMMARY_video_x11} xcursor" 21080 fi 21081 # Check whether --enable-video-x11-xdbe was given. 21082 if test "${enable_video_x11_xdbe+set}" = set; then : 21083 enableval=$enable_video_x11_xdbe; 21084 else 21085 enable_video_x11_xdbe=yes 21086 fi 21087 21088 if test x$enable_video_x11_xdbe = xyes; then 21089 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h> 21090 21091 " 21092 if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then : 21093 have_dbe_h_hdr=yes 21094 else 21095 have_dbe_h_hdr=no 21096 fi 21097 21098 21099 if test x$have_dbe_h_hdr = xyes; then 21100 21101 $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h 21102 21103 SUMMARY_video_x11="${SUMMARY_video_x11} xdbe" 21104 fi 21105 fi 21106 # Check whether --enable-video-x11-xinerama was given. 21107 if test "${enable_video_x11_xinerama+set}" = set; then : 21108 enableval=$enable_video_x11_xinerama; 21109 else 21110 enable_video_x11_xinerama=yes 21111 fi 21112 21113 if test x$enable_video_x11_xinerama = xyes; then 21114 definitely_enable_video_x11_xinerama=no 21115 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h> 21116 21117 " 21118 if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then : 21119 have_xinerama_h_hdr=yes 21120 else 21121 have_xinerama_h_hdr=no 21122 fi 21123 21124 21125 if test x$have_xinerama_h_hdr = xyes; then 21126 if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then 21127 echo "-- dynamic libXinerama -> $xinerama_lib" 21128 21129 cat >>confdefs.h <<_ACEOF 21130 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib" 21131 _ACEOF 21132 21133 definitely_enable_video_x11_xinerama=yes 21134 else 21135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5 21136 $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; } 21137 if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then : 21138 $as_echo_n "(cached) " >&6 21139 else 21140 ac_check_lib_save_LIBS=$LIBS 21141 LIBS="-lXinerama $LIBS" 21142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21143 /* end confdefs.h. */ 21144 21145 /* Override any GCC internal prototype to avoid an error. 21146 Use char because int might match the return type of a GCC 21147 builtin and then its argument prototype would still apply. */ 21148 #ifdef __cplusplus 21149 extern "C" 21150 #endif 21151 char XineramaQueryExtension (); 21152 int 21153 main () 21154 { 21155 return XineramaQueryExtension (); 21156 ; 21157 return 0; 21158 } 21159 _ACEOF 21160 if ac_fn_c_try_link "$LINENO"; then : 21161 ac_cv_lib_Xinerama_XineramaQueryExtension=yes 21162 else 21163 ac_cv_lib_Xinerama_XineramaQueryExtension=no 21164 fi 21165 rm -f core conftest.err conftest.$ac_objext \ 21166 conftest$ac_exeext conftest.$ac_ext 21167 LIBS=$ac_check_lib_save_LIBS 21168 fi 21169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5 21170 $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; } 21171 if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then : 21172 have_xinerama_lib=yes 21173 fi 21174 21175 if test x$have_xinerama_lib = xyes ; then 21176 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama" 21177 definitely_enable_video_x11_xinerama=yes 21178 fi 21179 fi 21180 fi 21181 fi 21182 if test x$definitely_enable_video_x11_xinerama = xyes; then 21183 21184 $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h 21185 21186 SUMMARY_video_x11="${SUMMARY_video_x11} xinerama" 21187 fi 21188 # Check whether --enable-video-x11-xinput was given. 21189 if test "${enable_video_x11_xinput+set}" = set; then : 21190 enableval=$enable_video_x11_xinput; 21191 else 21192 enable_video_x11_xinput=yes 21193 fi 21194 21195 if test x$enable_video_x11_xinput = xyes; then 21196 definitely_enable_video_x11_xinput=no 21197 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h> 21198 21199 " 21200 if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then : 21201 have_xinput_h_hdr=yes 21202 else 21203 have_xinput_h_hdr=no 21204 fi 21205 21206 21207 if test x$have_xinput_h_hdr = xyes; then 21208 if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then 21209 echo "-- dynamic libXi -> $xinput_lib" 21210 21211 cat >>confdefs.h <<_ACEOF 21212 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib" 21213 _ACEOF 21214 21215 definitely_enable_video_x11_xinput=yes 21216 else 21217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5 21218 $as_echo_n "checking for XOpenDevice in -lXi... " >&6; } 21219 if ${ac_cv_lib_Xi_XOpenDevice+:} false; then : 21220 $as_echo_n "(cached) " >&6 21221 else 21222 ac_check_lib_save_LIBS=$LIBS 21223 LIBS="-lXi $LIBS" 21224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21225 /* end confdefs.h. */ 21226 21227 /* Override any GCC internal prototype to avoid an error. 21228 Use char because int might match the return type of a GCC 21229 builtin and then its argument prototype would still apply. */ 21230 #ifdef __cplusplus 21231 extern "C" 21232 #endif 21233 char XOpenDevice (); 21234 int 21235 main () 21236 { 21237 return XOpenDevice (); 21238 ; 21239 return 0; 21240 } 21241 _ACEOF 21242 if ac_fn_c_try_link "$LINENO"; then : 21243 ac_cv_lib_Xi_XOpenDevice=yes 21244 else 21245 ac_cv_lib_Xi_XOpenDevice=no 21246 fi 21247 rm -f core conftest.err conftest.$ac_objext \ 21248 conftest$ac_exeext conftest.$ac_ext 21249 LIBS=$ac_check_lib_save_LIBS 21250 fi 21251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5 21252 $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; } 21253 if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then : 21254 have_xinput_lib=yes 21255 fi 21256 21257 if test x$have_xinput_lib = xyes ; then 21258 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi" 21259 definitely_enable_video_x11_xinput=yes 21260 fi 21261 fi 21262 fi 21263 fi 21264 if test x$definitely_enable_video_x11_xinput = xyes; then 21265 SUMMARY_video_x11="${SUMMARY_video_x11} xinput2" 21266 21267 $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h 21268 21269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5 21270 $as_echo_n "checking for xinput2 multitouch... " >&6; } 21271 have_xinput2_multitouch=no 21272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21273 /* end confdefs.h. */ 21274 21275 #include <X11/Xlib.h> 21276 #include <X11/Xproto.h> 21277 #include <X11/extensions/XInput2.h> 21278 21279 int 21280 main () 21281 { 21282 21283 int event_type = XI_TouchBegin; 21284 XITouchClassInfo *t; 21285 21286 ; 21287 return 0; 21288 } 21289 _ACEOF 21290 if ac_fn_c_try_compile "$LINENO"; then : 21291 21292 have_xinput2_multitouch=yes 21293 21294 $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h 21295 21296 SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch" 21297 21298 fi 21299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5 21301 $as_echo "$have_xinput2_multitouch" >&6; } 21302 fi 21303 # Check whether --enable-video-x11-xrandr was given. 21304 if test "${enable_video_x11_xrandr+set}" = set; then : 21305 enableval=$enable_video_x11_xrandr; 21306 else 21307 enable_video_x11_xrandr=yes 21308 fi 21309 21310 if test x$enable_video_x11_xrandr = xyes; then 21311 definitely_enable_video_x11_xrandr=no 21312 have_xrandr_h_hdr=no 21313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21314 /* end confdefs.h. */ 21315 21316 #include <X11/Xlib.h> 21317 #include <X11/extensions/Xrandr.h> 21318 21319 int 21320 main () 21321 { 21322 21323 XRRScreenResources *res = NULL; 21324 21325 ; 21326 return 0; 21327 } 21328 _ACEOF 21329 if ac_fn_c_try_compile "$LINENO"; then : 21330 21331 have_xrandr_h_hdr=yes 21332 21333 fi 21334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21335 if test x$have_xrandr_h_hdr = xyes; then 21336 if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then 21337 echo "-- dynamic libXrandr -> $xrandr_lib" 21338 21339 cat >>confdefs.h <<_ACEOF 21340 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib" 21341 _ACEOF 21342 21343 definitely_enable_video_x11_xrandr=yes 21344 else 21345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5 21346 $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; } 21347 if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then : 21348 $as_echo_n "(cached) " >&6 21349 else 21350 ac_check_lib_save_LIBS=$LIBS 21351 LIBS="-lXrandr $LIBS" 21352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21353 /* end confdefs.h. */ 21354 21355 /* Override any GCC internal prototype to avoid an error. 21356 Use char because int might match the return type of a GCC 21357 builtin and then its argument prototype would still apply. */ 21358 #ifdef __cplusplus 21359 extern "C" 21360 #endif 21361 char XRRQueryExtension (); 21362 int 21363 main () 21364 { 21365 return XRRQueryExtension (); 21366 ; 21367 return 0; 21368 } 21369 _ACEOF 21370 if ac_fn_c_try_link "$LINENO"; then : 21371 ac_cv_lib_Xrandr_XRRQueryExtension=yes 21372 else 21373 ac_cv_lib_Xrandr_XRRQueryExtension=no 21374 fi 21375 rm -f core conftest.err conftest.$ac_objext \ 21376 conftest$ac_exeext conftest.$ac_ext 21377 LIBS=$ac_check_lib_save_LIBS 21378 fi 21379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5 21380 $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; } 21381 if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then : 21382 have_xrandr_lib=yes 21383 fi 21384 21385 if test x$have_xrandr_lib = xyes ; then 21386 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr" 21387 definitely_enable_video_x11_xrandr=yes 21388 fi 21389 fi 21390 fi 21391 fi 21392 if test x$definitely_enable_video_x11_xrandr = xyes; then 21393 21394 $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h 21395 21396 SUMMARY_video_x11="${SUMMARY_video_x11} xrandr" 21397 fi 21398 # Check whether --enable-video-x11-scrnsaver was given. 21399 if test "${enable_video_x11_scrnsaver+set}" = set; then : 21400 enableval=$enable_video_x11_scrnsaver; 21401 else 21402 enable_video_x11_scrnsaver=yes 21403 fi 21404 21405 if test x$enable_video_x11_scrnsaver = xyes; then 21406 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h> 21407 21408 " 21409 if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then : 21410 have_scrnsaver_h_hdr=yes 21411 else 21412 have_scrnsaver_h_hdr=no 21413 fi 21414 21415 21416 if test x$have_scrnsaver_h_hdr = xyes; then 21417 if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then 21418 echo "-- dynamic libXss -> $xss_lib" 21419 21420 cat >>confdefs.h <<_ACEOF 21421 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib" 21422 _ACEOF 21423 21424 definitely_enable_video_x11_scrnsaver=yes 21425 else 21426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5 21427 $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; } 21428 if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then : 21429 $as_echo_n "(cached) " >&6 21430 else 21431 ac_check_lib_save_LIBS=$LIBS 21432 LIBS="-lXss $LIBS" 21433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21434 /* end confdefs.h. */ 21435 21436 /* Override any GCC internal prototype to avoid an error. 21437 Use char because int might match the return type of a GCC 21438 builtin and then its argument prototype would still apply. */ 21439 #ifdef __cplusplus 21440 extern "C" 21441 #endif 21442 char XScreenSaverSuspend (); 21443 int 21444 main () 21445 { 21446 return XScreenSaverSuspend (); 21447 ; 21448 return 0; 21449 } 21450 _ACEOF 21451 if ac_fn_c_try_link "$LINENO"; then : 21452 ac_cv_lib_Xss_XScreenSaverSuspend=yes 21453 else 21454 ac_cv_lib_Xss_XScreenSaverSuspend=no 21455 fi 21456 rm -f core conftest.err conftest.$ac_objext \ 21457 conftest$ac_exeext conftest.$ac_ext 21458 LIBS=$ac_check_lib_save_LIBS 21459 fi 21460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5 21461 $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; } 21462 if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then : 21463 have_xss_lib=yes 21464 fi 21465 21466 if test x$have_xss_lib = xyes ; then 21467 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss" 21468 definitely_enable_video_x11_scrnsaver=yes 21469 fi 21470 fi 21471 fi 21472 fi 21473 if test x$definitely_enable_video_x11_scrnsaver = xyes; then 21474 21475 $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h 21476 21477 SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver" 21478 fi 21479 # Check whether --enable-video-x11-xshape was given. 21480 if test "${enable_video_x11_xshape+set}" = set; then : 21481 enableval=$enable_video_x11_xshape; 21482 else 21483 enable_video_x11_xshape=yes 21484 fi 21485 21486 if test x$enable_video_x11_xshape = xyes; then 21487 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h> 21488 21489 " 21490 if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then : 21491 have_shape_h_hdr=yes 21492 else 21493 have_shape_h_hdr=no 21494 fi 21495 21496 21497 if test x$have_shape_h_hdr = xyes; then 21498 21499 $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h 21500 21501 SUMMARY_video_x11="${SUMMARY_video_x11} xshape" 21502 fi 21503 fi 21504 # Check whether --enable-video-x11-vm was given. 21505 if test "${enable_video_x11_vm+set}" = set; then : 21506 enableval=$enable_video_x11_vm; 21507 else 21508 enable_video_x11_vm=yes 21509 fi 21510 21511 if test x$enable_video_x11_vm = xyes; then 21512 definitely_enable_video_x11_vm=no 21513 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h> 21514 21515 " 21516 if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then : 21517 have_vm_h_hdr=yes 21518 else 21519 have_vm_h_hdr=no 21520 fi 21521 21522 21523 if test x$have_vm_h_hdr = xyes; then 21524 if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then 21525 echo "-- dynamic libXxf86vm -> $xvidmode_lib" 21526 21527 cat >>confdefs.h <<_ACEOF 21528 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib" 21529 _ACEOF 21530 21531 definitely_enable_video_x11_vm=yes 21532 else 21533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5 21534 $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; } 21535 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then : 21536 $as_echo_n "(cached) " >&6 21537 else 21538 ac_check_lib_save_LIBS=$LIBS 21539 LIBS="-lXxf86vm $LIBS" 21540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21541 /* end confdefs.h. */ 21542 21543 /* Override any GCC internal prototype to avoid an error. 21544 Use char because int might match the return type of a GCC 21545 builtin and then its argument prototype would still apply. */ 21546 #ifdef __cplusplus 21547 extern "C" 21548 #endif 21549 char XF86VidModeQueryVersion (); 21550 int 21551 main () 21552 { 21553 return XF86VidModeQueryVersion (); 21554 ; 21555 return 0; 21556 } 21557 _ACEOF 21558 if ac_fn_c_try_link "$LINENO"; then : 21559 ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes 21560 else 21561 ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no 21562 fi 21563 rm -f core conftest.err conftest.$ac_objext \ 21564 conftest$ac_exeext conftest.$ac_ext 21565 LIBS=$ac_check_lib_save_LIBS 21566 fi 21567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5 21568 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; } 21569 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then : 21570 have_vm_lib=yes 21571 fi 21572 21573 if test x$have_vm_lib = xyes ; then 21574 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm" 21575 definitely_enable_video_x11_vm=yes 21576 fi 21577 fi 21578 fi 21579 fi 21580 if test x$definitely_enable_video_x11_vm = xyes; then 21581 21582 $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h 21583 21584 SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode" 21585 fi 21586 fi 21587 else 21588 # Prevent Mesa from including X11 headers 21589 EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11" 21590 fi 21591 } 21592 21593 CheckVivanteVideo() 21594 { 21595 # Check whether --enable-video-vivante was given. 21596 if test "${enable_video_vivante+set}" = set; then : 21597 enableval=$enable_video_vivante; 21598 else 21599 enable_video_vivante=yes 21600 fi 21601 21602 if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then 21603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5 21604 $as_echo_n "checking for Vivante VDK API... " >&6; } 21605 have_vivante_vdk=no 21606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21607 /* end confdefs.h. */ 21608 21609 #define LINUX 21610 #define EGL_API_FB 21611 #include <gc_vdk.h> 21612 21613 int 21614 main () 21615 { 21616 21617 21618 ; 21619 return 0; 21620 } 21621 _ACEOF 21622 if ac_fn_c_try_compile "$LINENO"; then : 21623 21624 have_vivante_vdk=yes 21625 21626 fi 21627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5 21629 $as_echo "$have_vivante_vdk" >&6; } 21630 21631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5 21632 $as_echo_n "checking for Vivante FB API... " >&6; } 21633 have_vivante_egl=no 21634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21635 /* end confdefs.h. */ 21636 21637 #define LINUX 21638 #define EGL_API_FB 21639 #include <EGL/eglvivante.h> 21640 21641 int 21642 main () 21643 { 21644 21645 21646 ; 21647 return 0; 21648 } 21649 _ACEOF 21650 if ac_fn_c_try_compile "$LINENO"; then : 21651 21652 have_vivante_egl=yes 21653 21654 fi 21655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5 21657 $as_echo "$have_vivante_egl" >&6; } 21658 21659 if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then 21660 21661 $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h 21662 21663 EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB" 21664 if test x$have_vivante_vdk = xyes; then 21665 21666 $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h 21667 21668 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK" 21669 fi 21670 SOURCES="$SOURCES $srcdir/src/video/vivante/*.c" 21671 SUMMARY_video="${SUMMARY_video} vivante" 21672 have_video=yes 21673 fi 21674 fi 21675 } 21676 21677 CheckHaikuVideo() 21678 { 21679 if test x$enable_video = xyes; then 21680 21681 $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h 21682 21683 SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc" 21684 have_video=yes 21685 SUMMARY_video="${SUMMARY_video} haiku" 21686 fi 21687 } 21688 21689 CheckCOCOA() 21690 { 21691 # Check whether --enable-video-cocoa was given. 21692 if test "${enable_video_cocoa+set}" = set; then : 21693 enableval=$enable_video_cocoa; 21694 else 21695 enable_video_cocoa=yes 21696 fi 21697 21698 if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then 21699 save_CFLAGS="$CFLAGS" 21700 CFLAGS="$CFLAGS -x objective-c" 21701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5 21702 $as_echo_n "checking for Cocoa framework... " >&6; } 21703 have_cocoa=no 21704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21705 /* end confdefs.h. */ 21706 21707 #import <Cocoa/Cocoa.h> 21708 21709 int 21710 main () 21711 { 21712 21713 21714 ; 21715 return 0; 21716 } 21717 _ACEOF 21718 if ac_fn_c_try_compile "$LINENO"; then : 21719 21720 have_cocoa=yes 21721 21722 fi 21723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5 21725 $as_echo "$have_cocoa" >&6; } 21726 CFLAGS="$save_CFLAGS" 21727 if test x$have_cocoa = xyes; then 21728 21729 $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h 21730 21731 SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m" 21732 SUMMARY_video="${SUMMARY_video} cocoa" 21733 have_video=yes 21734 fi 21735 fi 21736 } 21737 21738 CheckMETAL() 21739 { 21740 # Check whether --enable-video-metal was given. 21741 if test "${enable_video_metal+set}" = set; then : 21742 enableval=$enable_video_metal; 21743 else 21744 enable_video_metal=yes 21745 fi 21746 21747 # Check whether --enable-render-metal was given. 21748 if test "${enable_render_metal+set}" = set; then : 21749 enableval=$enable_render_metal; 21750 else 21751 enable_render_metal=yes 21752 fi 21753 21754 if test x$enable_video = xyes -a x$enable_video_metal = xyes; then 21755 save_CFLAGS="$CFLAGS" 21756 CFLAGS="$CFLAGS -x objective-c" 21757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5 21758 $as_echo_n "checking for Metal framework... " >&6; } 21759 have_metal=no 21760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21761 /* end confdefs.h. */ 21762 21763 #import <Cocoa/Cocoa.h> 21764 #import <Metal/Metal.h> 21765 #import <QuartzCore/CAMetalLayer.h> 21766 21767 #if TARGET_CPU_X86 21768 #error Metal doesn't work on this configuration 21769 #endif 21770 21771 int 21772 main () 21773 { 21774 21775 21776 ; 21777 return 0; 21778 } 21779 _ACEOF 21780 if ac_fn_c_try_compile "$LINENO"; then : 21781 21782 have_metal=yes 21783 21784 fi 21785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21786 CFLAGS="$save_CFLAGS" 21787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5 21788 $as_echo "$have_metal" >&6; } 21789 if test x$have_metal = xyes; then 21790 21791 $as_echo "#define SDL_VIDEO_METAL 1" >>confdefs.h 21792 21793 if test x$enable_render = xyes -a x$enable_render_metal = xyes; then 21794 21795 $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h 21796 21797 SOURCES="$SOURCES $srcdir/src/render/metal/*.m" 21798 fi 21799 SUMMARY_video="${SUMMARY_video} metal" 21800 else 21801 enable_video_metal=no 21802 enable_render_metal=no 21803 fi 21804 fi 21805 } 21806 21807 CheckDirectFB() 21808 { 21809 # Check whether --enable-video-directfb was given. 21810 if test "${enable_video_directfb+set}" = set; then : 21811 enableval=$enable_video_directfb; 21812 else 21813 enable_video_directfb=no 21814 fi 21815 21816 if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then 21817 21818 pkg_failed=no 21819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRECTFB" >&5 21820 $as_echo_n "checking for DIRECTFB... " >&6; } 21821 21822 if test -n "$DIRECTFB_CFLAGS"; then 21823 pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS" 21824 elif test -n "$PKG_CONFIG"; then 21825 if test -n "$PKG_CONFIG" && \ 21826 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5 21827 ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5 21828 ac_status=$? 21829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21830 test $ac_status = 0; }; then 21831 pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null` 21832 else 21833 pkg_failed=yes 21834 fi 21835 else 21836 pkg_failed=untried 21837 fi 21838 if test -n "$DIRECTFB_LIBS"; then 21839 pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS" 21840 elif test -n "$PKG_CONFIG"; then 21841 if test -n "$PKG_CONFIG" && \ 21842 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5 21843 ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5 21844 ac_status=$? 21845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21846 test $ac_status = 0; }; then 21847 pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null` 21848 else 21849 pkg_failed=yes 21850 fi 21851 else 21852 pkg_failed=untried 21853 fi 21854 21855 21856 21857 if test $pkg_failed = yes; then 21858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21859 $as_echo "no" >&6; } 21860 21861 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21862 _pkg_short_errors_supported=yes 21863 else 21864 _pkg_short_errors_supported=no 21865 fi 21866 if test $_pkg_short_errors_supported = yes; then 21867 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "directfb >= 1.0.0" 2>&1` 21868 else 21869 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors "directfb >= 1.0.0" 2>&1` 21870 fi 21871 # Put the nasty error message in config.log where it belongs 21872 echo "$DIRECTFB_PKG_ERRORS" >&5 21873 21874 video_directfb=no 21875 elif test $pkg_failed = untried; then 21876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21877 $as_echo "no" >&6; } 21878 video_directfb=no 21879 else 21880 DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS 21881 DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS 21882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21883 $as_echo "yes" >&6; } 21884 video_directfb=yes 21885 fi 21886 21887 if test x$video_directfb = xyes; then 21888 # SuSE 11.1 installs directfb-config without directfb-devel 21889 save_CPPFLAGS="$CPPFLAGS" 21890 CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS" 21891 ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default" 21892 if test "x$ac_cv_header_directfb_h" = xyes; then : 21893 have_directfb_hdr=yes 21894 else 21895 have_directfb_hdr=no 21896 fi 21897 21898 21899 CPPFLAGS="$save_CPPFLAGS" 21900 video_directfb=$have_directfb_hdr 21901 fi 21902 21903 if test x$video_directfb = xyes; then 21904 # Check whether --enable-directfb-shared was given. 21905 if test "${enable_directfb_shared+set}" = set; then : 21906 enableval=$enable_directfb_shared; 21907 else 21908 enable_directfb_shared=yes 21909 fi 21910 21911 21912 21913 $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h 21914 21915 21916 $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h 21917 21918 SOURCES="$SOURCES $srcdir/src/video/directfb/*.c" 21919 EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS" 21920 21921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5 21922 $as_echo_n "checking for directfb dynamic loading support... " >&6; } 21923 directfb_shared=no 21924 directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS"` 21925 # | sed 's/.*\/\(.*\)/\1/; q'`] 21926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5 21927 $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;} 21928 if test x$have_loadso != xyes && \ 21929 test x$enable_directfb_shared = xyes; then 21930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5 21931 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;} 21932 fi 21933 if test x$have_loadso = xyes && \ 21934 test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then 21935 directfb_shared=yes 21936 echo "-- $directfb_lib_spec -> $directfb_lib" 21937 21938 cat >>confdefs.h <<_ACEOF 21939 #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib" 21940 _ACEOF 21941 21942 SUMMARY_video="${SUMMARY_video} directfb(dynamic)" 21943 else 21944 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS" 21945 SUMMARY_video="${SUMMARY_video} directfb" 21946 fi 21947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5 21948 $as_echo "$directfb_shared" >&6; } 21949 SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS" 21950 have_video=yes 21951 fi 21952 fi 21953 } 21954 21955 CheckKMSDRM() 21956 { 21957 # Check whether --enable-video-kmsdrm was given. 21958 if test "${enable_video_kmsdrm+set}" = set; then : 21959 enableval=$enable_video_kmsdrm; 21960 else 21961 enable_video_kmsdrm=no 21962 fi 21963 21964 21965 if test x$enable_video = xyes -a x$enable_video_kmsdrm = xyes; then 21966 video_kmsdrm=no 21967 21968 21969 pkg_failed=no 21970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5 21971 $as_echo_n "checking for LIBDRM... " >&6; } 21972 21973 if test -n "$LIBDRM_CFLAGS"; then 21974 pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS" 21975 elif test -n "$PKG_CONFIG"; then 21976 if test -n "$PKG_CONFIG" && \ 21977 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5 21978 ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5 21979 ac_status=$? 21980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21981 test $ac_status = 0; }; then 21982 pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null` 21983 else 21984 pkg_failed=yes 21985 fi 21986 else 21987 pkg_failed=untried 21988 fi 21989 if test -n "$LIBDRM_LIBS"; then 21990 pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS" 21991 elif test -n "$PKG_CONFIG"; then 21992 if test -n "$PKG_CONFIG" && \ 21993 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5 21994 ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5 21995 ac_status=$? 21996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21997 test $ac_status = 0; }; then 21998 pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null` 21999 else 22000 pkg_failed=yes 22001 fi 22002 else 22003 pkg_failed=untried 22004 fi 22005 22006 22007 22008 if test $pkg_failed = yes; then 22009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22010 $as_echo "no" >&6; } 22011 22012 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 22013 _pkg_short_errors_supported=yes 22014 else 22015 _pkg_short_errors_supported=no 22016 fi 22017 if test $_pkg_short_errors_supported = yes; then 22018 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 1.4.82" 2>&1` 22019 else 22020 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 1.4.82" 2>&1` 22021 fi 22022 # Put the nasty error message in config.log where it belongs 22023 echo "$LIBDRM_PKG_ERRORS" >&5 22024 22025 libdrm_avail=no 22026 elif test $pkg_failed = untried; then 22027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22028 $as_echo "no" >&6; } 22029 libdrm_avail=no 22030 else 22031 LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS 22032 LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS 22033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22034 $as_echo "yes" >&6; } 22035 libdrm_avail=yes 22036 fi 22037 22038 pkg_failed=no 22039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGBM" >&5 22040 $as_echo_n "checking for LIBGBM... " >&6; } 22041 22042 if test -n "$LIBGBM_CFLAGS"; then 22043 pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS" 22044 elif test -n "$PKG_CONFIG"; then 22045 if test -n "$PKG_CONFIG" && \ 22046 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5 22047 ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5 22048 ac_status=$? 22049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22050 test $ac_status = 0; }; then 22051 pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null` 22052 else 22053 pkg_failed=yes 22054 fi 22055 else 22056 pkg_failed=untried 22057 fi 22058 if test -n "$LIBGBM_LIBS"; then 22059 pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS" 22060 elif test -n "$PKG_CONFIG"; then 22061 if test -n "$PKG_CONFIG" && \ 22062 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5 22063 ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5 22064 ac_status=$? 22065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22066 test $ac_status = 0; }; then 22067 pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null` 22068 else 22069 pkg_failed=yes 22070 fi 22071 else 22072 pkg_failed=untried 22073 fi 22074 22075 22076 22077 if test $pkg_failed = yes; then 22078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22079 $as_echo "no" >&6; } 22080 22081 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 22082 _pkg_short_errors_supported=yes 22083 else 22084 _pkg_short_errors_supported=no 22085 fi 22086 if test $_pkg_short_errors_supported = yes; then 22087 LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gbm >= 11.1.0" 2>&1` 22088 else 22089 LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors "gbm >= 11.1.0" 2>&1` 22090 fi 22091 # Put the nasty error message in config.log where it belongs 22092 echo "$LIBGBM_PKG_ERRORS" >&5 22093 22094 libgbm_avail=no 22095 elif test $pkg_failed = untried; then 22096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22097 $as_echo "no" >&6; } 22098 libgbm_avail=no 22099 else 22100 LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS 22101 LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS 22102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22103 $as_echo "yes" >&6; } 22104 libgbm_avail=yes 22105 fi 22106 22107 if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then 22108 video_kmsdrm=yes 22109 fi 22110 22111 if test x$video_kmsdrm = xyes; then 22112 # Check whether --enable-kmsdrm-shared was given. 22113 if test "${enable_kmsdrm_shared+set}" = set; then : 22114 enableval=$enable_kmsdrm_shared; 22115 else 22116 enable_kmsdrm_shared=yes 22117 fi 22118 22119 22120 22121 $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h 22122 22123 SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c" 22124 SOURCES="$SOURCES $srcdir/src/video/kmsdrm_legacy/*.c" 22125 EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS" 22126 22127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5 22128 $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; } 22129 kmsdrm_shared=no 22130 drm_lib=`find_lib "libdrm.so.*" "$DRM_LIBS"` 22131 gbm_lib=`find_lib "libgbm.so.*" "$DRM_LIBS"` 22132 if test x$have_loadso != xyes && \ 22133 test x$enable_kmsdrm_shared = xyes; then 22134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5 22135 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;} 22136 fi 22137 if test x$have_loadso = xyes && \ 22138 test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then 22139 kmsdrm_shared=yes 22140 22141 cat >>confdefs.h <<_ACEOF 22142 #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib" 22143 _ACEOF 22144 22145 22146 cat >>confdefs.h <<_ACEOF 22147 #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib" 22148 _ACEOF 22149 22150 22151 cat >>confdefs.h <<_ACEOF 22152 #define HAVE_KMSDRM_SHARED "TRUE" 22153 _ACEOF 22154 22155 SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)" 22156 else 22157 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS" 22158 SUMMARY_video="${SUMMARY_video} kmsdrm" 22159 fi 22160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5 22161 $as_echo "$kmsdrm_shared" >&6; } 22162 have_video=yes 22163 fi 22164 fi 22165 } 22166 22167 CheckDummyVideo() 22168 { 22169 # Check whether --enable-video-dummy was given. 22170 if test "${enable_video_dummy+set}" = set; then : 22171 enableval=$enable_video_dummy; 22172 else 22173 enable_video_dummy=yes 22174 fi 22175 22176 if test x$enable_video_dummy = xyes; then 22177 22178 $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h 22179 22180 SOURCES="$SOURCES $srcdir/src/video/dummy/*.c" 22181 have_video=yes 22182 SUMMARY_video="${SUMMARY_video} dummy" 22183 fi 22184 } 22185 22186 CheckQNXVideo() 22187 { 22188 if test x$enable_video = xyes; then 22189 22190 $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h 22191 22192 SOURCES="$SOURCES $srcdir/src/video/qnx/*.c" 22193 have_video=yes 22194 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2" 22195 SUMMARY_video="${SUMMARY_video} qnx" 22196 fi 22197 } 22198 22199 CheckQNXAudio() 22200 { 22201 if test x$enable_audio = xyes; then 22202 22203 $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h 22204 22205 SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c" 22206 have_audio=yes 22207 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound" 22208 SUMMARY_audio="${SUMMARY_audio} qsa" 22209 fi 22210 } 22211 22212 # Check whether --enable-video-opengl was given. 22213 if test "${enable_video_opengl+set}" = set; then : 22214 enableval=$enable_video_opengl; 22215 else 22216 enable_video_opengl=yes 22217 fi 22218 22219 22220 CheckOpenGLX11() 22221 { 22222 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then 22223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5 22224 $as_echo_n "checking for OpenGL (GLX) support... " >&6; } 22225 video_opengl=no 22226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22227 /* end confdefs.h. */ 22228 22229 #include <GL/gl.h> 22230 #include <GL/glx.h> 22231 22232 int 22233 main () 22234 { 22235 22236 22237 ; 22238 return 0; 22239 } 22240 _ACEOF 22241 if ac_fn_c_try_compile "$LINENO"; then : 22242 22243 video_opengl=yes 22244 22245 fi 22246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5 22248 $as_echo "$video_opengl" >&6; } 22249 if test x$video_opengl = xyes; then 22250 22251 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h 22252 22253 22254 $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h 22255 22256 22257 $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h 22258 22259 SUMMARY_video="${SUMMARY_video} opengl" 22260 fi 22261 fi 22262 } 22263 22264 # Check whether --enable-video-opengles was given. 22265 if test "${enable_video_opengles+set}" = set; then : 22266 enableval=$enable_video_opengles; 22267 else 22268 enable_video_opengles=yes 22269 fi 22270 22271 # Check whether --enable-video-opengles1 was given. 22272 if test "${enable_video_opengles1+set}" = set; then : 22273 enableval=$enable_video_opengles1; 22274 else 22275 enable_video_opengles1=yes 22276 fi 22277 22278 # Check whether --enable-video-opengles2 was given. 22279 if test "${enable_video_opengles2+set}" = set; then : 22280 enableval=$enable_video_opengles2; 22281 else 22282 enable_video_opengles2=yes 22283 fi 22284 22285 22286 CheckOpenGLESX11() 22287 { 22288 if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then 22289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5 22290 $as_echo_n "checking for EGL support... " >&6; } 22291 video_opengl_egl=no 22292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22293 /* end confdefs.h. */ 22294 22295 #define LINUX 22296 #define EGL_API_FB 22297 #define MESA_EGL_NO_X11_HEADERS 22298 #define EGL_NO_X11 22299 #include <EGL/egl.h> 22300 #include <EGL/eglext.h> 22301 22302 int 22303 main () 22304 { 22305 22306 22307 ; 22308 return 0; 22309 } 22310 _ACEOF 22311 if ac_fn_c_try_compile "$LINENO"; then : 22312 22313 video_opengl_egl=yes 22314 22315 fi 22316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5 22318 $as_echo "$video_opengl_egl" >&6; } 22319 if test x$video_opengl_egl = xyes; then 22320 22321 $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h 22322 22323 fi 22324 22325 if test x$enable_video_opengles1 = xyes; then 22326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5 22327 $as_echo_n "checking for OpenGL ES v1 headers... " >&6; } 22328 video_opengles_v1=no 22329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22330 /* end confdefs.h. */ 22331 22332 #include <GLES/gl.h> 22333 #include <GLES/glext.h> 22334 22335 int 22336 main () 22337 { 22338 22339 22340 ; 22341 return 0; 22342 } 22343 _ACEOF 22344 if ac_fn_c_try_compile "$LINENO"; then : 22345 22346 video_opengles_v1=yes 22347 22348 fi 22349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5 22351 $as_echo "$video_opengles_v1" >&6; } 22352 if test x$video_opengles_v1 = xyes; then 22353 22354 $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h 22355 22356 22357 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h 22358 22359 SUMMARY_video="${SUMMARY_video} opengl_es1" 22360 fi 22361 fi 22362 22363 if test x$enable_video_opengles2 = xyes; then 22364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5 22365 $as_echo_n "checking for OpenGL ES v2 headers... " >&6; } 22366 video_opengles_v2=no 22367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22368 /* end confdefs.h. */ 22369 22370 #include <GLES2/gl2.h> 22371 #include <GLES2/gl2ext.h> 22372 22373 int 22374 main () 22375 { 22376 22377 22378 ; 22379 return 0; 22380 } 22381 _ACEOF 22382 if ac_fn_c_try_compile "$LINENO"; then : 22383 22384 video_opengles_v2=yes 22385 22386 fi 22387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5 22389 $as_echo "$video_opengles_v2" >&6; } 22390 if test x$video_opengles_v2 = xyes; then 22391 22392 $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h 22393 22394 22395 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h 22396 22397 SUMMARY_video="${SUMMARY_video} opengl_es2" 22398 fi 22399 fi 22400 fi 22401 } 22402 22403 CheckWINDOWSGL() 22404 { 22405 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then 22406 22407 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h 22408 22409 22410 $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h 22411 22412 22413 $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h 22414 22415 SUMMARY_video="${SUMMARY_video} opengl" 22416 fi 22417 } 22418 22419 CheckWINDOWSGLES() 22420 { 22421 if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then 22422 22423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5 22424 $as_echo_n "checking for EGL support... " >&6; } 22425 video_opengl_egl=no 22426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22427 /* end confdefs.h. */ 22428 22429 #include <EGL/egl.h> 22430 22431 int 22432 main () 22433 { 22434 22435 22436 ; 22437 return 0; 22438 } 22439 _ACEOF 22440 if ac_fn_c_try_compile "$LINENO"; then : 22441 22442 video_opengl_egl=yes 22443 22444 fi 22445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5 22447 $as_echo "$video_opengl_egl" >&6; } 22448 if test x$video_opengl_egl = xyes; then 22449 22450 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h 22451 22452 22453 $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h 22454 22455 SUMMARY_video="${SUMMARY_video} opengl_es1" 22456 fi 22457 22458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5 22459 $as_echo_n "checking for OpenGL ES v2 headers... " >&6; } 22460 video_opengles_v2=no 22461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22462 /* end confdefs.h. */ 22463 22464 #include <GLES2/gl2.h> 22465 #include <GLES2/gl2ext.h> 22466 22467 int 22468 main () 22469 { 22470 22471 22472 ; 22473 return 0; 22474 } 22475 _ACEOF 22476 if ac_fn_c_try_compile "$LINENO"; then : 22477 22478 video_opengles_v2=yes 22479 22480 fi 22481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5 22483 $as_echo "$video_opengles_v2" >&6; } 22484 if test x$video_opengles_v2 = xyes; then 22485 22486 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h 22487 22488 22489 $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h 22490 22491 22492 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h 22493 22494 SUMMARY_video="${SUMMARY_video} opengl_es2" 22495 fi 22496 fi 22497 } 22498 22499 CheckHaikuGL() 22500 { 22501 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then 22502 22503 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h 22504 22505 22506 $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h 22507 22508 22509 $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h 22510 22511 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL" 22512 SUMMARY_video="${SUMMARY_video} opengl" 22513 fi 22514 } 22515 22516 CheckMacGL() 22517 { 22518 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then 22519 22520 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h 22521 22522 22523 $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h 22524 22525 22526 $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h 22527 22528 SUMMARY_video="${SUMMARY_video} opengl" 22529 fi 22530 } 22531 22532 CheckMacGLES() 22533 { 22534 if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then 22535 video_opengl_egl=yes 22536 22537 $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h 22538 22539 video_opengles_v2=yes 22540 22541 $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h 22542 22543 22544 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h 22545 22546 SUMMARY_video="${SUMMARY_video} opengl_es2" 22547 fi 22548 } 22549 22550 CheckEmscriptenGLES() 22551 { 22552 if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then 22553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5 22554 $as_echo_n "checking for EGL support... " >&6; } 22555 video_opengl_egl=no 22556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22557 /* end confdefs.h. */ 22558 22559 #include <EGL/egl.h> 22560 22561 int 22562 main () 22563 { 22564 22565 22566 ; 22567 return 0; 22568 } 22569 _ACEOF 22570 if ac_fn_c_try_compile "$LINENO"; then : 22571 22572 video_opengl_egl=yes 22573 22574 fi 22575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5 22577 $as_echo "$video_opengl_egl" >&6; } 22578 if test x$video_opengl_egl = xyes; then 22579 22580 $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h 22581 22582 fi 22583 22584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5 22585 $as_echo_n "checking for OpenGL ES v2 headers... " >&6; } 22586 video_opengles_v2=no 22587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22588 /* end confdefs.h. */ 22589 22590 #include <GLES2/gl2.h> 22591 #include <GLES2/gl2ext.h> 22592 22593 int 22594 main () 22595 { 22596 22597 22598 ; 22599 return 0; 22600 } 22601 _ACEOF 22602 if ac_fn_c_try_compile "$LINENO"; then : 22603 22604 video_opengles_v2=yes 22605 22606 fi 22607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5 22609 $as_echo "$video_opengles_v2" >&6; } 22610 if test x$video_opengles_v2 = xyes; then 22611 22612 $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h 22613 22614 22615 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h 22616 22617 SUMMARY_video="${SUMMARY_video} opengl_es2" 22618 fi 22619 fi 22620 } 22621 22622 # Check whether --enable-video-vulkan was given. 22623 if test "${enable_video_vulkan+set}" = set; then : 22624 enableval=$enable_video_vulkan; 22625 else 22626 enable_video_vulkan=yes 22627 fi 22628 22629 22630 CheckVulkan() 22631 { 22632 if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then 22633 case "$host" in 22634 *-*-android*) 22635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22636 /* end confdefs.h. */ 22637 22638 #if defined(__ARM_ARCH) && __ARM_ARCH < 7 22639 #error Vulkan doesn't work on this configuration 22640 #endif 22641 22642 int 22643 main () 22644 { 22645 22646 22647 ; 22648 return 0; 22649 } 22650 _ACEOF 22651 if ac_fn_c_try_compile "$LINENO"; then : 22652 22653 22654 else 22655 22656 enable_video_vulkan=no 22657 22658 fi 22659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22660 ;; 22661 *-*-darwin*) 22662 save_CFLAGS="$CFLAGS" 22663 CFLAGS="$CFLAGS -x objective-c" 22664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22665 /* end confdefs.h. */ 22666 22667 #include <Cocoa/Cocoa.h> 22668 #include <Metal/Metal.h> 22669 #include <QuartzCore/CAMetalLayer.h> 22670 22671 #if TARGET_CPU_X86 22672 #error Vulkan doesn't work on this configuration 22673 #endif 22674 22675 int 22676 main () 22677 { 22678 22679 22680 ; 22681 return 0; 22682 } 22683 _ACEOF 22684 if ac_fn_c_try_compile "$LINENO"; then : 22685 22686 22687 else 22688 22689 enable_video_vulkan=no 22690 22691 fi 22692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22693 CFLAGS="$save_CFLAGS" 22694 ;; 22695 *) 22696 ;; 22697 esac 22698 if test x$enable_video_vulkan = xno; then 22699 # For reasons I am totally unable to see, I get an undefined macro error if 22700 # I put this in the AC_TRY_COMPILE. 22701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5 22702 $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;} 22703 fi 22704 fi 22705 if test x$enable_video_vulkan = xyes; then 22706 22707 $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h 22708 22709 SUMMARY_video="${SUMMARY_video} vulkan" 22710 fi 22711 } 22712 22713 CheckInputEvents() 22714 { 22715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5 22716 $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; } 22717 use_input_events=no 22718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22719 /* end confdefs.h. */ 22720 22721 #include <linux/input.h> 22722 22723 int 22724 main () 22725 { 22726 22727 #ifndef EVIOCGNAME 22728 #error EVIOCGNAME() ioctl not available 22729 #endif 22730 22731 ; 22732 return 0; 22733 } 22734 _ACEOF 22735 if ac_fn_c_try_compile "$LINENO"; then : 22736 22737 use_input_events=yes 22738 22739 fi 22740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5 22742 $as_echo "$use_input_events" >&6; } 22743 if test x$use_input_events = xyes; then 22744 22745 $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h 22746 22747 SUMMARY_input="${SUMMARY_input} linuxev" 22748 fi 22749 } 22750 22751 CheckInputKD() 22752 { 22753 22754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5 22755 $as_echo_n "checking for Linux kd.h... " >&6; } 22756 use_input_kd=no 22757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22758 /* end confdefs.h. */ 22759 22760 #include <linux/kd.h> 22761 #include <linux/keyboard.h> 22762 22763 int 22764 main () 22765 { 22766 22767 struct kbentry kbe; 22768 kbe.kb_table = KG_CTRL; 22769 ioctl(0, KDGKBENT, &kbe); 22770 22771 ; 22772 return 0; 22773 } 22774 _ACEOF 22775 if ac_fn_c_try_compile "$LINENO"; then : 22776 22777 use_input_kd=yes 22778 22779 fi 22780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5 22782 $as_echo "$use_input_kd" >&6; } 22783 if test x$use_input_kd = xyes; then 22784 22785 $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h 22786 22787 SUMMARY_input="${SUMMARY_input} linuxkd" 22788 fi 22789 } 22790 22791 CheckInputKBIO() 22792 { 22793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5 22794 $as_echo_n "checking for FreeBSD kbio.h... " >&6; } 22795 use_input_kbio=no 22796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22797 /* end confdefs.h. */ 22798 22799 #include <sys/kbio.h> 22800 #include <sys/ioctl.h> 22801 22802 int 22803 main () 22804 { 22805 22806 accentmap_t accTable; 22807 ioctl(0, KDENABIO, 1); 22808 22809 ; 22810 return 0; 22811 } 22812 _ACEOF 22813 if ac_fn_c_try_compile "$LINENO"; then : 22814 22815 use_input_kbio=yes 22816 22817 fi 22818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5 22820 $as_echo "$use_input_kbio" >&6; } 22821 if test x$use_input_kbio = xyes; then 22822 22823 $as_echo "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h 22824 22825 SUMMARY_input="${SUMMARY_input} fbsdkbio" 22826 fi 22827 } 22828 22829 CheckLibUDev() 22830 { 22831 # Check whether --enable-libudev was given. 22832 if test "${enable_libudev+set}" = set; then : 22833 enableval=$enable_libudev; 22834 else 22835 enable_libudev=yes 22836 fi 22837 22838 if test x$enable_libudev = xyes; then 22839 ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default" 22840 if test "x$ac_cv_header_libudev_h" = xyes; then : 22841 have_libudev_h_hdr=yes 22842 else 22843 have_libudev_h_hdr=no 22844 fi 22845 22846 22847 if test x$have_libudev_h_hdr = xyes; then 22848 22849 $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h 22850 22851 22852 udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'` 22853 if test x$udev_lib != x; then 22854 echo "-- dynamic udev -> $udev_lib" 22855 22856 cat >>confdefs.h <<_ACEOF 22857 #define SDL_UDEV_DYNAMIC "$udev_lib" 22858 _ACEOF 22859 22860 fi 22861 fi 22862 fi 22863 } 22864 22865 CheckDBus() 22866 { 22867 # Check whether --enable-dbus was given. 22868 if test "${enable_dbus+set}" = set; then : 22869 enableval=$enable_dbus; 22870 else 22871 enable_dbus=yes 22872 fi 22873 22874 if test x$enable_dbus = xyes; then 22875 22876 pkg_failed=no 22877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5 22878 $as_echo_n "checking for DBUS... " >&6; } 22879 22880 if test -n "$DBUS_CFLAGS"; then 22881 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS" 22882 elif test -n "$PKG_CONFIG"; then 22883 if test -n "$PKG_CONFIG" && \ 22884 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5 22885 ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5 22886 ac_status=$? 22887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22888 test $ac_status = 0; }; then 22889 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null` 22890 else 22891 pkg_failed=yes 22892 fi 22893 else 22894 pkg_failed=untried 22895 fi 22896 if test -n "$DBUS_LIBS"; then 22897 pkg_cv_DBUS_LIBS="$DBUS_LIBS" 22898 elif test -n "$PKG_CONFIG"; then 22899 if test -n "$PKG_CONFIG" && \ 22900 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5 22901 ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5 22902 ac_status=$? 22903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22904 test $ac_status = 0; }; then 22905 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null` 22906 else 22907 pkg_failed=yes 22908 fi 22909 else 22910 pkg_failed=untried 22911 fi 22912 22913 22914 22915 if test $pkg_failed = yes; then 22916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22917 $as_echo "no" >&6; } 22918 22919 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 22920 _pkg_short_errors_supported=yes 22921 else 22922 _pkg_short_errors_supported=no 22923 fi 22924 if test $_pkg_short_errors_supported = yes; then 22925 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dbus-1" 2>&1` 22926 else 22927 DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "dbus-1" 2>&1` 22928 fi 22929 # Put the nasty error message in config.log where it belongs 22930 echo "$DBUS_PKG_ERRORS" >&5 22931 22932 have_dbus=no 22933 elif test $pkg_failed = untried; then 22934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22935 $as_echo "no" >&6; } 22936 have_dbus=no 22937 else 22938 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS 22939 DBUS_LIBS=$pkg_cv_DBUS_LIBS 22940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22941 $as_echo "yes" >&6; } 22942 have_dbus=yes 22943 fi 22944 save_CFLAGS="$CFLAGS" 22945 CFLAGS="$save_CFLAGS $DBUS_CFLAGS" 22946 ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default" 22947 if test "x$ac_cv_header_dbus_dbus_h" = xyes; then : 22948 have_dbus_dbus_h_hdr=yes 22949 else 22950 have_dbus_dbus_h_hdr=no 22951 fi 22952 22953 22954 CFLAGS="$save_CFLAGS" 22955 if test x$have_dbus_dbus_h_hdr = xyes; then 22956 22957 $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h 22958 22959 EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS" 22960 SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c" 22961 fi 22962 fi 22963 } 22964 22965 CheckIME() 22966 { 22967 # Check whether --enable-ime was given. 22968 if test "${enable_ime+set}" = set; then : 22969 enableval=$enable_ime; 22970 else 22971 enable_ime=yes 22972 fi 22973 22974 if test x$enable_ime = xyes; then 22975 22976 $as_echo "#define SDL_USE_IME 1" >>confdefs.h 22977 22978 SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c" 22979 fi 22980 } 22981 22982 CheckInotify() 22983 { 22984 save_LIBS="$LIBS" 22985 case "$host" in 22986 *-*-freebsd*) LIBS="$LIBS -linotify" 22987 ;; 22988 esac 22989 for ac_header in sys/inotify.h 22990 do : 22991 ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default" 22992 if test "x$ac_cv_header_sys_inotify_h" = xyes; then : 22993 cat >>confdefs.h <<_ACEOF 22994 #define HAVE_SYS_INOTIFY_H 1 22995 _ACEOF 22996 have_inotify_inotify_h_hdr=yes 22997 fi 22998 22999 done 23000 23001 for ac_func in inotify_init 23002 do : 23003 ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init" 23004 if test "x$ac_cv_func_inotify_init" = xyes; then : 23005 cat >>confdefs.h <<_ACEOF 23006 #define HAVE_INOTIFY_INIT 1 23007 _ACEOF 23008 have_inotify=yes 23009 fi 23010 done 23011 23012 for ac_func in inotify_init1 23013 do : 23014 ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1" 23015 if test "x$ac_cv_func_inotify_init1" = xyes; then : 23016 cat >>confdefs.h <<_ACEOF 23017 #define HAVE_INOTIFY_INIT1 1 23018 _ACEOF 23019 23020 fi 23021 done 23022 23023 if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then 23024 23025 $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h 23026 23027 case "$host" in 23028 *-*-freebsd*) 23029 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify" 23030 ;; 23031 esac 23032 fi 23033 LIBS="$save_LIBS" 23034 } 23035 23036 CheckIBus() 23037 { 23038 # Check whether --enable-ibus was given. 23039 if test "${enable_ibus+set}" = set; then : 23040 enableval=$enable_ibus; 23041 else 23042 enable_ibus=yes 23043 fi 23044 23045 if test x$enable_ibus = xyes; then 23046 23047 pkg_failed=no 23048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IBUS" >&5 23049 $as_echo_n "checking for IBUS... " >&6; } 23050 23051 if test -n "$IBUS_CFLAGS"; then 23052 pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS" 23053 elif test -n "$PKG_CONFIG"; then 23054 if test -n "$PKG_CONFIG" && \ 23055 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5 23056 ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5 23057 ac_status=$? 23058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23059 test $ac_status = 0; }; then 23060 pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null` 23061 else 23062 pkg_failed=yes 23063 fi 23064 else 23065 pkg_failed=untried 23066 fi 23067 if test -n "$IBUS_LIBS"; then 23068 pkg_cv_IBUS_LIBS="$IBUS_LIBS" 23069 elif test -n "$PKG_CONFIG"; then 23070 if test -n "$PKG_CONFIG" && \ 23071 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5 23072 ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5 23073 ac_status=$? 23074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23075 test $ac_status = 0; }; then 23076 pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null` 23077 else 23078 pkg_failed=yes 23079 fi 23080 else 23081 pkg_failed=untried 23082 fi 23083 23084 23085 23086 if test $pkg_failed = yes; then 23087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23088 $as_echo "no" >&6; } 23089 23090 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 23091 _pkg_short_errors_supported=yes 23092 else 23093 _pkg_short_errors_supported=no 23094 fi 23095 if test $_pkg_short_errors_supported = yes; then 23096 IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ibus-1.0" 2>&1` 23097 else 23098 IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "ibus-1.0" 2>&1` 23099 fi 23100 # Put the nasty error message in config.log where it belongs 23101 echo "$IBUS_PKG_ERRORS" >&5 23102 23103 have_ibus=no 23104 elif test $pkg_failed = untried; then 23105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23106 $as_echo "no" >&6; } 23107 have_ibus=no 23108 else 23109 IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS 23110 IBUS_LIBS=$pkg_cv_IBUS_LIBS 23111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23112 $as_echo "yes" >&6; } 23113 have_ibus=yes 23114 fi 23115 save_CFLAGS="$CFLAGS" 23116 CFLAGS="$save_CFLAGS $IBUS_CFLAGS" 23117 ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default" 23118 if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then : 23119 have_ibus_ibus_h_hdr=yes 23120 else 23121 have_ibus_ibus_h_hdr=no 23122 fi 23123 23124 23125 CFLAGS="$save_CFLAGS" 23126 if test x$have_ibus_ibus_h_hdr = xyes; then 23127 if test x$enable_ime != xyes; then 23128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5 23129 $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;} 23130 have_ibus_ibus_h_hdr=no 23131 elif test x$enable_dbus != xyes; then 23132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5 23133 $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;} 23134 have_ibus_ibus_h_hdr=no 23135 elif test x$have_inotify_inotify_h_hdr != xyes; then 23136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5 23137 $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;} 23138 have_ibus_ibus_h_hdr=no 23139 else 23140 23141 $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h 23142 23143 EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS" 23144 SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c" 23145 fi 23146 fi 23147 fi 23148 } 23149 23150 CheckFcitx() 23151 { 23152 # Check whether --enable-fcitx was given. 23153 if test "${enable_fcitx+set}" = set; then : 23154 enableval=$enable_fcitx; 23155 else 23156 enable_fcitx=yes 23157 fi 23158 23159 if test x$enable_fcitx = xyes; then 23160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5 23161 $as_echo_n "checking for fcitx support... " >&6; } 23162 have_fcitx=no 23163 if test x$enable_ime != xyes; then 23164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5 23165 $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;} 23166 elif test x$have_dbus_dbus_h_hdr != xyes; then 23167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5 23168 $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;} 23169 else 23170 have_fcitx=yes 23171 23172 $as_echo "#define HAVE_FCITX 1" >>confdefs.h 23173 23174 SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c" 23175 fi 23176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5 23177 $as_echo "$have_fcitx" >&6; } 23178 fi 23179 } 23180 23181 CheckJoystickMFI() 23182 { 23183 # Check whether --enable-joystick-mfi was given. 23184 if test "${enable_joystick_mfi+set}" = set; then : 23185 enableval=$enable_joystick_mfi; 23186 else 23187 enable_joystick_mfi=yes 23188 fi 23189 23190 23191 if test x$enable_joystick_mfi = xyes; then 23192 save_CFLAGS="$CFLAGS" 23193 save_LDFLAGS="$LDFLAGS" 23194 CFLAGS="$CFLAGS -x objective-c -fobjc-weak" 23195 LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController" 23196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5 23197 $as_echo_n "checking for GameController framework... " >&6; } 23198 enable_joystick_mfi=no 23199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23200 /* end confdefs.h. */ 23201 23202 #include <AvailabilityMacros.h> 23203 #include <TargetConditionals.h> 23204 #import <GameController/GameController.h> 23205 23206 int 23207 main () 23208 { 23209 23210 #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080 23211 #error GameController framework doesn't work on this configuration 23212 #endif 23213 #if TARGET_CPU_X86 23214 #error GameController framework doesn't work on this configuration 23215 #endif 23216 23217 ; 23218 return 0; 23219 } 23220 _ACEOF 23221 if ac_fn_c_try_link "$LINENO"; then : 23222 23223 enable_joystick_mfi=yes 23224 23225 fi 23226 rm -f core conftest.err conftest.$ac_objext \ 23227 conftest$ac_exeext conftest.$ac_ext 23228 CFLAGS="$save_CFLAGS" 23229 LDFLAGS="$save_LDFLAGS" 23230 23231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5 23232 $as_echo "$enable_joystick_mfi" >&6; } 23233 if test x$enable_joystick_mfi = xyes; then 23234 23235 $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h 23236 23237 EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument" 23238 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController" 23239 fi 23240 fi 23241 } 23242 23243 CheckPTHREAD() 23244 { 23245 # Check whether --enable-pthreads was given. 23246 if test "${enable_pthreads+set}" = set; then : 23247 enableval=$enable_pthreads; 23248 else 23249 enable_pthreads=yes 23250 fi 23251 23252 # Check whether --enable-pthread-sem was given. 23253 if test "${enable_pthread_sem+set}" = set; then : 23254 enableval=$enable_pthread_sem; 23255 else 23256 enable_pthread_sem=yes 23257 fi 23258 23259 case "$host" in 23260 *-*-android*) 23261 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE" 23262 pthread_lib="" 23263 ;; 23264 *-*-linux*|*-*-uclinux*) 23265 pthread_cflags="-D_REENTRANT" 23266 pthread_lib="-lpthread" 23267 ;; 23268 *-*-bsdi*) 23269 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE" 23270 pthread_lib="" 23271 ;; 23272 *-*-darwin*) 23273 pthread_cflags="-D_THREAD_SAFE" 23274 # causes Carbon.p complaints? 23275 # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE" 23276 ;; 23277 *-*-freebsd*|*-*-dragonfly*) 23278 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE" 23279 pthread_lib="-pthread" 23280 ;; 23281 *-*-netbsd*) 23282 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE" 23283 pthread_lib="-lpthread" 23284 ;; 23285 *-*-openbsd*) 23286 pthread_cflags="-D_REENTRANT" 23287 pthread_lib="-pthread" 23288 ;; 23289 *-*-solaris2.9) 23290 # From Solaris 9+, posix4's preferred name is rt. 23291 pthread_cflags="-D_REENTRANT" 23292 pthread_lib="-lpthread -lrt" 23293 ;; 23294 *-*-solaris2.10) 23295 # Solaris 10+ merged pthread into libc. 23296 pthread_cflags="-D_REENTRANT" 23297 pthread_lib="-lrt" 23298 ;; 23299 *-*-solaris*) 23300 # Solaris 11+ merged rt into libc. 23301 pthread_cflags="-D_REENTRANT" 23302 pthread_lib="" 23303 ;; 23304 *-*-sysv5*) 23305 pthread_cflags="-D_REENTRANT -Kthread" 23306 pthread_lib="" 23307 ;; 23308 *-*-aix*) 23309 pthread_cflags="-D_REENTRANT -mthreads" 23310 pthread_lib="-lpthread" 23311 ;; 23312 *-*-hpux11*) 23313 pthread_cflags="-D_REENTRANT" 23314 pthread_lib="-L/usr/lib -lpthread" 23315 ;; 23316 *-*-haiku*) 23317 pthread_cflags="-D_REENTRANT" 23318 pthread_lib="" 23319 ;; 23320 *-*-nto*) 23321 pthread_cflags="-D_REENTRANT" 23322 pthread_lib="" 23323 ;; 23324 *) 23325 pthread_cflags="-D_REENTRANT" 23326 pthread_lib="-lpthread" 23327 ;; 23328 esac 23329 if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then 23330 # Save the original compiler flags and libraries 23331 ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS" 23332 # Add the pthread compiler flags and libraries 23333 CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib" 23334 # Check to see if we have pthread support on this system 23335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5 23336 $as_echo_n "checking for pthreads... " >&6; } 23337 use_pthreads=no 23338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23339 /* end confdefs.h. */ 23340 23341 #include <pthread.h> 23342 23343 int 23344 main () 23345 { 23346 23347 pthread_attr_t type; 23348 pthread_attr_init(&type); 23349 23350 ; 23351 return 0; 23352 } 23353 _ACEOF 23354 if ac_fn_c_try_link "$LINENO"; then : 23355 23356 use_pthreads=yes 23357 23358 fi 23359 rm -f core conftest.err conftest.$ac_objext \ 23360 conftest$ac_exeext conftest.$ac_ext 23361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5 23362 $as_echo "$use_pthreads" >&6; } 23363 # Restore the compiler flags and libraries 23364 CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs" 23365 23366 # Do futher testing if we have pthread support... 23367 if test x$use_pthreads = xyes; then 23368 23369 $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h 23370 23371 EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags" 23372 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib" 23373 SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags" 23374 23375 # Save the original compiler flags and libraries 23376 ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS" 23377 # Add the pthread compiler flags and libraries 23378 CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib" 23379 23380 # Check to see if recursive mutexes are available 23381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5 23382 $as_echo_n "checking for recursive mutexes... " >&6; } 23383 has_recursive_mutexes=no 23384 if test x$has_recursive_mutexes = xno; then 23385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23386 /* end confdefs.h. */ 23387 23388 #define _GNU_SOURCE 1 23389 #include <pthread.h> 23390 23391 int 23392 main () 23393 { 23394 23395 pthread_mutexattr_t attr; 23396 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); 23397 23398 ; 23399 return 0; 23400 } 23401 _ACEOF 23402 if ac_fn_c_try_link "$LINENO"; then : 23403 23404 has_recursive_mutexes=yes 23405 23406 $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h 23407 23408 23409 fi 23410 rm -f core conftest.err conftest.$ac_objext \ 23411 conftest$ac_exeext conftest.$ac_ext 23412 fi 23413 if test x$has_recursive_mutexes = xno; then 23414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23415 /* end confdefs.h. */ 23416 23417 #define _GNU_SOURCE 1 23418 #include <pthread.h> 23419 23420 int 23421 main () 23422 { 23423 23424 pthread_mutexattr_t attr; 23425 pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP); 23426 23427 ; 23428 return 0; 23429 } 23430 _ACEOF 23431 if ac_fn_c_try_link "$LINENO"; then : 23432 23433 has_recursive_mutexes=yes 23434 23435 $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h 23436 23437 23438 fi 23439 rm -f core conftest.err conftest.$ac_objext \ 23440 conftest$ac_exeext conftest.$ac_ext 23441 fi 23442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5 23443 $as_echo "$has_recursive_mutexes" >&6; } 23444 23445 # Check to see if pthread semaphore support is missing 23446 if test x$enable_pthread_sem = xyes; then 23447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5 23448 $as_echo_n "checking for pthread semaphores... " >&6; } 23449 have_pthread_sem=no 23450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23451 /* end confdefs.h. */ 23452 23453 #include <pthread.h> 23454 #include <semaphore.h> 23455 23456 int 23457 main () 23458 { 23459 23460 23461 ; 23462 return 0; 23463 } 23464 _ACEOF 23465 if ac_fn_c_try_compile "$LINENO"; then : 23466 23467 have_pthread_sem=yes 23468 23469 fi 23470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5 23472 $as_echo "$have_pthread_sem" >&6; } 23473 fi 23474 if test x$have_pthread_sem = xyes; then 23475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5 23476 $as_echo_n "checking for sem_timedwait... " >&6; } 23477 have_sem_timedwait=no 23478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23479 /* end confdefs.h. */ 23480 23481 #include <pthread.h> 23482 #include <semaphore.h> 23483 23484 int 23485 main () 23486 { 23487 23488 sem_timedwait(NULL, NULL); 23489 23490 ; 23491 return 0; 23492 } 23493 _ACEOF 23494 if ac_fn_c_try_link "$LINENO"; then : 23495 23496 have_sem_timedwait=yes 23497 23498 $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h 23499 23500 23501 fi 23502 rm -f core conftest.err conftest.$ac_objext \ 23503 conftest$ac_exeext conftest.$ac_ext 23504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5 23505 $as_echo "$have_sem_timedwait" >&6; } 23506 fi 23507 23508 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h> 23509 " 23510 if test "x$ac_cv_header_pthread_np_h" = xyes; then : 23511 have_pthread_np_h=yes 23512 else 23513 have_pthread_np_h=no 23514 fi 23515 23516 23517 if test x$have_pthread_np_h = xyes; then 23518 23519 $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h 23520 23521 fi 23522 23523 # Check to see if pthread naming is available 23524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5 23525 $as_echo_n "checking for pthread_setname_np... " >&6; } 23526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23527 /* end confdefs.h. */ 23528 23529 /* Override any GCC internal prototype to avoid an error. 23530 Use char because int might match the return type of a GCC 23531 builtin and then its argument prototype would still apply. */ 23532 #ifdef __cplusplus 23533 extern "C" 23534 #endif 23535 char pthread_setname_np (); 23536 int 23537 main () 23538 { 23539 return pthread_setname_np (); 23540 ; 23541 return 0; 23542 } 23543 _ACEOF 23544 if ac_fn_c_try_link "$LINENO"; then : 23545 23546 has_pthread_setname_np=yes 23547 23548 $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h 23549 23550 23551 else 23552 23553 has_pthread_setname_np=no 23554 23555 fi 23556 rm -f core conftest.err conftest.$ac_objext \ 23557 conftest$ac_exeext conftest.$ac_ext 23558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5 23559 $as_echo "$has_pthread_setname_np" >&6; } 23560 23561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5 23562 $as_echo_n "checking for pthread_set_name_np... " >&6; } 23563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23564 /* end confdefs.h. */ 23565 23566 /* Override any GCC internal prototype to avoid an error. 23567 Use char because int might match the return type of a GCC 23568 builtin and then its argument prototype would still apply. */ 23569 #ifdef __cplusplus 23570 extern "C" 23571 #endif 23572 char pthread_set_name_np (); 23573 int 23574 main () 23575 { 23576 return pthread_set_name_np (); 23577 ; 23578 return 0; 23579 } 23580 _ACEOF 23581 if ac_fn_c_try_link "$LINENO"; then : 23582 23583 has_pthread_set_name_np=yes 23584 23585 $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h 23586 23587 23588 else 23589 23590 has_pthread_set_name_np=no 23591 23592 fi 23593 rm -f core conftest.err conftest.$ac_objext \ 23594 conftest$ac_exeext conftest.$ac_ext 23595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5 23596 $as_echo "$has_pthread_set_name_np" >&6; } 23597 23598 # Restore the compiler flags and libraries 23599 CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs" 23600 23601 # Basic thread creation functions 23602 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c" 23603 23604 # Semaphores 23605 # We can fake these with mutexes and condition variables if necessary 23606 if test x$have_pthread_sem = xyes; then 23607 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c" 23608 else 23609 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c" 23610 fi 23611 23612 # Mutexes 23613 # We can fake these with semaphores if necessary 23614 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c" 23615 23616 # Condition variables 23617 # We can fake these with semaphores and mutexes if necessary 23618 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c" 23619 23620 # Thread local storage 23621 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c" 23622 23623 have_threads=yes 23624 fi 23625 fi 23626 } 23627 23628 CheckWINDOWS() 23629 { 23630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5 23631 $as_echo_n "checking Windows compiler... " >&6; } 23632 have_win32_gcc=no 23633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23634 /* end confdefs.h. */ 23635 23636 #include <windows.h> 23637 23638 int 23639 main () 23640 { 23641 23642 23643 ; 23644 return 0; 23645 } 23646 _ACEOF 23647 if ac_fn_c_try_compile "$LINENO"; then : 23648 23649 have_win32_gcc=yes 23650 23651 fi 23652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5 23654 $as_echo "$have_win32_gcc" >&6; } 23655 if test x$have_win32_gcc != xyes; then 23656 as_fn_error $? " 23657 *** Your compiler ($CC) does not produce Windows executables! 23658 " "$LINENO" 5 23659 fi 23660 23661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5 23662 $as_echo_n "checking Windows CE... " >&6; } 23663 have_wince=no 23664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23665 /* end confdefs.h. */ 23666 23667 #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__) 23668 #error This is not Windows CE 23669 #endif 23670 23671 int 23672 main () 23673 { 23674 23675 23676 ; 23677 return 0; 23678 } 23679 _ACEOF 23680 if ac_fn_c_try_compile "$LINENO"; then : 23681 23682 have_wince=yes 23683 as_fn_error $? " 23684 *** Sorry, Windows CE is no longer supported. 23685 " "$LINENO" 5 23686 23687 fi 23688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5 23690 $as_echo "$have_wince" >&6; } 23691 23692 # This fixes Windows stack alignment with newer GCC 23693 CheckStackBoundary 23694 } 23695 23696 CheckDIRECTX() 23697 { 23698 # Check whether --enable-directx was given. 23699 if test "${enable_directx+set}" = set; then : 23700 enableval=$enable_directx; 23701 else 23702 enable_directx=yes 23703 fi 23704 23705 if test x$enable_directx = xyes; then 23706 ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default" 23707 if test "x$ac_cv_header_d3d9_h" = xyes; then : 23708 have_d3d=yes 23709 fi 23710 23711 23712 ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default" 23713 if test "x$ac_cv_header_d3d11_1_h" = xyes; then : 23714 have_d3d11=yes 23715 fi 23716 23717 23718 ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default" 23719 if test "x$ac_cv_header_ddraw_h" = xyes; then : 23720 have_ddraw=yes 23721 fi 23722 23723 23724 ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default" 23725 if test "x$ac_cv_header_dsound_h" = xyes; then : 23726 have_dsound=yes 23727 fi 23728 23729 23730 ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default" 23731 if test "x$ac_cv_header_dinput_h" = xyes; then : 23732 have_dinput=yes 23733 fi 23734 23735 23736 ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default" 23737 if test "x$ac_cv_header_dxgi_h" = xyes; then : 23738 have_dxgi=yes 23739 fi 23740 23741 23742 ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default" 23743 if test "x$ac_cv_header_xinput_h" = xyes; then : 23744 have_xinput=yes 23745 fi 23746 23747 23748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23749 /* end confdefs.h. */ 23750 23751 #include <windows.h> 23752 #include <xinput.h> 23753 XINPUT_GAMEPAD_EX x1; 23754 23755 int 23756 main () 23757 { 23758 23759 ; 23760 return 0; 23761 } 23762 _ACEOF 23763 if ac_fn_c_try_compile "$LINENO"; then : 23764 have_xinput_gamepadex=yes 23765 fi 23766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23768 /* end confdefs.h. */ 23769 23770 #include <windows.h> 23771 #include <xinput.h> 23772 XINPUT_STATE_EX s1; 23773 23774 int 23775 main () 23776 { 23777 23778 ; 23779 return 0; 23780 } 23781 _ACEOF 23782 if ac_fn_c_try_compile "$LINENO"; then : 23783 have_xinput_stateex=yes 23784 fi 23785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23786 23787 if test x$have_ddraw = xyes; then 23788 23789 $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h 23790 23791 fi 23792 if test x$have_dinput = xyes; then 23793 23794 $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h 23795 23796 fi 23797 if test x$have_dsound = xyes; then 23798 23799 $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h 23800 23801 fi 23802 if test x$have_dxgi = xyes; then 23803 23804 $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h 23805 23806 fi 23807 if test x$have_xinput = xyes; then 23808 23809 $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h 23810 23811 fi 23812 if test x$have_xinput_gamepadex = xyes; then 23813 23814 $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h 23815 23816 fi 23817 if test x$have_xinput_stateex = xyes; then 23818 23819 $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h 23820 23821 fi 23822 23823 # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers. 23824 # FIXME: ...so force it off for now. 23825 case "$host" in 23826 *-*-cygwin*) 23827 have_dinput=false 23828 ;; 23829 esac 23830 fi 23831 23832 ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default" 23833 if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then : 23834 have_wasapi=yes 23835 fi 23836 23837 23838 if test x$have_wasapi = xyes; then 23839 23840 $as_echo "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h 23841 23842 fi 23843 ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default" 23844 if test "x$ac_cv_header_audioclient_h" = xyes; then : 23845 23846 else 23847 have_wasapi=no 23848 fi 23849 23850 23851 if test x$have_wasapi = xyes; then 23852 23853 $as_echo "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h 23854 23855 fi 23856 23857 # Check whether --enable-wasapi was given. 23858 if test "${enable_wasapi+set}" = set; then : 23859 enableval=$enable_wasapi; 23860 else 23861 enable_wasapi=yes 23862 fi 23863 23864 } 23865 23866 CheckDLOPEN() 23867 { 23868 # Check whether --enable-sdl-dlopen was given. 23869 if test "${enable_sdl_dlopen+set}" = set; then : 23870 enableval=$enable_sdl_dlopen; 23871 else 23872 enable_sdl_dlopen=yes 23873 fi 23874 23875 if test x$enable_sdl_dlopen = xyes; then 23876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5 23877 $as_echo_n "checking for dlopen... " >&6; } 23878 have_dlopen=no 23879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23880 /* end confdefs.h. */ 23881 23882 #include <dlfcn.h> 23883 23884 int 23885 main () 23886 { 23887 23888 void *handle = dlopen("", RTLD_NOW); 23889 const char *loaderror = (char *) dlerror(); 23890 23891 ; 23892 return 0; 23893 } 23894 _ACEOF 23895 if ac_fn_c_try_compile "$LINENO"; then : 23896 23897 have_dlopen=yes 23898 23899 fi 23900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5 23902 $as_echo "$have_dlopen" >&6; } 23903 23904 if test x$have_dlopen = xyes; then 23905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5 23906 $as_echo_n "checking for dlopen in -lc... " >&6; } 23907 if ${ac_cv_lib_c_dlopen+:} false; then : 23908 $as_echo_n "(cached) " >&6 23909 else 23910 ac_check_lib_save_LIBS=$LIBS 23911 LIBS="-lc $LIBS" 23912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23913 /* end confdefs.h. */ 23914 23915 /* Override any GCC internal prototype to avoid an error. 23916 Use char because int might match the return type of a GCC 23917 builtin and then its argument prototype would still apply. */ 23918 #ifdef __cplusplus 23919 extern "C" 23920 #endif 23921 char dlopen (); 23922 int 23923 main () 23924 { 23925 return dlopen (); 23926 ; 23927 return 0; 23928 } 23929 _ACEOF 23930 if ac_fn_c_try_link "$LINENO"; then : 23931 ac_cv_lib_c_dlopen=yes 23932 else 23933 ac_cv_lib_c_dlopen=no 23934 fi 23935 rm -f core conftest.err conftest.$ac_objext \ 23936 conftest$ac_exeext conftest.$ac_ext 23937 LIBS=$ac_check_lib_save_LIBS 23938 fi 23939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5 23940 $as_echo "$ac_cv_lib_c_dlopen" >&6; } 23941 if test "x$ac_cv_lib_c_dlopen" = xyes; then : 23942 EXTRA_LDFLAGS="$EXTRA_LDFLAGS" 23943 else 23944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 23945 $as_echo_n "checking for dlopen in -ldl... " >&6; } 23946 if ${ac_cv_lib_dl_dlopen+:} false; then : 23947 $as_echo_n "(cached) " >&6 23948 else 23949 ac_check_lib_save_LIBS=$LIBS 23950 LIBS="-ldl $LIBS" 23951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23952 /* end confdefs.h. */ 23953 23954 /* Override any GCC internal prototype to avoid an error. 23955 Use char because int might match the return type of a GCC 23956 builtin and then its argument prototype would still apply. */ 23957 #ifdef __cplusplus 23958 extern "C" 23959 #endif 23960 char dlopen (); 23961 int 23962 main () 23963 { 23964 return dlopen (); 23965 ; 23966 return 0; 23967 } 23968 _ACEOF 23969 if ac_fn_c_try_link "$LINENO"; then : 23970 ac_cv_lib_dl_dlopen=yes 23971 else 23972 ac_cv_lib_dl_dlopen=no 23973 fi 23974 rm -f core conftest.err conftest.$ac_objext \ 23975 conftest$ac_exeext conftest.$ac_ext 23976 LIBS=$ac_check_lib_save_LIBS 23977 fi 23978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 23979 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 23980 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 23981 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl" 23982 else 23983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5 23984 $as_echo_n "checking for dlopen in -lltdl... " >&6; } 23985 if ${ac_cv_lib_ltdl_dlopen+:} false; then : 23986 $as_echo_n "(cached) " >&6 23987 else 23988 ac_check_lib_save_LIBS=$LIBS 23989 LIBS="-lltdl $LIBS" 23990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23991 /* end confdefs.h. */ 23992 23993 /* Override any GCC internal prototype to avoid an error. 23994 Use char because int might match the return type of a GCC 23995 builtin and then its argument prototype would still apply. */ 23996 #ifdef __cplusplus 23997 extern "C" 23998 #endif 23999 char dlopen (); 24000 int 24001 main () 24002 { 24003 return dlopen (); 24004 ; 24005 return 0; 24006 } 24007 _ACEOF 24008 if ac_fn_c_try_link "$LINENO"; then : 24009 ac_cv_lib_ltdl_dlopen=yes 24010 else 24011 ac_cv_lib_ltdl_dlopen=no 24012 fi 24013 rm -f core conftest.err conftest.$ac_objext \ 24014 conftest$ac_exeext conftest.$ac_ext 24015 LIBS=$ac_check_lib_save_LIBS 24016 fi 24017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5 24018 $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; } 24019 if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then : 24020 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl" 24021 fi 24022 24023 fi 24024 24025 fi 24026 24027 24028 $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h 24029 24030 SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c" 24031 have_loadso=yes 24032 fi 24033 fi 24034 } 24035 24036 CheckUSBHID() 24037 { 24038 case "$host" in 24039 *-*-*bsd*|*-*-dragonfly*) 24040 if test x$enable_joystick = xyes; then 24041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5 24042 $as_echo_n "checking for hid_init in -lusbhid... " >&6; } 24043 if ${ac_cv_lib_usbhid_hid_init+:} false; then : 24044 $as_echo_n "(cached) " >&6 24045 else 24046 ac_check_lib_save_LIBS=$LIBS 24047 LIBS="-lusbhid $LIBS" 24048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24049 /* end confdefs.h. */ 24050 24051 /* Override any GCC internal prototype to avoid an error. 24052 Use char because int might match the return type of a GCC 24053 builtin and then its argument prototype would still apply. */ 24054 #ifdef __cplusplus 24055 extern "C" 24056 #endif 24057 char hid_init (); 24058 int 24059 main () 24060 { 24061 return hid_init (); 24062 ; 24063 return 0; 24064 } 24065 _ACEOF 24066 if ac_fn_c_try_link "$LINENO"; then : 24067 ac_cv_lib_usbhid_hid_init=yes 24068 else 24069 ac_cv_lib_usbhid_hid_init=no 24070 fi 24071 rm -f core conftest.err conftest.$ac_objext \ 24072 conftest$ac_exeext conftest.$ac_ext 24073 LIBS=$ac_check_lib_save_LIBS 24074 fi 24075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5 24076 $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; } 24077 if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then : 24078 have_libusbhid=yes 24079 fi 24080 24081 if test x$have_libusbhid = xyes; then 24082 ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default" 24083 if test "x$ac_cv_header_usbhid_h" = xyes; then : 24084 USB_CFLAGS="-DHAVE_USBHID_H" 24085 fi 24086 24087 24088 ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default" 24089 if test "x$ac_cv_header_libusbhid_h" = xyes; then : 24090 USB_CFLAGS="-DHAVE_LIBUSBHID_H" 24091 fi 24092 24093 24094 USB_LIBS="$USB_LIBS -lusbhid" 24095 else 24096 ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default" 24097 if test "x$ac_cv_header_usb_h" = xyes; then : 24098 USB_CFLAGS="-DHAVE_USB_H" 24099 fi 24100 24101 24102 ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default" 24103 if test "x$ac_cv_header_libusb_h" = xyes; then : 24104 USB_CFLAGS="-DHAVE_LIBUSB_H" 24105 fi 24106 24107 24108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5 24109 $as_echo_n "checking for hid_init in -lusb... " >&6; } 24110 if ${ac_cv_lib_usb_hid_init+:} false; then : 24111 $as_echo_n "(cached) " >&6 24112 else 24113 ac_check_lib_save_LIBS=$LIBS 24114 LIBS="-lusb $LIBS" 24115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24116 /* end confdefs.h. */ 24117 24118 /* Override any GCC internal prototype to avoid an error. 24119 Use char because int might match the return type of a GCC 24120 builtin and then its argument prototype would still apply. */ 24121 #ifdef __cplusplus 24122 extern "C" 24123 #endif 24124 char hid_init (); 24125 int 24126 main () 24127 { 24128 return hid_init (); 24129 ; 24130 return 0; 24131 } 24132 _ACEOF 24133 if ac_fn_c_try_link "$LINENO"; then : 24134 ac_cv_lib_usb_hid_init=yes 24135 else 24136 ac_cv_lib_usb_hid_init=no 24137 fi 24138 rm -f core conftest.err conftest.$ac_objext \ 24139 conftest$ac_exeext conftest.$ac_ext 24140 LIBS=$ac_check_lib_save_LIBS 24141 fi 24142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5 24143 $as_echo "$ac_cv_lib_usb_hid_init" >&6; } 24144 if test "x$ac_cv_lib_usb_hid_init" = xyes; then : 24145 USB_LIBS="$USB_LIBS -lusb" 24146 fi 24147 24148 fi 24149 24150 save_CFLAGS="$CFLAGS" 24151 CFLAGS="$CFLAGS $USB_CFLAGS" 24152 24153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5 24154 $as_echo_n "checking for usbhid... " >&6; } 24155 have_usbhid=no 24156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24157 /* end confdefs.h. */ 24158 24159 #include <sys/types.h> 24160 #if defined(HAVE_USB_H) 24161 #include <usb.h> 24162 #endif 24163 #ifdef __DragonFly__ 24164 # include <bus/u4b/usb.h> 24165 # include <bus/u4b/usbhid.h> 24166 #else 24167 # include <dev/usb/usb.h> 24168 # include <dev/usb/usbhid.h> 24169 #endif 24170 #if defined(HAVE_USBHID_H) 24171 #include <usbhid.h> 24172 #elif defined(HAVE_LIBUSB_H) 24173 #include <libusb.h> 24174 #elif defined(HAVE_LIBUSBHID_H) 24175 #include <libusbhid.h> 24176 #endif 24177 24178 int 24179 main () 24180 { 24181 24182 struct report_desc *repdesc; 24183 struct usb_ctl_report *repbuf; 24184 hid_kind_t hidkind; 24185 24186 ; 24187 return 0; 24188 } 24189 _ACEOF 24190 if ac_fn_c_try_compile "$LINENO"; then : 24191 24192 have_usbhid=yes 24193 24194 fi 24195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5 24197 $as_echo "$have_usbhid" >&6; } 24198 24199 if test x$have_usbhid = xyes; then 24200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5 24201 $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; } 24202 have_usbhid_ucr_data=no 24203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24204 /* end confdefs.h. */ 24205 24206 #include <sys/types.h> 24207 #if defined(HAVE_USB_H) 24208 #include <usb.h> 24209 #endif 24210 #ifdef __DragonFly__ 24211 # include <bus/u4b/usb.h> 24212 # include <bus/u4b/usbhid.h> 24213 #else 24214 # include <dev/usb/usb.h> 24215 # include <dev/usb/usbhid.h> 24216 #endif 24217 #if defined(HAVE_USBHID_H) 24218 #include <usbhid.h> 24219 #elif defined(HAVE_LIBUSB_H) 24220 #include <libusb.h> 24221 #elif defined(HAVE_LIBUSBHID_H) 24222 #include <libusbhid.h> 24223 #endif 24224 24225 int 24226 main () 24227 { 24228 24229 struct usb_ctl_report buf; 24230 if (buf.ucr_data) { } 24231 24232 ; 24233 return 0; 24234 } 24235 _ACEOF 24236 if ac_fn_c_try_compile "$LINENO"; then : 24237 24238 have_usbhid_ucr_data=yes 24239 24240 fi 24241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24242 if test x$have_usbhid_ucr_data = xyes; then 24243 USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA" 24244 fi 24245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5 24246 $as_echo "$have_usbhid_ucr_data" >&6; } 24247 24248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5 24249 $as_echo_n "checking for new usbhid API... " >&6; } 24250 have_usbhid_new=no 24251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24252 /* end confdefs.h. */ 24253 24254 #include <sys/types.h> 24255 #if defined(HAVE_USB_H) 24256 #include <usb.h> 24257 #endif 24258 #ifdef __DragonFly__ 24259 #include <bus/u4b/usb.h> 24260 #include <bus/u4b/usbhid.h> 24261 #else 24262 #include <dev/usb/usb.h> 24263 #include <dev/usb/usbhid.h> 24264 #endif 24265 #if defined(HAVE_USBHID_H) 24266 #include <usbhid.h> 24267 #elif defined(HAVE_LIBUSB_H) 24268 #include <libusb.h> 24269 #elif defined(HAVE_LIBUSBHID_H) 24270 #include <libusbhid.h> 24271 #endif 24272 24273 int 24274 main () 24275 { 24276 24277 report_desc_t d; 24278 hid_start_parse(d, 1, 1); 24279 24280 ; 24281 return 0; 24282 } 24283 _ACEOF 24284 if ac_fn_c_try_compile "$LINENO"; then : 24285 24286 have_usbhid_new=yes 24287 24288 fi 24289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24290 if test x$have_usbhid_new = xyes; then 24291 USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW" 24292 fi 24293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5 24294 $as_echo "$have_usbhid_new" >&6; } 24295 24296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5 24297 $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; } 24298 have_machine_joystick=no 24299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24300 /* end confdefs.h. */ 24301 24302 #include <machine/joystick.h> 24303 24304 int 24305 main () 24306 { 24307 24308 struct joystick t; 24309 24310 ; 24311 return 0; 24312 } 24313 _ACEOF 24314 if ac_fn_c_try_compile "$LINENO"; then : 24315 24316 have_machine_joystick=yes 24317 24318 fi 24319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24320 if test x$have_machine_joystick = xyes; then 24321 24322 $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h 24323 24324 fi 24325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5 24326 $as_echo "$have_machine_joystick" >&6; } 24327 24328 24329 $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h 24330 24331 SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c" 24332 EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS" 24333 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS" 24334 have_joystick=yes 24335 fi 24336 CFLAGS="$save_CFLAGS" 24337 fi 24338 ;; 24339 esac 24340 } 24341 24342 CheckHIDAPI() 24343 { 24344 # Check whether --enable-hidapi was given. 24345 if test "${enable_hidapi+set}" = set; then : 24346 enableval=$enable_hidapi; 24347 else 24348 enable_hidapi=yes 24349 fi 24350 24351 # Check whether --enable-hidapi-libusb was given. 24352 if test "${enable_hidapi_libusb+set}" = set; then : 24353 enableval=$enable_hidapi_libusb; 24354 else 24355 enable_hidapi_libusb=maybe 24356 fi 24357 24358 24359 if test x$enable_joystick = xyes -a x$enable_hidapi = xyes; then 24360 case "$host" in 24361 # libusb does not support iOS 24362 *-ios-* ) 24363 enable_hidapi_libusb=no 24364 ;; 24365 # On the other hand, *BSD specifically uses libusb only 24366 *-*-*bsd* ) 24367 enable_hidapi_libusb=yes 24368 require_hidapi_libusb=yes 24369 ;; 24370 # RAWINPUT is only available on Win32, but can be enabled if HIDAPI is 24371 *-*-cygwin* | *-*-mingw32*) 24372 enable_joystick_rawinput=yes 24373 ;; 24374 esac 24375 24376 hidapi_support=yes 24377 if test x$enable_hidapi_libusb = xyes; then 24378 24379 pkg_failed=no 24380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB" >&5 24381 $as_echo_n "checking for LIBUSB... " >&6; } 24382 24383 if test -n "$LIBUSB_CFLAGS"; then 24384 pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS" 24385 elif test -n "$PKG_CONFIG"; then 24386 if test -n "$PKG_CONFIG" && \ 24387 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5 24388 ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5 24389 ac_status=$? 24390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24391 test $ac_status = 0; }; then 24392 pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null` 24393 else 24394 pkg_failed=yes 24395 fi 24396 else 24397 pkg_failed=untried 24398 fi 24399 if test -n "$LIBUSB_LIBS"; then 24400 pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS" 24401 elif test -n "$PKG_CONFIG"; then 24402 if test -n "$PKG_CONFIG" && \ 24403 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5 24404 ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5 24405 ac_status=$? 24406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24407 test $ac_status = 0; }; then 24408 pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null` 24409 else 24410 pkg_failed=yes 24411 fi 24412 else 24413 pkg_failed=untried 24414 fi 24415 24416 24417 24418 if test $pkg_failed = yes; then 24419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24420 $as_echo "no" >&6; } 24421 24422 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 24423 _pkg_short_errors_supported=yes 24424 else 24425 _pkg_short_errors_supported=no 24426 fi 24427 if test $_pkg_short_errors_supported = yes; then 24428 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libusb-1.0" 2>&1` 24429 else 24430 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libusb-1.0" 2>&1` 24431 fi 24432 # Put the nasty error message in config.log where it belongs 24433 echo "$LIBUSB_PKG_ERRORS" >&5 24434 24435 have_libusb=no 24436 elif test $pkg_failed = untried; then 24437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24438 $as_echo "no" >&6; } 24439 have_libusb=no 24440 else 24441 LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS 24442 LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS 24443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24444 $as_echo "yes" >&6; } 24445 have_libusb=yes 24446 fi 24447 save_CFLAGS="$CFLAGS" 24448 CFLAGS="$save_CFLAGS $LIBUSB_CFLAGS" 24449 ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default" 24450 if test "x$ac_cv_header_libusb_h" = xyes; then : 24451 have_libusb_h=yes 24452 fi 24453 24454 24455 CFLAGS="$save_CFLAGS" 24456 if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then 24457 hidapi_support=no 24458 fi 24459 fi 24460 24461 if test x$hidapi_support = xyes; then 24462 24463 $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h 24464 24465 if test x$enable_joystick_rawinput = xyes; then 24466 24467 $as_echo "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h 24468 24469 fi 24470 EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi" 24471 SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c" 24472 SOURCES="$SOURCES $srcdir/src/hidapi/SDL_hidapi.c" 24473 24474 if test x$have_libusb_h = xyes; then 24475 EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS" 24476 if test x$require_hidapi_libusb = xyes; then 24477 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS" 24478 else 24479 if test x$have_loadso != xyes; then 24480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5 24481 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;} 24482 fi 24483 # libusb is loaded dynamically, so don't add it to LDFLAGS 24484 libusb_lib="" 24485 case "$host" in 24486 *-*-darwin* ) 24487 libusb_lib="libusb-1.0.0.dylib" 24488 ;; 24489 *-*-cygwin* | *-*-mingw32* ) 24490 libusb_lib="libusb-1.0.dll" 24491 ;; 24492 esac 24493 if test x$libusb_lib = x; then 24494 libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'` 24495 fi 24496 24497 cat >>confdefs.h <<_ACEOF 24498 #define SDL_LIBUSB_DYNAMIC "$libusb_lib" 24499 _ACEOF 24500 24501 fi 24502 fi 24503 fi 24504 24505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi support" >&5 24506 $as_echo_n "checking for hidapi support... " >&6; } 24507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5 24508 $as_echo "$hidapi_support" >&6; } 24509 fi 24510 } 24511 24512 CheckClockGettime() 24513 { 24514 # Check whether --enable-clock_gettime was given. 24515 if test "${enable_clock_gettime+set}" = set; then : 24516 enableval=$enable_clock_gettime; 24517 else 24518 enable_clock_gettime=yes 24519 fi 24520 24521 if test x$enable_clock_gettime = xyes; then 24522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 24523 $as_echo_n "checking for clock_gettime in -lrt... " >&6; } 24524 if ${ac_cv_lib_rt_clock_gettime+:} false; then : 24525 $as_echo_n "(cached) " >&6 24526 else 24527 ac_check_lib_save_LIBS=$LIBS 24528 LIBS="-lrt $LIBS" 24529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24530 /* end confdefs.h. */ 24531 24532 /* Override any GCC internal prototype to avoid an error. 24533 Use char because int might match the return type of a GCC 24534 builtin and then its argument prototype would still apply. */ 24535 #ifdef __cplusplus 24536 extern "C" 24537 #endif 24538 char clock_gettime (); 24539 int 24540 main () 24541 { 24542 return clock_gettime (); 24543 ; 24544 return 0; 24545 } 24546 _ACEOF 24547 if ac_fn_c_try_link "$LINENO"; then : 24548 ac_cv_lib_rt_clock_gettime=yes 24549 else 24550 ac_cv_lib_rt_clock_gettime=no 24551 fi 24552 rm -f core conftest.err conftest.$ac_objext \ 24553 conftest$ac_exeext conftest.$ac_ext 24554 LIBS=$ac_check_lib_save_LIBS 24555 fi 24556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 24557 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } 24558 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : 24559 have_clock_gettime=yes 24560 fi 24561 24562 if test x$have_clock_gettime = xyes; then 24563 24564 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 24565 24566 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt" 24567 else 24568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5 24569 $as_echo_n "checking for clock_gettime in -lc... " >&6; } 24570 if ${ac_cv_lib_c_clock_gettime+:} false; then : 24571 $as_echo_n "(cached) " >&6 24572 else 24573 ac_check_lib_save_LIBS=$LIBS 24574 LIBS="-lc $LIBS" 24575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24576 /* end confdefs.h. */ 24577 24578 /* Override any GCC internal prototype to avoid an error. 24579 Use char because int might match the return type of a GCC 24580 builtin and then its argument prototype would still apply. */ 24581 #ifdef __cplusplus 24582 extern "C" 24583 #endif 24584 char clock_gettime (); 24585 int 24586 main () 24587 { 24588 return clock_gettime (); 24589 ; 24590 return 0; 24591 } 24592 _ACEOF 24593 if ac_fn_c_try_link "$LINENO"; then : 24594 ac_cv_lib_c_clock_gettime=yes 24595 else 24596 ac_cv_lib_c_clock_gettime=no 24597 fi 24598 rm -f core conftest.err conftest.$ac_objext \ 24599 conftest$ac_exeext conftest.$ac_ext 24600 LIBS=$ac_check_lib_save_LIBS 24601 fi 24602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5 24603 $as_echo "$ac_cv_lib_c_clock_gettime" >&6; } 24604 if test "x$ac_cv_lib_c_clock_gettime" = xyes; then : 24605 have_clock_gettime=yes 24606 fi 24607 24608 if test x$have_clock_gettime = xyes; then 24609 24610 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 24611 24612 EXTRA_LDFLAGS="$EXTRA_LDFLAGS" 24613 fi 24614 fi 24615 fi 24616 } 24617 24618 CheckLinuxVersion() 24619 { 24620 ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default" 24621 if test "x$ac_cv_header_linux_version_h" = xyes; then : 24622 have_linux_version_h=yes 24623 fi 24624 24625 24626 if test x$have_linux_version_h = xyes; then 24627 EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H" 24628 fi 24629 } 24630 24631 CheckRPATH() 24632 { 24633 # Check whether --enable-rpath was given. 24634 if test "${enable_rpath+set}" = set; then : 24635 enableval=$enable_rpath; 24636 else 24637 enable_rpath=yes 24638 fi 24639 24640 } 24641 24642 CheckEventSignals() 24643 { 24644 # Check whether --enable-backgrounding-signal was given. 24645 if test "${enable_backgrounding_signal+set}" = set; then : 24646 enableval=$enable_backgrounding_signal; 24647 else 24648 enable_backgrounding_signal=no 24649 fi 24650 24651 if test x$enable_backgrounding_signal != xno; then 24652 EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal" 24653 fi 24654 24655 # Check whether --enable-foregrounding-signal was given. 24656 if test "${enable_foregrounding_signal+set}" = set; then : 24657 enableval=$enable_foregrounding_signal; 24658 else 24659 enable_foregrounding_signal=no 24660 fi 24661 24662 if test x$enable_foregrounding_signal != xno; then 24663 EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal" 24664 fi 24665 } 24666 24667 CheckVirtualJoystick() 24668 { 24669 # Check whether --enable-joystick-virtual was given. 24670 if test "${enable_joystick_virtual+set}" = set; then : 24671 enableval=$enable_joystick_virtual; 24672 else 24673 enable_joystick_virtual=yes 24674 fi 24675 24676 if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then 24677 24678 $as_echo "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h 24679 24680 SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c" 24681 have_joystick_virtual=yes 24682 fi 24683 } 24684 24685 CheckWarnAll 24686 CheckNoStrictAliasing 24687 24688 CheckEventSignals 24689 24690 have_locale=no 24691 24692 case "$host" in 24693 *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*) 24694 case "$host" in 24695 *-*-android*) 24696 # Android 24697 ARCH=android 24698 ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES" 24699 CFLAGS="$CFLAGS $ANDROID_CFLAGS" 24700 SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS" 24701 EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS" 24702 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid" 24703 SDLMAIN_SOURCES="$srcdir/src/main/android/*.c" 24704 if test x$enable_video = xyes; then 24705 SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c" 24706 24707 $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h 24708 24709 SUMMARY_video="${SUMMARY_video} android" 24710 fi 24711 ;; 24712 *-*-linux*) ARCH=linux ;; 24713 *-*-uclinux*) ARCH=linux ;; 24714 *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;; 24715 *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;; 24716 *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;; 24717 *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants 24718 *-*-bsdi*) ARCH=bsdi ;; 24719 *-*-freebsd*) ARCH=freebsd ;; 24720 *-*-dragonfly*) ARCH=freebsd ;; 24721 *-*-netbsd*) ARCH=netbsd ;; 24722 *-*-openbsd*) ARCH=openbsd ;; 24723 *-*-sysv5*) ARCH=sysv5 ;; 24724 *-*-solaris*) ARCH=solaris ;; 24725 *-*-hpux*) ARCH=hpux ;; 24726 *-*-aix*) ARCH=aix ;; 24727 *-*-minix*) ARCH=minix ;; 24728 *-*-nto*) ARCH=nto 24729 CheckQNXVideo 24730 ;; 24731 esac 24732 CheckVisibilityHidden 24733 CheckDeclarationAfterStatement 24734 CheckDummyVideo 24735 CheckDiskAudio 24736 CheckDummyAudio 24737 CheckDLOPEN 24738 CheckARM 24739 CheckNEON 24740 CheckOSS 24741 CheckALSA 24742 CheckPulseAudio 24743 CheckJACK 24744 CheckARTSC 24745 CheckESD 24746 CheckNAS 24747 CheckSNDIO 24748 CheckFusionSound 24749 CheckLibSampleRate 24750 # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails! 24751 CheckRPI 24752 CheckX11 24753 CheckDirectFB 24754 CheckKMSDRM 24755 CheckOpenGLX11 24756 CheckOpenGLESX11 24757 CheckVulkan 24758 CheckWayland 24759 CheckInputEvents 24760 CheckLibUDev 24761 CheckDBus 24762 CheckIME 24763 CheckInotify 24764 CheckIBus 24765 CheckFcitx 24766 case $ARCH in 24767 linux) 24768 CheckInputKD 24769 ;; 24770 freebsd) 24771 CheckInputKBIO 24772 ;; 24773 esac 24774 CheckUSBHID 24775 CheckHIDAPI 24776 CheckPTHREAD 24777 CheckClockGettime 24778 CheckLinuxVersion 24779 CheckRPATH 24780 CheckVivanteVideo 24781 24782 SOURCES="$SOURCES $srcdir/src/misc/unix/*.c" 24783 have_misc=yes 24784 24785 SOURCES="$SOURCES $srcdir/src/locale/unix/*.c" 24786 have_locale=yes 24787 24788 # Set up files for the audio library 24789 if test x$enable_audio = xyes; then 24790 case $ARCH in 24791 sysv5|solaris|hpux) 24792 24793 $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h 24794 24795 SOURCES="$SOURCES $srcdir/src/audio/sun/*.c" 24796 SUMMARY_audio="${SUMMARY_audio} sun" 24797 have_audio=yes 24798 ;; 24799 netbsd) # Don't use this on OpenBSD, it's busted. 24800 24801 $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h 24802 24803 SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c" 24804 SUMMARY_audio="${SUMMARY_audio} netbsd" 24805 have_audio=yes 24806 ;; 24807 aix) 24808 24809 $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h 24810 24811 SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c" 24812 SUMMARY_audio="${SUMMARY_audio} paudio" 24813 have_audio=yes 24814 ;; 24815 android) 24816 24817 $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h 24818 24819 SOURCES="$SOURCES $srcdir/src/audio/android/*.c" 24820 SUMMARY_audio="${SUMMARY_audio} android" 24821 have_audio=yes 24822 ;; 24823 nto) 24824 CheckQNXAudio 24825 ;; 24826 esac 24827 fi 24828 # Set up files for the joystick library 24829 if test x$enable_joystick = xyes; then 24830 case $ARCH in 24831 linux) 24832 24833 $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h 24834 24835 SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c" 24836 SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c" 24837 have_joystick=yes 24838 ;; 24839 freebsd) 24840 if test x$use_input_events = xyes; then 24841 24842 $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h 24843 24844 SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c" 24845 SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c" 24846 have_joystick=yes 24847 fi 24848 ;; 24849 android) 24850 24851 $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h 24852 24853 SOURCES="$SOURCES $srcdir/src/joystick/android/*.c" 24854 SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c" 24855 have_joystick=yes 24856 ;; 24857 esac 24858 fi 24859 # Set up files for the haptic library 24860 if test x$enable_haptic = xyes; then 24861 case $ARCH in 24862 linux|freebsd) 24863 if test x$use_input_events = xyes; then 24864 24865 $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h 24866 24867 SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c" 24868 have_haptic=yes 24869 fi 24870 ;; 24871 android) 24872 24873 $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h 24874 24875 SOURCES="$SOURCES $srcdir/src/haptic/android/*.c" 24876 have_haptic=yes 24877 ;; 24878 esac 24879 fi 24880 # Set up files for the sensor library 24881 if test x$enable_sensor = xyes; then 24882 case $ARCH in 24883 android) 24884 24885 $as_echo "#define SDL_SENSOR_ANDROID 1" >>confdefs.h 24886 24887 SOURCES="$SOURCES $srcdir/src/sensor/android/*.c" 24888 have_sensor=yes 24889 ;; 24890 esac 24891 fi 24892 # Set up files for the power library 24893 if test x$enable_power = xyes; then 24894 case $ARCH in 24895 linux) 24896 24897 $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h 24898 24899 SOURCES="$SOURCES $srcdir/src/power/linux/*.c" 24900 have_power=yes 24901 ;; 24902 android) 24903 24904 $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h 24905 24906 SOURCES="$SOURCES $srcdir/src/power/android/*.c" 24907 have_power=yes 24908 ;; 24909 esac 24910 fi 24911 # Set up files for the filesystem library 24912 if test x$enable_filesystem = xyes; then 24913 case $ARCH in 24914 android) 24915 24916 $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h 24917 24918 SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c" 24919 have_filesystem=yes 24920 ;; 24921 *) 24922 24923 $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h 24924 24925 SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c" 24926 have_filesystem=yes 24927 ;; 24928 esac 24929 fi 24930 # Set up files for the timer library 24931 if test x$enable_timers = xyes; then 24932 24933 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h 24934 24935 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c" 24936 have_timers=yes 24937 fi 24938 # Set up files for udev hotplugging support 24939 if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then 24940 SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c" 24941 fi 24942 # Set up files for evdev input 24943 if test x$use_input_events = xyes; then 24944 SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c" 24945 SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c" 24946 SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c" 24947 fi 24948 # Set up other core UNIX files 24949 SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c" 24950 SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c" 24951 SOURCES="$SOURCES $srcdir/src/core/unix/*.c" 24952 ;; 24953 *-*-cygwin* | *-*-mingw32*) 24954 ARCH=win32 24955 if test "$build" != "$host"; then # cross-compiling 24956 # Default cross-compile location 24957 ac_default_prefix=/usr/local/cross-tools/$host 24958 else 24959 # Look for the location of the tools and install there 24960 if test "$BUILD_PREFIX" != ""; then 24961 ac_default_prefix=$BUILD_PREFIX 24962 fi 24963 fi 24964 CheckDeclarationAfterStatement 24965 CheckDummyVideo 24966 CheckDiskAudio 24967 CheckDummyAudio 24968 CheckWINDOWS 24969 CheckWINDOWSGL 24970 CheckWINDOWSGLES 24971 CheckVulkan 24972 CheckDIRECTX 24973 CheckHIDAPI 24974 24975 # Set up the core platform files 24976 SOURCES="$SOURCES $srcdir/src/core/windows/*.c" 24977 24978 SOURCES="$SOURCES $srcdir/src/misc/windows/*.c" 24979 have_misc=yes 24980 24981 # Use the Windows locale APIs. 24982 SOURCES="$SOURCES $srcdir/src/locale/windows/*.c" 24983 have_locale=yes 24984 24985 # Set up files for the video library 24986 if test x$enable_video = xyes; then 24987 24988 $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h 24989 24990 SOURCES="$SOURCES $srcdir/src/video/windows/*.c" 24991 have_video=yes 24992 # Check whether --enable-render-d3d was given. 24993 if test "${enable_render_d3d+set}" = set; then : 24994 enableval=$enable_render_d3d; 24995 else 24996 enable_render_d3d=yes 24997 fi 24998 24999 if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then 25000 25001 $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h 25002 25003 SUMMARY_video="${SUMMARY_video} d3d9" 25004 fi 25005 if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then 25006 25007 $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h 25008 25009 SUMMARY_video="${SUMMARY_video} d3d11" 25010 fi 25011 fi 25012 # Set up files for the audio library 25013 if test x$enable_audio = xyes; then 25014 25015 $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h 25016 25017 SUMMARY_audio="${SUMMARY_audio} winmm" 25018 SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c" 25019 if test x$have_dsound = xyes; then 25020 25021 $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h 25022 25023 SUMMARY_audio="${SUMMARY_audio} directsound" 25024 SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c" 25025 fi 25026 if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then 25027 25028 $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h 25029 25030 SUMMARY_audio="${SUMMARY_audio} wasapi" 25031 SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c" 25032 fi 25033 have_audio=yes 25034 fi 25035 # Set up files for the joystick library 25036 if test x$enable_joystick = xyes; then 25037 if test x$have_dinput = xyes -o x$have_xinput = xyes; then 25038 if test x$have_xinput = xyes; then 25039 25040 $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h 25041 25042 fi 25043 if test x$have_dinput = xyes; then 25044 25045 $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h 25046 25047 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8" 25048 fi 25049 else 25050 25051 $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h 25052 25053 fi 25054 SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c" 25055 have_joystick=yes 25056 fi 25057 if test x$enable_haptic = xyes; then 25058 if test x$have_dinput = xyes -o x$have_xinput = xyes; then 25059 if test x$have_xinput = xyes; then 25060 25061 $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h 25062 25063 fi 25064 if test x$have_dinput = xyes; then 25065 25066 $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h 25067 25068 fi 25069 SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c" 25070 have_haptic=yes 25071 fi 25072 fi 25073 # Set up files for the sensor library 25074 ac_fn_c_check_header_mongrel "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default" 25075 if test "x$ac_cv_header_sensorsapi_h" = xyes; then : 25076 have_winsensors=yes 25077 else 25078 have_winsensors=no 25079 fi 25080 25081 25082 if test x$have_winsensors = xyes; then 25083 25084 $as_echo "#define HAVE_SENSORSAPI_H 1" >>confdefs.h 25085 25086 fi 25087 if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then 25088 25089 $as_echo "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h 25090 25091 SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c" 25092 have_sensor=yes 25093 fi 25094 # Set up files for the power library 25095 if test x$enable_power = xyes; then 25096 25097 $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h 25098 25099 SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c" 25100 have_power=yes 25101 fi 25102 # Set up files for the filesystem library 25103 if test x$enable_filesystem = xyes; then 25104 25105 $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h 25106 25107 SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c" 25108 have_filesystem=yes 25109 fi 25110 # Set up files for the thread library 25111 if test x$enable_threads = xyes; then 25112 25113 $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h 25114 25115 SOURCES="$SOURCES $srcdir/src/thread/windows/*.c" 25116 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c" 25117 have_threads=yes 25118 fi 25119 # Set up files for the timer library 25120 if test x$enable_timers = xyes; then 25121 25122 $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h 25123 25124 SOURCES="$SOURCES $srcdir/src/timer/windows/*.c" 25125 have_timers=yes 25126 fi 25127 # Set up files for the shared object loading library 25128 if test x$enable_loadso = xyes; then 25129 25130 $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h 25131 25132 SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c" 25133 have_loadso=yes 25134 fi 25135 # Set up the system libraries we need 25136 if test -f /lib/w32api/libuuid.a; then 25137 LIBUUID=/lib/w32api/libuuid.a 25138 else 25139 LIBUUID=-luuid 25140 fi 25141 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID -static-libgcc" 25142 # The Windows platform requires special setup 25143 VERSION_SOURCES="$srcdir/src/main/windows/*.rc" 25144 SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c" 25145 SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main" 25146 SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows" 25147 25148 # Check to see if this is a mingw or cygwin build 25149 have_mingw32= 25150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5 25151 $as_echo_n "checking for main in -lmingw32... " >&6; } 25152 if ${ac_cv_lib_mingw32_main+:} false; then : 25153 $as_echo_n "(cached) " >&6 25154 else 25155 ac_check_lib_save_LIBS=$LIBS 25156 LIBS="-lmingw32 $LIBS" 25157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25158 /* end confdefs.h. */ 25159 25160 25161 int 25162 main () 25163 { 25164 return main (); 25165 ; 25166 return 0; 25167 } 25168 _ACEOF 25169 if ac_fn_c_try_link "$LINENO"; then : 25170 ac_cv_lib_mingw32_main=yes 25171 else 25172 ac_cv_lib_mingw32_main=no 25173 fi 25174 rm -f core conftest.err conftest.$ac_objext \ 25175 conftest$ac_exeext conftest.$ac_ext 25176 LIBS=$ac_check_lib_save_LIBS 25177 fi 25178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5 25179 $as_echo "$ac_cv_lib_mingw32_main" >&6; } 25180 if test "x$ac_cv_lib_mingw32_main" = xyes; then : 25181 have_mingw32=yes 25182 fi 25183 25184 if test x$have_mingw32 = xyes; then 25185 SDL_LIBS="-lmingw32 $SDL_LIBS" 25186 else 25187 SDL_LIBS="-lcygwin $SDL_LIBS" 25188 fi 25189 ;; 25190 25191 *-*-beos*) 25192 as_fn_error $? " 25193 *** BeOS support has been removed as of SDL 2.0.2. 25194 " "$LINENO" 5 25195 ;; 25196 25197 *-*-haiku*) 25198 ARCH=haiku 25199 ac_default_prefix=/boot/system 25200 CheckDummyVideo 25201 CheckDiskAudio 25202 CheckDummyAudio 25203 CheckDLOPEN 25204 CheckHaikuVideo 25205 CheckHaikuGL 25206 CheckPTHREAD 25207 25208 # Set up files for the audio library 25209 if test x$enable_audio = xyes; then 25210 25211 $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h 25212 25213 SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc" 25214 SUMMARY_audio="${SUMMARY_audio} haiku" 25215 have_audio=yes 25216 fi 25217 # Set up files for the joystick library 25218 if test x$enable_joystick = xyes; then 25219 25220 $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h 25221 25222 SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc" 25223 have_joystick=yes 25224 fi 25225 # Set up files for the timer library 25226 if test x$enable_timers = xyes; then 25227 25228 $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h 25229 25230 SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c" 25231 have_timers=yes 25232 fi 25233 # Set up files for the system power library 25234 if test x$enable_power = xyes; then 25235 25236 $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h 25237 25238 SOURCES="$SOURCES $srcdir/src/power/haiku/*.c" 25239 have_power=yes 25240 fi 25241 # Set up files for the system filesystem library 25242 if test x$enable_filesystem = xyes; then 25243 25244 $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h 25245 25246 SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc" 25247 have_filesystem=yes 25248 fi 25249 25250 SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc" 25251 have_misc=yes 25252 25253 # Set up files for the locale library 25254 SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc" 25255 have_locale=yes 25256 25257 # The Haiku platform requires special setup. 25258 SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES" 25259 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding" 25260 # Haiku's x86 spins use libstdc++.r4.so (for binary compat?), but 25261 # other spins, like x86-64, use a more standard "libstdc++.so.*" 25262 as_ac_File=`$as_echo "ac_cv_file_"/boot/system/lib/libstdc++.r4.so"" | $as_tr_sh` 25263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/boot/system/lib/libstdc++.r4.so\"" >&5 25264 $as_echo_n "checking for \"/boot/system/lib/libstdc++.r4.so\"... " >&6; } 25265 if eval \${$as_ac_File+:} false; then : 25266 $as_echo_n "(cached) " >&6 25267 else 25268 test "$cross_compiling" = yes && 25269 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 25270 if test -r ""/boot/system/lib/libstdc++.r4.so""; then 25271 eval "$as_ac_File=yes" 25272 else 25273 eval "$as_ac_File=no" 25274 fi 25275 fi 25276 eval ac_res=\$$as_ac_File 25277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 25278 $as_echo "$ac_res" >&6; } 25279 if eval test \"x\$"$as_ac_File"\" = x"yes"; then : 25280 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++.r4" 25281 else 25282 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++" 25283 fi 25284 25285 ;; 25286 *-ios-*) 25287 ARCH=ios 25288 25289 CheckVisibilityHidden 25290 CheckDeclarationAfterStatement 25291 CheckDummyVideo 25292 CheckDiskAudio 25293 CheckDummyAudio 25294 CheckDLOPEN 25295 CheckMETAL 25296 CheckVulkan 25297 CheckPTHREAD 25298 25299 SOURCES="$SOURCES $srcdir/src/misc/ios/*.m" 25300 have_misc=yes 25301 25302 # Set up files for the locale library 25303 SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m" 25304 have_locale=yes 25305 25306 # Set up files for the audio library 25307 if test x$enable_audio = xyes; then 25308 25309 $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h 25310 25311 SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m" 25312 SUMMARY_audio="${SUMMARY_audio} coreaudio" 25313 have_audio=yes 25314 fi 25315 # Set up files for the joystick library 25316 if test x$enable_joystick = xyes; then 25317 25318 $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h 25319 25320 SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m" 25321 SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c" 25322 have_joystick=yes 25323 else 25324 # Need this code for accelerometer as joystick support 25325 SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m" 25326 fi 25327 # Set up files for the haptic library 25328 #if test x$enable_haptic = xyes; then 25329 # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c" 25330 # have_haptic=yes 25331 # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback" 25332 #fi 25333 # Set up files for the sensor library 25334 if test x$enable_sensor = xyes; then 25335 25336 $as_echo "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h 25337 25338 SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m" 25339 have_sensor=yes 25340 fi 25341 # Set up files for the power library 25342 if test x$enable_power = xyes; then 25343 25344 $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h 25345 25346 SOURCES="$SOURCES $srcdir/src/power/uikit/*.m" 25347 have_power=yes 25348 fi 25349 # Set up files for the filesystem library 25350 if test x$enable_filesystem = xyes; then 25351 SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m" 25352 have_filesystem=yes 25353 fi 25354 # Set up additional files for the file library 25355 if test x$enable_file = xyes; then 25356 25357 $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h 25358 25359 SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m" 25360 fi 25361 # Set up files for the timer library 25362 if test x$enable_timers = xyes; then 25363 25364 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h 25365 25366 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c" 25367 have_timers=yes 25368 fi 25369 # Set up other core UNIX files 25370 SOURCES="$SOURCES $srcdir/src/core/unix/*.c" 25371 # The iOS platform requires special setup. 25372 25373 $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h 25374 25375 25376 $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h 25377 25378 25379 $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h 25380 25381 25382 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h 25383 25384 25385 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h 25386 25387 SOURCES="$SOURCES $srcdir/src/video/uikit/*.m" 25388 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc" 25389 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation" 25390 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox" 25391 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio" 25392 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics" 25393 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion" 25394 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation" 25395 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController" 25396 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES" 25397 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore" 25398 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit" 25399 25400 if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then 25401 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal" 25402 fi 25403 ;; 25404 *-*-darwin* ) 25405 # This could be either full "Mac OS X", or plain "Darwin" which is 25406 # just the OS X kernel sans upper layers like Carbon and Cocoa. 25407 # Next line is broken, and a few files below require Mac OS X (full) 25408 ARCH=macosx 25409 25410 # Mac OS X builds with both the Carbon and OSX APIs at the moment 25411 EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON" 25412 EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX" 25413 25414 CheckVisibilityHidden 25415 CheckDeclarationAfterStatement 25416 CheckDummyVideo 25417 CheckDiskAudio 25418 CheckDummyAudio 25419 CheckDLOPEN 25420 CheckCOCOA 25421 CheckMETAL 25422 CheckX11 25423 CheckMacGL 25424 CheckMacGLES 25425 CheckOpenGLX11 25426 CheckVulkan 25427 CheckPTHREAD 25428 CheckHIDAPI 25429 25430 SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m" 25431 have_misc=yes 25432 25433 # Set up files for the locale library 25434 SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m" 25435 have_locale=yes 25436 25437 # Set up files for the audio library 25438 if test x$enable_audio = xyes; then 25439 25440 $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h 25441 25442 SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m" 25443 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox" 25444 SUMMARY_audio="${SUMMARY_audio} coreaudio" 25445 have_audio=yes 25446 fi 25447 # Set up files for the joystick library 25448 if test x$enable_joystick = xyes; then 25449 25450 $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h 25451 25452 SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c" 25453 SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m" 25454 CheckJoystickMFI 25455 have_joystick=yes 25456 fi 25457 # Set up files for the haptic library 25458 if test x$enable_haptic = xyes; then 25459 25460 $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h 25461 25462 SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c" 25463 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback" 25464 have_haptic=yes 25465 fi 25466 # Set up files for the power library 25467 if test x$enable_power = xyes; then 25468 25469 $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h 25470 25471 SOURCES="$SOURCES $srcdir/src/power/macosx/*.c" 25472 have_power=yes 25473 fi 25474 # Set up files for the filesystem library 25475 if test x$enable_filesystem = xyes; then 25476 25477 $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h 25478 25479 SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m" 25480 have_filesystem=yes 25481 fi 25482 # Set up files for the timer library 25483 if test x$enable_timers = xyes; then 25484 25485 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h 25486 25487 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c" 25488 have_timers=yes 25489 fi 25490 # Set up additional files for the file library 25491 if test x$enable_file = xyes; then 25492 SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m" 25493 fi 25494 # Set up other core UNIX files 25495 SOURCES="$SOURCES $srcdir/src/core/unix/*.c" 25496 # The Mac OS X platform requires special setup. 25497 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc" 25498 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo" 25499 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa" 25500 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon" 25501 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit" 25502 25503 if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then 25504 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal" 25505 fi 25506 ;; 25507 *-nacl|*-pnacl) 25508 ARCH=nacl 25509 CheckNativeClient 25510 CheckDummyAudio 25511 CheckDummyVideo 25512 CheckInputEvents 25513 CheckPTHREAD 25514 25515 # Set up files for the timer library 25516 if test x$enable_timers = xyes; then 25517 25518 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h 25519 25520 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c" 25521 have_timers=yes 25522 fi 25523 25524 if test x$enable_filesystem = xyes; then 25525 25526 $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h 25527 25528 SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c" 25529 have_filesystem=yes 25530 fi 25531 ;; 25532 *-*-emscripten* ) 25533 if test x$enable_video = xyes; then 25534 25535 $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h 25536 25537 SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c" 25538 have_video=yes 25539 SUMMARY_video="${SUMMARY_video} emscripten" 25540 fi 25541 25542 if test x$enable_audio = xyes; then 25543 25544 $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h 25545 25546 SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c" 25547 have_audio=yes 25548 SUMMARY_audio="${SUMMARY_audio} emscripten" 25549 fi 25550 25551 CheckVisibilityHidden 25552 CheckDeclarationAfterStatement 25553 CheckDummyVideo 25554 CheckDiskAudio 25555 CheckDummyAudio 25556 CheckDLOPEN 25557 CheckClockGettime 25558 CheckEmscriptenGLES 25559 25560 # Set up files for the power library 25561 if test x$enable_power = xyes; then 25562 25563 $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h 25564 25565 SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c" 25566 have_power=yes 25567 fi 25568 25569 # Set up files for the power library 25570 if test x$enable_joystick = xyes; then 25571 25572 $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h 25573 25574 SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c" 25575 have_joystick=yes 25576 fi 25577 25578 # Set up files for the filesystem library 25579 if test x$enable_filesystem = xyes; then 25580 25581 $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h 25582 25583 SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c" 25584 have_filesystem=yes 25585 fi 25586 # Set up files for the timer library 25587 if test x$enable_timers = xyes; then 25588 25589 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h 25590 25591 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c" 25592 have_timers=yes 25593 fi 25594 # Set up files for the locale library 25595 SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c" 25596 have_locale=yes 25597 ;; 25598 *-*-riscos*) 25599 ARCH=riscos 25600 CheckVisibilityHidden 25601 CheckDeclarationAfterStatement 25602 CheckDummyVideo 25603 CheckDiskAudio 25604 CheckDummyAudio 25605 CheckDLOPEN 25606 CheckOSS 25607 CheckPTHREAD 25608 CheckClockGettime 25609 25610 SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c" 25611 have_misc=yes 25612 25613 # Set up files for the timer library 25614 if test x$enable_timers = xyes; then 25615 25616 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h 25617 25618 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c" 25619 have_timers=yes 25620 fi 25621 ;; 25622 *) 25623 as_fn_error $? " 25624 *** Unsupported host: Please add to configure.ac 25625 " "$LINENO" 5 25626 ;; 25627 esac 25628 25629 CheckVirtualJoystick 25630 25631 # Check whether to install sdl2-config 25632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5 25633 $as_echo_n "checking whether to install sdl2-config... " >&6; } 25634 # Check whether --enable-sdl2-config was given. 25635 if test "${enable_sdl2_config+set}" = set; then : 25636 enableval=$enable_sdl2_config; case "${enableval}" in 25637 yes) enable_sdl2_config="TRUE" ;; 25638 no) enable_sdl2_config="FALSE" ;; 25639 *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;; 25640 esac 25641 else 25642 enable_sdl2_config="TRUE" 25643 fi 25644 25645 if test "$enable_sdl2_config" = "TRUE"; then 25646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25647 $as_echo "yes" >&6; } 25648 else 25649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25650 $as_echo "no" >&6; } 25651 fi 25652 INSTALL_SDL2_CONFIG=$enable_sdl2_config 25653 25654 25655 # Verify that we have all the platform specific files we need 25656 25657 if test x$have_misc != xyes; then 25658 SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c" 25659 fi 25660 if test x$have_locale != xyes; then 25661 SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c" 25662 fi 25663 if test x$have_joystick != xyes; then 25664 if test x$enable_joystick = xyes; then 25665 25666 $as_echo "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h 25667 25668 fi 25669 SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c" 25670 fi 25671 if test x$have_haptic != xyes; then 25672 if test x$enable_haptic = xyes; then 25673 25674 $as_echo "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h 25675 25676 fi 25677 SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c" 25678 fi 25679 if test x$have_sensor != xyes; then 25680 if test x$enable_sensor = xyes; then 25681 25682 $as_echo "#define SDL_SENSOR_DUMMY 1" >>confdefs.h 25683 25684 fi 25685 SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c" 25686 fi 25687 if test x$have_threads != xyes; then 25688 if test x$enable_threads = xyes; then 25689 25690 $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h 25691 25692 fi 25693 SOURCES="$SOURCES $srcdir/src/thread/generic/*.c" 25694 fi 25695 if test x$have_timers != xyes; then 25696 if test x$enable_timers = xyes; then 25697 25698 $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h 25699 25700 fi 25701 SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c" 25702 fi 25703 if test x$have_filesystem != xyes; then 25704 if test x$enable_filesystem = xyes; then 25705 25706 $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h 25707 25708 fi 25709 SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c" 25710 fi 25711 if test x$have_loadso != xyes; then 25712 if test x$enable_loadso = xyes; then 25713 25714 $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h 25715 25716 fi 25717 SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c" 25718 fi 25719 if test x$SDLMAIN_SOURCES = x; then 25720 SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c" 25721 fi 25722 SDLTEST_SOURCES="$srcdir/src/test/*.c" 25723 25724 if test x$video_wayland = xyes; then 25725 WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do echo -n "\$p" |sed 's,\\.xml\$, ,g' ; done` 25726 WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do echo -n "\\$(gen)/\$p-protocol.c " ; done` 25727 WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do echo -n "\\$(gen)/\$p-client-protocol.h " ; done` 25728 GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES" 25729 GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS" 25730 25731 WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\ 25732 echo ;\ 25733 echo "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\ 25734 echo " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\ 25735 echo " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\ 25736 echo ;\ 25737 echo "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\ 25738 echo " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\ 25739 echo " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) code \\$< \\$@" ;\ 25740 echo ;\ 25741 echo "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\ 25742 echo " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\ 25743 done ;\ 25744 echo ;\ 25745 for s in $WAYLAND_SOURCES ; do echo -n "\$s:" ; for p in $WAYLAND_PROTOCOLS ; do echo -n " \\$(gen)/\$p-client-protocol.h" ; done ; echo ; done ; echo` 25746 fi 25747 25748 OBJECTS=`echo $SOURCES` 25749 DEPENDS=`echo $SOURCES | tr ' ' '\n'` 25750 for EXT in asm cc m c S; do 25751 OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'` 25752 DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\ 25753 \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\ 25754 \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"` 25755 done 25756 25757 GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'` 25758 25759 VERSION_OBJECTS=`echo $VERSION_SOURCES` 25760 VERSION_DEPENDS=`echo $VERSION_SOURCES` 25761 VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'` 25762 VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\ 25763 \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\ 25764 \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"` 25765 25766 SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES` 25767 SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES` 25768 SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'` 25769 SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\ 25770 \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\ 25771 \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"` 25772 25773 SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES` 25774 SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES` 25775 SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'` 25776 SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\ 25777 \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\ 25778 \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"` 25779 25780 # Set runtime shared library paths as needed 25781 25782 if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then 25783 if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then 25784 SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}" 25785 25786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5 25787 $as_echo_n "checking for linker option --enable-new-dtags... " >&6; } 25788 have_enable_new_dtags=no 25789 save_LDFLAGS="$LDFLAGS" 25790 LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags" 25791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25792 /* end confdefs.h. */ 25793 25794 25795 int 25796 main () 25797 { 25798 25799 25800 ; 25801 return 0; 25802 } 25803 _ACEOF 25804 if ac_fn_c_try_link "$LINENO"; then : 25805 25806 have_enable_new_dtags=yes 25807 SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags" 25808 25809 fi 25810 rm -f core conftest.err conftest.$ac_objext \ 25811 conftest$ac_exeext conftest.$ac_ext 25812 LDFLAGS="$save_LDFLAGS" 25813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5 25814 $as_echo "$have_enable_new_dtags" >&6; } 25815 fi 25816 if test $ARCH = solaris; then 25817 SDL_RLD_FLAGS="-R\${libdir}" 25818 fi 25819 else 25820 SDL_RLD_FLAGS="" 25821 fi 25822 25823 SDL_STATIC_LIBS="$EXTRA_LDFLAGS" 25824 25825 25826 25827 25828 25829 if test x$enable_shared = xyes; then 25830 PKG_CONFIG_LIBS_PRIV=" 25831 Libs.private:" 25832 ENABLE_SHARED_TRUE= 25833 ENABLE_SHARED_FALSE="#" 25834 else 25835 PKG_CONFIG_LIBS_PRIV= 25836 ENABLE_SHARED_TRUE="#" 25837 ENABLE_SHARED_FALSE= 25838 fi 25839 if test x$enable_static = xyes; then 25840 ENABLE_STATIC_TRUE= 25841 ENABLE_STATIC_FALSE="#" 25842 else 25843 ENABLE_STATIC_TRUE="#" 25844 ENABLE_STATIC_FALSE= 25845 fi 25846 25847 25848 25849 25850 25851 25852 25853 25854 25855 25856 25857 25858 25859 25860 25861 25862 25863 25864 25865 25866 cat >Makefile.rules <<__EOF__ 25867 25868 # Build rules for objects 25869 -include \$(OBJECTS:.lo=.d) 25870 25871 # Special dependency for SDL.c, since it depends on SDL_revision.h 25872 $srcdir/src/SDL.c: update-revision 25873 $DEPENDS 25874 $VERSION_DEPENDS 25875 $SDLMAIN_DEPENDS 25876 $SDLTEST_DEPENDS 25877 $WAYLAND_PROTOCOLS_DEPENDS 25878 __EOF__ 25879 25880 ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc" 25881 25882 ac_config_commands="$ac_config_commands sdl2_config" 25883 25884 25885 SUMMARY="SDL2 Configure Summary:\n" 25886 if test x$enable_shared = xyes; then 25887 SUMMARY="${SUMMARY}Building Shared Libraries\n" 25888 fi 25889 if test x$enable_static = xyes; then 25890 SUMMARY="${SUMMARY}Building Static Libraries\n" 25891 fi 25892 SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n" 25893 SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n" 25894 SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n" 25895 SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n" 25896 if test x$have_x = xyes; then 25897 SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n" 25898 fi 25899 SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n" 25900 if test x$have_joystick_virtual = xyes; then 25901 SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n" 25902 else 25903 SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n" 25904 fi 25905 if test x$have_samplerate_h_hdr = xyes; then 25906 SUMMARY="${SUMMARY}Using libsamplerate : YES\n" 25907 else 25908 SUMMARY="${SUMMARY}Using libsamplerate : NO\n" 25909 fi 25910 if test x$have_libudev_h_hdr = xyes; then 25911 SUMMARY="${SUMMARY}Using libudev : YES\n" 25912 else 25913 SUMMARY="${SUMMARY}Using libudev : NO\n" 25914 fi 25915 if test x$have_dbus_dbus_h_hdr = xyes; then 25916 SUMMARY="${SUMMARY}Using dbus : YES\n" 25917 else 25918 SUMMARY="${SUMMARY}Using dbus : NO\n" 25919 fi 25920 if test x$enable_ime = xyes; then 25921 SUMMARY="${SUMMARY}Using ime : YES\n" 25922 else 25923 SUMMARY="${SUMMARY}Using ime : NO\n" 25924 fi 25925 if test x$have_ibus_ibus_h_hdr = xyes; then 25926 SUMMARY="${SUMMARY}Using ibus : YES\n" 25927 else 25928 SUMMARY="${SUMMARY}Using ibus : NO\n" 25929 fi 25930 if test x$have_fcitx = xyes; then 25931 SUMMARY="${SUMMARY}Using fcitx : YES\n" 25932 else 25933 SUMMARY="${SUMMARY}Using fcitx : NO\n" 25934 fi 25935 25936 if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then 25937 SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n" 25938 SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n" 25939 SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n" 25940 SUMMARY="${SUMMARY}configure script with:\n" 25941 SUMMARY="${SUMMARY}\n --disable-arm-simd\n" 25942 fi 25943 25944 if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then 25945 SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n" 25946 SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n" 25947 SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n" 25948 SUMMARY="${SUMMARY}configure script with:\n" 25949 SUMMARY="${SUMMARY}\n --disable-arm-neon\n" 25950 fi 25951 25952 ac_config_commands="$ac_config_commands summary" 25953 25954 25955 cat >confcache <<\_ACEOF 25956 # This file is a shell script that caches the results of configure 25957 # tests run on this system so they can be shared between configure 25958 # scripts and configure runs, see configure's option --config-cache. 25959 # It is not useful on other systems. If it contains results you don't 25960 # want to keep, you may remove or edit it. 25961 # 25962 # config.status only pays attention to the cache file if you give it 25963 # the --recheck option to rerun configure. 25964 # 25965 # `ac_cv_env_foo' variables (set or unset) will be overridden when 25966 # loading this file, other *unset* `ac_cv_foo' will be assigned the 25967 # following values. 25968 25969 _ACEOF 25970 25971 # The following way of writing the cache mishandles newlines in values, 25972 # but we know of no workaround that is simple, portable, and efficient. 25973 # So, we kill variables containing newlines. 25974 # Ultrix sh set writes to stderr and can't be redirected directly, 25975 # and sets the high bit in the cache file unless we assign to the vars. 25976 ( 25977 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 25978 eval ac_val=\$$ac_var 25979 case $ac_val in #( 25980 *${as_nl}*) 25981 case $ac_var in #( 25982 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 25983 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 25984 esac 25985 case $ac_var in #( 25986 _ | IFS | as_nl) ;; #( 25987 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 25988 *) { eval $ac_var=; unset $ac_var;} ;; 25989 esac ;; 25990 esac 25991 done 25992 25993 (set) 2>&1 | 25994 case $as_nl`(ac_space=' '; set) 2>&1` in #( 25995 *${as_nl}ac_space=\ *) 25996 # `set' does not quote correctly, so add quotes: double-quote 25997 # substitution turns \\\\ into \\, and sed turns \\ into \. 25998 sed -n \ 25999 "s/'/'\\\\''/g; 26000 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 26001 ;; #( 26002 *) 26003 # `set' quotes correctly as required by POSIX, so do not add quotes. 26004 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 26005 ;; 26006 esac | 26007 sort 26008 ) | 26009 sed ' 26010 /^ac_cv_env_/b end 26011 t clear 26012 :clear 26013 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 26014 t end 26015 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 26016 :end' >>confcache 26017 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 26018 if test -w "$cache_file"; then 26019 if test "x$cache_file" != "x/dev/null"; then 26020 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 26021 $as_echo "$as_me: updating cache $cache_file" >&6;} 26022 if test ! -f "$cache_file" || test -h "$cache_file"; then 26023 cat confcache >"$cache_file" 26024 else 26025 case $cache_file in #( 26026 */* | ?:*) 26027 mv -f confcache "$cache_file"$$ && 26028 mv -f "$cache_file"$$ "$cache_file" ;; #( 26029 *) 26030 mv -f confcache "$cache_file" ;; 26031 esac 26032 fi 26033 fi 26034 else 26035 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 26036 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 26037 fi 26038 fi 26039 rm -f confcache 26040 26041 test "x$prefix" = xNONE && prefix=$ac_default_prefix 26042 # Let make expand exec_prefix. 26043 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 26044 26045 DEFS=-DHAVE_CONFIG_H 26046 26047 ac_libobjs= 26048 ac_ltlibobjs= 26049 U= 26050 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 26051 # 1. Remove the extension, and $U if already installed. 26052 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 26053 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 26054 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 26055 # will be set to the directory where LIBOBJS objects are built. 26056 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 26057 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 26058 done 26059 LIBOBJS=$ac_libobjs 26060 26061 LTLIBOBJS=$ac_ltlibobjs 26062 26063 26064 26065 : "${CONFIG_STATUS=./config.status}" 26066 ac_write_fail=0 26067 ac_clean_files_save=$ac_clean_files 26068 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 26069 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 26070 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 26071 as_write_fail=0 26072 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 26073 #! $SHELL 26074 # Generated by $as_me. 26075 # Run this file to recreate the current configuration. 26076 # Compiler output produced by configure, useful for debugging 26077 # configure, is in config.log if it exists. 26078 26079 debug=false 26080 ac_cs_recheck=false 26081 ac_cs_silent=false 26082 26083 SHELL=\${CONFIG_SHELL-$SHELL} 26084 export SHELL 26085 _ASEOF 26086 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 26087 ## -------------------- ## 26088 ## M4sh Initialization. ## 26089 ## -------------------- ## 26090 26091 # Be more Bourne compatible 26092 DUALCASE=1; export DUALCASE # for MKS sh 26093 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 26094 emulate sh 26095 NULLCMD=: 26096 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26097 # is contrary to our usage. Disable this feature. 26098 alias -g '${1+"$@"}'='"$@"' 26099 setopt NO_GLOB_SUBST 26100 else 26101 case `(set -o) 2>/dev/null` in #( 26102 *posix*) : 26103 set -o posix ;; #( 26104 *) : 26105 ;; 26106 esac 26107 fi 26108 26109 26110 as_nl=' 26111 ' 26112 export as_nl 26113 # Printing a long string crashes Solaris 7 /usr/bin/printf. 26114 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 26115 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 26116 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 26117 # Prefer a ksh shell builtin over an external printf program on Solaris, 26118 # but without wasting forks for bash or zsh. 26119 if test -z "$BASH_VERSION$ZSH_VERSION" \ 26120 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 26121 as_echo='print -r --' 26122 as_echo_n='print -rn --' 26123 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 26124 as_echo='printf %s\n' 26125 as_echo_n='printf %s' 26126 else 26127 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 26128 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 26129 as_echo_n='/usr/ucb/echo -n' 26130 else 26131 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 26132 as_echo_n_body='eval 26133 arg=$1; 26134 case $arg in #( 26135 *"$as_nl"*) 26136 expr "X$arg" : "X\\(.*\\)$as_nl"; 26137 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 26138 esac; 26139 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 26140 ' 26141 export as_echo_n_body 26142 as_echo_n='sh -c $as_echo_n_body as_echo' 26143 fi 26144 export as_echo_body 26145 as_echo='sh -c $as_echo_body as_echo' 26146 fi 26147 26148 # The user is always right. 26149 if test "${PATH_SEPARATOR+set}" != set; then 26150 PATH_SEPARATOR=: 26151 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 26152 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 26153 PATH_SEPARATOR=';' 26154 } 26155 fi 26156 26157 26158 # IFS 26159 # We need space, tab and new line, in precisely that order. Quoting is 26160 # there to prevent editors from complaining about space-tab. 26161 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 26162 # splitting by setting IFS to empty value.) 26163 IFS=" "" $as_nl" 26164 26165 # Find who we are. Look in the path if we contain no directory separator. 26166 as_myself= 26167 case $0 in #(( 26168 *[\\/]* ) as_myself=$0 ;; 26169 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26170 for as_dir in $PATH 26171 do 26172 IFS=$as_save_IFS 26173 test -z "$as_dir" && as_dir=. 26174 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 26175 done 26176 IFS=$as_save_IFS 26177 26178 ;; 26179 esac 26180 # We did not find ourselves, most probably we were run as `sh COMMAND' 26181 # in which case we are not to be found in the path. 26182 if test "x$as_myself" = x; then 26183 as_myself=$0 26184 fi 26185 if test ! -f "$as_myself"; then 26186 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 26187 exit 1 26188 fi 26189 26190 # Unset variables that we do not need and which cause bugs (e.g. in 26191 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 26192 # suppresses any "Segmentation fault" message there. '((' could 26193 # trigger a bug in pdksh 5.2.14. 26194 for as_var in BASH_ENV ENV MAIL MAILPATH 26195 do eval test x\${$as_var+set} = xset \ 26196 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 26197 done 26198 PS1='$ ' 26199 PS2='> ' 26200 PS4='+ ' 26201 26202 # NLS nuisances. 26203 LC_ALL=C 26204 export LC_ALL 26205 LANGUAGE=C 26206 export LANGUAGE 26207 26208 # CDPATH. 26209 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 26210 26211 26212 # as_fn_error STATUS ERROR [LINENO LOG_FD] 26213 # ---------------------------------------- 26214 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 26215 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 26216 # script with STATUS, using 1 if that was 0. 26217 as_fn_error () 26218 { 26219 as_status=$1; test $as_status -eq 0 && as_status=1 26220 if test "$4"; then 26221 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 26222 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 26223 fi 26224 $as_echo "$as_me: error: $2" >&2 26225 as_fn_exit $as_status 26226 } # as_fn_error 26227 26228 26229 # as_fn_set_status STATUS 26230 # ----------------------- 26231 # Set $? to STATUS, without forking. 26232 as_fn_set_status () 26233 { 26234 return $1 26235 } # as_fn_set_status 26236 26237 # as_fn_exit STATUS 26238 # ----------------- 26239 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 26240 as_fn_exit () 26241 { 26242 set +e 26243 as_fn_set_status $1 26244 exit $1 26245 } # as_fn_exit 26246 26247 # as_fn_unset VAR 26248 # --------------- 26249 # Portably unset VAR. 26250 as_fn_unset () 26251 { 26252 { eval $1=; unset $1;} 26253 } 26254 as_unset=as_fn_unset 26255 # as_fn_append VAR VALUE 26256 # ---------------------- 26257 # Append the text in VALUE to the end of the definition contained in VAR. Take 26258 # advantage of any shell optimizations that allow amortized linear growth over 26259 # repeated appends, instead of the typical quadratic growth present in naive 26260 # implementations. 26261 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 26262 eval 'as_fn_append () 26263 { 26264 eval $1+=\$2 26265 }' 26266 else 26267 as_fn_append () 26268 { 26269 eval $1=\$$1\$2 26270 } 26271 fi # as_fn_append 26272 26273 # as_fn_arith ARG... 26274 # ------------------ 26275 # Perform arithmetic evaluation on the ARGs, and store the result in the 26276 # global $as_val. Take advantage of shells that can avoid forks. The arguments 26277 # must be portable across $(()) and expr. 26278 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 26279 eval 'as_fn_arith () 26280 { 26281 as_val=$(( $* )) 26282 }' 26283 else 26284 as_fn_arith () 26285 { 26286 as_val=`expr "$@" || test $? -eq 1` 26287 } 26288 fi # as_fn_arith 26289 26290 26291 if expr a : '\(a\)' >/dev/null 2>&1 && 26292 test "X`expr 00001 : '.*\(...\)'`" = X001; then 26293 as_expr=expr 26294 else 26295 as_expr=false 26296 fi 26297 26298 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 26299 as_basename=basename 26300 else 26301 as_basename=false 26302 fi 26303 26304 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 26305 as_dirname=dirname 26306 else 26307 as_dirname=false 26308 fi 26309 26310 as_me=`$as_basename -- "$0" || 26311 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 26312 X"$0" : 'X\(//\)$' \| \ 26313 X"$0" : 'X\(/\)' \| . 2>/dev/null || 26314 $as_echo X/"$0" | 26315 sed '/^.*\/\([^/][^/]*\)\/*$/{ 26316 s//\1/ 26317 q 26318 } 26319 /^X\/\(\/\/\)$/{ 26320 s//\1/ 26321 q 26322 } 26323 /^X\/\(\/\).*/{ 26324 s//\1/ 26325 q 26326 } 26327 s/.*/./; q'` 26328 26329 # Avoid depending upon Character Ranges. 26330 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 26331 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 26332 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 26333 as_cr_digits='0123456789' 26334 as_cr_alnum=$as_cr_Letters$as_cr_digits 26335 26336 ECHO_C= ECHO_N= ECHO_T= 26337 case `echo -n x` in #((((( 26338 -n*) 26339 case `echo 'xy\c'` in 26340 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 26341 xy) ECHO_C='\c';; 26342 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 26343 ECHO_T=' ';; 26344 esac;; 26345 *) 26346 ECHO_N='-n';; 26347 esac 26348 26349 rm -f conf$$ conf$$.exe conf$$.file 26350 if test -d conf$$.dir; then 26351 rm -f conf$$.dir/conf$$.file 26352 else 26353 rm -f conf$$.dir 26354 mkdir conf$$.dir 2>/dev/null 26355 fi 26356 if (echo >conf$$.file) 2>/dev/null; then 26357 if ln -s conf$$.file conf$$ 2>/dev/null; then 26358 as_ln_s='ln -s' 26359 # ... but there are two gotchas: 26360 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 26361 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 26362 # In both cases, we have to default to `cp -pR'. 26363 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 26364 as_ln_s='cp -pR' 26365 elif ln conf$$.file conf$$ 2>/dev/null; then 26366 as_ln_s=ln 26367 else 26368 as_ln_s='cp -pR' 26369 fi 26370 else 26371 as_ln_s='cp -pR' 26372 fi 26373 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 26374 rmdir conf$$.dir 2>/dev/null 26375 26376 26377 # as_fn_mkdir_p 26378 # ------------- 26379 # Create "$as_dir" as a directory, including parents if necessary. 26380 as_fn_mkdir_p () 26381 { 26382 26383 case $as_dir in #( 26384 -*) as_dir=./$as_dir;; 26385 esac 26386 test -d "$as_dir" || eval $as_mkdir_p || { 26387 as_dirs= 26388 while :; do 26389 case $as_dir in #( 26390 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 26391 *) as_qdir=$as_dir;; 26392 esac 26393 as_dirs="'$as_qdir' $as_dirs" 26394 as_dir=`$as_dirname -- "$as_dir" || 26395 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26396 X"$as_dir" : 'X\(//\)[^/]' \| \ 26397 X"$as_dir" : 'X\(//\)$' \| \ 26398 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 26399 $as_echo X"$as_dir" | 26400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 26401 s//\1/ 26402 q 26403 } 26404 /^X\(\/\/\)[^/].*/{ 26405 s//\1/ 26406 q 26407 } 26408 /^X\(\/\/\)$/{ 26409 s//\1/ 26410 q 26411 } 26412 /^X\(\/\).*/{ 26413 s//\1/ 26414 q 26415 } 26416 s/.*/./; q'` 26417 test -d "$as_dir" && break 26418 done 26419 test -z "$as_dirs" || eval "mkdir $as_dirs" 26420 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 26421 26422 26423 } # as_fn_mkdir_p 26424 if mkdir -p . 2>/dev/null; then 26425 as_mkdir_p='mkdir -p "$as_dir"' 26426 else 26427 test -d ./-p && rmdir ./-p 26428 as_mkdir_p=false 26429 fi 26430 26431 26432 # as_fn_executable_p FILE 26433 # ----------------------- 26434 # Test if FILE is an executable regular file. 26435 as_fn_executable_p () 26436 { 26437 test -f "$1" && test -x "$1" 26438 } # as_fn_executable_p 26439 as_test_x='test -x' 26440 as_executable_p=as_fn_executable_p 26441 26442 # Sed expression to map a string onto a valid CPP name. 26443 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 26444 26445 # Sed expression to map a string onto a valid variable name. 26446 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 26447 26448 26449 exec 6>&1 26450 ## ----------------------------------- ## 26451 ## Main body of $CONFIG_STATUS script. ## 26452 ## ----------------------------------- ## 26453 _ASEOF 26454 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 26455 26456 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26457 # Save the log message, to keep $0 and so on meaningful, and to 26458 # report actual input values of CONFIG_FILES etc. instead of their 26459 # values after options handling. 26460 ac_log=" 26461 This file was extended by $as_me, which was 26462 generated by GNU Autoconf 2.69. Invocation command line was 26463 26464 CONFIG_FILES = $CONFIG_FILES 26465 CONFIG_HEADERS = $CONFIG_HEADERS 26466 CONFIG_LINKS = $CONFIG_LINKS 26467 CONFIG_COMMANDS = $CONFIG_COMMANDS 26468 $ $0 $@ 26469 26470 on `(hostname || uname -n) 2>/dev/null | sed 1q` 26471 " 26472 26473 _ACEOF 26474 26475 case $ac_config_files in *" 26476 "*) set x $ac_config_files; shift; ac_config_files=$*;; 26477 esac 26478 26479 case $ac_config_headers in *" 26480 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 26481 esac 26482 26483 26484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26485 # Files that config.status was made for. 26486 config_files="$ac_config_files" 26487 config_headers="$ac_config_headers" 26488 config_commands="$ac_config_commands" 26489 26490 _ACEOF 26491 26492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26493 ac_cs_usage="\ 26494 \`$as_me' instantiates files and other configuration actions 26495 from templates according to the current configuration. Unless the files 26496 and actions are specified as TAGs, all are instantiated by default. 26497 26498 Usage: $0 [OPTION]... [TAG]... 26499 26500 -h, --help print this help, then exit 26501 -V, --version print version number and configuration settings, then exit 26502 --config print configuration, then exit 26503 -q, --quiet, --silent 26504 do not print progress messages 26505 -d, --debug don't remove temporary files 26506 --recheck update $as_me by reconfiguring in the same conditions 26507 --file=FILE[:TEMPLATE] 26508 instantiate the configuration file FILE 26509 --header=FILE[:TEMPLATE] 26510 instantiate the configuration header FILE 26511 26512 Configuration files: 26513 $config_files 26514 26515 Configuration headers: 26516 $config_headers 26517 26518 Configuration commands: 26519 $config_commands 26520 26521 Report bugs to the package provider." 26522 26523 _ACEOF 26524 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26525 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 26526 ac_cs_version="\\ 26527 config.status 26528 configured by $0, generated by GNU Autoconf 2.69, 26529 with options \\"\$ac_cs_config\\" 26530 26531 Copyright (C) 2012 Free Software Foundation, Inc. 26532 This config.status script is free software; the Free Software Foundation 26533 gives unlimited permission to copy, distribute and modify it." 26534 26535 ac_pwd='$ac_pwd' 26536 srcdir='$srcdir' 26537 INSTALL='$INSTALL' 26538 AWK='$AWK' 26539 test -n "\$AWK" || AWK=awk 26540 _ACEOF 26541 26542 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26543 # The default lists apply if the user does not specify any file. 26544 ac_need_defaults=: 26545 while test $# != 0 26546 do 26547 case $1 in 26548 --*=?*) 26549 ac_option=`expr "X$1" : 'X\([^=]*\)='` 26550 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 26551 ac_shift=: 26552 ;; 26553 --*=) 26554 ac_option=`expr "X$1" : 'X\([^=]*\)='` 26555 ac_optarg= 26556 ac_shift=: 26557 ;; 26558 *) 26559 ac_option=$1 26560 ac_optarg=$2 26561 ac_shift=shift 26562 ;; 26563 esac 26564 26565 case $ac_option in 26566 # Handling of the options. 26567 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 26568 ac_cs_recheck=: ;; 26569 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 26570 $as_echo "$ac_cs_version"; exit ;; 26571 --config | --confi | --conf | --con | --co | --c ) 26572 $as_echo "$ac_cs_config"; exit ;; 26573 --debug | --debu | --deb | --de | --d | -d ) 26574 debug=: ;; 26575 --file | --fil | --fi | --f ) 26576 $ac_shift 26577 case $ac_optarg in 26578 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 26579 '') as_fn_error $? "missing file argument" ;; 26580 esac 26581 as_fn_append CONFIG_FILES " '$ac_optarg'" 26582 ac_need_defaults=false;; 26583 --header | --heade | --head | --hea ) 26584 $ac_shift 26585 case $ac_optarg in 26586 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 26587 esac 26588 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 26589 ac_need_defaults=false;; 26590 --he | --h) 26591 # Conflict between --help and --header 26592 as_fn_error $? "ambiguous option: \`$1' 26593 Try \`$0 --help' for more information.";; 26594 --help | --hel | -h ) 26595 $as_echo "$ac_cs_usage"; exit ;; 26596 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 26597 | -silent | --silent | --silen | --sile | --sil | --si | --s) 26598 ac_cs_silent=: ;; 26599 26600 # This is an error. 26601 -*) as_fn_error $? "unrecognized option: \`$1' 26602 Try \`$0 --help' for more information." ;; 26603 26604 *) as_fn_append ac_config_targets " $1" 26605 ac_need_defaults=false ;; 26606 26607 esac 26608 shift 26609 done 26610 26611 ac_configure_extra_args= 26612 26613 if $ac_cs_silent; then 26614 exec 6>/dev/null 26615 ac_configure_extra_args="$ac_configure_extra_args --silent" 26616 fi 26617 26618 _ACEOF 26619 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26620 if \$ac_cs_recheck; then 26621 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 26622 shift 26623 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 26624 CONFIG_SHELL='$SHELL' 26625 export CONFIG_SHELL 26626 exec "\$@" 26627 fi 26628 26629 _ACEOF 26630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26631 exec 5>>config.log 26632 { 26633 echo 26634 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 26635 ## Running $as_me. ## 26636 _ASBOX 26637 $as_echo "$ac_log" 26638 } >&5 26639 26640 _ACEOF 26641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26642 # 26643 # INIT-COMMANDS 26644 # 26645 26646 26647 # The HP-UX ksh and POSIX shell print the target directory to stdout 26648 # if CDPATH is set. 26649 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 26650 26651 sed_quote_subst='$sed_quote_subst' 26652 double_quote_subst='$double_quote_subst' 26653 delay_variable_subst='$delay_variable_subst' 26654 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 26655 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 26656 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 26657 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 26658 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 26659 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 26660 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 26661 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 26662 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 26663 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 26664 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 26665 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 26666 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 26667 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 26668 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 26669 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 26670 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 26671 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 26672 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 26673 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 26674 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 26675 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 26676 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 26677 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 26678 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 26679 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 26680 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 26681 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 26682 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 26683 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 26684 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 26685 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 26686 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 26687 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 26688 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 26689 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 26690 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 26691 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 26692 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 26693 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 26694 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 26695 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 26696 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 26697 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 26698 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 26699 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 26700 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 26701 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 26702 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 26703 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 26704 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 26705 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 26706 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 26707 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 26708 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 26709 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 26710 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 26711 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 26712 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 26713 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 26714 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 26715 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 26716 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 26717 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 26718 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 26719 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 26720 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 26721 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 26722 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 26723 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 26724 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 26725 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 26726 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 26727 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 26728 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 26729 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 26730 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 26731 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 26732 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 26733 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 26734 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 26735 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 26736 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 26737 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 26738 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 26739 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 26740 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 26741 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 26742 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 26743 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 26744 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 26745 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 26746 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 26747 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 26748 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 26749 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 26750 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 26751 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 26752 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 26753 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 26754 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 26755 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 26756 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 26757 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 26758 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 26759 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 26760 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 26761 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 26762 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 26763 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 26764 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 26765 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 26766 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 26767 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 26768 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 26769 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 26770 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 26771 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 26772 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 26773 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 26774 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 26775 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 26776 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 26777 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 26778 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 26779 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 26780 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 26781 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 26782 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 26783 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 26784 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 26785 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 26786 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 26787 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 26788 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 26789 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 26790 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 26791 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`' 26792 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 26793 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`' 26794 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 26795 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`' 26796 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 26797 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`' 26798 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 26799 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`' 26800 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 26801 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`' 26802 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 26803 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`' 26804 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 26805 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`' 26806 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 26807 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`' 26808 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 26809 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`' 26810 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 26811 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`' 26812 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 26813 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`' 26814 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 26815 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`' 26816 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 26817 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`' 26818 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 26819 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`' 26820 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 26821 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`' 26822 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 26823 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`' 26824 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 26825 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`' 26826 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 26827 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`' 26828 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 26829 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`' 26830 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 26831 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`' 26832 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 26833 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`' 26834 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 26835 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`' 26836 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 26837 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`' 26838 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 26839 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`' 26840 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 26841 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`' 26842 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 26843 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`' 26844 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 26845 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`' 26846 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 26847 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`' 26848 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 26849 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`' 26850 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 26851 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`' 26852 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 26853 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`' 26854 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 26855 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`' 26856 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 26857 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`' 26858 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 26859 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`' 26860 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 26861 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`' 26862 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 26863 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`' 26864 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 26865 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`' 26866 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 26867 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`' 26868 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 26869 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`' 26870 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 26871 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`' 26872 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 26873 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`' 26874 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 26875 compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`' 26876 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 26877 predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`' 26878 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 26879 postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`' 26880 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 26881 predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`' 26882 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 26883 postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`' 26884 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 26885 compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`' 26886 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 26887 26888 LTCC='$LTCC' 26889 LTCFLAGS='$LTCFLAGS' 26890 compiler='$compiler_DEFAULT' 26891 26892 # A function that is used when there is no print builtin or printf. 26893 func_fallback_echo () 26894 { 26895 eval 'cat <<_LTECHO_EOF 26896 \$1 26897 _LTECHO_EOF' 26898 } 26899 26900 # Quote evaled strings. 26901 for var in AS \ 26902 DLLTOOL \ 26903 OBJDUMP \ 26904 SHELL \ 26905 ECHO \ 26906 PATH_SEPARATOR \ 26907 SED \ 26908 GREP \ 26909 EGREP \ 26910 FGREP \ 26911 LD \ 26912 NM \ 26913 LN_S \ 26914 lt_SP2NL \ 26915 lt_NL2SP \ 26916 reload_flag \ 26917 deplibs_check_method \ 26918 file_magic_cmd \ 26919 file_magic_glob \ 26920 want_nocaseglob \ 26921 sharedlib_from_linklib_cmd \ 26922 AR \ 26923 AR_FLAGS \ 26924 archiver_list_spec \ 26925 STRIP \ 26926 RANLIB \ 26927 CC \ 26928 CFLAGS \ 26929 compiler \ 26930 lt_cv_sys_global_symbol_pipe \ 26931 lt_cv_sys_global_symbol_to_cdecl \ 26932 lt_cv_sys_global_symbol_to_c_name_address \ 26933 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 26934 nm_file_list_spec \ 26935 lt_prog_compiler_no_builtin_flag \ 26936 lt_prog_compiler_pic \ 26937 lt_prog_compiler_wl \ 26938 lt_prog_compiler_static \ 26939 lt_cv_prog_compiler_c_o \ 26940 need_locks \ 26941 MANIFEST_TOOL \ 26942 DSYMUTIL \ 26943 NMEDIT \ 26944 LIPO \ 26945 OTOOL \ 26946 OTOOL64 \ 26947 shrext_cmds \ 26948 export_dynamic_flag_spec \ 26949 whole_archive_flag_spec \ 26950 compiler_needs_object \ 26951 with_gnu_ld \ 26952 allow_undefined_flag \ 26953 no_undefined_flag \ 26954 hardcode_libdir_flag_spec \ 26955 hardcode_libdir_separator \ 26956 exclude_expsyms \ 26957 include_expsyms \ 26958 file_list_spec \ 26959 variables_saved_for_relink \ 26960 libname_spec \ 26961 library_names_spec \ 26962 soname_spec \ 26963 install_override_mode \ 26964 finish_eval \ 26965 old_striplib \ 26966 striplib \ 26967 compiler_lib_search_dirs \ 26968 predep_objects \ 26969 postdep_objects \ 26970 predeps \ 26971 postdeps \ 26972 compiler_lib_search_path \ 26973 LD_RC \ 26974 LD_CXX \ 26975 reload_flag_RC \ 26976 reload_flag_CXX \ 26977 compiler_RC \ 26978 compiler_CXX \ 26979 lt_prog_compiler_no_builtin_flag_RC \ 26980 lt_prog_compiler_no_builtin_flag_CXX \ 26981 lt_prog_compiler_pic_RC \ 26982 lt_prog_compiler_pic_CXX \ 26983 lt_prog_compiler_wl_RC \ 26984 lt_prog_compiler_wl_CXX \ 26985 lt_prog_compiler_static_RC \ 26986 lt_prog_compiler_static_CXX \ 26987 lt_cv_prog_compiler_c_o_RC \ 26988 lt_cv_prog_compiler_c_o_CXX \ 26989 export_dynamic_flag_spec_RC \ 26990 export_dynamic_flag_spec_CXX \ 26991 whole_archive_flag_spec_RC \ 26992 whole_archive_flag_spec_CXX \ 26993 compiler_needs_object_RC \ 26994 compiler_needs_object_CXX \ 26995 with_gnu_ld_RC \ 26996 with_gnu_ld_CXX \ 26997 allow_undefined_flag_RC \ 26998 allow_undefined_flag_CXX \ 26999 no_undefined_flag_RC \ 27000 no_undefined_flag_CXX \ 27001 hardcode_libdir_flag_spec_RC \ 27002 hardcode_libdir_flag_spec_CXX \ 27003 hardcode_libdir_separator_RC \ 27004 hardcode_libdir_separator_CXX \ 27005 exclude_expsyms_RC \ 27006 exclude_expsyms_CXX \ 27007 include_expsyms_RC \ 27008 include_expsyms_CXX \ 27009 file_list_spec_RC \ 27010 file_list_spec_CXX \ 27011 compiler_lib_search_dirs_RC \ 27012 compiler_lib_search_dirs_CXX \ 27013 predep_objects_RC \ 27014 predep_objects_CXX \ 27015 postdep_objects_RC \ 27016 postdep_objects_CXX \ 27017 predeps_RC \ 27018 predeps_CXX \ 27019 postdeps_RC \ 27020 postdeps_CXX \ 27021 compiler_lib_search_path_RC \ 27022 compiler_lib_search_path_CXX; do 27023 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 27024 *[\\\\\\\`\\"\\\$]*) 27025 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 27026 ;; 27027 *) 27028 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 27029 ;; 27030 esac 27031 done 27032 27033 # Double-quote double-evaled strings. 27034 for var in reload_cmds \ 27035 old_postinstall_cmds \ 27036 old_postuninstall_cmds \ 27037 old_archive_cmds \ 27038 extract_expsyms_cmds \ 27039 old_archive_from_new_cmds \ 27040 old_archive_from_expsyms_cmds \ 27041 archive_cmds \ 27042 archive_expsym_cmds \ 27043 module_cmds \ 27044 module_expsym_cmds \ 27045 export_symbols_cmds \ 27046 prelink_cmds \ 27047 postlink_cmds \ 27048 postinstall_cmds \ 27049 postuninstall_cmds \ 27050 finish_cmds \ 27051 sys_lib_search_path_spec \ 27052 sys_lib_dlsearch_path_spec \ 27053 reload_cmds_RC \ 27054 reload_cmds_CXX \ 27055 old_archive_cmds_RC \ 27056 old_archive_cmds_CXX \ 27057 old_archive_from_new_cmds_RC \ 27058 old_archive_from_new_cmds_CXX \ 27059 old_archive_from_expsyms_cmds_RC \ 27060 old_archive_from_expsyms_cmds_CXX \ 27061 archive_cmds_RC \ 27062 archive_cmds_CXX \ 27063 archive_expsym_cmds_RC \ 27064 archive_expsym_cmds_CXX \ 27065 module_cmds_RC \ 27066 module_cmds_CXX \ 27067 module_expsym_cmds_RC \ 27068 module_expsym_cmds_CXX \ 27069 export_symbols_cmds_RC \ 27070 export_symbols_cmds_CXX \ 27071 prelink_cmds_RC \ 27072 prelink_cmds_CXX \ 27073 postlink_cmds_RC \ 27074 postlink_cmds_CXX; do 27075 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 27076 *[\\\\\\\`\\"\\\$]*) 27077 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 27078 ;; 27079 *) 27080 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 27081 ;; 27082 esac 27083 done 27084 27085 ac_aux_dir='$ac_aux_dir' 27086 xsi_shell='$xsi_shell' 27087 lt_shell_append='$lt_shell_append' 27088 27089 # See if we are running on zsh, and set the options which allow our 27090 # commands through without removal of \ escapes INIT. 27091 if test -n "\${ZSH_VERSION+set}" ; then 27092 setopt NO_GLOB_SUBST 27093 fi 27094 27095 27096 PACKAGE='$PACKAGE' 27097 VERSION='$VERSION' 27098 TIMESTAMP='$TIMESTAMP' 27099 RM='$RM' 27100 ofile='$ofile' 27101 27102 27103 27104 27105 27106 27107 27108 SUMMARY="$SUMMARY" 27109 27110 _ACEOF 27111 27112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27113 27114 # Handling of arguments. 27115 for ac_config_target in $ac_config_targets 27116 do 27117 case $ac_config_target in 27118 "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;; 27119 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 27120 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;; 27121 "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;; 27122 "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;; 27123 "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;; 27124 "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;; 27125 "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;; 27126 "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;; 27127 "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;; 27128 27129 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 27130 esac 27131 done 27132 27133 27134 # If the user did not use the arguments to specify the items to instantiate, 27135 # then the envvar interface is used. Set only those that are not. 27136 # We use the long form for the default assignment because of an extremely 27137 # bizarre bug on SunOS 4.1.3. 27138 if $ac_need_defaults; then 27139 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 27140 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 27141 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 27142 fi 27143 27144 # Have a temporary directory for convenience. Make it in the build tree 27145 # simply because there is no reason against having it here, and in addition, 27146 # creating and moving files from /tmp can sometimes cause problems. 27147 # Hook for its removal unless debugging. 27148 # Note that there is a small window in which the directory will not be cleaned: 27149 # after its creation but before its name has been assigned to `$tmp'. 27150 $debug || 27151 { 27152 tmp= ac_tmp= 27153 trap 'exit_status=$? 27154 : "${ac_tmp:=$tmp}" 27155 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 27156 ' 0 27157 trap 'as_fn_exit 1' 1 2 13 15 27158 } 27159 # Create a (secure) tmp directory for tmp files. 27160 27161 { 27162 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 27163 test -d "$tmp" 27164 } || 27165 { 27166 tmp=./conf$$-$RANDOM 27167 (umask 077 && mkdir "$tmp") 27168 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 27169 ac_tmp=$tmp 27170 27171 # Set up the scripts for CONFIG_FILES section. 27172 # No need to generate them if there are no CONFIG_FILES. 27173 # This happens for instance with `./config.status config.h'. 27174 if test -n "$CONFIG_FILES"; then 27175 27176 27177 ac_cr=`echo X | tr X '\015'` 27178 # On cygwin, bash can eat \r inside `` if the user requested igncr. 27179 # But we know of no other shell where ac_cr would be empty at this 27180 # point, so we can use a bashism as a fallback. 27181 if test "x$ac_cr" = x; then 27182 eval ac_cr=\$\'\\r\' 27183 fi 27184 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 27185 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 27186 ac_cs_awk_cr='\\r' 27187 else 27188 ac_cs_awk_cr=$ac_cr 27189 fi 27190 27191 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 27192 _ACEOF 27193 27194 27195 { 27196 echo "cat >conf$$subs.awk <<_ACEOF" && 27197 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 27198 echo "_ACEOF" 27199 } >conf$$subs.sh || 27200 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 27201 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 27202 ac_delim='%!_!# ' 27203 for ac_last_try in false false false false false :; do 27204 . ./conf$$subs.sh || 27205 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 27206 27207 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 27208 if test $ac_delim_n = $ac_delim_num; then 27209 break 27210 elif $ac_last_try; then 27211 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 27212 else 27213 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 27214 fi 27215 done 27216 rm -f conf$$subs.sh 27217 27218 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27219 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 27220 _ACEOF 27221 sed -n ' 27222 h 27223 s/^/S["/; s/!.*/"]=/ 27224 p 27225 g 27226 s/^[^!]*!// 27227 :repl 27228 t repl 27229 s/'"$ac_delim"'$// 27230 t delim 27231 :nl 27232 h 27233 s/\(.\{148\}\)..*/\1/ 27234 t more1 27235 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 27236 p 27237 n 27238 b repl 27239 :more1 27240 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 27241 p 27242 g 27243 s/.\{148\}// 27244 t nl 27245 :delim 27246 h 27247 s/\(.\{148\}\)..*/\1/ 27248 t more2 27249 s/["\\]/\\&/g; s/^/"/; s/$/"/ 27250 p 27251 b 27252 :more2 27253 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 27254 p 27255 g 27256 s/.\{148\}// 27257 t delim 27258 ' <conf$$subs.awk | sed ' 27259 /^[^""]/{ 27260 N 27261 s/\n// 27262 } 27263 ' >>$CONFIG_STATUS || ac_write_fail=1 27264 rm -f conf$$subs.awk 27265 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27266 _ACAWK 27267 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 27268 for (key in S) S_is_set[key] = 1 27269 FS = "" 27270 27271 } 27272 { 27273 line = $ 0 27274 nfields = split(line, field, "@") 27275 substed = 0 27276 len = length(field[1]) 27277 for (i = 2; i < nfields; i++) { 27278 key = field[i] 27279 keylen = length(key) 27280 if (S_is_set[key]) { 27281 value = S[key] 27282 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 27283 len += length(value) + length(field[++i]) 27284 substed = 1 27285 } else 27286 len += 1 + keylen 27287 } 27288 27289 print line 27290 } 27291 27292 _ACAWK 27293 _ACEOF 27294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27295 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 27296 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 27297 else 27298 cat 27299 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 27300 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 27301 _ACEOF 27302 27303 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 27304 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 27305 # trailing colons and then remove the whole line if VPATH becomes empty 27306 # (actually we leave an empty line to preserve line numbers). 27307 if test "x$srcdir" = x.; then 27308 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 27309 h 27310 s/// 27311 s/^/:/ 27312 s/[ ]*$/:/ 27313 s/:\$(srcdir):/:/g 27314 s/:\${srcdir}:/:/g 27315 s/:@srcdir@:/:/g 27316 s/^:*// 27317 s/:*$// 27318 x 27319 s/\(=[ ]*\).*/\1/ 27320 G 27321 s/\n// 27322 s/^[^=]*=[ ]*$// 27323 }' 27324 fi 27325 27326 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27327 fi # test -n "$CONFIG_FILES" 27328 27329 # Set up the scripts for CONFIG_HEADERS section. 27330 # No need to generate them if there are no CONFIG_HEADERS. 27331 # This happens for instance with `./config.status Makefile'. 27332 if test -n "$CONFIG_HEADERS"; then 27333 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 27334 BEGIN { 27335 _ACEOF 27336 27337 # Transform confdefs.h into an awk script `defines.awk', embedded as 27338 # here-document in config.status, that substitutes the proper values into 27339 # config.h.in to produce config.h. 27340 27341 # Create a delimiter string that does not exist in confdefs.h, to ease 27342 # handling of long lines. 27343 ac_delim='%!_!# ' 27344 for ac_last_try in false false :; do 27345 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 27346 if test -z "$ac_tt"; then 27347 break 27348 elif $ac_last_try; then 27349 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 27350 else 27351 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 27352 fi 27353 done 27354 27355 # For the awk script, D is an array of macro values keyed by name, 27356 # likewise P contains macro parameters if any. Preserve backslash 27357 # newline sequences. 27358 27359 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 27360 sed -n ' 27361 s/.\{148\}/&'"$ac_delim"'/g 27362 t rset 27363 :rset 27364 s/^[ ]*#[ ]*define[ ][ ]*/ / 27365 t def 27366 d 27367 :def 27368 s/\\$// 27369 t bsnl 27370 s/["\\]/\\&/g 27371 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 27372 D["\1"]=" \3"/p 27373 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 27374 d 27375 :bsnl 27376 s/["\\]/\\&/g 27377 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 27378 D["\1"]=" \3\\\\\\n"\\/p 27379 t cont 27380 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 27381 t cont 27382 d 27383 :cont 27384 n 27385 s/.\{148\}/&'"$ac_delim"'/g 27386 t clear 27387 :clear 27388 s/\\$// 27389 t bsnlc 27390 s/["\\]/\\&/g; s/^/"/; s/$/"/p 27391 d 27392 :bsnlc 27393 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 27394 b cont 27395 ' <confdefs.h | sed ' 27396 s/'"$ac_delim"'/"\\\ 27397 "/g' >>$CONFIG_STATUS || ac_write_fail=1 27398 27399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27400 for (key in D) D_is_set[key] = 1 27401 FS = "" 27402 } 27403 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 27404 line = \$ 0 27405 split(line, arg, " ") 27406 if (arg[1] == "#") { 27407 defundef = arg[2] 27408 mac1 = arg[3] 27409 } else { 27410 defundef = substr(arg[1], 2) 27411 mac1 = arg[2] 27412 } 27413 split(mac1, mac2, "(") #) 27414 macro = mac2[1] 27415 prefix = substr(line, 1, index(line, defundef) - 1) 27416 if (D_is_set[macro]) { 27417 # Preserve the white space surrounding the "#". 27418 print prefix "define", macro P[macro] D[macro] 27419 next 27420 } else { 27421 # Replace #undef with comments. This is necessary, for example, 27422 # in the case of _POSIX_SOURCE, which is predefined and required 27423 # on some systems where configure will not decide to define it. 27424 if (defundef == "undef") { 27425 print "/*", prefix defundef, macro, "*/" 27426 next 27427 } 27428 } 27429 } 27430 { print } 27431 _ACAWK 27432 _ACEOF 27433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27434 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 27435 fi # test -n "$CONFIG_HEADERS" 27436 27437 27438 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 27439 shift 27440 for ac_tag 27441 do 27442 case $ac_tag in 27443 :[FHLC]) ac_mode=$ac_tag; continue;; 27444 esac 27445 case $ac_mode$ac_tag in 27446 :[FHL]*:*);; 27447 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 27448 :[FH]-) ac_tag=-:-;; 27449 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 27450 esac 27451 ac_save_IFS=$IFS 27452 IFS=: 27453 set x $ac_tag 27454 IFS=$ac_save_IFS 27455 shift 27456 ac_file=$1 27457 shift 27458 27459 case $ac_mode in 27460 :L) ac_source=$1;; 27461 :[FH]) 27462 ac_file_inputs= 27463 for ac_f 27464 do 27465 case $ac_f in 27466 -) ac_f="$ac_tmp/stdin";; 27467 *) # Look for the file first in the build tree, then in the source tree 27468 # (if the path is not absolute). The absolute path cannot be DOS-style, 27469 # because $ac_f cannot contain `:'. 27470 test -f "$ac_f" || 27471 case $ac_f in 27472 [\\/$]*) false;; 27473 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 27474 esac || 27475 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 27476 esac 27477 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 27478 as_fn_append ac_file_inputs " '$ac_f'" 27479 done 27480 27481 # Let's still pretend it is `configure' which instantiates (i.e., don't 27482 # use $as_me), people would be surprised to read: 27483 # /* config.h. Generated by config.status. */ 27484 configure_input='Generated from '` 27485 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 27486 `' by configure.' 27487 if test x"$ac_file" != x-; then 27488 configure_input="$ac_file. $configure_input" 27489 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 27490 $as_echo "$as_me: creating $ac_file" >&6;} 27491 fi 27492 # Neutralize special characters interpreted by sed in replacement strings. 27493 case $configure_input in #( 27494 *\&* | *\|* | *\\* ) 27495 ac_sed_conf_input=`$as_echo "$configure_input" | 27496 sed 's/[\\\\&|]/\\\\&/g'`;; #( 27497 *) ac_sed_conf_input=$configure_input;; 27498 esac 27499 27500 case $ac_tag in 27501 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 27502 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 27503 esac 27504 ;; 27505 esac 27506 27507 ac_dir=`$as_dirname -- "$ac_file" || 27508 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 27509 X"$ac_file" : 'X\(//\)[^/]' \| \ 27510 X"$ac_file" : 'X\(//\)$' \| \ 27511 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 27512 $as_echo X"$ac_file" | 27513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 27514 s//\1/ 27515 q 27516 } 27517 /^X\(\/\/\)[^/].*/{ 27518 s//\1/ 27519 q 27520 } 27521 /^X\(\/\/\)$/{ 27522 s//\1/ 27523 q 27524 } 27525 /^X\(\/\).*/{ 27526 s//\1/ 27527 q 27528 } 27529 s/.*/./; q'` 27530 as_dir="$ac_dir"; as_fn_mkdir_p 27531 ac_builddir=. 27532 27533 case "$ac_dir" in 27534 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 27535 *) 27536 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 27537 # A ".." for each directory in $ac_dir_suffix. 27538 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 27539 case $ac_top_builddir_sub in 27540 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 27541 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 27542 esac ;; 27543 esac 27544 ac_abs_top_builddir=$ac_pwd 27545 ac_abs_builddir=$ac_pwd$ac_dir_suffix 27546 # for backward compatibility: 27547 ac_top_builddir=$ac_top_build_prefix 27548 27549 case $srcdir in 27550 .) # We are building in place. 27551 ac_srcdir=. 27552 ac_top_srcdir=$ac_top_builddir_sub 27553 ac_abs_top_srcdir=$ac_pwd ;; 27554 [\\/]* | ?:[\\/]* ) # Absolute name. 27555 ac_srcdir=$srcdir$ac_dir_suffix; 27556 ac_top_srcdir=$srcdir 27557 ac_abs_top_srcdir=$srcdir ;; 27558 *) # Relative name. 27559 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 27560 ac_top_srcdir=$ac_top_build_prefix$srcdir 27561 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 27562 esac 27563 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 27564 27565 27566 case $ac_mode in 27567 :F) 27568 # 27569 # CONFIG_FILE 27570 # 27571 27572 case $INSTALL in 27573 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 27574 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 27575 esac 27576 _ACEOF 27577 27578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27579 # If the template does not know about datarootdir, expand it. 27580 # FIXME: This hack should be removed a few years after 2.60. 27581 ac_datarootdir_hack=; ac_datarootdir_seen= 27582 ac_sed_dataroot=' 27583 /datarootdir/ { 27584 p 27585 q 27586 } 27587 /@datadir@/p 27588 /@docdir@/p 27589 /@infodir@/p 27590 /@localedir@/p 27591 /@mandir@/p' 27592 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 27593 *datarootdir*) ac_datarootdir_seen=yes;; 27594 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 27595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 27596 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 27597 _ACEOF 27598 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27599 ac_datarootdir_hack=' 27600 s&@datadir@&$datadir&g 27601 s&@docdir@&$docdir&g 27602 s&@infodir@&$infodir&g 27603 s&@localedir@&$localedir&g 27604 s&@mandir@&$mandir&g 27605 s&\\\${datarootdir}&$datarootdir&g' ;; 27606 esac 27607 _ACEOF 27608 27609 # Neutralize VPATH when `$srcdir' = `.'. 27610 # Shell code in configure.ac might set extrasub. 27611 # FIXME: do we really want to maintain this feature? 27612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27613 ac_sed_extra="$ac_vpsub 27614 $extrasub 27615 _ACEOF 27616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27617 :t 27618 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 27619 s|@configure_input@|$ac_sed_conf_input|;t t 27620 s&@top_builddir@&$ac_top_builddir_sub&;t t 27621 s&@top_build_prefix@&$ac_top_build_prefix&;t t 27622 s&@srcdir@&$ac_srcdir&;t t 27623 s&@abs_srcdir@&$ac_abs_srcdir&;t t 27624 s&@top_srcdir@&$ac_top_srcdir&;t t 27625 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 27626 s&@builddir@&$ac_builddir&;t t 27627 s&@abs_builddir@&$ac_abs_builddir&;t t 27628 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 27629 s&@INSTALL@&$ac_INSTALL&;t t 27630 $ac_datarootdir_hack 27631 " 27632 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 27633 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 27634 27635 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 27636 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 27637 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 27638 "$ac_tmp/out"`; test -z "$ac_out"; } && 27639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 27640 which seems to be undefined. Please make sure it is defined" >&5 27641 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 27642 which seems to be undefined. Please make sure it is defined" >&2;} 27643 27644 rm -f "$ac_tmp/stdin" 27645 case $ac_file in 27646 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 27647 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 27648 esac \ 27649 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 27650 ;; 27651 :H) 27652 # 27653 # CONFIG_HEADER 27654 # 27655 if test x"$ac_file" != x-; then 27656 { 27657 $as_echo "/* $configure_input */" \ 27658 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 27659 } >"$ac_tmp/config.h" \ 27660 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 27661 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 27662 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 27663 $as_echo "$as_me: $ac_file is unchanged" >&6;} 27664 else 27665 rm -f "$ac_file" 27666 mv "$ac_tmp/config.h" "$ac_file" \ 27667 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 27668 fi 27669 else 27670 $as_echo "/* $configure_input */" \ 27671 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 27672 || as_fn_error $? "could not create -" "$LINENO" 5 27673 fi 27674 ;; 27675 27676 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 27677 $as_echo "$as_me: executing $ac_file commands" >&6;} 27678 ;; 27679 esac 27680 27681 27682 case $ac_file$ac_mode in 27683 "libtool":C) 27684 27685 # See if we are running on zsh, and set the options which allow our 27686 # commands through without removal of \ escapes. 27687 if test -n "${ZSH_VERSION+set}" ; then 27688 setopt NO_GLOB_SUBST 27689 fi 27690 27691 cfgfile="${ofile}T" 27692 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 27693 $RM "$cfgfile" 27694 27695 cat <<_LT_EOF >> "$cfgfile" 27696 #! $SHELL 27697 27698 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 27699 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 27700 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 27701 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 27702 # 27703 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 27704 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software 27705 # Foundation, Inc. 27706 # Written by Gordon Matzigkeit, 1996 27707 # 27708 # This file is part of GNU Libtool. 27709 # 27710 # GNU Libtool is free software; you can redistribute it and/or 27711 # modify it under the terms of the GNU General Public License as 27712 # published by the Free Software Foundation; either version 2 of 27713 # the License, or (at your option) any later version. 27714 # 27715 # As a special exception to the GNU General Public License, 27716 # if you distribute this file as part of a program or library that 27717 # is built using GNU Libtool, you may include this file under the 27718 # same distribution terms that you use for the rest of that program. 27719 # 27720 # GNU Libtool is distributed in the hope that it will be useful, 27721 # but WITHOUT ANY WARRANTY; without even the implied warranty of 27722 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 27723 # GNU General Public License for more details. 27724 # 27725 # You should have received a copy of the GNU General Public License 27726 # along with GNU Libtool; see the file COPYING. If not, a copy 27727 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or 27728 # obtained by writing to the Free Software Foundation, Inc., 27729 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 27730 27731 27732 # The names of the tagged configurations supported by this script. 27733 available_tags="RC CXX " 27734 27735 # ### BEGIN LIBTOOL CONFIG 27736 27737 # Which release of libtool.m4 was used? 27738 macro_version=$macro_version 27739 macro_revision=$macro_revision 27740 27741 # Assembler program. 27742 AS=$lt_AS 27743 27744 # DLL creation program. 27745 DLLTOOL=$lt_DLLTOOL 27746 27747 # Object dumper program. 27748 OBJDUMP=$lt_OBJDUMP 27749 27750 # Whether or not to build shared libraries. 27751 build_libtool_libs=$enable_shared 27752 27753 # Whether or not to build static libraries. 27754 build_old_libs=$enable_static 27755 27756 # What type of objects to build. 27757 pic_mode=$pic_mode 27758 27759 # Whether or not to optimize for fast installation. 27760 fast_install=$enable_fast_install 27761 27762 # Shell to use when invoking shell scripts. 27763 SHELL=$lt_SHELL 27764 27765 # An echo program that protects backslashes. 27766 ECHO=$lt_ECHO 27767 27768 # The PATH separator for the build system. 27769 PATH_SEPARATOR=$lt_PATH_SEPARATOR 27770 27771 # The host system. 27772 host_alias=$host_alias 27773 host=$host 27774 host_os=$host_os 27775 27776 # The build system. 27777 build_alias=$build_alias 27778 build=$build 27779 build_os=$build_os 27780 27781 # A sed program that does not truncate output. 27782 SED=$lt_SED 27783 27784 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 27785 Xsed="\$SED -e 1s/^X//" 27786 27787 # A grep program that handles long lines. 27788 GREP=$lt_GREP 27789 27790 # An ERE matcher. 27791 EGREP=$lt_EGREP 27792 27793 # A literal string matcher. 27794 FGREP=$lt_FGREP 27795 27796 # A BSD- or MS-compatible name lister. 27797 NM=$lt_NM 27798 27799 # Whether we need soft or hard links. 27800 LN_S=$lt_LN_S 27801 27802 # What is the maximum length of a command? 27803 max_cmd_len=$max_cmd_len 27804 27805 # Object file suffix (normally "o"). 27806 objext=$ac_objext 27807 27808 # Executable file suffix (normally ""). 27809 exeext=$exeext 27810 27811 # whether the shell understands "unset". 27812 lt_unset=$lt_unset 27813 27814 # turn spaces into newlines. 27815 SP2NL=$lt_lt_SP2NL 27816 27817 # turn newlines into spaces. 27818 NL2SP=$lt_lt_NL2SP 27819 27820 # convert \$build file names to \$host format. 27821 to_host_file_cmd=$lt_cv_to_host_file_cmd 27822 27823 # convert \$build files to toolchain format. 27824 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 27825 27826 # Method to check whether dependent libraries are shared objects. 27827 deplibs_check_method=$lt_deplibs_check_method 27828 27829 # Command to use when deplibs_check_method = "file_magic". 27830 file_magic_cmd=$lt_file_magic_cmd 27831 27832 # How to find potential files when deplibs_check_method = "file_magic". 27833 file_magic_glob=$lt_file_magic_glob 27834 27835 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 27836 want_nocaseglob=$lt_want_nocaseglob 27837 27838 # Command to associate shared and link libraries. 27839 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 27840 27841 # The archiver. 27842 AR=$lt_AR 27843 27844 # Flags to create an archive. 27845 AR_FLAGS=$lt_AR_FLAGS 27846 27847 # How to feed a file listing to the archiver. 27848 archiver_list_spec=$lt_archiver_list_spec 27849 27850 # A symbol stripping program. 27851 STRIP=$lt_STRIP 27852 27853 # Commands used to install an old-style archive. 27854 RANLIB=$lt_RANLIB 27855 old_postinstall_cmds=$lt_old_postinstall_cmds 27856 old_postuninstall_cmds=$lt_old_postuninstall_cmds 27857 27858 # Whether to use a lock for old archive extraction. 27859 lock_old_archive_extraction=$lock_old_archive_extraction 27860 27861 # A C compiler. 27862 LTCC=$lt_CC 27863 27864 # LTCC compiler flags. 27865 LTCFLAGS=$lt_CFLAGS 27866 27867 # Take the output of nm and produce a listing of raw symbols and C names. 27868 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 27869 27870 # Transform the output of nm in a proper C declaration. 27871 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 27872 27873 # Transform the output of nm in a C name address pair. 27874 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 27875 27876 # Transform the output of nm in a C name address pair when lib prefix is needed. 27877 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 27878 27879 # Specify filename containing input files for \$NM. 27880 nm_file_list_spec=$lt_nm_file_list_spec 27881 27882 # The root where to search for dependent libraries,and in which our libraries should be installed. 27883 lt_sysroot=$lt_sysroot 27884 27885 # The name of the directory that contains temporary libtool files. 27886 objdir=$objdir 27887 27888 # Used to examine libraries when file_magic_cmd begins with "file". 27889 MAGIC_CMD=$MAGIC_CMD 27890 27891 # Must we lock files when doing compilation? 27892 need_locks=$lt_need_locks 27893 27894 # Manifest tool. 27895 MANIFEST_TOOL=$lt_MANIFEST_TOOL 27896 27897 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 27898 DSYMUTIL=$lt_DSYMUTIL 27899 27900 # Tool to change global to local symbols on Mac OS X. 27901 NMEDIT=$lt_NMEDIT 27902 27903 # Tool to manipulate fat objects and archives on Mac OS X. 27904 LIPO=$lt_LIPO 27905 27906 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 27907 OTOOL=$lt_OTOOL 27908 27909 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 27910 OTOOL64=$lt_OTOOL64 27911 27912 # Old archive suffix (normally "a"). 27913 libext=$libext 27914 27915 # Shared library suffix (normally ".so"). 27916 shrext_cmds=$lt_shrext_cmds 27917 27918 # The commands to extract the exported symbol list from a shared archive. 27919 extract_expsyms_cmds=$lt_extract_expsyms_cmds 27920 27921 # Variables whose values should be saved in libtool wrapper scripts and 27922 # restored at link time. 27923 variables_saved_for_relink=$lt_variables_saved_for_relink 27924 27925 # Do we need the "lib" prefix for modules? 27926 need_lib_prefix=$need_lib_prefix 27927 27928 # Do we need a version for libraries? 27929 need_version=$need_version 27930 27931 # Library versioning type. 27932 version_type=$version_type 27933 27934 # Shared library runtime path variable. 27935 runpath_var=$runpath_var 27936 27937 # Shared library path variable. 27938 shlibpath_var=$shlibpath_var 27939 27940 # Is shlibpath searched before the hard-coded library search path? 27941 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 27942 27943 # Format of library name prefix. 27944 libname_spec=$lt_libname_spec 27945 27946 # List of archive names. First name is the real one, the rest are links. 27947 # The last name is the one that the linker finds with -lNAME 27948 library_names_spec=$lt_library_names_spec 27949 27950 # The coded name of the library, if different from the real name. 27951 soname_spec=$lt_soname_spec 27952 27953 # Permission mode override for installation of shared libraries. 27954 install_override_mode=$lt_install_override_mode 27955 27956 # Command to use after installation of a shared archive. 27957 postinstall_cmds=$lt_postinstall_cmds 27958 27959 # Command to use after uninstallation of a shared archive. 27960 postuninstall_cmds=$lt_postuninstall_cmds 27961 27962 # Commands used to finish a libtool library installation in a directory. 27963 finish_cmds=$lt_finish_cmds 27964 27965 # As "finish_cmds", except a single script fragment to be evaled but 27966 # not shown. 27967 finish_eval=$lt_finish_eval 27968 27969 # Whether we should hardcode library paths into libraries. 27970 hardcode_into_libs=$hardcode_into_libs 27971 27972 # Compile-time system search path for libraries. 27973 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 27974 27975 # Run-time system search path for libraries. 27976 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 27977 27978 # Whether dlopen is supported. 27979 dlopen_support=$enable_dlopen 27980 27981 # Whether dlopen of programs is supported. 27982 dlopen_self=$enable_dlopen_self 27983 27984 # Whether dlopen of statically linked programs is supported. 27985 dlopen_self_static=$enable_dlopen_self_static 27986 27987 # Commands to strip libraries. 27988 old_striplib=$lt_old_striplib 27989 striplib=$lt_striplib 27990 27991 27992 # The linker used to build libraries. 27993 LD=$lt_LD 27994 27995 # How to create reloadable object files. 27996 reload_flag=$lt_reload_flag 27997 reload_cmds=$lt_reload_cmds 27998 27999 # Commands used to build an old-style archive. 28000 old_archive_cmds=$lt_old_archive_cmds 28001 28002 # A language specific compiler. 28003 CC=$lt_compiler 28004 28005 # Is the compiler the GNU compiler? 28006 with_gcc=$GCC 28007 28008 # Compiler flag to turn off builtin functions. 28009 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 28010 28011 # Additional compiler flags for building library objects. 28012 pic_flag=$lt_lt_prog_compiler_pic 28013 28014 # How to pass a linker flag through the compiler. 28015 wl=$lt_lt_prog_compiler_wl 28016 28017 # Compiler flag to prevent dynamic linking. 28018 link_static_flag=$lt_lt_prog_compiler_static 28019 28020 # Does compiler simultaneously support -c and -o options? 28021 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 28022 28023 # Whether or not to add -lc for building shared libraries. 28024 build_libtool_need_lc=$archive_cmds_need_lc 28025 28026 # Whether or not to disallow shared libs when runtime libs are static. 28027 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 28028 28029 # Compiler flag to allow reflexive dlopens. 28030 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 28031 28032 # Compiler flag to generate shared objects directly from archives. 28033 whole_archive_flag_spec=$lt_whole_archive_flag_spec 28034 28035 # Whether the compiler copes with passing no objects directly. 28036 compiler_needs_object=$lt_compiler_needs_object 28037 28038 # Create an old-style archive from a shared archive. 28039 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 28040 28041 # Create a temporary old-style archive to link instead of a shared archive. 28042 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 28043 28044 # Commands used to build a shared archive. 28045 archive_cmds=$lt_archive_cmds 28046 archive_expsym_cmds=$lt_archive_expsym_cmds 28047 28048 # Commands used to build a loadable module if different from building 28049 # a shared archive. 28050 module_cmds=$lt_module_cmds 28051 module_expsym_cmds=$lt_module_expsym_cmds 28052 28053 # Whether we are building with GNU ld or not. 28054 with_gnu_ld=$lt_with_gnu_ld 28055 28056 # Flag that allows shared libraries with undefined symbols to be built. 28057 allow_undefined_flag=$lt_allow_undefined_flag 28058 28059 # Flag that enforces no undefined symbols. 28060 no_undefined_flag=$lt_no_undefined_flag 28061 28062 # Flag to hardcode \$libdir into a binary during linking. 28063 # This must work even if \$libdir does not exist 28064 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 28065 28066 # Whether we need a single "-rpath" flag with a separated argument. 28067 hardcode_libdir_separator=$lt_hardcode_libdir_separator 28068 28069 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 28070 # DIR into the resulting binary. 28071 hardcode_direct=$hardcode_direct 28072 28073 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 28074 # DIR into the resulting binary and the resulting library dependency is 28075 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the 28076 # library is relocated. 28077 hardcode_direct_absolute=$hardcode_direct_absolute 28078 28079 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 28080 # into the resulting binary. 28081 hardcode_minus_L=$hardcode_minus_L 28082 28083 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 28084 # into the resulting binary. 28085 hardcode_shlibpath_var=$hardcode_shlibpath_var 28086 28087 # Set to "yes" if building a shared library automatically hardcodes DIR 28088 # into the library and all subsequent libraries and executables linked 28089 # against it. 28090 hardcode_automatic=$hardcode_automatic 28091 28092 # Set to yes if linker adds runtime paths of dependent libraries 28093 # to runtime path list. 28094 inherit_rpath=$inherit_rpath 28095 28096 # Whether libtool must link a program against all its dependency libraries. 28097 link_all_deplibs=$link_all_deplibs 28098 28099 # Set to "yes" if exported symbols are required. 28100 always_export_symbols=$always_export_symbols 28101 28102 # The commands to list exported symbols. 28103 export_symbols_cmds=$lt_export_symbols_cmds 28104 28105 # Symbols that should not be listed in the preloaded symbols. 28106 exclude_expsyms=$lt_exclude_expsyms 28107 28108 # Symbols that must always be exported. 28109 include_expsyms=$lt_include_expsyms 28110 28111 # Commands necessary for linking programs (against libraries) with templates. 28112 prelink_cmds=$lt_prelink_cmds 28113 28114 # Commands necessary for finishing linking programs. 28115 postlink_cmds=$lt_postlink_cmds 28116 28117 # Specify filename containing input files. 28118 file_list_spec=$lt_file_list_spec 28119 28120 # How to hardcode a shared library path into an executable. 28121 hardcode_action=$hardcode_action 28122 28123 # The directories searched by this compiler when creating a shared library. 28124 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 28125 28126 # Dependencies to place before and after the objects being linked to 28127 # create a shared library. 28128 predep_objects=$lt_predep_objects 28129 postdep_objects=$lt_postdep_objects 28130 predeps=$lt_predeps 28131 postdeps=$lt_postdeps 28132 28133 # The library search path used internally by the compiler when linking 28134 # a shared library. 28135 compiler_lib_search_path=$lt_compiler_lib_search_path 28136 28137 # ### END LIBTOOL CONFIG 28138 28139 _LT_EOF 28140 28141 case $host_os in 28142 aix3*) 28143 cat <<\_LT_EOF >> "$cfgfile" 28144 # AIX sometimes has problems with the GCC collect2 program. For some 28145 # reason, if we set the COLLECT_NAMES environment variable, the problems 28146 # vanish in a puff of smoke. 28147 if test "X${COLLECT_NAMES+set}" != Xset; then 28148 COLLECT_NAMES= 28149 export COLLECT_NAMES 28150 fi 28151 _LT_EOF 28152 ;; 28153 esac 28154 28155 28156 ltmain="$ac_aux_dir/ltmain.sh" 28157 28158 28159 # We use sed instead of cat because bash on DJGPP gets confused if 28160 # if finds mixed CR/LF and LF-only lines. Since sed operates in 28161 # text mode, it properly converts lines to CR/LF. This bash problem 28162 # is reportedly fixed, but why not run on old versions too? 28163 sed '$q' "$ltmain" >> "$cfgfile" \ 28164 || (rm -f "$cfgfile"; exit 1) 28165 28166 if test x"$xsi_shell" = xyes; then 28167 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 28168 func_dirname ()\ 28169 {\ 28170 \ case ${1} in\ 28171 \ */*) func_dirname_result="${1%/*}${2}" ;;\ 28172 \ * ) func_dirname_result="${3}" ;;\ 28173 \ esac\ 28174 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 28175 && mv -f "$cfgfile.tmp" "$cfgfile" \ 28176 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 28177 test 0 -eq $? || _lt_function_replace_fail=: 28178 28179 28180 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 28181 func_basename ()\ 28182 {\ 28183 \ func_basename_result="${1##*/}"\ 28184 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 28185 && mv -f "$cfgfile.tmp" "$cfgfile" \ 28186 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 28187 test 0 -eq $? || _lt_function_replace_fail=: 28188 28189 28190 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 28191 func_dirname_and_basename ()\ 28192 {\ 28193 \ case ${1} in\ 28194 \ */*) func_dirname_result="${1%/*}${2}" ;;\ 28195 \ * ) func_dirname_result="${3}" ;;\ 28196 \ esac\ 28197 \ func_basename_result="${1##*/}"\ 28198 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 28199 && mv -f "$cfgfile.tmp" "$cfgfile" \ 28200 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 28201 test 0 -eq $? || _lt_function_replace_fail=: 28202 28203 28204 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 28205 func_stripname ()\ 28206 {\ 28207 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 28208 \ # positional parameters, so assign one to ordinary parameter first.\ 28209 \ func_stripname_result=${3}\ 28210 \ func_stripname_result=${func_stripname_result#"${1}"}\ 28211 \ func_stripname_result=${func_stripname_result%"${2}"}\ 28212 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 28213 && mv -f "$cfgfile.tmp" "$cfgfile" \ 28214 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 28215 test 0 -eq $? || _lt_function_replace_fail=: 28216 28217 28218 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 28219 func_split_long_opt ()\ 28220 {\ 28221 \ func_split_long_opt_name=${1%%=*}\ 28222 \ func_split_long_opt_arg=${1#*=}\ 28223 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 28224 && mv -f "$cfgfile.tmp" "$cfgfile" \ 28225 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 28226 test 0 -eq $? || _lt_function_replace_fail=: 28227 28228 28229 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 28230 func_split_short_opt ()\ 28231 {\ 28232 \ func_split_short_opt_arg=${1#??}\ 28233 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 28234 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 28235 && mv -f "$cfgfile.tmp" "$cfgfile" \ 28236 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 28237 test 0 -eq $? || _lt_function_replace_fail=: 28238 28239 28240 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 28241 func_lo2o ()\ 28242 {\ 28243 \ case ${1} in\ 28244 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 28245 \ *) func_lo2o_result=${1} ;;\ 28246 \ esac\ 28247 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 28248 && mv -f "$cfgfile.tmp" "$cfgfile" \ 28249 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 28250 test 0 -eq $? || _lt_function_replace_fail=: 28251 28252 28253 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 28254 func_xform ()\ 28255 {\ 28256 func_xform_result=${1%.*}.lo\ 28257 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 28258 && mv -f "$cfgfile.tmp" "$cfgfile" \ 28259 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 28260 test 0 -eq $? || _lt_function_replace_fail=: 28261 28262 28263 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 28264 func_arith ()\ 28265 {\ 28266 func_arith_result=$(( $* ))\ 28267 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 28268 && mv -f "$cfgfile.tmp" "$cfgfile" \ 28269 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 28270 test 0 -eq $? || _lt_function_replace_fail=: 28271 28272 28273 sed -e '/^func_len ()$/,/^} # func_len /c\ 28274 func_len ()\ 28275 {\ 28276 func_len_result=${#1}\ 28277 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 28278 && mv -f "$cfgfile.tmp" "$cfgfile" \ 28279 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 28280 test 0 -eq $? || _lt_function_replace_fail=: 28281 28282 fi 28283 28284 if test x"$lt_shell_append" = xyes; then 28285 sed -e '/^func_append ()$/,/^} # func_append /c\ 28286 func_append ()\ 28287 {\ 28288 eval "${1}+=\\${2}"\ 28289 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 28290 && mv -f "$cfgfile.tmp" "$cfgfile" \ 28291 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 28292 test 0 -eq $? || _lt_function_replace_fail=: 28293 28294 28295 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 28296 func_append_quoted ()\ 28297 {\ 28298 \ func_quote_for_eval "${2}"\ 28299 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 28300 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 28301 && mv -f "$cfgfile.tmp" "$cfgfile" \ 28302 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 28303 test 0 -eq $? || _lt_function_replace_fail=: 28304 28305 28306 # Save a `func_append' function call where possible by direct use of '+=' 28307 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 28308 && mv -f "$cfgfile.tmp" "$cfgfile" \ 28309 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 28310 test 0 -eq $? || _lt_function_replace_fail=: 28311 else 28312 # Save a `func_append' function call even when '+=' is not available 28313 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 28314 && mv -f "$cfgfile.tmp" "$cfgfile" \ 28315 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 28316 test 0 -eq $? || _lt_function_replace_fail=: 28317 fi 28318 28319 if test x"$_lt_function_replace_fail" = x":"; then 28320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 28321 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 28322 fi 28323 28324 28325 mv -f "$cfgfile" "$ofile" || 28326 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 28327 chmod +x "$ofile" 28328 28329 28330 cat <<_LT_EOF >> "$ofile" 28331 28332 # ### BEGIN LIBTOOL TAG CONFIG: RC 28333 28334 # The linker used to build libraries. 28335 LD=$lt_LD_RC 28336 28337 # How to create reloadable object files. 28338 reload_flag=$lt_reload_flag_RC 28339 reload_cmds=$lt_reload_cmds_RC 28340 28341 # Commands used to build an old-style archive. 28342 old_archive_cmds=$lt_old_archive_cmds_RC 28343 28344 # A language specific compiler. 28345 CC=$lt_compiler_RC 28346 28347 # Is the compiler the GNU compiler? 28348 with_gcc=$GCC_RC 28349 28350 # Compiler flag to turn off builtin functions. 28351 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 28352 28353 # Additional compiler flags for building library objects. 28354 pic_flag=$lt_lt_prog_compiler_pic_RC 28355 28356 # How to pass a linker flag through the compiler. 28357 wl=$lt_lt_prog_compiler_wl_RC 28358 28359 # Compiler flag to prevent dynamic linking. 28360 link_static_flag=$lt_lt_prog_compiler_static_RC 28361 28362 # Does compiler simultaneously support -c and -o options? 28363 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 28364 28365 # Whether or not to add -lc for building shared libraries. 28366 build_libtool_need_lc=$archive_cmds_need_lc_RC 28367 28368 # Whether or not to disallow shared libs when runtime libs are static. 28369 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 28370 28371 # Compiler flag to allow reflexive dlopens. 28372 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 28373 28374 # Compiler flag to generate shared objects directly from archives. 28375 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 28376 28377 # Whether the compiler copes with passing no objects directly. 28378 compiler_needs_object=$lt_compiler_needs_object_RC 28379 28380 # Create an old-style archive from a shared archive. 28381 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 28382 28383 # Create a temporary old-style archive to link instead of a shared archive. 28384 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 28385 28386 # Commands used to build a shared archive. 28387 archive_cmds=$lt_archive_cmds_RC 28388 archive_expsym_cmds=$lt_archive_expsym_cmds_RC 28389 28390 # Commands used to build a loadable module if different from building 28391 # a shared archive. 28392 module_cmds=$lt_module_cmds_RC 28393 module_expsym_cmds=$lt_module_expsym_cmds_RC 28394 28395 # Whether we are building with GNU ld or not. 28396 with_gnu_ld=$lt_with_gnu_ld_RC 28397 28398 # Flag that allows shared libraries with undefined symbols to be built. 28399 allow_undefined_flag=$lt_allow_undefined_flag_RC 28400 28401 # Flag that enforces no undefined symbols. 28402 no_undefined_flag=$lt_no_undefined_flag_RC 28403 28404 # Flag to hardcode \$libdir into a binary during linking. 28405 # This must work even if \$libdir does not exist 28406 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 28407 28408 # Whether we need a single "-rpath" flag with a separated argument. 28409 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 28410 28411 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 28412 # DIR into the resulting binary. 28413 hardcode_direct=$hardcode_direct_RC 28414 28415 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 28416 # DIR into the resulting binary and the resulting library dependency is 28417 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the 28418 # library is relocated. 28419 hardcode_direct_absolute=$hardcode_direct_absolute_RC 28420 28421 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 28422 # into the resulting binary. 28423 hardcode_minus_L=$hardcode_minus_L_RC 28424 28425 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 28426 # into the resulting binary. 28427 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 28428 28429 # Set to "yes" if building a shared library automatically hardcodes DIR 28430 # into the library and all subsequent libraries and executables linked 28431 # against it. 28432 hardcode_automatic=$hardcode_automatic_RC 28433 28434 # Set to yes if linker adds runtime paths of dependent libraries 28435 # to runtime path list. 28436 inherit_rpath=$inherit_rpath_RC 28437 28438 # Whether libtool must link a program against all its dependency libraries. 28439 link_all_deplibs=$link_all_deplibs_RC 28440 28441 # Set to "yes" if exported symbols are required. 28442 always_export_symbols=$always_export_symbols_RC 28443 28444 # The commands to list exported symbols. 28445 export_symbols_cmds=$lt_export_symbols_cmds_RC 28446 28447 # Symbols that should not be listed in the preloaded symbols. 28448 exclude_expsyms=$lt_exclude_expsyms_RC 28449 28450 # Symbols that must always be exported. 28451 include_expsyms=$lt_include_expsyms_RC 28452 28453 # Commands necessary for linking programs (against libraries) with templates. 28454 prelink_cmds=$lt_prelink_cmds_RC 28455 28456 # Commands necessary for finishing linking programs. 28457 postlink_cmds=$lt_postlink_cmds_RC 28458 28459 # Specify filename containing input files. 28460 file_list_spec=$lt_file_list_spec_RC 28461 28462 # How to hardcode a shared library path into an executable. 28463 hardcode_action=$hardcode_action_RC 28464 28465 # The directories searched by this compiler when creating a shared library. 28466 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC 28467 28468 # Dependencies to place before and after the objects being linked to 28469 # create a shared library. 28470 predep_objects=$lt_predep_objects_RC 28471 postdep_objects=$lt_postdep_objects_RC 28472 predeps=$lt_predeps_RC 28473 postdeps=$lt_postdeps_RC 28474 28475 # The library search path used internally by the compiler when linking 28476 # a shared library. 28477 compiler_lib_search_path=$lt_compiler_lib_search_path_RC 28478 28479 # ### END LIBTOOL TAG CONFIG: RC 28480 _LT_EOF 28481 28482 28483 cat <<_LT_EOF >> "$ofile" 28484 28485 # ### BEGIN LIBTOOL TAG CONFIG: CXX 28486 28487 # The linker used to build libraries. 28488 LD=$lt_LD_CXX 28489 28490 # How to create reloadable object files. 28491 reload_flag=$lt_reload_flag_CXX 28492 reload_cmds=$lt_reload_cmds_CXX 28493 28494 # Commands used to build an old-style archive. 28495 old_archive_cmds=$lt_old_archive_cmds_CXX 28496 28497 # A language specific compiler. 28498 CC=$lt_compiler_CXX 28499 28500 # Is the compiler the GNU compiler? 28501 with_gcc=$GCC_CXX 28502 28503 # Compiler flag to turn off builtin functions. 28504 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 28505 28506 # Additional compiler flags for building library objects. 28507 pic_flag=$lt_lt_prog_compiler_pic_CXX 28508 28509 # How to pass a linker flag through the compiler. 28510 wl=$lt_lt_prog_compiler_wl_CXX 28511 28512 # Compiler flag to prevent dynamic linking. 28513 link_static_flag=$lt_lt_prog_compiler_static_CXX 28514 28515 # Does compiler simultaneously support -c and -o options? 28516 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 28517 28518 # Whether or not to add -lc for building shared libraries. 28519 build_libtool_need_lc=$archive_cmds_need_lc_CXX 28520 28521 # Whether or not to disallow shared libs when runtime libs are static. 28522 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 28523 28524 # Compiler flag to allow reflexive dlopens. 28525 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 28526 28527 # Compiler flag to generate shared objects directly from archives. 28528 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 28529 28530 # Whether the compiler copes with passing no objects directly. 28531 compiler_needs_object=$lt_compiler_needs_object_CXX 28532 28533 # Create an old-style archive from a shared archive. 28534 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 28535 28536 # Create a temporary old-style archive to link instead of a shared archive. 28537 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 28538 28539 # Commands used to build a shared archive. 28540 archive_cmds=$lt_archive_cmds_CXX 28541 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 28542 28543 # Commands used to build a loadable module if different from building 28544 # a shared archive. 28545 module_cmds=$lt_module_cmds_CXX 28546 module_expsym_cmds=$lt_module_expsym_cmds_CXX 28547 28548 # Whether we are building with GNU ld or not. 28549 with_gnu_ld=$lt_with_gnu_ld_CXX 28550 28551 # Flag that allows shared libraries with undefined symbols to be built. 28552 allow_undefined_flag=$lt_allow_undefined_flag_CXX 28553 28554 # Flag that enforces no undefined symbols. 28555 no_undefined_flag=$lt_no_undefined_flag_CXX 28556 28557 # Flag to hardcode \$libdir into a binary during linking. 28558 # This must work even if \$libdir does not exist 28559 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 28560 28561 # Whether we need a single "-rpath" flag with a separated argument. 28562 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 28563 28564 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 28565 # DIR into the resulting binary. 28566 hardcode_direct=$hardcode_direct_CXX 28567 28568 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 28569 # DIR into the resulting binary and the resulting library dependency is 28570 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the 28571 # library is relocated. 28572 hardcode_direct_absolute=$hardcode_direct_absolute_CXX 28573 28574 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 28575 # into the resulting binary. 28576 hardcode_minus_L=$hardcode_minus_L_CXX 28577 28578 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 28579 # into the resulting binary. 28580 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 28581 28582 # Set to "yes" if building a shared library automatically hardcodes DIR 28583 # into the library and all subsequent libraries and executables linked 28584 # against it. 28585 hardcode_automatic=$hardcode_automatic_CXX 28586 28587 # Set to yes if linker adds runtime paths of dependent libraries 28588 # to runtime path list. 28589 inherit_rpath=$inherit_rpath_CXX 28590 28591 # Whether libtool must link a program against all its dependency libraries. 28592 link_all_deplibs=$link_all_deplibs_CXX 28593 28594 # Set to "yes" if exported symbols are required. 28595 always_export_symbols=$always_export_symbols_CXX 28596 28597 # The commands to list exported symbols. 28598 export_symbols_cmds=$lt_export_symbols_cmds_CXX 28599 28600 # Symbols that should not be listed in the preloaded symbols. 28601 exclude_expsyms=$lt_exclude_expsyms_CXX 28602 28603 # Symbols that must always be exported. 28604 include_expsyms=$lt_include_expsyms_CXX 28605 28606 # Commands necessary for linking programs (against libraries) with templates. 28607 prelink_cmds=$lt_prelink_cmds_CXX 28608 28609 # Commands necessary for finishing linking programs. 28610 postlink_cmds=$lt_postlink_cmds_CXX 28611 28612 # Specify filename containing input files. 28613 file_list_spec=$lt_file_list_spec_CXX 28614 28615 # How to hardcode a shared library path into an executable. 28616 hardcode_action=$hardcode_action_CXX 28617 28618 # The directories searched by this compiler when creating a shared library. 28619 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 28620 28621 # Dependencies to place before and after the objects being linked to 28622 # create a shared library. 28623 predep_objects=$lt_predep_objects_CXX 28624 postdep_objects=$lt_postdep_objects_CXX 28625 predeps=$lt_predeps_CXX 28626 postdeps=$lt_postdeps_CXX 28627 28628 # The library search path used internally by the compiler when linking 28629 # a shared library. 28630 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 28631 28632 # ### END LIBTOOL TAG CONFIG: CXX 28633 _LT_EOF 28634 28635 ;; 28636 "sdl2_config":C) chmod a+x sdl2-config ;; 28637 "summary":C) echo -en "$SUMMARY" ;; 28638 28639 esac 28640 done # for ac_tag 28641 28642 28643 as_fn_exit 0 28644 _ACEOF 28645 ac_clean_files=$ac_clean_files_save 28646 28647 test $ac_write_fail = 0 || 28648 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 28649 28650 28651 # configure is writing to config.log, and then calls config.status. 28652 # config.status does its own redirection, appending to config.log. 28653 # Unfortunately, on DOS this fails, as config.log is still kept open 28654 # by configure, so config.status won't be able to write to it; its 28655 # output is simply discarded. So we exec the FD to /dev/null, 28656 # effectively closing config.log, so it can be properly (re)opened and 28657 # appended to by config.status. When coming back to configure, we 28658 # need to make the FD available again. 28659 if test "$no_create" != yes; then 28660 ac_cs_success=: 28661 ac_config_status_args= 28662 test "$silent" = yes && 28663 ac_config_status_args="$ac_config_status_args --quiet" 28664 exec 5>/dev/null 28665 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 28666 exec 5>>config.log 28667 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 28668 # would make configure fail if this is the last instruction. 28669 $ac_cs_success || as_fn_exit 1 28670 fi 28671 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 28672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 28673 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 28674 fi 28675